[Scip] Event handler for "problem solved"

Timo Berthold berthold at zib.de
Tue Jan 22 17:57:59 MET 2013


Hi Aurélien,

I guess the easiest way is to insert a

if( SCIPgetStage(scip) == SCIP_STAGE_SOLVED )
{
    /* call your function here */
}

directly after the call of
SCIPsolve() in your code. This is nothing that needs to be adressed via
an event handler (also, there is no event for this, as you observed
correctly).
The event system is rather made for interacting with SCIP during the
soling procedure, when it is somewhere deep down in its internal routines.

Best regards,
Timo

Am 22.01.2013 17:32, schrieb Aurélien Questel:
> Hi everybody,
> I would like to trigger a function when my main problem is solved (SCIP_STAGE_SOLVED), 
> however I'm a bit lost in all the different event types.
> What would be the best and easiest way to do that ?
>
> Thank you,
> regards,
>
> A.Q.
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip



More information about the Scip mailing list