Originally posted by: EdKlotz
>
> Hello,
> is there a command that can stop CPLEX during a computation?
> I have a GUI which uses a SwingWorker to start my CPLEX model (to do it in the background, so that the GUI stays responsive). When I cancel the worker, CPLEX keeps working in the background. If I would use something like cplexModel.end(), I'd get a fatal error.
>
> Any ideas?
The fundamental mechanism CPLEX provides to stop the optimization involves the CPXterminate
function in the C API and IloCplex.Aborter class in Java (and similar for C++). You can use
this either from within a CPLEX callback, or, if using multiple threads, in threads that are
separate from the CPLEX solving process.
#CPLEXOptimizers#DecisionOptimization