# log file for model "gtc-w08-lectures.dat" from co370 classes of January 2008 # sensitivity analysis # the log file has been edited and some comments have been added ampl: option cplex_options 'sensitivity'; ampl: option presolve 0; ampl: model resconstr.mod; ampl: data gtc-w08-lectures.dat; ampl: expand; maximize totprofit: 200*x['PLIERS'] + 300*x['HAMMERS']; subject to budget['assembly']: x['PLIERS'] + 2*x['HAMMERS'] <= 20; subject to budget['steel']: 5*x['PLIERS'] + 5*x['HAMMERS'] <= 60; ampl: solve; ILOG CPLEX 10.100, licensed to "university-waterloo, canada", options: e m b q use=20 CPLEX 10.1.0: sensitivity CPLEX 10.1.0: optimal solution; objective 3200 2 dual simplex iterations (1 in phase I) suffix up OUT; suffix down OUT; suffix current OUT; ampl: display x; x [*] := HAMMERS 8 PLIERS 4 ; ampl: display x.rc, x.down, x.current, x.up; : x.rc x.down x.current x.up := HAMMERS 0 200 300 400 PLIERS 0 150 200 300 ; # ---------- comments added into log file ---------- # x.rc gives the reduced costs of variables x # x.down and x.up give respectively the lower and upper endpoints of the # range of the objective-function coefficients of the variables x for which # the current basis remains optimal # x.current gives the current values of the objective-function coefficients # which one could also have obtained by typing "display profit;" # ---------- end of comments added into log file ---------- ampl: display budget, budget.down, budget.current, budget.up, budget.slack; : budget budget.down budget.current budget.up budget.slack := assembly 100 12 20 24 0 steel 20 50 60 100 0 ; # ---------- comments added into log file ---------- # budget gives the shadow price of the budget constraints # budget.down and budget.up give respectively the lower and upper endpoints # of the RHS of the budget constraints for whih the current basis remains # feasible, and hence optimal # budget.current gives the current values of the RHS of the budget constraints # which one could also have obtained by typing "display avail;" # budget.slack gives the slack (=RHS-LHS) in the budget constraints # ---------- end of comments added into log file ---------- ampl: quit;