Difference: PrintingInAMPL (6 vs. 7)

Revision 72008-04-08 - MichaelOSullivan

Line: 1 to 1
 
META TOPICPARENT name="AMPLSyntax"
<-- Ready to Review -->
Line: 71 to 71
 reset;

model transportation.mod;

Added:
>
>
. . .
 data brewery.dat;
Added:
>
>
. . .
 option solver cplex;

solve;

Line: 82 to 91
 display TotalCost >> brewery.out;

printf {s in SUPPLY_NODES, d in DEMAND_NODES : Flow[s, d] > 0}

Changed:
<
<
'Ship %d crates of beer from warehouse %s to pub %s\n', Flow[s, d], s, d >> brewery.out;
>
>
'Ship %d crates of beer from warehouse %s to pub %s\n', Flow[s, d], s, d >> brewery.out;
  close brewery.out;
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback