Forum Discussion
FICO
5 years agoCommunity Manager
Hi, I am in the process of developing a simple optimization model for a supply chain. Two of the constraints relate to suppliers and the kitting facility.
The two constraints are: 1) Only one kitting facility can be chosen 2) Only one (or a variable number) of suppliers of one ingredient needs to be chosen. Why don't the constraints expressed on lin...
FICO
5 years agoCommunity Manager
Hi Kibrom,
the problem seems to be that you set n and m in lines 54 and 55 outside your for loop over all factories, which leads to no "supplier constraints" being generated for the second facility, which is why that one gets chosen in the end without any suppliers for it. If I move those inside the for loop, the solution changes to the first facility with suppliers getting chosen.

