This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: you define your Nodes and Arcs in your formulation appropriately. The .mod file is: set NodeName; set ARC within (NodeName cross NodeName); param lower {ARC}; param upper {ARC}; param value {ARC}; minimize TotalValue; node NODE {k in NodeName}; arc Flow {(i,j) in ARC}, >= lower [i,j], <= upper [i,j], obj TotalValue value [i,j] from NODE [i], to NODE [j]; 3. Data File Network Flow Problems The Data File for the above Network Flow problem is: set NodeName:=Source F1 F2 DC W1 W2 Sink; param:ARC: lower, upper, value:= Source F1 50 50 0 Source F2 40 40 0 F1 W1 0 Infinity 900 F1 DC 0 Infinity 400 F1 F2 0 10 200 F2 DC 0 Infinity 300 DC W2 0 80 100 W1 W2 0 Infinity 300 W2 W1 0 Infinity 200 W1 Sink 30 30 0 W2 Sink 60 60 0 Sink Source 0 Infinity 0;...
View
Full
Document
 Spring '11
 Daniel

Click to edit the document details