This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: bounds on production into the fourth column : param: a c u:= Regular 10000 10 120000 Plus 9000 11 120000 Ultra 8500 12 120000; The last parameter is b which we deﬁne by writing param: b=24; because we have 24 hours every day. Now we can save our data ﬁle as smog.dat and run AMPL . As in example we ﬁrst declare which ﬁle contains the model and which contains data. Then we just tell AMPL to solve the problem. sw: ampl ampl: model prod.mod; ampl: data smog.dat; ampl: solve; MINOS 5.5: optimal solution found. 2 iterations, objective 2428235.294 Now the last thing is to display optimal values of X: ampl: display X; X [*] := Plus 0 Regular 98823.5 Ultra 120000 ; and we are done. 1...
View
Full Document
 '08
 TODD
 Das Model

Click to edit the document details