! 6. Transportation problems of departure and destination. Transportation problems at the receiving point;
Set:
Warehouse/wh1... wh6/:capacity;
Supplier/v1... V8/:demand;
Links (warehouse, supplier): cost, volume;
End set
! Objective function;
Min=@sum (link: cost * volume);
! Demand constraint;
@for(vendors(J):
@sum (warehouse (i):
Quantity (i, J))= demand (j));
! Output constraints;
@for (warehouse (I): @sum (supplier (j): volume (i, j)) < = capacity (I)););
! Here is the data;
Data:
Capacity = 60 555143 4152;
Demand = 35 37 22 32 4132 43 38;
cost = 6 2 6 7 4 2 9 5 4 9 5 3 8 8 2 5 2 1 9 7 4 3 7 6 7 3 9 2 7 1 2 3 9 5 7 2 6 5 5 5 2 8 1 4 3;
End data
end