Difference: TransshipmentProblemInAMPL (6 vs. 7)

Revision 72014-10-06 - MichaelOSullivan

Line: 1 to 1
 
META TOPICPARENT name="TransshipmentProblem"

The Transshipment Problem in AMPL

Line: 28 to 28
 param Supply {SUPPLY_NODES} >= 0, integer; param Demand {DEMAND_NODES} >= 0, integer;
Changed:
<
<
param NetDemand {n in NODES} integer, default 0
>
>
param NetDemand {n in NODES} integer
  := if n in SUPPLY_NODES then -Supply[n] else if n in DEMAND_NODES then Demand[n]; # else 0 by default
Added:
>
>
Note that no default value is needed for NetDemand as it is explicitly defined for all nodes.
  The set ARCS is defined between pairs of nodes and costs and bounds are also defined:

Line: 54 to 55
  sum {(i, j) in ARCS} Flow[i, j] - sum {(j, k) in ARCS} Flow[j, k] >= NetDemand[j];
Changed:
<
<
-- TWikiAdminGroup - 22 Apr 2008
>
>
-- MichaelOSullivan - 06 Oct 2014
 
META FILEATTACHMENT attachment="latex5da5abb9ccf4cbbc7eee6659924b1403.png" attr="h" comment="" date="1208854554" name="latex5da5abb9ccf4cbbc7eee6659924b1403.png" stream="GLOB(0xa748acc)" tmpFilename="latex5da5abb9ccf4cbbc7eee6659924b1403.png" user="BaseUserMapping_333" version="1"
META FILEATTACHMENT attachment="latex56f76e376243ad67ee1d9ef33bf47490.png" attr="h" comment="" date="1208854554" name="latex56f76e376243ad67ee1d9ef33bf47490.png" stream="GLOB(0xa748aa8)" tmpFilename="latex56f76e376243ad67ee1d9ef33bf47490.png" user="BaseUserMapping_333" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback