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
Further to the previous answer, it would also be possible to simplify the loop defining these constraints as follows:
forall(k in Potential_kf) do
m:=0
forall(j in Ingredients)
sum(i in test_Supplier_sites(j), m as counter) supplier_kf(m,k)= kf(k)
end-door possibly this form that uses the actual data values from the test_Supplier_sites list as index values:
forall(k in Potential_kf) do
forall(j in Ingredients)
sum(i in test_Supplier_sites(j)) supplier_kf(i,k)= kf(k)
end-do
