functions for event handlers
| const char * SCIPeventhdlrGetName | ( | SCIP_EVENTHDLR * | eventhdlr | ) |
gets name of event handler
| eventhdlr | event handler |
Definition at line 396 of file event.c.
References assert(), SCIP_Eventhdlr::name, and NULL.
Referenced by SCIP_DECL_EVENTCOPY(), SCIP_DECL_EVENTCOPY(), SCIP_DECL_EVENTCOPY(), SCIP_DECL_EVENTCOPY(), SCIP_DECL_EVENTDELETE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_EVENTINITSOL(), SCIPactivateShadowTree(), SCIPeventGlobalbndClearBoundChanges(), SCIPeventGlobalbndDisableBoundStorage(), SCIPeventGlobalbndEnableBoundStorage(), SCIPeventGlobalbndGetBoundChanges(), SCIPeventhdlrCopyInclude(), and SCIPgetShadowTree().
| SCIP_EVENTHDLRDATA * SCIPeventhdlrGetData | ( | SCIP_EVENTHDLR * | eventhdlr | ) |
gets user data of event handler
| eventhdlr | event handler |
Definition at line 406 of file event.c.
References assert(), SCIP_Eventhdlr::eventhdlrdata, and NULL.
Referenced by exitEventhandler(), exitsolEventhandler(), freeEventhandler(), getNNodesBelowIncumbent(), getNRank1Nodes(), initsolEventhandler(), SCIP_DECL_DISPOUTPUT(), SCIP_DECL_EVENTCOPY(), SCIP_DECL_EVENTDELETE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXIT(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINIT(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_HEURFREE(), SCIP_DECL_TABLEOUTPUT(), SCIPactivateShadowTree(), SCIPbendersComputeSubproblemLowerbound(), SCIPbendersSolveSubproblemCIP(), SCIPeventGlobalbndClearBoundChanges(), SCIPeventGlobalbndDisableBoundStorage(), SCIPeventGlobalbndEnableBoundStorage(), SCIPeventGlobalbndGetBoundChanges(), SCIPfindObjEventhdlr(), SCIPgetObjEventhdlr(), SCIPgetShadowTree(), SCIPgetShadowTreeEventHandlerExecutionTime(), SCIPgetTreesizeEstimation(), and updateEventhdlrUpperbound().
| 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 416 of file event.c.
References assert(), SCIP_Eventhdlr::eventhdlrdata, and NULL.
Referenced by freeEventhandler(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), SCIP_DECL_EVENTFREE(), and SCIP_DECL_EVENTFREE().
| SCIP_Bool SCIPeventhdlrIsInitialized | ( | SCIP_EVENTHDLR * | eventhdlr | ) |
| 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 526 of file event.c.
References assert(), NULL, SCIP_Real, 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 538 of file event.c.
References assert(), SCIP_Eventhdlr::eventtime, NULL, SCIP_Real, 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
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 66 of file scip_event.c.
References FALSE, NULL, SCIP_CALL, SCIP_DECL_EVENTCOPY, SCIP_DECL_EVENTDELETE, SCIP_DECL_EVENTEXEC, SCIP_DECL_EVENTEXIT, SCIP_DECL_EVENTFREE, SCIP_DECL_EVENTINIT, SCIP_INVALIDDATA, SCIP_OKAY, SCIPcheckStage, SCIPerrorMessage, SCIPeventhdlrCreate(), SCIPfindEventhdlr(), SCIPsetIncludeEventhdlr(), and TRUE.
Referenced by SCIPcreateEventHdlrBestsol(), and 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()
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 111 of file scip_event.c.
References FALSE, NULL, SCIP_CALL, SCIP_DECL_EVENTEXEC, SCIP_INVALIDDATA, SCIP_OKAY, SCIPcheckStage, SCIPerrorMessage, SCIPeventhdlrCreate(), SCIPfindEventhdlr(), SCIPsetIncludeEventhdlr(), and TRUE.
Referenced by createSubproblems(), executeLNSHeuristic(), includeEventHdlrDispsol(), includeEventHdlrSync(), initialiseLPSubproblem(), SCIP_DECL_HEUREXEC(), SCIP_DECL_HEUREXEC(), SCIPapplyProximity(), SCIPbendersActivate(), SCIPcreateProbColoring(), SCIPincludeBranchruleDistribution(), SCIPincludeConshdlrAnd(), SCIPincludeConshdlrBounddisjunction(), SCIPincludeConshdlrCardinality(), SCIPincludeConshdlrCumulative(), SCIPincludeConshdlrExactLinear(), SCIPincludeConshdlrIndicator(), SCIPincludeConshdlrKnapsack(), SCIPincludeConshdlrLinear(), SCIPincludeConshdlrLinking(), SCIPincludeConshdlrLogicor(), SCIPincludeConshdlrNonlinear(), SCIPincludeConshdlrOptcumulative(), SCIPincludeConshdlrOr(), SCIPincludeConshdlrRpa(), SCIPincludeConshdlrSetppc(), SCIPincludeConshdlrSOS1(), SCIPincludeConshdlrSOS2(), SCIPincludeConshdlrVarbound(), SCIPincludeConshdlrXor(), SCIPincludeEventHdlrBestsol(), SCIPincludeEventHdlrBoundwriting(), SCIPincludeEventHdlrEstim(), SCIPincludeEventHdlrGlobalbnd(), SCIPincludeEventHdlrLPsol(), SCIPincludeEventHdlrNewsol(), SCIPincludeEventHdlrShadowTree(), SCIPincludeEventHdlrSofttimelimit(), SCIPincludeEventHdlrSolvingphase(), SCIPincludeHeurDistributiondiving(), SCIPincludeHeurNlpdiving(), SCIPincludeHeurShiftandpropagate(), SCIPincludeHeurSubNlp(), SCIPincludeOrbitalReduction(), SCIPincludeOrbitopalReduction(), SCIPincludePropGenvbounds(), SCIPincludePropPseudoobj(), SCIPincludePropVbounds(), SCIPincludeSepaIntobj(), SCIPprobdataCreate(), setupAndSolve(), setupAndSolve(), setupAndSolveSubscip(), setupAndSolveSubscipCrossover(), setupAndSolveSubscipLocalbranching(), setupAndSolveSubscipTrustregion(), solveSubscipLpface(), wrapperDins(), and wrapperRins().
| SCIP_RETCODE SCIPsetEventhdlrCopy | ( | SCIP * | scip, |
| SCIP_EVENTHDLR * | eventhdlr ) |
sets copy callback of the event handler
| scip | scip instance |
| eventhdlr | event handler copy callback of the event handler |
Definition at line 143 of file scip_event.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_DECL_EVENTCOPY, SCIP_OKAY, SCIPcheckStage, SCIPeventhdlrSetCopy(), and TRUE.
Referenced by SCIPincludeEventHdlrBestsol(), SCIPincludeEventHdlrBoundwriting(), SCIPincludeEventHdlrEstim(), SCIPincludeEventHdlrNewsol(), SCIPincludeEventHdlrSofttimelimit(), and SCIPincludeEventHdlrSolvingphase().
| SCIP_RETCODE SCIPsetEventhdlrFree | ( | SCIP * | scip, |
| SCIP_EVENTHDLR * | eventhdlr ) |
sets deinitialization callback of the event handler
| scip | scip instance |
| eventhdlr | event handler deinitialization callback of the event handler |
Definition at line 157 of file scip_event.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_DECL_EVENTFREE, SCIP_OKAY, SCIPcheckStage, SCIPeventhdlrSetFree(), and TRUE.
Referenced by createSubproblems(), includeEventHdlrSync(), initialiseLPSubproblem(), SCIPincludeBranchruleDistribution(), SCIPincludeEventHdlrBoundwriting(), SCIPincludeEventHdlrEstim(), SCIPincludeEventHdlrGlobalbnd(), SCIPincludeEventHdlrShadowTree(), SCIPincludeEventHdlrSofttimelimit(), SCIPincludeEventHdlrSolvingphase(), and SCIPincludeHeurDistributiondiving().
| SCIP_RETCODE SCIPsetEventhdlrInit | ( | SCIP * | scip, |
| SCIP_EVENTHDLR * | eventhdlr ) |
sets initialization callback of the event handler
| scip | scip instance |
| eventhdlr | event handler initialize event handler |
Definition at line 171 of file scip_event.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_DECL_EVENTINIT, SCIP_OKAY, SCIPcheckStage, SCIPeventhdlrSetInit(), and TRUE.
Referenced by includeEventHdlrDispsol(), includeEventHdlrSync(), SCIPincludeEventHdlrBestsol(), SCIPincludeEventHdlrBoundwriting(), SCIPincludeEventHdlrEstim(), SCIPincludeEventHdlrGlobalbnd(), SCIPincludeEventHdlrLPsol(), SCIPincludeEventHdlrNewsol(), SCIPincludeEventHdlrSofttimelimit(), SCIPincludeEventHdlrSolvingphase(), and SCIPincludeSepaIntobj().
| SCIP_RETCODE SCIPsetEventhdlrExit | ( | SCIP * | scip, |
| SCIP_EVENTHDLR * | eventhdlr ) |
sets deinitialization callback of the event handler
| scip | scip instance |
| eventhdlr | event handler deinitialize event handler |
Definition at line 185 of file scip_event.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_DECL_EVENTEXIT, SCIP_OKAY, SCIPcheckStage, SCIPeventhdlrSetExit(), and TRUE.
Referenced by createSubproblems(), includeEventHdlrDispsol(), includeEventHdlrSync(), initialiseLPSubproblem(), SCIPincludeEventHdlrBestsol(), SCIPincludeEventHdlrBoundwriting(), SCIPincludeEventHdlrEstim(), SCIPincludeEventHdlrGlobalbnd(), SCIPincludeEventHdlrLPsol(), SCIPincludeEventHdlrNewsol(), SCIPincludeEventHdlrSofttimelimit(), SCIPincludeEventHdlrSolvingphase(), and SCIPincludeSepaIntobj().
| SCIP_RETCODE SCIPsetEventhdlrInitsol | ( | SCIP * | scip, |
| SCIP_EVENTHDLR * | eventhdlr ) |
sets solving process initialization callback of the event handler
| scip | scip instance |
| eventhdlr | event handler solving process initialization callback of event handler |
Definition at line 199 of file scip_event.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPeventhdlrSetInitsol(), and TRUE.
Referenced by createSubproblems(), initialiseLPSubproblem(), SCIPbendersActivate(), SCIPincludeEventHdlrEstim(), SCIPincludeEventHdlrShadowTree(), and SCIPincludeEventHdlrSolvingphase().
| SCIP_RETCODE SCIPsetEventhdlrExitsol | ( | SCIP * | scip, |
| SCIP_EVENTHDLR * | eventhdlr ) |
sets solving process deinitialization callback of the event handler
| scip | scip instance |
| eventhdlr | event handler solving process deinitialization callback of event handler |
Definition at line 213 of file scip_event.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPeventhdlrSetExitsol(), and TRUE.
Referenced by createSubproblems(), initialiseLPSubproblem(), SCIPincludeEventHdlrEstim(), SCIPincludeEventHdlrShadowTree(), and SCIPincludeEventHdlrSolvingphase().
| SCIP_RETCODE SCIPsetEventhdlrDelete | ( | SCIP * | scip, |
| SCIP_EVENTHDLR * | eventhdlr ) |
sets callback of the event handler to free specific event data
| scip | scip instance |
| eventhdlr | event handler free specific event data |
Definition at line 227 of file scip_event.c.
References assert(), FALSE, NULL, SCIP_CALL, SCIP_DECL_EVENTDELETE, SCIP_OKAY, SCIPcheckStage, SCIPeventhdlrSetDelete(), and TRUE.
| SCIP_EVENTHDLR * SCIPfindEventhdlr | ( | SCIP * | scip, |
| const char * | name ) |
returns the event handler of the given name, or NULL if not existing
Definition at line 241 of file scip_event.c.
References assert(), NULL, and SCIPsetFindEventhdlr().
Referenced by COLORprobAddVarForStableSet(), getNNodesBelowIncumbent(), getNRank1Nodes(), SCIP_DECL_CONSEXITSOL(), SCIP_DECL_CONSINITLP(), SCIP_DECL_DISPOUTPUT(), SCIP_DECL_PROBEXITSOL(), SCIP_DECL_PROBINITSOL(), SCIP_DECL_TABLEOUTPUT(), SCIPapplyProximity(), SCIPbendersComputeSubproblemLowerbound(), SCIPbendersSolveSubproblemCIP(), SCIPcreateConcurrent(), SCIPfindObjEventhdlr(), SCIPgetTreesizeEstimation(), SCIPincludeEventhdlr(), SCIPincludeEventhdlrBasic(), SCIPincludeOrbitopalReduction(), SCIPprobdataCreate(), and updateEventhdlrUpperbound().
| SCIP_EVENTHDLR ** SCIPgetEventhdlrs | ( | SCIP * | scip | ) |