Please help with solver
Posted: Sat Jan 26, 2019 2:41 pm
Hello everyone
I created the following program or whatever you call it and compile it with no error, however I got zeros in my z solution
Positive variable x1, x2, x3;
free variable z;
Equations
Con1,
Con2,
Con3,
Obj;
;
Con1.. 75*x1 + 131*x2 + 169*x3 =L= 375;
Con2.. 9*x1 + 15*x2 + 20*x3 =L= 44;
Con3.. 7*x1 + 12*x2 + 15*x3 =L= 34;
Obj.. 0.2*x1 + 0.3*x2+ 0.5*x3 =E= z;
Model Time_minimization /
Con1,
Con2,
Con3,
Obj / ;
options lp = cplex;
Solve Time_minimization Using lp Minimizing z;
Display x1.L, x2.L, x3.L, z.L;
can anyone tell me what's wrong with it????
I created the following program or whatever you call it and compile it with no error, however I got zeros in my z solution
Positive variable x1, x2, x3;
free variable z;
Equations
Con1,
Con2,
Con3,
Obj;
;
Con1.. 75*x1 + 131*x2 + 169*x3 =L= 375;
Con2.. 9*x1 + 15*x2 + 20*x3 =L= 44;
Con3.. 7*x1 + 12*x2 + 15*x3 =L= 34;
Obj.. 0.2*x1 + 0.3*x2+ 0.5*x3 =E= z;
Model Time_minimization /
Con1,
Con2,
Con3,
Obj / ;
options lp = cplex;
Solve Time_minimization Using lp Minimizing z;
Display x1.L, x2.L, x3.L, z.L;
can anyone tell me what's wrong with it????