Detailed Description
event handler which manages the active master separator cuts
Definition in file event_mastersepacut.h.
Go to the source code of this file.
Functions | |
| GCG_EXPORT SCIP_RETCODE | GCGincludeEventHdlrSepaCuts (GCG *gcg) |
| SCIP_RETCODE | GCGeventmastersepacutRemoveNewInactiveMastersepacuts (GCG *gcg, SCIP_EVENTHDLR *eventhdlr, int startidx) |
| SCIP_RETCODE | GCGeventmastersepacutShrinkActiveMastersepacuts (GCG *gcg, SCIP_EVENTHDLR *eventhdlr, int newnrows) |
| SCIP_RETCODE | GCGeventmastersepacutAddActiveMastersepacut (GCG *gcg, SCIP_EVENTHDLR *eventhdlr, GCG_EXTENDEDMASTERCONSDATA *mastersepacut) |
| int | GCGeventmastersepacutGetNActiveMastersepacuts (GCG *gcg, SCIP_EVENTHDLR *eventhdlr) |
| GCG_EXTENDEDMASTERCONSDATA ** | GCGeventmastersepacutGetActiveMastersepacuts (GCG *gcg, SCIP_EVENTHDLR *eventhdlr) |
Function Documentation
◆ GCGincludeEventHdlrSepaCuts()
| GCG_EXPORT SCIP_RETCODE GCGincludeEventHdlrSepaCuts | ( | GCG * | gcg | ) |
creates event handler for managing the additional data of the mastercuts generated by master separators
- Parameters
-
gcg GCG data structure
Definition at line 464 of file event_mastersepacut.c.
References EVENTHDLR_DESC, EVENTHDLR_NAME, SCIP_EventhdlrData::gcg, GCGgetMasterprob(), NULL, SCIP_EventhdlrData::rowxgeneratedmap, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemory, SCIPblkmem(), SCIPdebugMessage, SCIPhashmapCreate(), SCIPincludeEventhdlrBasic(), SCIPsetEventhdlrExit(), SCIPsetEventhdlrExitsol(), SCIPsetEventhdlrFree(), SCIPsetEventhdlrInit(), and STARTMAXCUTS.
Referenced by GCGincludeMasterPlugins().
◆ GCGeventmastersepacutRemoveNewInactiveMastersepacuts()
| SCIP_RETCODE GCGeventmastersepacutRemoveNewInactiveMastersepacuts | ( | GCG * | gcg, |
| SCIP_EVENTHDLR * | eventhdlr, | ||
| int | startidx | ||
| ) |
removes the mastersepacuts which were applied at current node, but have already been removed from the LP
- Parameters
-
gcg GCG data structure eventhdlr mastersepacut event handler startidx indicate the first new mastersepacut
Definition at line 568 of file event_mastersepacut.c.
References SCIP_EventhdlrData::activecuts, GCGextendedmasterconsGetRow(), GCGreleaseMastersepacut(), SCIP_EventhdlrData::nactivecuts, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPeventhdlrGetData(), SCIProwGetName(), and SCIProwIsInLP().
Referenced by GCGremoveNewInactiveMastersepacuts().
◆ GCGeventmastersepacutShrinkActiveMastersepacuts()
| SCIP_RETCODE GCGeventmastersepacutShrinkActiveMastersepacuts | ( | GCG * | gcg, |
| SCIP_EVENTHDLR * | eventhdlr, | ||
| int | newnrows | ||
| ) |
removes all mastersepacuts after given index from active cuts
- Parameters
-
gcg GCG data structure eventhdlr mastersepacuts event handler newnrows index to which active cuts should be shrunk to
Definition at line 625 of file event_mastersepacut.c.
References SCIP_EventhdlrData::activecuts, SCIP_Tree::correctlpdepth, GCGextendedmasterconsGetRow(), GCGgetMasterprob(), GCGreleaseMastersepacut(), SCIP_EventhdlrData::globalcutsreinserted, SCIP_EventhdlrData::nactivecuts, NULL, reinsertGlobalMastersepacut(), SCIP_CALL, SCIP_OKAY, SCIP_STAGE_EXITSOLVE, SCIPeventhdlrGetData(), SCIPgetStage(), SCIProwGetAge(), SCIProwIsLocal(), Scip::tree, and TRUE.
Referenced by GCGshrinkActiveMastersepacuts().
◆ GCGeventmastersepacutAddActiveMastersepacut()
| SCIP_RETCODE GCGeventmastersepacutAddActiveMastersepacut | ( | GCG * | gcg, |
| SCIP_EVENTHDLR * | eventhdlr, | ||
| GCG_EXTENDEDMASTERCONSDATA * | mastersepacut | ||
| ) |
adds a mastercut generated by a master separator to active cuts
- Parameters
-
gcg GCG data structure eventhdlr mastersepacut event handler mastersepacut mastersepacut
Definition at line 755 of file event_mastersepacut.c.
References addToActiveMastersepacuts(), NULL, SCIP_OKAY, and SCIPeventhdlrGetData().
Referenced by GCGaddActiveMastersepacut().
◆ GCGeventmastersepacutGetNActiveMastersepacuts()
| int GCGeventmastersepacutGetNActiveMastersepacuts | ( | GCG * | gcg, |
| SCIP_EVENTHDLR * | eventhdlr | ||
| ) |
return number of active master separator cuts
- Parameters
-
gcg GCG data structure eventhdlr masterepacut event handler
Definition at line 725 of file event_mastersepacut.c.
References SCIP_EventhdlrData::nactivecuts, NULL, and SCIPeventhdlrGetData().
Referenced by GCGgetNActiveMastersepacuts().
◆ GCGeventmastersepacutGetActiveMastersepacuts()
| GCG_EXTENDEDMASTERCONSDATA ** GCGeventmastersepacutGetActiveMastersepacuts | ( | GCG * | gcg, |
| SCIP_EVENTHDLR * | eventhdlr | ||
| ) |
returns active master separator cuts
- Parameters
-
gcg GCG data structure eventhdlr mastersepacut event handler
Definition at line 696 of file event_mastersepacut.c.
References SCIP_EventhdlrData::activecuts, NULL, and SCIPeventhdlrGetData().
Referenced by GCGgetActiveMastersepacuts().