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