Forum Discussion

FICO's avatar
FICO
Community Manager
5 years ago

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 line 57-64 and line 69 achieve my goal of the two constraints above?

When I output the result, I can get zeros for all kfs which conflict with line 69.

Output:

Supplier to Kitting Facility Solutions:

Supplier 1 to Kitting Facility 1 = 0

Supplier 1 to Kitting Facility 2 = 0

Supplier 2 to Kitting Facility 1 = 0

Supplier 2 to Kitting Facility 2 = 0

Supplier 3 to Kitting Facility 1 = 0

Supplier 3 to Kitting Facility 2 = 0

Supplier 4 to Kitting Facility 1 = 0

Supplier 4 to Kitting Facility 2 = 0

Supplier 5 to Kitting Facility 1 = 0

Supplier 5 to Kitting Facility 2 = 0

Supplier 6 to Kitting Facility 1 = 0

Supplier 6 to Kitting Facility 2 = 0

Supplier 7 to Kitting Facility 1 = 0

Supplier 7 to Kitting Facility 2 = 0

Supplier 8 to Kitting Facility 1 = 0

Supplier 8 to Kitting Facility 2 = 0

Supplier 9 to Kitting Facility 1 = 0

Supplier 9 to Kitting Facility 2 = 0

Supplier 10 to Kitting Facility 1 = 0

Supplier 10 to Kitting Facility 2 = 0

Note that the dat file with the code is attached. It contains no proprietary information.

Please let me know if anything needs any further clarification.

Thank you in advance,

Kibrom 

27 Replies