Detailed Description
constraint handler for storing the branching decisions at each node of the tree
Definition in file cons_masterbranch.c.
#include <assert.h>#include <string.h>#include "gcg/gcg.h"#include "gcg/branch_generic.h"#include "gcg/cons_masterbranch.h"#include "gcg/cons_origbranch.h"#include "gcg/relax_gcg.h"#include "gcg/pricer_gcg.h"#include "gcg/pub_colpool.h"#include "gcg/gcgvarhistory.h"#include "gcg/event_mastersepacut.h"#include "gcg/mastersepacut.h"Go to the source code of this file.
Data Structures | |
| struct | SCIP_ConsData |
| struct | SCIP_ConshdlrData |
| struct | SCIP_EventhdlrData |
Macros | |
| #define | CONSHDLR_NAME "masterbranch" |
| #define | CONSHDLR_DESC "store branching decision at nodes of the tree constraint handler" |
| #define | CONSHDLR_ENFOPRIORITY 0 |
| #define | CONSHDLR_CHECKPRIORITY 2000000 |
| #define | CONSHDLR_PROPFREQ 1 |
| #define | CONSHDLR_EAGERFREQ 100 |
| #define | CONSHDLR_DELAYPROP FALSE |
| #define | CONSHDLR_NEEDSCONS TRUE |
| #define | CONSHDLR_PROPTIMING SCIP_PROPTIMING_ALWAYS |
| #define | EVENTHDLR_NAME "origvarbound" |
| #define | EVENTHDLR_DESC "event handler for bound changes on original variables" |
Macro Definition Documentation
◆ CONSHDLR_NAME
| #define CONSHDLR_NAME "masterbranch" |
Definition at line 58 of file cons_masterbranch.c.
◆ CONSHDLR_DESC
| #define CONSHDLR_DESC "store branching decision at nodes of the tree constraint handler" |
Definition at line 59 of file cons_masterbranch.c.
◆ CONSHDLR_ENFOPRIORITY
| #define CONSHDLR_ENFOPRIORITY 0 |
priority of the constraint handler for constraint enforcing
Definition at line 60 of file cons_masterbranch.c.
◆ CONSHDLR_CHECKPRIORITY
| #define CONSHDLR_CHECKPRIORITY 2000000 |
priority of the constraint handler for checking feasibility
Definition at line 61 of file cons_masterbranch.c.
◆ CONSHDLR_PROPFREQ
| #define CONSHDLR_PROPFREQ 1 |
frequency for propagating domains; zero means only preprocessing propagation
Definition at line 62 of file cons_masterbranch.c.
◆ CONSHDLR_EAGERFREQ
| #define CONSHDLR_EAGERFREQ 100 |
frequency for using all instead of only the useful constraints in separation, propagation and enforcement, -1 for no eager evaluations, 0 for first only
Definition at line 64 of file cons_masterbranch.c.
◆ CONSHDLR_DELAYPROP
| #define CONSHDLR_DELAYPROP FALSE |
should propagation method be delayed, if other propagators found reductions?
Definition at line 65 of file cons_masterbranch.c.
◆ CONSHDLR_NEEDSCONS
| #define CONSHDLR_NEEDSCONS TRUE |
should the constraint handler be skipped, if no constraints are available?
Definition at line 66 of file cons_masterbranch.c.
◆ CONSHDLR_PROPTIMING
| #define CONSHDLR_PROPTIMING SCIP_PROPTIMING_ALWAYS |
Definition at line 67 of file cons_masterbranch.c.
◆ EVENTHDLR_NAME
| #define EVENTHDLR_NAME "origvarbound" |
Definition at line 69 of file cons_masterbranch.c.
◆ EVENTHDLR_DESC
| #define EVENTHDLR_DESC "event handler for bound changes on original variables" |
Definition at line 70 of file cons_masterbranch.c.
Function Documentation
◆ addMissedVariables()
|
static |
< updates a master separator cut with all the variables it 'missed' while being inactive
- Parameters
-
gcg SCIP data structure mastersepacut master separator cut
Definition at line 173 of file cons_masterbranch.c.
References GCGextendedmasterconsGetMastersepacut(), GCGextendedmasterconsGetRow(), GCGgetMasterprob(), GCGmastersepacutGetExtendedmasterconsCoeff(), GCGmastersepacutGetVarHistory(), GCGmasterVarGetNOrigvars(), GCGmasterVarGetOrigvals(), GCGmasterVarGetOrigvars(), GCGoriginalVarGetPricingVar(), GCGvarGetBlock(), GCGvarhistoryGetVar(), GCGvarhistoryHasNext(), GCGvarhistoryNext(), GCGvarIsMaster(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaddVarToRow(), SCIPallocBufferArray, SCIPdebugMessage, SCIPfreeBufferArrayNull, SCIPisZero(), SCIPvarGetName(), and SCIPvarIsDeleted().
Referenced by addStoredCutsToActiveCuts().
◆ removeStoredCutsFromActiveCuts()
|
static |
remove the mastersepacuts generated and applied at this node from activecuts
- Parameters
-
gcg GCG data structure consdata data of current constraint conshdlrdata masterbranch constraint handler data
Definition at line 253 of file cons_masterbranch.c.
References SCIP_ConsData::firstnewcut, GCGshrinkActiveMastersepacuts(), NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by SCIP_DECL_CONSDEACTIVE().
◆ addStoredCutsToActiveCuts()
|
static |
add the mastersepacuts generated and applied at this node to active cuts
- Parameters
-
gcg GCG data structure consdata consdata of current constraint conshdlrdata constraint handler data
Definition at line 269 of file cons_masterbranch.c.
References SCIP_ConsData::addedcuts, SCIP_ConsData::addedcutsinit, addMissedVariables(), SCIP_ConsData::firstnewcut, GCGaddActiveMastersepacut(), GCGextendedmasterconsGetRow(), GCGgetNActiveMastersepacuts(), SCIP_ConsData::naddedcuts, SCIP_ConsData::node, SCIP_ConsData::nodestoredcuts, NULL, SCIP_CALL, SCIP_NODETYPE_FORK, SCIP_NODETYPE_PSEUDOFORK, SCIP_NODETYPE_SUBROOT, SCIP_OKAY, SCIPdebugMessage, SCIPnodeGetNumber(), SCIPnodeGetType(), and SCIProwGetName().
Referenced by SCIP_DECL_CONSACTIVE().
◆ initializeAddedCuts()
|
static |
stores the mastersepacuts generated and applied at this node to the branchdata
- Parameters
-
gcg GCG data structure consdata constraint data of current constraint conshdlrdata constraint handler data
Definition at line 321 of file cons_masterbranch.c.
References SCIP_ConsData::addedcuts, SCIP_ConsData::addedcutsinit, FALSE, SCIP_ConsData::firstnewcut, GCGcaptureMastersepacut(), GCGgetActiveMastersepacuts(), GCGgetMasterprob(), GCGgetNActiveMastersepacuts(), GCGremoveNewInactiveMastersepacuts(), SCIP_ConsData::naddedcuts, SCIP_ConsData::node, SCIP_ConsData::nodestoredcuts, NULL, SCIP_CALL, SCIP_NODETYPE_FORK, SCIP_NODETYPE_PSEUDOFORK, SCIP_NODETYPE_SUBROOT, SCIP_OKAY, SCIPdebugMessage, SCIPduplicateBlockMemoryArray, SCIPnodeGetNumber(), SCIPnodeGetType(), and TRUE.
Referenced by initializeConsdata(), and SCIP_DECL_CONSDEACTIVE().
◆ initializeConsdata()
|
static |
initialize the consdata data structure
- Parameters
-
gcg GCG data structure cons constraint for which the consdata is created
Definition at line 385 of file cons_masterbranch.c.
References SCIP_ConsData::addedcutsinit, SCIP_ConsData::childconss, CONSHDLR_NAME, SCIP_ConsData::firstnewcut, GCGconsOrigbranchGetActiveCons(), GCGconsOrigbranchGetNChildconss(), GCGconsOrigbranchGetNode(), GCGconsOrigbranchGetParentcons(), GCGconsOrigbranchSetMastercons(), GCGgetMasterprob(), GCGgetNActiveMastersepacuts(), GCGisMaster(), initializeAddedCuts(), SCIP_ConsData::localbndtypes, SCIP_ConsData::localbndvars, SCIP_ConsData::localnewbnds, SCIP_ConsData::localoldbnds, SCIP_ConsData::maxlocalbndchgs, SCIP_ConsData::maxlocalbndchgstreated, SCIP_ConsData::nbranchingchgs, SCIP_ConsData::nchildconss, SCIP_ConsData::needprop, SCIP_ConsData::nlocalbndchgs, SCIP_ConsData::nlocalbndchgstreated, SCIP_ConsData::node, SCIP_ConshdlrData::nstack, NULL, SCIP_ConsData::origcons, SCIP_ConsData::parentcons, SCIP_BOUNDCHGTYPE_BRANCHING, SCIP_CALL, SCIP_NODETYPE_FOCUSNODE, SCIP_OKAY, SCIP_Real, SCIPallocBlockMemoryArray, SCIPboundchgGetBoundchgtype(), SCIPboundchgGetBoundtype(), SCIPboundchgGetNewbound(), SCIPboundchgGetVar(), SCIPcalcMemGrowSize(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetData(), SCIPdebugMessage, SCIPdomchgGetBoundchg(), SCIPdomchgGetNBoundchgs(), SCIPfindConshdlr(), SCIPgetCurrentNode(), SCIPgetRootNode(), SCIPisEQ(), SCIPnodeGetDepth(), SCIPnodeGetDomchg(), SCIPnodeGetNumber(), SCIPnodeGetType(), SCIPreallocBlockMemoryArray, SCIP_ConshdlrData::stack, and TRUE.
Referenced by SCIP_DECL_CONSACTIVE().
◆ addPendingBndChg()
|
static |
add a global bound change on the original problem to the pending bound changes array
- Parameters
-
scip SCIP data structure var variable on which the bound change is applied (corresponding master variable copy or pricing variable) boundtype type of the bound (lower or upper) oldbound previous bound value newbound new bound value
Definition at line 608 of file cons_masterbranch.c.
References CONSHDLR_NAME, FALSE, SCIP_ConshdlrData::maxpendingbnds, SCIP_ConshdlrData::npendingbnds, NULL, SCIP_ConshdlrData::pendingbndsactivated, SCIP_ConshdlrData::pendingbndtypes, SCIP_ConshdlrData::pendingnewbnds, SCIP_ConshdlrData::pendingvarmaplb, SCIP_ConshdlrData::pendingvarmapub, SCIP_ConshdlrData::pendingvars, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPcalcMemGrowSize(), SCIPconshdlrGetData(), SCIPerrorMessage, SCIPfindConshdlr(), SCIPhashmapGetImageInt(), SCIPhashmapInsertInt(), and SCIPreallocBlockMemoryArray.
Referenced by SCIP_DECL_EVENTEXEC().
◆ checkAggregatedGlobalBounds()
|
static |
For a given global bound change on a pricing variable, check if the global bounds on all corresponding original variables are still the same
- Returns
- TRUE if the variable is in a relevant block AND all variables identical to it have the same bounds
- Parameters
-
scip SCIP data structure bndvar pricing variable whose new global bound is to be checked bndtype type of the new global bound bound new global bound
Definition at line 673 of file cons_masterbranch.c.
References FALSE, GCGpricingVarGetNOrigvars(), GCGpricingVarGetOrigvars(), GCGvarIsPricing(), SCIP_Bool, SCIP_BOUNDTYPE_UPPER, SCIP_Real, SCIPisEQ(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetUbGlobal(), SCIPwarningMessage(), and TRUE.
Referenced by applyGlobalBndchgsToPricingprobs().
◆ applyGlobalBndchgsToPricingprobs()
|
static |
apply global bound changes on original problem variables either to their copies in the master problem and/or to the corresponding pricing problem variables
Definition at line 718 of file cons_masterbranch.c.
References checkAggregatedGlobalBounds(), GCGgetMasterprob(), GCGgetOrigprob(), GCGgetPricingprob(), GCGisMaster(), GCGvarGetBlock(), GCGvarIsMaster(), GCGvarIsPricing(), SCIP_ConshdlrData::npendingbnds, NULL, SCIP_ConshdlrData::pendingbndsactivated, SCIP_ConshdlrData::pendingbndtypes, SCIP_ConshdlrData::pendingnewbnds, SCIP_ConshdlrData::pendingvars, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_OKAY, SCIPchgVarLbGlobal(), SCIPchgVarUbGlobal(), SCIPdebugMessage, SCIPisGT(), SCIPisLT(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetUbGlobal(), and TRUE.
Referenced by SCIP_DECL_CONSACTIVE(), and SCIP_DECL_CONSPROP().
◆ applyGlobalBndchgsToPricedMastervars()
|
static |
apply global bound changes on original problem variables to the master problem
- Parameters
-
gcg GCG data structure conshdlrdata constraint handler data propcount number of applied bound changes
Definition at line 796 of file cons_masterbranch.c.
References SCIP_ConshdlrData::gcg, GCGgetMasterprob(), GCGgetNPricingprobs(), GCGisLinkingVarInBlock(), GCGisMaster(), GCGmasterGetNPricedvars(), GCGmasterGetPricedvars(), GCGmasterVarGetNOrigvars(), GCGmasterVarGetOrigvalmap(), GCGmasterVarGetOrigvars(), GCGmasterVarIsLinking(), GCGpricingVarGetOrigvars(), GCGvarGetBlock(), GCGvarIsMaster(), GCGvarIsOriginal(), GCGvarIsPricing(), SCIP_ConshdlrData::npendingbnds, NULL, SCIP_ConshdlrData::pendingbndsactivated, SCIP_ConshdlrData::pendingbndtypes, SCIP_ConshdlrData::pendingnewbnds, SCIP_ConshdlrData::pendingvarmaplb, SCIP_ConshdlrData::pendingvarmapub, SCIP_ConshdlrData::pendingvars, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALID, SCIP_OKAY, SCIP_Real, SCIPchgVarUbGlobal(), SCIPdebugMessage, SCIPerrorMessage, SCIPhashmapGetImageReal(), SCIPhashmapRemoveAll(), SCIPisFeasGT(), SCIPisFeasLT(), SCIPisFeasZero(), SCIPvarGetName(), SCIPvarGetUbGlobal(), and TRUE.
Referenced by SCIP_DECL_CONSPROP().
◆ resetPricingVarBound()
|
static |
reset bound changes on pricing variables (called when a node is deactivated)
- Parameters
-
gcg GCG data structure pricingvar variable on which the bound change should be performed consdata constraint data structure i index of the information in the constraint data structure blocknr number of the pricing problem
Definition at line 932 of file cons_masterbranch.c.
References GCGgetMasterprob(), GCGgetNIdenticalBlocks(), GCGgetNPricingprobs(), GCGgetPricingprob(), SCIP_ConsData::localbndtypes, SCIP_ConsData::localbndvars, SCIP_ConsData::localnewbnds, SCIP_ConsData::localoldbnds, SCIP_ConsData::nactivated, SCIP_ConsData::name, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_OKAY, SCIPchgVarLb(), SCIPchgVarUb(), SCIPdebugMessage, SCIPisEQ(), SCIPisGE(), SCIPisGT(), SCIPisLE(), SCIPisLT(), SCIPvarGetLbGlobal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbGlobal(), and SCIPvarGetUbLocal().
Referenced by undoLocalBndchgsToPricingprobs().
◆ tightenPricingVarBound()
|
static |
perform bound changes on pricing variables (called when a node is activated)
- Parameters
-
gcg GCG data structure pricingvar variable on which the bound change should be performed consdata constraint data structure i index of the information in the constraint data structure blocknr number of the pricing problem
Definition at line 1015 of file cons_masterbranch.c.
References GCGgetMasterprob(), GCGgetNPricingprobs(), GCGgetPricingprob(), SCIP_ConsData::localbndtypes, SCIP_ConsData::localbndvars, SCIP_ConsData::localnewbnds, SCIP_ConsData::localoldbnds, SCIP_ConsData::nactivated, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_OKAY, SCIPchgVarLb(), SCIPchgVarUb(), SCIPdebugMessage, SCIPisGT(), SCIPisLT(), SCIPvarGetLbLocal(), SCIPvarGetName(), and SCIPvarGetUbLocal().
Referenced by applyLocalBndchgsToPricingprobs().
◆ checkAggregatedLocalBounds()
|
static |
For a given local bound change on an original variable, check if the bounds on the variables identical to it are the same
- Note
- If the variable is represented by another one, we check only the representative; otherwise, we check all variables identical to it
- Returns
- TRUE if the variable is in a relevant block AND all variables identical to it have the same bounds
- Parameters
-
scip SCIP data structure bndvars all variables whose local bounds were changed bounds corresponding new local bounds nbndvars number of all variables whose local bounds were changed bndvar original variable whose local bound was changed and which is to be checked bndtype type of the new local bound pricingvar pricing variable corresponding to the original variable
Definition at line 1076 of file cons_masterbranch.c.
References FALSE, GCGoriginalVarGetPricingVar(), GCGpricingVarGetNOrigvars(), GCGpricingVarGetOrigvars(), GCGvarGetBlock(), GCGvarIsOriginal(), GCGvarIsPricing(), SCIP_Bool, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALID, SCIP_Real, SCIPallocBufferArray, SCIPfreeBufferArray, SCIPisEQ(), SCIPvarGetName(), SCIPwarningMessage(), and TRUE.
Referenced by applyLocalBndchgsToPricingprobs().
◆ applyLocalBndchgsToPricingprobs()
|
static |
apply local bound changes in the original problem to the pricing problems
Definition at line 1181 of file cons_masterbranch.c.
References checkAggregatedLocalBounds(), FALSE, GCGgetMasterprob(), GCGgetNPricingprobs(), GCGisMaster(), GCGlinkingVarGetPricingVars(), GCGoriginalVarGetPricingVar(), GCGvarGetBlock(), GCGvarIsOriginal(), SCIP_ConsData::localbndtypes, SCIP_ConsData::localbndvars, SCIP_ConsData::localnewbnds, SCIP_ConsData::nlocalbndchgs, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPABORT, SCIPconsGetData(), SCIPdebugMessage, SCIPerrorMessage, SCIPvarGetName(), tightenPricingVarBound(), and TRUE.
Referenced by SCIP_DECL_CONSACTIVE().
◆ undoLocalBndchgsToPricingprobs()
|
static |
undo local bound changes in the original problem to the pricing problems
Definition at line 1268 of file cons_masterbranch.c.
References GCGgetNPricingprobs(), GCGgetPricingprob(), GCGlinkingVarGetPricingVars(), GCGoriginalVarGetPricingVar(), GCGoriginalVarIsLinking(), GCGvarGetBlock(), GCGvarIsOriginal(), SCIP_ConsData::localbndvars, SCIP_ConsData::nlocalbndchgs, NULL, resetPricingVarBound(), SCIP_CALL, SCIP_OKAY, SCIPABORT, SCIPconsGetData(), and SCIPerrorMessage.
Referenced by SCIP_DECL_CONSDEACTIVE().
◆ ensureCollectedBndvarsSize()
|
static |
Definition at line 1337 of file cons_masterbranch.c.
References SCIP_ConshdlrData::collectedbndvars, SCIP_ConshdlrData::collectedlbnds, SCIP_ConshdlrData::collectedubnds, SCIP_ConshdlrData::maxcollectedbndvars, SCIP_CALL, SCIP_OKAY, SCIPcalcMemGrowSize(), and SCIPreallocBlockMemoryArray.
Referenced by applyLocalBndchgsToPricedMastervars().
◆ ensureLinkingvarIndxsSize()
|
static |
Definition at line 1357 of file cons_masterbranch.c.
References BMSclearMemoryArray, SCIP_ConshdlrData::linkingvaridxs, SCIP_ConshdlrData::maxlinkingvaridxs, SCIP_CALL, SCIP_OKAY, SCIPcalcMemGrowSize(), and SCIPreallocBlockMemoryArray.
Referenced by applyLocalBndchgsToPricedMastervars().
◆ applyLocalBndchgsToPricedMastervars()
|
static |
apply local bound changes on the original variables on newly generated master variables
- Parameters
-
gcg GCG data structure conshdlrdata constraint handler data cons current masterbranch constraint propcount number of applied bound changes
Definition at line 1376 of file cons_masterbranch.c.
References BMSclearMemoryArray, SCIP_ConshdlrData::collectedbndvars, SCIP_ConshdlrData::collectedlbnds, SCIP_ConshdlrData::collectedubnds, SCIP_ConshdlrData::enforceproper, ensureCollectedBndvarsSize(), ensureLinkingvarIndxsSize(), GCGgetMasterprob(), GCGgetNPricingprobs(), GCGgetOrigprob(), GCGisLinkingVarInBlock(), GCGisMaster(), GCGmasterGetNPricedvars(), GCGmasterGetPricedvars(), GCGmasterVarGetOrigvalmap(), GCGoriginalVarIsLinking(), GCGvarGetBlock(), GCGvarIsMaster(), GCGvarIsOriginal(), SCIP_ConshdlrData::linkingvaridxs, SCIP_ConsData::localbndtypes, SCIP_ConsData::localbndvars, SCIP_ConsData::localnewbnds, SCIP_ConshdlrData::maxblocknum, SCIP_ConsData::nbranchingchgs, SCIP_ConshdlrData::ncollectedbndvars, SCIP_ConsData::nlocalbndchgs, SCIP_ConsData::npropvars, NULL, SCIP_ConsData::parentcons, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_INVALID, SCIP_OKAY, SCIP_Real, SCIPallocBlockMemoryArray, SCIPblkmem(), SCIPchgVarUb(), SCIPconsGetData(), SCIPdebugMessage, SCIPgetNVars(), SCIPhashmapCreate(), SCIPhashmapFree(), SCIPhashmapGetImageInt(), SCIPhashmapGetImageReal(), SCIPhashmapInsertInt(), SCIPisFeasGT(), SCIPisFeasLT(), SCIPisFeasZero(), SCIPvarGetName(), and SCIPvarGetUbLocal().
Referenced by SCIP_DECL_CONSPROP().
◆ applyLocalBndchgsToCopiedMastervars()
|
static |
apply local bound changes on original variables that have been directly copied to the master problem
- Parameters
-
gcg GCG data structure cons current masterbranch constraint propcount number of applied bound changes
Definition at line 1629 of file cons_masterbranch.c.
References GCGgetMasterprob(), GCGoriginalVarGetMastervars(), GCGoriginalVarGetNMastervars(), GCGvarGetBlock(), GCGvarIsOriginal(), SCIP_ConsData::localbndtypes, SCIP_ConsData::localbndvars, SCIP_ConsData::localnewbnds, SCIP_ConsData::nlocalbndchgs, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_OKAY, SCIPchgVarLb(), SCIPchgVarUb(), SCIPconsGetData(), SCIPdebugMessage, SCIPisGT(), SCIPisLT(), SCIPvarGetLbLocal(), SCIPvarGetName(), and SCIPvarGetUbLocal().
Referenced by SCIP_DECL_CONSPROP().
◆ forwardUpdateSeenHistory()
|
static |
forward the seen history
- Parameters
-
gcg GCG data structure consdata constraint data
Definition at line 1689 of file cons_masterbranch.c.
References SCIP_ConsData::branchdata, SCIP_ConsData::branchrule, GCGgetMasterprob(), GCGrelaxBranchNewCol(), GCGvarhistoryGetVar(), GCGvarhistoryHasNext(), GCGvarhistoryJumpToLatest(), GCGvarhistoryNext(), SCIP_ConsData::knownvarhistory, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPvarGetName(), and SCIPvarIsDeleted().
Referenced by SCIP_DECL_CONSACTIVE().
◆ SCIP_DECL_CONSFREE()
|
static |
destructor of constraint handler to free constraint handler data (called when SCIP is exiting)
Definition at line 1730 of file cons_masterbranch.c.
References CONSHDLR_NAME, NULL, SCIP_OKAY, SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPfreeMemory, and SCIP_ConshdlrData::stack.
◆ SCIP_DECL_CONSINIT()
|
static |
initialization method of constraint handler (called after problem was transformed)
Definition at line 1751 of file cons_masterbranch.c.
References BMSclearMemoryArray, SCIP_ConshdlrData::collectedbndvars, SCIP_ConshdlrData::collectedlbnds, SCIP_ConshdlrData::collectedubnds, CONSHDLR_NAME, SCIP_ConshdlrData::gcg, GCGgetNPricingprobs(), SCIP_ConshdlrData::linkingvaridxs, SCIP_ConshdlrData::maxblocknum, SCIP_ConshdlrData::maxcollectedbndvars, SCIP_ConshdlrData::maxlinkingvaridxs, SCIP_ConshdlrData::maxpendingbnds, SCIP_ConshdlrData::maxstacksize, SCIP_ConshdlrData::ncollectedbndvars, SCIP_ConshdlrData::npendingbnds, SCIP_ConshdlrData::nstack, NULL, SCIP_ConshdlrData::pendingbndsactivated, SCIP_ConshdlrData::pendingbndtypes, SCIP_ConshdlrData::pendingnewbnds, SCIP_ConshdlrData::pendingvarmaplb, SCIP_ConshdlrData::pendingvarmapub, SCIP_ConshdlrData::pendingvars, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemoryArray, SCIPblkmem(), SCIPcalcMemGrowSize(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPhashmapCreate(), SCIP_ConshdlrData::stack, and TRUE.
◆ SCIP_DECL_CONSINITSOL()
|
static |
solving process initialization method of constraint handler (called when branch and bound process is about to begin)
Definition at line 1797 of file cons_masterbranch.c.
References CONSHDLR_NAME, SCIP_ConshdlrData::gcg, GCGconsOrigbranchGetActiveCons(), GCGconsOrigbranchSetMastercons(), GCGcreateConsMasterbranch(), SCIP_ConshdlrData::nstack, NULL, SCIP_CALL, SCIP_OKAY, SCIPconshdlrGetData(), SCIPconshdlrGetName(), and SCIP_ConshdlrData::stack.
◆ SCIP_DECL_CONSEXITSOL()
|
static |
Definition at line 1820 of file cons_masterbranch.c.
References SCIP_ConsData::addedcuts, SCIP_ConsData::addedcutsinit, CONSHDLR_NAME, FALSE, SCIP_ConshdlrData::gcg, GCGreleaseMastersepacut(), SCIP_ConsData::naddedcuts, SCIP_ConsData::nodestoredcuts, NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPfreeBlockMemoryArray, and TRUE.
◆ SCIP_DECL_CONSEXIT()
|
static |
deinitialization method of constraint handler (called before transformed problem is freed)
Definition at line 1863 of file cons_masterbranch.c.
References SCIP_ConshdlrData::collectedbndvars, SCIP_ConshdlrData::collectedlbnds, SCIP_ConshdlrData::collectedubnds, CONSHDLR_NAME, SCIP_ConshdlrData::linkingvaridxs, SCIP_ConshdlrData::maxblocknum, SCIP_ConshdlrData::maxcollectedbndvars, SCIP_ConshdlrData::maxlinkingvaridxs, SCIP_ConshdlrData::maxpendingbnds, SCIP_ConshdlrData::maxstacksize, SCIP_ConshdlrData::ncollectedbndvars, SCIP_ConshdlrData::nstack, NULL, SCIP_ConshdlrData::pendingbndtypes, SCIP_ConshdlrData::pendingnewbnds, SCIP_ConshdlrData::pendingvarmaplb, SCIP_ConshdlrData::pendingvarmapub, SCIP_ConshdlrData::pendingvars, SCIP_OKAY, SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPfreeBlockMemoryArray, SCIPfreeBlockMemoryArrayNull, SCIPgetNNodes(), SCIPhashmapFree(), and SCIP_ConshdlrData::stack.
◆ SCIP_DECL_CONSACTIVE()
|
static |
constraint activation notification method of constraint handler
Definition at line 1914 of file cons_masterbranch.c.
References SCIP_ConsData::addedcutsinit, addStoredCutsToActiveCuts(), applyGlobalBndchgsToPricingprobs(), applyLocalBndchgsToPricingprobs(), SCIP_ConsData::branchdata, SCIP_ConsData::branchrule, CONSHDLR_NAME, forwardUpdateSeenHistory(), SCIP_ConshdlrData::gcg, GCGclearGeneratedMastersepacuts(), GCGmasterGetNPricedvars(), GCGrelaxBranchActiveMaster(), GCGvarhistoryJumpToLatest(), initializeConsdata(), SCIP_ConsData::knownvarhistory, SCIP_ConshdlrData::maxstacksize, SCIP_ConsData::nactivated, SCIP_ConsData::name, SCIP_ConsData::ncopiedvarbnds, SCIP_ConsData::needprop, SCIP_ConsData::nlocalbndchgs, SCIP_ConsData::nlocalbndchgstreated, SCIP_ConsData::node, SCIP_ConsData::npropvars, SCIP_ConshdlrData::nstack, NULL, SCIP_ConsData::parentcons, SCIP_CALL, SCIP_NODETYPE_FOCUSNODE, SCIP_OKAY, SCIPcalcMemGrowSize(), SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPdebugPrintf, SCIPgetRootNode(), SCIPnodeGetNumber(), SCIPnodeGetType(), SCIPreallocBlockMemoryArray, SCIPrepropagateNode(), SCIP_ConshdlrData::stack, and TRUE.
◆ SCIP_DECL_CONSDEACTIVE()
|
static |
constraint deactivation notification method of constraint handler
Definition at line 2028 of file cons_masterbranch.c.
References SCIP_ConsData::addedcutsinit, SCIP_ConsData::branchdata, SCIP_ConsData::branchrule, CONSHDLR_NAME, SCIP_ConshdlrData::gcg, GCGmasterGetNPricedvars(), GCGrelaxBranchDeactiveMaster(), GCGvarhistoryJumpToLatest(), initializeAddedCuts(), SCIP_ConsData::knownvarhistory, SCIP_ConsData::nactivated, SCIP_ConsData::name, SCIP_ConsData::needprop, SCIP_ConsData::node, SCIP_ConsData::npropvars, SCIP_ConshdlrData::nstack, NULL, SCIP_ConshdlrData::pendingbndsactivated, removeStoredCutsFromActiveCuts(), SCIP_CALL, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPconsGetData(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPgetStage(), SCIPnodeGetNumber(), SCIPnodeGetType(), SCIP_ConshdlrData::stack, TRUE, and undoLocalBndchgsToPricingprobs().
◆ SCIP_DECL_CONSDELETE()
|
static |
frees specific constraint data
Definition at line 2093 of file cons_masterbranch.c.
References SCIP_ConsData::childconss, CONSHDLR_NAME, FALSE, SCIP_ConshdlrData::gcg, GCGconsMasterbranchReleaseOrigbranchConss(), GCGconsOrigbranchGetMastercons(), GCGconsOrigbranchSetBranchdata(), GCGconsOrigbranchSetMastercons(), GCGgetOrigprob(), GCGrelaxBranchDataDelete(), GCGreleaseMastersepacut(), GCGvarhistoryFreeReference(), SCIP_ConsData::nchildconss, NULL, SCIP_ConsData::probingtmpcons, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPallocBufferArray, SCIPconsGetData(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPfreeBlockMemoryArray, SCIPfreeBlockMemoryArrayNull, SCIPfreeBlockMemoryNull, SCIPfreeBufferArray, SCIPgetStage(), SCIPinProbing(), SCIPreleaseCons(), and TRUE.
◆ SCIP_DECL_CONSPROP()
|
static |
domain propagation method of constraint handler
Definition at line 2273 of file cons_masterbranch.c.
References applyGlobalBndchgsToPricedMastervars(), applyGlobalBndchgsToPricingprobs(), applyLocalBndchgsToCopiedMastervars(), applyLocalBndchgsToPricedMastervars(), SCIP_ConsData::branchdata, SCIP_ConsData::branchrule, FALSE, SCIP_ConshdlrData::gcg, GCGcolpoolPropagateGlobalBounds(), GCGgetColpool(), GCGmasterGetNPricedvars(), GCGrelaxBranchPropMaster(), SCIP_ConsData::name, SCIP_ConsData::ncopiedvarbnds, SCIP_ConsData::needprop, SCIP_ConshdlrData::npendingbnds, SCIP_ConsData::npropvars, SCIP_ConshdlrData::nstack, NULL, SCIP_ConshdlrData::pendingbndsactivated, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_REDUCEDDOM, SCIPconsGetData(), SCIPconshdlrGetData(), SCIPdebugMessage, and SCIP_ConshdlrData::stack.
◆ SCIP_DECL_CONSENFOLP()
|
static |
enforcement method for LP solutions
Definition at line 2354 of file cons_masterbranch.c.
References SCIP_FEASIBLE, and SCIP_OKAY.
◆ SCIP_DECL_CONSENFOPS()
|
static |
enforcement method for pseudo solutions
Definition at line 2363 of file cons_masterbranch.c.
References SCIP_FEASIBLE, and SCIP_OKAY.
◆ SCIP_DECL_CONSCHECK()
|
static |
check method for solutions
Definition at line 2372 of file cons_masterbranch.c.
References SCIP_FEASIBLE, and SCIP_OKAY.
◆ SCIP_DECL_CONSLOCK()
|
static |
◆ SCIP_DECL_EVENTINITSOL()
|
static |
solving process initialization method of event handler (called when branch and bound process is about to begin)
Definition at line 2393 of file cons_masterbranch.c.
References NULL, SCIP_CALL, SCIP_EVENTTYPE_BOUNDCHANGED, SCIP_EVENTTYPE_GBDCHANGED, SCIP_OKAY, SCIPcatchVarEvent(), SCIPgetNVars(), and SCIPgetVars().
◆ SCIP_DECL_EVENTFREE()
|
static |
eventhdlr destructor
Definition at line 2413 of file cons_masterbranch.c.
References NULL, SCIP_OKAY, SCIPeventhdlrGetData(), and SCIPfreeBlockMemory.
◆ SCIP_DECL_EVENTEXEC()
|
static |
execution method of event handler
Definition at line 2427 of file cons_masterbranch.c.
References addPendingBndChg(), FALSE, SCIP_EventhdlrData::gcg, GCG_DECMODE_DANTZIGWOLFE, GCGgetDecompositionMode(), GCGgetMasterprob(), GCGgetNPricingprobs(), GCGinitializeMasterProblemSolve(), GCGisPricingprobRelevant(), GCGlinkingVarGetPricingVars(), GCGoriginalVarGetMastervals(), GCGoriginalVarGetMastervars(), GCGoriginalVarGetNMastervars(), GCGoriginalVarGetPricingVar(), GCGrelaxIsInitialized(), GCGvarGetBlock(), GCGvarIsOriginal(), NULL, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_EVENTTYPE_GLBCHANGED, SCIP_EVENTTYPE_GUBCHANGED, SCIP_OKAY, SCIP_Real, SCIP_STAGE_TRANSFORMED, SCIPdebugMessage, SCIPeventGetNewbound(), SCIPeventGetOldbound(), SCIPeventGetType(), SCIPeventGetVar(), SCIPeventhdlrGetData(), SCIPgetRelaxSolVal(), SCIPgetStage(), SCIPisFeasGT(), SCIPisFeasLT(), SCIPisRelaxSolValid(), SCIPisTransformed(), SCIPmarkRelaxSolInvalid(), SCIPvarGetName(), and TRUE.
◆ GCGincludeConshdlrMasterbranch()
| SCIP_RETCODE GCGincludeConshdlrMasterbranch | ( | GCG * | gcg | ) |
creates the handler for masterbranch constraints and includes it in SCIP
- Parameters
-
gcg GCG data structure
Definition at line 2607 of file cons_masterbranch.c.
References CONSHDLR_CHECKPRIORITY, CONSHDLR_DELAYPROP, CONSHDLR_DESC, CONSHDLR_EAGERFREQ, CONSHDLR_ENFOPRIORITY, CONSHDLR_NAME, CONSHDLR_NEEDSCONS, CONSHDLR_PROPFREQ, CONSHDLR_PROPTIMING, SCIP_ConshdlrData::enforceproper, EVENTHDLR_DESC, EVENTHDLR_NAME, FALSE, SCIP_EventhdlrData::gcg, SCIP_ConshdlrData::gcg, GCGgetMasterprob(), GCGgetOrigprob(), SCIP_ConshdlrData::maxstacksize, SCIP_ConshdlrData::nstack, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPallocBlockMemory, SCIPallocMemory, SCIPincludeConshdlrBasic(), SCIPincludeEventhdlrBasic(), SCIPsetConshdlrActive(), SCIPsetConshdlrDeactive(), SCIPsetConshdlrDelete(), SCIPsetConshdlrExit(), SCIPsetConshdlrExitsol(), SCIPsetConshdlrFree(), SCIPsetConshdlrInit(), SCIPsetConshdlrInitsol(), SCIPsetConshdlrProp(), SCIPsetEventhdlrFree(), SCIPsetEventhdlrInitsol(), SCIP_ConshdlrData::stack, and TRUE.
Referenced by GCGincludeMasterPlugins().
◆ GCGcreateConsMasterbranch()
| SCIP_RETCODE GCGcreateConsMasterbranch | ( | GCG * | gcg, |
| SCIP_CONS ** | cons, | ||
| const char * | name, | ||
| SCIP_NODE * | node, | ||
| SCIP_CONS * | parentcons, | ||
| GCG_BRANCHRULE * | branchrule, | ||
| GCG_BRANCHDATA * | branchdata, | ||
| SCIP_CONS ** | origbranchconss, | ||
| int | norigbranchconss, | ||
| int | maxorigbranchconss | ||
| ) |
creates and captures a masterbranch constraint
- Parameters
-
gcg GCG data structure cons pointer to hold the created constraint name name of the constraint node node at which the constraint should be created parentcons parent constraint branchrule pointer to the branching rule branchdata branching data origbranchconss original constraints enforcing the branching decision norigbranchconss number of original constraints maxorigbranchconss capacity of origbranchconss
Definition at line 2670 of file cons_masterbranch.c.
References SCIP_ConsData::addedcuts, SCIP_ConsData::addedcutsinit, SCIP_ConsData::branchdata, SCIP_ConsData::branchrule, SCIP_ConsData::childconss, CONSHDLR_NAME, SCIP_ConsData::copiedvarbnds, SCIP_ConsData::copiedvarbndtypes, SCIP_ConsData::copiedvars, FALSE, SCIP_ConsData::firstnewcut, GCGgetCurrentVarhistoryReference(), GCGgetMasterprob(), GCGgetOrigprob(), GCGstashLimitSettings(), GCGvarhistoryCopyReference(), SCIP_ConsData::knownvarhistory, SCIP_ConsData::localbndtypes, SCIP_ConsData::localbndvars, SCIP_ConsData::localnewbnds, SCIP_ConsData::localoldbnds, SCIP_ConsData::maxchildconss, SCIP_ConsData::maxcopiedvarbnds, SCIP_ConsData::maxlocalbndchgs, SCIP_ConsData::maxlocalbndchgstreated, SCIP_ConsData::maxorigbranchconss, SCIP_ConsData::nactivated, SCIP_ConsData::naddedcuts, SCIP_ConsData::name, SCIP_ConsData::nbranchingchgs, SCIP_ConsData::nchildconss, SCIP_ConsData::ncopiedvarbnds, SCIP_ConsData::needprop, SCIP_ConsData::nlocalbndchgs, SCIP_ConsData::nlocalbndchgstreated, SCIP_ConsData::node, SCIP_ConsData::nodestoredcuts, SCIP_ConsData::norigbranchconss, SCIP_ConsData::npropvars, NULL, SCIP_ConsData::origbranchconss, SCIP_ConsData::origcons, SCIP_ConsData::parentcons, SCIP_ConsData::probingtmpcons, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPallocBlockMemory, SCIPallocBlockMemoryArray, SCIPcalcMemGrowSize(), SCIPconsGetData(), SCIPcreateCons(), SCIPdebugMessage, SCIPduplicateBlockMemoryArray, SCIPfindConshdlr(), SCIPgetStage(), SCIPinProbing(), SCIPnodeGetDepth(), SCIPreallocBlockMemoryArray, and TRUE.
Referenced by branchDirectlyOnMastervar(), branchVar(), createChildNodesCompBndSeq(), createChildNodesGeneric(), createChildNodesRyanfoster(), GCGrelaxNewProbingnodeMaster(), GCGrelaxNewProbingnodeMasterCons(), and SCIP_DECL_CONSINITSOL().
◆ GCGconsMasterbranchGetName()
| char * GCGconsMasterbranchGetName | ( | SCIP_CONS * | cons | ) |
returns the name of the constraint
- Parameters
-
cons masterbranch constraint for which the data is requested
Definition at line 2800 of file cons_masterbranch.c.
References SCIP_ConsData::name, NULL, and SCIPconsGetData().
Referenced by createOrigbranchConstraint().
◆ GCGconsMasterbranchGetNode()
returns the node in the B&B tree at which the given masterbranch constraint is sticking
- Parameters
-
cons constraint pointer
Definition at line 2813 of file cons_masterbranch.c.
References SCIP_ConsData::node, NULL, and SCIPconsGetData().
Referenced by applyOriginalBranching(), createBranchNodesInOrigprob(), GCGcurrentNodeIsGeneric(), SCIP_DECL_EVENTEXEC(), and SCIP_DECL_NODESELSELECT().
◆ GCGconsMasterbranchGetParentcons()
returns the masterbranch constraint of the B&B father of the node at which the given masterbranch constraint is sticking
- Parameters
-
cons constraint pointer
Definition at line 2828 of file cons_masterbranch.c.
References NULL, SCIP_ConsData::parentcons, and SCIPconsGetData().
Referenced by initBranch(), pruneChildNodeByDominanceGeneric(), and SCIP_DECL_EVENTEXEC().
◆ GCGconsMasterbranchGetNChildconss()
| int GCGconsMasterbranchGetNChildconss | ( | SCIP_CONS * | cons | ) |
returns the number of masterbranch constraints of the children of the node at which the given masterbranch constraint is sticking
- Parameters
-
cons constraint pointer
Definition at line 2843 of file cons_masterbranch.c.
References SCIP_ConsData::nchildconss, NULL, and SCIPconsGetData().
Referenced by checkchildconsS(), and createBranchNodesInOrigprob().
◆ GCGconsMasterbranchGetChildcons()
returns a masterbranch constraint of a child of the node at which the given masterbranch constraint is sticking
- Parameters
-
cons constraint pointer childnr index of the child node
Definition at line 2858 of file cons_masterbranch.c.
References SCIP_ConsData::childconss, SCIP_ConsData::nchildconss, NULL, and SCIPconsGetData().
Referenced by checkchildconsS(), and createBranchNodesInOrigprob().
◆ GCGconsMasterbranchGetOrigcons()
returns the origbranch constraint of the node in the original program corresponding to the node at which the given masterbranch constraint is sticking
- Parameters
-
cons constraint pointer
Definition at line 2877 of file cons_masterbranch.c.
References NULL, SCIP_ConsData::origcons, and SCIPconsGetData().
Referenced by GCGconsOrigbranchCheckConsistency(), and SCIP_DECL_CONSDELETE().
◆ GCGconsMasterbranchSetOrigcons()
sets the origbranch constraint of the node in the master program corresponding to the node at which the given masterbranchbranch constraint is sticking
- Parameters
-
cons constraint pointer origcons original branching constraint
Definition at line 2892 of file cons_masterbranch.c.
References NULL, SCIP_ConsData::origcons, and SCIPconsGetData().
Referenced by createOrigbranchConstraint(), and SCIP_DECL_CONSDELETE().
◆ GCGconsMasterbranchGetBranchdata()
| GCG_BRANCHDATA * GCGconsMasterbranchGetBranchdata | ( | SCIP_CONS * | cons | ) |
returns the branching data for a given masterbranch constraint
- Parameters
-
cons constraint pointer
Definition at line 2907 of file cons_masterbranch.c.
References SCIP_ConsData::branchdata, NULL, and SCIPconsGetData().
Referenced by applyOriginalBranching(), checkchildconsS(), createOrigbranchConstraint(), initBranch(), pruneChildNodeByDominanceGeneric(), and SCIP_DECL_EVENTEXEC().
◆ GCGconsMasterbranchSetBranchdata()
| void GCGconsMasterbranchSetBranchdata | ( | SCIP_CONS * | cons, |
| GCG_BRANCHDATA * | branchdata | ||
| ) |
sets the branching data for a given masterbranch constraint
- Parameters
-
cons masterbranch constraint for which the branching data is requested branchdata branching data
Definition at line 2919 of file cons_masterbranch.c.
References SCIP_ConsData::branchdata, NULL, and SCIPconsGetData().
Referenced by SCIP_DECL_CONSDELETE().
◆ GCGconsMasterbranchGetBranchrule()
| GCG_BRANCHRULE * GCGconsMasterbranchGetBranchrule | ( | SCIP_CONS * | cons | ) |
returns the branching rule of the constraint
- Parameters
-
cons masterbranch constraint for which the data is requested
Definition at line 2933 of file cons_masterbranch.c.
References SCIP_ConsData::branchrule, NULL, and SCIPconsGetData().
Referenced by checkchildconsS(), createBranchNodesInOrigprob(), createOrigbranchConstraint(), GCGcurrentNodeIsGeneric(), initBranch(), ObjPricerGcg::pricingLoop(), pruneChildNodeByDominanceGeneric(), and SCIP_DECL_EVENTEXEC().
◆ GCGconsMasterbranchAddCopiedVarBndchg()
| SCIP_RETCODE GCGconsMasterbranchAddCopiedVarBndchg | ( | GCG * | gcg, |
| SCIP_CONS * | cons, | ||
| SCIP_VAR * | var, | ||
| GCG_BOUNDTYPE | boundtype, | ||
| SCIP_Real | newbound | ||
| ) |
adds a bound change on an original variable that was directly copied to the master problem
- Parameters
-
gcg GCG data structure cons masterbranch constraint to which the bound change is added var variable on which the bound change was performed boundtype bound type of the bound change newbound new bound of the variable after the bound change
Definition at line 2946 of file cons_masterbranch.c.
References SCIP_ConsData::copiedvarbnds, SCIP_ConsData::copiedvarbndtypes, SCIP_ConsData::copiedvars, GCGgetMasterprob(), GCGisMaster(), SCIP_ConsData::maxcopiedvarbnds, SCIP_ConsData::ncopiedvarbnds, SCIP_ConsData::node, NULL, SCIP_CALL, SCIP_OKAY, SCIPcalcMemGrowSize(), SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPreallocBlockMemoryArray, and SCIPrepropagateNode().
Referenced by applyOriginalBranching().
◆ GCGconsMasterbranchGetOrigbranchConss()
returns the constraints in the original problem that enforce the branching decision
- Parameters
-
cons masterbranch constraint for which the data is requested
Definition at line 2993 of file cons_masterbranch.c.
References NULL, SCIP_ConsData::origbranchconss, and SCIPconsGetData().
Referenced by createOrigbranchConstraint().
◆ GCGconsMasterbranchGetNOrigbranchConss()
| int GCGconsMasterbranchGetNOrigbranchConss | ( | SCIP_CONS * | cons | ) |
returns the number of constraints in the original problem that enforce the branching decision
- Parameters
-
cons masterbranch constraint for which the data is requested
Definition at line 3006 of file cons_masterbranch.c.
References SCIP_ConsData::norigbranchconss, NULL, and SCIPconsGetData().
Referenced by createOrigbranchConstraint().
◆ GCGconsMasterbranchReleaseOrigbranchConss()
| SCIP_RETCODE GCGconsMasterbranchReleaseOrigbranchConss | ( | GCG * | gcg, |
| SCIP_CONS * | cons | ||
| ) |
releases the constraints in the original problem that enforce the branching decision and frees the array holding the constraints
- Parameters
-
gcg GCG instance cons masterbranch constraint for which the data is freed
Definition at line 3021 of file cons_masterbranch.c.
References GCGgetMasterprob(), GCGgetOrigprob(), GCGisMaster(), GCGisOriginal(), SCIP_ConsData::maxorigbranchconss, SCIP_ConsData::norigbranchconss, NULL, SCIP_ConsData::origbranchconss, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPfreeBlockMemoryArray, and SCIPreleaseCons().
Referenced by createOrigbranchConstraint(), and SCIP_DECL_CONSDELETE().
◆ GCGconsMasterbranchGetActiveCons()
returns the masterbranch constraint of the current node
- Parameters
-
gcg GCG data structure
Definition at line 3056 of file cons_masterbranch.c.
References CONSHDLR_NAME, GCGgetMasterprob(), GCGisMaster(), SCIP_ConshdlrData::nstack, NULL, SCIP_STAGE_SOLVING, SCIPconshdlrGetData(), SCIPfindConshdlr(), SCIPgetStage(), and SCIP_ConshdlrData::stack.
Referenced by branchDirectlyOnMastervar(), branchVar(), createBranchNodesInOrigprob(), createChildNodesCompBndSeq(), createChildNodesGeneric(), createChildNodesRyanfoster(), GCGcurrentNodeIsGeneric(), GCGrelaxNewProbingnodeMaster(), GCGrelaxNewProbingnodeMasterCons(), initBranch(), ObjPricerGcg::pricingLoop(), and SCIP_DECL_EVENTEXEC().
◆ GCGconsMasterbranchGetStack()
returns the stack and the number of elements on it
- Parameters
-
gcg GCG data structure stack return value: pointer to the stack nstackelements return value: pointer to int, for number of elements on the stack
Definition at line 3086 of file cons_masterbranch.c.
References CONSHDLR_NAME, GCGgetMasterprob(), SCIP_ConshdlrData::nstack, NULL, SCIPconshdlrGetData(), SCIPfindConshdlr(), and SCIP_ConshdlrData::stack.
◆ GCGconsMasterbranchGetNStackelements()
| int GCGconsMasterbranchGetNStackelements | ( | GCG * | gcg | ) |
returns the number of elements on the stack
- Parameters
-
gcg GCG data structure
Definition at line 3110 of file cons_masterbranch.c.
References CONSHDLR_NAME, GCGgetMasterprob(), SCIP_ConshdlrData::nstack, NULL, SCIPconshdlrGetData(), SCIPfindConshdlr(), and SCIP_ConshdlrData::stack.
◆ GCGconsMasterbranchAddRootCons()
| SCIP_RETCODE GCGconsMasterbranchAddRootCons | ( | GCG * | gcg | ) |
adds initial constraint to root node
- Parameters
-
gcg GCG data structure
Definition at line 3131 of file cons_masterbranch.c.
References CONSHDLR_NAME, GCGgetMasterprob(), SCIP_ConshdlrData::nstack, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddConsNode(), SCIPconshdlrGetData(), SCIPfindConshdlr(), SCIPgetRootNode(), SCIPreleaseCons(), and SCIP_ConshdlrData::stack.
Referenced by SCIP_DECL_PRICERFARKAS(), and SCIP_DECL_PRICERREDCOST().
◆ GCGconsMasterbranchActiveCutRemoved()
| SCIP_RETCODE GCGconsMasterbranchActiveCutRemoved | ( | GCG * | gcg, |
| int | removedidx | ||
| ) |
adjusts the firstnewcut bookkeeping of all active masterbranch nodes after a master separator cut has been removed from the active cuts at the given position
- Parameters
-
gcg GCG data structure removedidx position the removed cut had in the active cuts
Definition at line 3161 of file cons_masterbranch.c.
References CONSHDLR_NAME, SCIP_ConsData::firstnewcut, GCGgetMasterprob(), SCIP_ConshdlrData::nstack, NULL, SCIP_OKAY, SCIPconsGetData(), SCIPconshdlrGetData(), SCIPfindConshdlr(), and SCIP_ConshdlrData::stack.
Referenced by eventRowDeletedFromLP().
◆ GCGcurrentNodeIsGeneric()
check whether the node was generated by generic branching
- Parameters
-
gcg GCG data structure
Definition at line 3202 of file cons_masterbranch.c.
References FALSE, GCGbranchGetScipBranchrule(), GCGconsMasterbranchGetActiveCons(), GCGconsMasterbranchGetBranchrule(), GCGconsMasterbranchGetNode(), NULL, SCIP_Bool, SCIPbranchruleGetName(), SCIPnodeGetDepth(), and TRUE.
Referenced by SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), and SCIP_DECL_BRANCHEXECPS().
◆ GCGconsMasterbranchCheckConsistency()
| void GCGconsMasterbranchCheckConsistency | ( | GCG * | gcg | ) |
checks the consistency of the masterbranch constraints in the problem
- Parameters
-
gcg GCG data structure
Definition at line 3226 of file cons_masterbranch.c.
References CONSHDLR_NAME, GCGconsOrigbranchGetMastercons(), GCGconsOrigbranchGetParentcons(), GCGgetMasterprob(), SCIP_ConsData::node, NULL, SCIP_ConsData::origcons, SCIP_ConsData::parentcons, SCIP_ConsData::probingtmpcons, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetConss(), SCIPconshdlrGetNConss(), SCIPdebugMessage, SCIPfindConshdlr(), and SCIPinProbing().
Referenced by SCIP_DECL_NODESELSELECT().