CO370 Lecture Notes - Resource Consumption, Fuel Oil, Diesel Fuel

198 views10 pages

Document Summary

C&o 370: deterministic or models winter 2013. The purpose of this question is to get you comfortable with ampl. In class we saw how to translate an lp into. # declares a set of machines param ptime {machines, jobs} >= 0; # declares a 2d-array of nonnegative elements with. # rows indexed by machines and columns indexed by jobs. # ptime[i,j] = processing time job j needs if processed on machine i var x {machines, jobs} >= 0; # declares a 2d-array of nonnegative variables where. # x[i,j] = fraction of job j processed on machine i var cmax >= 0; # the maximum completion time of any job minimize ctime: cmax; # every job must be assigned subject to jobasgn {j in jobs}: sum {i in machines} x[i,j] = 1; # the total load on any machine cannot exceed the max completion time subject to mcload {i in machines}: sum {j in jobs} p[i,j]*x[i,j] <= cmax;

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers