Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
The Transportation Problem in AMPL | ||||||||
Line: 53 to 53 | ||||||||
>= Lower[i, j], <= Upper[i, j], integer; | ||||||||
Added: | ||||||||
> > | Also, since some arcs no longer exist you should set a default of 0 for Cost (thus you don't have to define costs for non-existent arcs).
param Cost {SUPPLY_NODES, DEMAND_NODES} default 0; | |||||||
Balancing Transportation ProblemsBalanced transportation models are preferred as there is no confusion about the relational operators for the supply and demand constraints. We can use a script file (transportation.run) to balance any transportation problem automatically: | ||||||||
Line: 103 to 108 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
|