|
|
|
Cost Matrix:
|
Define:
|
min: 5x11 + 4x12 + 7x13 + 6x14 + 2x21 + 5x22 + 3x23 + 2x24 + 6x31 + 3x32 + 4x33 + 4x34 s.t.: x11 + x12 + x13 + x14 = 5 // Total shipment from factory 1 = 5 units x21 + x22 + x23 + x24 = 4 x31 + x32 + x33 + x34 = 6 x11 + x21 + x31 <= 5 // Total shipment to warehouse 1 <= 5 x12 + x22 + x32 <= 3 x13 + x23 + x33 <= 5 x14 + x24 + x34 <= 2 xij >= 0 |
Output:
Value of objective function: 54.00 Actual values of the variables: x11 2 x12 3 x13 0 x14 0 x21 3 x22 0 x23 0 x24 1 x31 0 x32 0 x33 5 x34 1 |