Question: Answer questions a, b, c ASAP You have to submit a word document for (a) the formulation in a concise form, (b) for the final
Answer questions a, b, c ASAP
You have to submit a word document for (a) the formulation in a concise form, (b) for the final answer summary, and (c) comment on the dual and reduced cost. Upload the Cplex & and the document files.
Upload the CPLEX project folder Using CPLEX (Tuple and data read from/write to excel sheet- Script for dual and reduced cost), solve the following: Hint on writing dual/reduced costs to script log: ///////////////////////////////////////////////////////////////////////////////// // POSTPROCESSING execute { if(cplex.getCplexStatus()==1){ // Calling the function "getCplexStatus()" equal "1" means // if problem have optimum solution //obj fun values writeln("objective function-Minimum Shipping Cost= " ,cplex.getObjValue( ), " Dollar" ) ; ///////////////////////////////////////////////////////////////////////////////// // all values together find UB and LB, Slack and Dual //for (var j in Fact) writeln (ct1[j].name," ", ct1[j].UB, " UB: ", ct1[j].LB, " LB: ", ct1[j].dual, " dual: ", ct1[j].slack); // or instead you can do: for (var j in Fact) writeln(ct1[j].name," ",ct1[j].UB,":UB ",ct1[j].LB,":LB ",ct1[j].dual,":Dual ",ct1[j].slack, ":Slack ");
for (var i in Cus) writeln( ct2[i].name," ",ct2[i].UB,":UB ",ct2[i].LB,":LB ",ct2[i].dual,":Dual ",ct2[i].slack, ":Slack "); ///////////////////////////////////////////////////////////////////////////////// //DV values to script log writeln("x: Shipping amount to customer from [Fact1 Fact2]=", Ship); ///////////////////////////////////////////////////////////////////////////////// //primal and dual values writeln("Primal solution: " ) ; write("Ship=["); for(var i in Cus) { write(Ship[i], ""); } writeln("]"); ///////////////////////////////////////////////////////////////////////////////// //Dual Soln to script log writeln("Dual solution: " ) ; write("shadowpricedemand=["); for(var i in Cus) { write(ct2[i].dual, " " ); } writeln( "]" ) ; write("Shadowpriceresource=["); for(var j in Fact) {
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
