CO250 Lecture Notes - Piecewise Linear Function, Toner, Mathematical Notation
Document Summary
Due: wednesday january 23 at the beginning of class: this question will test your ability to understand ampl code. (a) the following is the . mod le for a particular ampl model. Write out the general structure of the linear program using standard mathematical notation. # a business assigns workers to a specific shift during the day. # in a work cycle, workers get one day off. set day; set shift; # declares a set of shifts param minworkers {shift, day} >=0; # rows are indexed by shifts and columns are indexed by days. # minworkers[s,d] = min no. of workers the business needs. # during shift s on day d var x {shift,day} >=0; # where x[s,d] denotes the no. of workers. Write out the com- plete linear program using these values. (write out all variables and constraints. ) set day := mon, tue, wed, thu; set shift := morning, afternoon; param minworkers: