Originally posted by: ChristopheV
Dear all,
I am solving a model which is (for certain parameter values) infeasible. The fact that the model is infeasible is correct and the desired behavior. The logging (half my own logging and half CPLEX logging) looks as follows:
---
...
Cplex version 12.1.0
MIP display parameter: 2
Starting CPLEX attempt 1 out of 1.
Row '(RL2-505) : Gelimiteerde capaciteit voor de gieterijen_0' infeasible, all entries at implied bounds.
Presolve time = 0.00 sec.
...
---
Cplex has thus detected that a certain row is infeasible, and logged this. Now it would be interesting for me to be able to access this message (e.g. from the cplex object), f.i. to show it in the GUI of the user (so that the user does not need to look in the log file).
Is there any clean way to access this message?
Thanks in advance!
Christophe
PS: In certain other cases, when no solution is found, an IloException is thrown (I guess such an exception is thrown once we are after the presolve step?). Using the getMessage() method, I can then extract an error message to show in the GUI, similar to what I also want to do in the case described above when no exception is thrown.
#CPLEXOptimizers#DecisionOptimization