Assignment6-solutions -...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
file:///C|/Documents%20and%20Settings/mol23/Desktop/ORIE%203300_5300/assignments/ass6/ass6-1-sol.txt #In this problem, you have 5 people (supply) and only 4 stroke style (demand). Thus, you will need to define a new variable for stroke atyle , called "unused" with time = 0. The creation of the data file can be done in many different styles. Two options are showns bellow.# #DATA FILE OPTION 1# data; param: ORIG: supply := # defines set "ORIG" and param "supply" alan 1 brad 1 chris 1 dennis 1 eddie 1 ; param: DEST: demand := # defines "DEST" and "demand" backstroke 1 breaststroke 1 butterfly 1 freestyle 1 unused 1 ; param cost: backstroke breaststroke butterfly freestyle unused := alan 37.7 43.4 33.3 29.2 0 brad 32.9 33.1 28.5 26.4 0 chris 33.8 42.2 38.9 29.6 0 dennis 37.0 34.7 30.4 28.5 0 eddie 35.4 41.8 33.6 31.1 0 ; #DATA FILE OPTION 2# data; set ORIG := alan brad chris dennis eddie ; set DEST := backstroke breaststroke butterfly freestyle unused ; file:///C|/Documents%20and%20Settings/mol23/Desktop/ORIE%203300_5300/assignments/ass6/ass6-1-sol.txt (1 of 3) [10/4/2011 9:27:52 AM]
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
file:///C|/Documents%20and%20Settings/mol23/Desktop/ORIE%203300_5300/assignments/ass6/ass6-1-sol.txt param supply default 1 ; param demand default 1 ; param cost: backstroke breaststroke butterfly freestyle unused := alan 37.7 43.4 33.3 29.2 0 brad 32.9 33.1 28.5 26.4 0 chris 33.8 42.2 38.9 29.6 0 dennis 37.0 34.7 30.4 28.5 0 eddie 35.4 41.8 33.6 31.1 0 ; #OUTPUT# sw: ampl ampl: model transp.mod; ampl: data hw6.dat; ampl: solve; MINOS 5.5: optimal solution found.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/08/2012 for the course ORIE 3300 at Cornell University (Engineering School).

Page1 / 5

Assignment6-solutions -...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online