Write LINGO code to formulate and solve a transshipment problem. Your code should work for 3 supply points, 3 demand points and 2 transshipment points. You can assume that the data section will look as follows:
DEMAND = (3 entries);
SUPPLY = (3 entries);
SDCOST = (9 entries);
D
STCOST = (6 entries);
TDCOST = (6 entries);
TTCOST = (4 entries);
where DEMAND and SUPPLY are the demand and supply vectors, and SDCOST,
STCOST, TDCOST and TTCOST are the costs from supply nodes to demand
nodes, from supply nodes to transshipment nodes, from transshipment
nodes to demand nodes, and from transhipment nodes to transshipment
nodes respectively.
Run your code on the following data:
DEMAND = 100 100 100;
SUPPLY = 150 50 100;
SDCOST = 25 40 10 30 15 20 20 20 20;
STCOST = 10 5 10 5 5 5;
TDCOST = 15 10 25 30 20 10;
TTCOST = 5 15 10 10;