You have this constraint:
c495: p11_4 + p13_4 + p15_4 + p17_4 + p19_4 + p21_4 + p23_4 + p25_4 + p27_4
+ p29_4 + p31_4 + p33_4 + p35_4 + p37_4 + p39_4 + p41_4 + p43_4 + p45_4
+ p47_4 + p49_4 = 368
All variables in this constraint are binary. Since there are only 20 variables, there is no way these can sum up to 368. Something is wrong with your model. You have to go back to the code that creates the model and figure out what is wrong there.
PS: Are you sure these are the models that you were able to solve with another solver? I doubt that other solvers find a solution that satisfies this constraint. That would look like a bug in that solver.
EDIT: I think I know what is wrong: your LP file format does not satisfy the specification: For defining your integer variables you define a section called "Integer" in your LP file. However, as you can see
here the keyword to define integer variables is "General". If you replace "Integer" in the file by "General" then things work as expected. What your original file does is declaring a new binary variable called "Integer" that is not used anywhere.
------------------------------
Daniel Junglas
------------------------------
Original Message:
Sent: Wed April 29, 2020 10:00 AM
From: Noppawat Samdangdech
Subject: getCplexStatus=3 when run via CPLEX Optimization Studio
Sorry, I just attached LP file again. (Previously, I did not compress LP files before uploaded, so the attachment system did not support LP files.)
and how to turning presolve off?
------------------------------
Noppawat Samdangdech
Original Message:
Sent: Wed April 29, 2020 09:33 AM
From: Ryan Kersh
Subject: getCplexStatus=3 when run via CPLEX Optimization Studio
This is a new forum and I may be mistaken, but I don't see the LP file attachment. Did you forget to attach the LP file?
From the log we can see that CPLEX thinks row 'c495' is infeasible. Did you take a close look at that? Did you happen to try turning presolve off?
------------------------------
Ryan Kersh
Original Message:
Sent: Wed April 29, 2020 06:00 AM
From: Noppawat Samdangdech
Subject: getCplexStatus=3 when run via CPLEX Optimization Studio
------------------------------
Noppawat Samdangdech
Original Message:
Sent: Wed April 29, 2020 04:39 AM
From: Xavier Nodet
Subject: getCplexStatus=3 when run via CPLEX Optimization Studio
Ideally, you would attach the LP file so that we can try ourselves. If you can't you should at least provide the CPLEX log (from the Engine Log tab) in addition to the information that you already provided. Thanks!
------------------------------
Xavier Nodet
Program Manager, Development
CPLEX Optimization Studio
Original Message:
Sent: Wed April 29, 2020 12:36 AM
From: Noppawat Samdangdech
Subject: getCplexStatus=3 when run via CPLEX Optimization Studio
Hi All,
I have issue when try to import model (.lp file) and run configuration. The CPLEX cannot solve the problem. So, there is no solution for all of my .lp files.
getCplexStatus() = 3 which mean model is proved infeasible, right?
- But when I try to run via Gurobi. It is working normally with solution.
- Therefore, could anyone please suggest on this issue or give and example of syntax for solve the LP files.
This is my code when run via IBM ILOG CPLEX Optimization Studio or you can see in attached image.
main {
cplex.importModel("C:\\Path to LP file\\xxx.lp");
if (cplex.solve()) {
writeln("Objective Value = " + cplex.getObjValue());
writeln("Best Obj Value = " + cplex.getBestObjValue());
writeln("Solved Time = " + cplex.getSolvedTime());
} else {
writeln("No solution");
writeln("Cplex Status = " + cplex.getCplexStatus());
}
}
Thank you in advance.
------------------------------
Noppawat Samdangdech
------------------------------
#DecisionOptimization