


Cost Matrix:

Define:

min: 5x_{11} + 4x_{12} + 7x_{13} + 6x_{14} + 2x_{21} + 5x_{22} + 3x_{23} + 2x_{24} + 6x_{31} + 3x_{32} + 4x_{33} + 4x_{34} s.t.: x_{11} + x_{12} + x_{13} + x_{14} = 5 // Total shipment from factory 1 = 5 units x_{21} + x_{22} + x_{23} + x_{24} = 4 x_{31} + x_{32} + x_{33} + x_{34} = 6 x_{11} + x_{21} + x_{31} <= 5 // Total shipment to warehouse 1 <= 5 x_{12} + x_{22} + x_{32} <= 3 x_{13} + x_{23} + x_{33} <= 5 x_{14} + x_{24} + x_{34} <= 2 x_{ij} >= 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 