methods for event handlers
const char* SCIPeventhdlrGetName | ( | SCIP_EVENTHDLR * | eventhdlr | ) |
gets name of event handler
eventhdlr | event handler |
Definition at line 278 of file event.c.
References SCIP_Eventhdlr::name.
Referenced by SCIP_DECL_CONSGETNVARS(), SCIP_DECL_EVENTCOPY(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINITSOL(), SCIPeventGlobalbndClearBoundChanges(), SCIPeventGlobalbndDisableBoundStorage(), SCIPeventGlobalbndEnableBoundStorage(), SCIPeventGlobalbndGetBoundChanges(), SCIPeventhdlrCopyInclude(), SCIPsetFindCompr(), and testCriteria().
SCIP_EVENTHDLRDATA* SCIPeventhdlrGetData | ( | SCIP_EVENTHDLR * | eventhdlr | ) |
gets user data of event handler
eventhdlr | event handler |
Definition at line 288 of file event.c.
References SCIP_Eventhdlr::eventhdlrdata.
Referenced by getNNodesBelowIncumbent(), getNRank1Nodes(), SCIP_DECL_EVENTCOPY(), SCIP_DECL_EVENTDELETE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_HEURFREE(), SCIPeventGlobalbndClearBoundChanges(), SCIPeventGlobalbndDisableBoundStorage(), SCIPeventGlobalbndEnableBoundStorage(), SCIPeventGlobalbndGetBoundChanges(), SCIPfindObjEventhdlr(), and SCIPgetObjEventhdlr().
void SCIPeventhdlrSetData | ( | SCIP_EVENTHDLR * | eventhdlr, |
SCIP_EVENTHDLRDATA * | eventhdlrdata | ||
) |
sets user data of event handler; user has to free old data in advance!
eventhdlr | event handler |
eventhdlrdata | new event handler user data |
Definition at line 298 of file event.c.
References SCIP_Eventhdlr::eventhdlrdata.
Referenced by SCIP_DECL_EVENTFREE().
SCIP_Bool SCIPeventhdlrIsInitialized | ( | SCIP_EVENTHDLR * | eventhdlr | ) |
is event handler initialized?
eventhdlr | event handler |
Definition at line 386 of file event.c.
References SCIP_Eventhdlr::initialized.
Referenced by SCIPsetIncludeCompr().
SCIP_Real SCIPeventhdlrGetSetupTime | ( | SCIP_EVENTHDLR * | eventhdlr | ) |
gets time in seconds used in this event handler for setting up for next stages
eventhdlr | event handler |
Definition at line 408 of file event.c.
References SCIPclockGetTime(), and SCIP_Eventhdlr::setuptime.
SCIP_Real SCIPeventhdlrGetTime | ( | SCIP_EVENTHDLR * | eventhdlr | ) |
gets time in seconds used in this event handler
gets time in seconds used in this event handler, this measurement is currently disabled so this method will return 0, define TIMEEVENTEXEC in the beginning of this file to enable
eventhdlr | event handler |
Definition at line 420 of file event.c.
References SCIP_Eventhdlr::eventtime, and SCIPclockGetTime().
SCIP_RETCODE SCIPincludeEventhdlr | ( | SCIP * | scip, |
const char * | name, | ||
const char * | desc, | ||
SCIP_DECL_EVENTCOPY((*eventcopy)) | , | ||
SCIP_DECL_EVENTFREE((*eventfree)) | , | ||
SCIP_DECL_EVENTINIT((*eventinit)) | , | ||
SCIP_DECL_EVENTEXIT((*eventexit)) | , | ||
SCIP_DECL_EVENTINITSOL((*eventinitsol)) | , | ||
SCIP_DECL_EVENTEXITSOL((*eventexitsol)) | , | ||
SCIP_DECL_EVENTDELETE((*eventdelete)) | , | ||
SCIP_DECL_EVENTEXEC((*eventexec)) | , | ||
SCIP_EVENTHDLRDATA * | eventhdlrdata | ||
) |
creates an event handler and includes it in SCIP
scip | SCIP data structure |
name | name of event handler |
desc | description of event handler |
eventhdlrdata | event handler data |
Definition at line 8569 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, SCIPeventhdlrCreate(), SCIPfindEventhdlr(), SCIPsetIncludeEventhdlr(), Scip::set, and TRUE.
Referenced by SCIPincludeObjEventhdlr().
SCIP_RETCODE SCIPincludeEventhdlrBasic | ( | SCIP * | scip, |
SCIP_EVENTHDLR ** | eventhdlrptr, | ||
const char * | name, | ||
const char * | desc, | ||
SCIP_DECL_EVENTEXEC((*eventexec)) | , | ||
SCIP_EVENTHDLRDATA * | eventhdlrdata | ||
) |
creates an event handler and includes it in SCIP with all its non-fundamental callbacks set to NULL; if needed, non-fundamental callbacks can be set afterwards via setter functions SCIPsetEventhdlrCopy(), SCIPsetEventhdlrFree(), SCIPsetEventhdlrInit(), SCIPsetEventhdlrExit(), SCIPsetEventhdlrInitsol(), SCIPsetEventhdlrExitsol(), and SCIPsetEventhdlrDelete()
scip | SCIP data structure |
eventhdlrptr | reference to an event handler, or NULL |
name | name of event handler |
desc | description of event handler |
eventhdlrdata | event handler data |
Definition at line 8611 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, SCIPeventhdlrCreate(), SCIPfindEventhdlr(), SCIPsetIncludeEventhdlr(), Scip::set, and TRUE.
Referenced by includeEventHdlrSync(), SCIP_DECL_HEUREXEC(), SCIP_DECL_NONLINCONSUPGD(), SCIPapplyProximity(), SCIPincludeBranchruleDistribution(), SCIPincludeConshdlrAbspower(), SCIPincludeConshdlrAnd(), SCIPincludeConshdlrBivariate(), SCIPincludeConshdlrBounddisjunction(), SCIPincludeConshdlrCardinality(), SCIPincludeConshdlrCumulative(), SCIPincludeConshdlrIndicator(), SCIPincludeConshdlrLinking(), SCIPincludeConshdlrLogicor(), SCIPincludeConshdlrNonlinear(), SCIPincludeConshdlrOr(), SCIPincludeConshdlrQuadratic(), SCIPincludeConshdlrSOC(), SCIPincludeConshdlrSOS2(), SCIPincludeConshdlrVarbound(), SCIPincludeConshdlrXor(), SCIPincludeEventHdlrBestsol(), SCIPincludeEventHdlrBoundwriting(), SCIPincludeEventHdlrGlobalbnd(), SCIPincludeEventHdlrLPsol(), SCIPincludeEventHdlrSofttimelimit(), SCIPincludeEventHdlrSolvingphase(), SCIPincludeHeurShiftandpropagate(), SCIPincludeHeurSubNlp(), SCIPincludePropVbounds(), SCIPincludeSepaIntobj(), SCIPprobdataCreate(), setupAndSolve(), setupAndSolveSubscip(), setupAndSolveSubscipCrossover(), setupAndSolveSubscipLocalbranching(), solveSubscipLpface(), wrapperDins(), and wrapperRins().
SCIP_RETCODE SCIPsetEventhdlrCopy | ( | SCIP * | scip, |
SCIP_EVENTHDLR * | eventhdlr, | ||
SCIP_DECL_EVENTCOPY((*eventcopy)) | |||
) |
sets copy callback of the event handler
scip | scip instance |
eventhdlr | event handler |
Definition at line 8643 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPeventhdlrSetCopy(), and TRUE.
Referenced by SCIPincludeEventHdlrBestsol(), SCIPincludeEventHdlrBoundwriting(), SCIPincludeEventHdlrSofttimelimit(), and SCIPincludeEventHdlrSolvingphase().
SCIP_RETCODE SCIPsetEventhdlrFree | ( | SCIP * | scip, |
SCIP_EVENTHDLR * | eventhdlr, | ||
SCIP_DECL_EVENTFREE((*eventfree)) | |||
) |
sets deinitialization callback of the event handler
scip | scip instance |
eventhdlr | event handler |
Definition at line 8657 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPeventhdlrSetFree(), and TRUE.
Referenced by includeEventHdlrSync(), SCIPincludeBranchruleDistribution(), SCIPincludeEventHdlrBoundwriting(), SCIPincludeEventHdlrGlobalbnd(), SCIPincludeEventHdlrSofttimelimit(), and SCIPincludeEventHdlrSolvingphase().
SCIP_RETCODE SCIPsetEventhdlrInit | ( | SCIP * | scip, |
SCIP_EVENTHDLR * | eventhdlr, | ||
SCIP_DECL_EVENTINIT((*eventinit)) | |||
) |
sets initialization callback of the event handler
scip | scip instance |
eventhdlr | event handler |
Definition at line 8671 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPeventhdlrSetInit(), and TRUE.
Referenced by includeEventHdlrSync(), SCIPincludeEventHdlrBestsol(), SCIPincludeEventHdlrBoundwriting(), SCIPincludeEventHdlrGlobalbnd(), SCIPincludeEventHdlrLPsol(), SCIPincludeEventHdlrSofttimelimit(), SCIPincludeEventHdlrSolvingphase(), and SCIPincludeSepaIntobj().
SCIP_RETCODE SCIPsetEventhdlrExit | ( | SCIP * | scip, |
SCIP_EVENTHDLR * | eventhdlr, | ||
SCIP_DECL_EVENTEXIT((*eventexit)) | |||
) |
sets deinitialization callback of the event handler
scip | scip instance |
eventhdlr | event handler |
Definition at line 8685 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPeventhdlrSetExit(), and TRUE.
Referenced by includeEventHdlrSync(), SCIPincludeEventHdlrBestsol(), SCIPincludeEventHdlrBoundwriting(), SCIPincludeEventHdlrGlobalbnd(), SCIPincludeEventHdlrLPsol(), SCIPincludeEventHdlrSofttimelimit(), SCIPincludeEventHdlrSolvingphase(), and SCIPincludeSepaIntobj().
SCIP_RETCODE SCIPsetEventhdlrInitsol | ( | SCIP * | scip, |
SCIP_EVENTHDLR * | eventhdlr, | ||
SCIP_DECL_EVENTINITSOL((*eventinitsol)) | |||
) |
sets solving process initialization callback of the event handler
scip | scip instance |
eventhdlr | event handler |
Definition at line 8699 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPeventhdlrSetInitsol(), and TRUE.
Referenced by SCIPincludeEventHdlrSolvingphase().
SCIP_RETCODE SCIPsetEventhdlrExitsol | ( | SCIP * | scip, |
SCIP_EVENTHDLR * | eventhdlr, | ||
SCIP_DECL_EVENTEXITSOL((*eventexitsol)) | |||
) |
sets solving process deinitialization callback of the event handler
scip | scip instance |
eventhdlr | event handler |
Definition at line 8713 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPeventhdlrSetExitsol(), and TRUE.
Referenced by SCIPincludeEventHdlrSolvingphase().
SCIP_RETCODE SCIPsetEventhdlrDelete | ( | SCIP * | scip, |
SCIP_EVENTHDLR * | eventhdlr, | ||
SCIP_DECL_EVENTDELETE((*eventdelete)) | |||
) |
sets callback of the event handler to free specific event data
scip | scip instance |
eventhdlr | event handler |
Definition at line 8727 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPeventhdlrSetDelete(), and TRUE.
SCIP_EVENTHDLR* SCIPfindEventhdlr | ( | SCIP * | scip, |
const char * | name | ||
) |
returns the event handler of the given name, or NULL if not existing
scip | SCIP data structure |
name | name of event handler |
Definition at line 8741 of file scip.c.
References SCIPsetFindEventhdlr(), and Scip::set.
Referenced by getNNodesBelowIncumbent(), getNRank1Nodes(), SCIP_DECL_CONSEXITSOL(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_PROBEXITSOL(), SCIP_DECL_PROBINITSOL(), SCIPapplyProximity(), SCIPcreateConcurrent(), SCIPfindObjEventhdlr(), SCIPincludeEventhdlr(), SCIPincludeEventhdlrBasic(), and SCIPprobdataCreate().
SCIP_EVENTHDLR** SCIPgetEventhdlrs | ( | SCIP * | scip | ) |
returns the array of currently available event handlers
scip | SCIP data structure |
Definition at line 8754 of file scip.c.
References SCIP_Set::eventhdlrs, and Scip::set.
int SCIPgetNEventhdlrs | ( | SCIP * | scip | ) |
returns the number of currently available event handlers
scip | SCIP data structure |
Definition at line 8765 of file scip.c.
References SCIP_Set::neventhdlrs, and Scip::set.