Originally posted by: SystemAdmin
To make sure I got you right: You are talking about a
signal handler, like something that is set via sigaction() or signal() in Linux?
In general there is no way to get the information you want directly from the CPLEX object.
What you can do is the following:
-
Register a MIPInfoCallback with the IloCplex instance that performs the solve.
-
Create a flag variable that is shared between the callback and the signal handler.
-
The callback is invoked periodically by CPLEX. Every time it is invoked you can check whether a feasible solution exists. If so then set the flag to true.
-
In the signal handler check the shared flag.
#CPLEXOptimizers#DecisionOptimization