[SCIP] Terminating from an event handler

Marc Pfetsch pfetsch at mathematik.tu-darmstadt.de
Fri Dec 4 17:56:00 CET 2020



Hi Mile,

you can try to call SCIPinterruptSolve(), this will lead to a
termination at the next possible time.

Best

Marc

On 04/12/2020 15:34, Miles Lubin wrote:
> Hello SCIP team,
> 
> How would you recommend terminating the solver from within an event
> handler? I found SCIPtryTerminate(); however, this isn't thread-safe.
> It's liable to terminate other SCIPs running in the same process because
> it interacts with global variables.
> 
> Thanks!
> Miles
> 
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip
> 


More information about the Scip mailing list