Decision Model for Diet

5848 Words24 Pages
Home Work #1 Subject: Decision Models Instructor: Professor Alex James Student: Daniyar AItkulov 1-2 The steel model of this chapter can be further modified to reflect various changes in production requirements. For each part below, explain the modifications to Figures 1-6a and 1-6b that would be required to achieve the desired changes. 1-2(a) How would you change the constraints so that total hours used by all products must equal the total hours available for each stage? Solve the linear program with this change, and verify that you get the same results. Explain why, in this case, there is no difference in the solution. Solution: Model | set PROD; # productsset STAGE; # stagesparam rate {PROD,STAGE} > 0; # tons per hour in each stageparam avail {STAGE} >= 0; # hours available/week in each stageparam profit {PROD}; # profit per tonparam commit {PROD} >= 0; # lower limit on tons sold in weekparam market {PROD} >= 0; # upper limit on tons sold in weekvar Make {p in PROD} >= commit[p], <= market[p]; # tons producedmaximize total_profit: sum {p in PROD} profit[p] * Make[p]; # Objective: total profits from all productssubject to Time {s in STAGE}: sum {p in PROD} (1/rate[p,s]) * Make[p]< = avail[s]; # In each stage: total of hours used by all # products may not exceed hours available | Data | set PROD := bands coils plate;set STAGE := reheat roll;param rate: reheat roll := bands 200 200 coils 200 140 plate 200 160 ;param: profit commit market := bands 25 1000 6000 coils 30 500 4000 plate 29 750 3500 ;param avail := reheat 35 roll 40 ; | Output commands | solve ; display Make ; |

More about Decision Model for Diet

Open Document