cons_masterbranch.c
Go to the documentation of this file.
38/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
60#define CONSHDLR_ENFOPRIORITY 0 /**< priority of the constraint handler for constraint enforcing */
61#define CONSHDLR_CHECKPRIORITY 2000000 /**< priority of the constraint handler for checking feasibility */
62#define CONSHDLR_PROPFREQ 1 /**< frequency for propagating domains; zero means only preprocessing propagation */
63#define CONSHDLR_EAGERFREQ 100 /**< frequency for using all instead of only the useful constraints in separation,
65#define CONSHDLR_DELAYPROP FALSE /**< should propagation method be delayed, if other propagators found reductions? */
66#define CONSHDLR_NEEDSCONS TRUE /**< should the constraint handler be skipped, if no constraints are available? */
77 int npropvars; /**< number of variables that existed the last time the related node was propagated,
87 SCIP_CONS* probingtmpcons; /**< pointer to save the last child in the childconss array if it is overwritten in probing mode */
90 GCG_BRANCHDATA* branchdata; /**< branching data stored by the branching rule at the corresponding origcons constraint
92 GCG_BRANCHRULE* branchrule; /**< branching rule that created the corresponding node in the original problem and imposed
104 int* nlocalbndchgstreated; /**< number of bound changes of the nodes on the way from the current node to
111 /* local bound changes on original variables that have been directly copied to the master problem */
113 GCG_BOUNDTYPE* copiedvarbndtypes; /**< types of the new local bounds of the coped original variables */
119 SCIP_CONS** origbranchconss; /**< constraints in the original problem that enforce the branching decision */
120 int norigbranchconss; /**< number of constraints in the original problem that enforce the branching decision */
124 GCG_EXTENDEDMASTERCONSDATA** addedcuts; /**< master separator cuts which were created in the node defined by this branch */
141 SCIP_VAR** pendingvars; /**< pricing variables or master variable copies corresponding to pending bound changes (global bound changes) */
142 SCIP_BOUNDTYPE* pendingbndtypes; /**< types of the pending bound changes (global bound changes) */
143 SCIP_Real* pendingnewbnds; /**< new bounds corresponding to pending bound changes (global bound changes) */
144 SCIP_HASHMAP* pendingvarmaplb; /**< maps vars to indices of the pendingvars array for global lower bound changes */
145 SCIP_HASHMAP* pendingvarmapub; /**< maps vars to indices of the pendingvars array for global upper bound changes */
152 SCIP_VAR*** collectedbndvars; /**< collected original variables of bound changes stored for each block */
185 varhistory = GCGmastersepacutGetVarHistory(GCGextendedmasterconsGetMastersepacut(mastersepacut));
211 /* get the pricing variables corresponding to the original variables which define the master variable */
230 SCIP_CALL( GCGmastersepacutGetExtendedmasterconsCoeff(gcg, mastersepacut, pricingvars, pricingvals, npricingvars,
283 SCIPdebugMessage("add stored cuts: node %lli of type: %i\n", SCIPnodeGetNumber(consdata->node), SCIPnodeGetType(consdata->node));
301 /* we update the cut to include all the master variables which were generated while the cut was inactive */
311 SCIPdebugMessage("add to active cuts: update row %s from node %lli and add it to active cuts\n",
336 SCIPdebugMessage("init added cuts: remove and free new inactive rows from node %lli of type %i\n",
339 /* cleanup (remove AND free) the rows generated at node which have already been removed from the LP */
464 SCIPdebugMessage("cons: %s, origcons: %s, parent: %s => %s\n", SCIPconsGetName(cons), consdata->origcons == NULL? "NULL" : SCIPconsGetName( consdata->origcons ),
465 parent_origcons == NULL? "NULL" : SCIPconsGetName(parent_origcons), origcons_parent == NULL? "NULL" : SCIPconsGetName(origcons_parent) );
468 assert(SCIPgetCurrentNode(masterprob) == consdata->node || consdata->node == SCIPgetRootNode(masterprob));
469/* assert((SCIPgetNNodesLeft(masterprob)+SCIPgetNNodes(masterprob) == 1) == (consdata->node == SCIPgetRootNode(masterprob))); */
470 assert(SCIPnodeGetDepth(GCGconsOrigbranchGetNode(consdata->origcons)) == SCIPnodeGetDepth(consdata->node));
474 SCIPconsGetData(consdata->parentcons)->origcons == GCGconsOrigbranchGetParentcons(consdata->origcons));
477 SCIP_CALL( SCIPallocBlockMemoryArray(masterprob, &consdata->nlocalbndchgstreated, (size_t)consdata->maxlocalbndchgstreated) );
488 SCIP_CALL( SCIPallocBlockMemoryArray(masterprob, &consdata->localbndvars, consdata->maxlocalbndchgs) );
489 SCIP_CALL( SCIPallocBlockMemoryArray(masterprob, &consdata->localbndtypes, consdata->maxlocalbndchgs) );
490 SCIP_CALL( SCIPallocBlockMemoryArray(masterprob, &consdata->localnewbnds, consdata->maxlocalbndchgs) );
491 SCIP_CALL( SCIPallocBlockMemoryArray(masterprob, &consdata->localoldbnds, consdata->maxlocalbndchgs) );
547 SCIP_CALL(SCIPreallocBlockMemoryArray(masterprob, &consdata->localbndvars, consdata->maxlocalbndchgs,
549 SCIP_CALL(SCIPreallocBlockMemoryArray(masterprob, &consdata->localbndtypes, consdata->maxlocalbndchgs,
551 SCIP_CALL(SCIPreallocBlockMemoryArray(masterprob, &consdata->localnewbnds, consdata->maxlocalbndchgs,
553 SCIP_CALL(SCIPreallocBlockMemoryArray(masterprob, &consdata->localoldbnds, consdata->maxlocalbndchgs,
593 * - parent master cuts have not been stored yet, because the corresponding constraint was not deactivated */
601 SCIPdebugMessage("init cons data: firstnewcut %i in node %lli\n", consdata->firstnewcut, SCIPnodeGetNumber(consdata->node));
610 SCIP_VAR* var, /**< variable on which the bound change is applied (corresponding master variable copy or pricing variable) */
636 pendingvarmap = (boundtype == SCIP_BOUNDTYPE_LOWER) ? conshdlrdata->pendingvarmaplb : conshdlrdata->pendingvarmapub;
650 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(conshdlrdata->pendingvars), conshdlrdata->maxpendingbnds, newsize) );
651 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(conshdlrdata->pendingbndtypes), conshdlrdata->maxpendingbnds, newsize) );
652 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(conshdlrdata->pendingnewbnds), conshdlrdata->maxpendingbnds, newsize) );
668/** For a given global bound change on a pricing variable, check if the global bounds on all corresponding original variables are still the same
670 * @return TRUE if the variable is in a relevant block AND all variables identical to it have the same bounds
700 SCIP_Real identbound = bndtype == SCIP_BOUNDTYPE_UPPER ? SCIPvarGetUbGlobal(identvars[i]) : SCIPvarGetLbGlobal(identvars[i]);
703 SCIPwarningMessage(scip, "Var <%s> has new global %s bound %g, but identical var <%s> has %g -- don't know how to handle!\n",
743 assert(GCGvarIsMaster(conshdlrdata->pendingvars[i]) || GCGvarIsPricing(conshdlrdata->pendingvars[i]));
749 if( SCIPisLT(masterprob, SCIPvarGetLbGlobal(conshdlrdata->pendingvars[i]), conshdlrdata->pendingnewbnds[i]) )
751 SCIPdebugMessage("Global lower bound of mastervar <%s> set to %g\n", SCIPvarGetName(conshdlrdata->pendingvars[i]),
753 SCIP_CALL( SCIPchgVarLbGlobal(masterprob, conshdlrdata->pendingvars[i], conshdlrdata->pendingnewbnds[i]) );
758 if( SCIPisGT(masterprob, SCIPvarGetUbGlobal(conshdlrdata->pendingvars[i]), conshdlrdata->pendingnewbnds[i]) )
760 SCIPdebugMessage("Global upper bound of mastervar <%s> set to %g\n", SCIPvarGetName(conshdlrdata->pendingvars[i]),
762 SCIP_CALL( SCIPchgVarUbGlobal(masterprob, conshdlrdata->pendingvars[i], conshdlrdata->pendingnewbnds[i]) );
773 if( !checkAggregatedGlobalBounds(origscip, conshdlrdata->pendingvars[i], conshdlrdata->pendingbndtypes[i], conshdlrdata->pendingnewbnds[i]) )
778 SCIP_CALL( SCIPchgVarLbGlobal(GCGgetPricingprob(gcg, GCGvarGetBlock(conshdlrdata->pendingvars[i]) ),
783 SCIP_CALL( SCIPchgVarUbGlobal(GCGgetPricingprob(gcg, GCGvarGetBlock(conshdlrdata->pendingvars[i]) ),
843 ismastervarrelevant = ismastervarrelevant && (blocknr >= 0 || GCGmasterVarIsLinking(vars[i])); /*lint !e613*/
868 SCIPerrorMessage("Variable %s is not pricing nor master.\n", SCIPvarGetName(conshdlrdata->pendingvars[k]));
869 assert(GCGvarIsMaster(conshdlrdata->pendingvars[k]) || GCGvarIsPricing(conshdlrdata->pendingvars[k]));
895 /* @todo: This is the wrong way to treat bound changes on original variable copies in the master problem;
899 assert(GCGvarGetBlock(bndchgorigvars[0]) == blocknr || (GCGisLinkingVarInBlock(bndchgorigvars[0], blocknr))); /*lint !e613*/
924 SCIPdebugMessage("Finished handling of pending global bound changes: %d changed bounds\n", *propcount);
960 || SCIPisLE(masterprob, SCIPvarGetLbLocal(pricingvar), SCIPvarGetLbGlobal(consdata->localbndvars[i])));
962 if( SCIPisEQ(masterprob, SCIPvarGetLbGlobal(consdata->localbndvars[i]), consdata->localnewbnds[i]) )
968 if( SCIPisGT(masterprob, SCIPvarGetLbGlobal(consdata->localbndvars[i]), consdata->localoldbnds[i]) )
970 SCIP_CALL( SCIPchgVarLb(GCGgetPricingprob(gcg, blocknr), pricingvar, SCIPvarGetLbGlobal(consdata->localbndvars[i])) );
972 SCIPvarGetName(pricingvar), consdata->localnewbnds[i], SCIPvarGetLbGlobal(consdata->localbndvars[i]), consdata->name);
976 SCIP_CALL( SCIPchgVarLb(GCGgetPricingprob(gcg, blocknr), pricingvar, consdata->localoldbnds[i]) );
978 SCIPvarGetName(pricingvar), consdata->localnewbnds[i], consdata->localoldbnds[i], consdata->name);
988 || SCIPisGE(masterprob, SCIPvarGetUbLocal(pricingvar), SCIPvarGetUbGlobal(consdata->localbndvars[i])));
990 if( SCIPisEQ(masterprob, SCIPvarGetUbGlobal(consdata->localbndvars[i]), consdata->localnewbnds[i]) )
996 if( SCIPisLT(masterprob, SCIPvarGetUbGlobal(consdata->localbndvars[i]), consdata->localoldbnds[i]) )
998 SCIP_CALL( SCIPchgVarUb(GCGgetPricingprob(gcg, blocknr), pricingvar, SCIPvarGetUbGlobal(consdata->localbndvars[i])) );
1000 SCIPvarGetName(pricingvar), consdata->localnewbnds[i], SCIPvarGetUbGlobal(consdata->localbndvars[i]), consdata->name);
1004 SCIP_CALL( SCIPchgVarUb(GCGgetPricingprob(gcg, blocknr), pricingvar, consdata->localoldbnds[i]) );
1006 SCIPvarGetName(pricingvar), consdata->localnewbnds[i], consdata->localoldbnds[i], consdata->name);
1045 SCIP_CALL( SCIPchgVarLb(GCGgetPricingprob(gcg, blocknr), pricingvar, consdata->localnewbnds[i]) );
1059 SCIP_CALL( SCIPchgVarUb(GCGgetPricingprob(gcg, blocknr), pricingvar, consdata->localnewbnds[i]) );
1068/** For a given local bound change on an original variable, check if the bounds on the variables identical to it are the same
1073 * @return TRUE if the variable is in a relevant block AND all variables identical to it have the same bounds
1081 SCIP_VAR* bndvar, /**< original variable whose local bound was changed and which is to be checked */
1096 /* First case: The variable is not represented by another one - check the bounds of all variables it represents */
1112 /* For all variables on which a bound was changed *and* which are identical to the current variable,
1128 /* Check if the bounds of all identical variables are equal to the one of the representative */
1133 SCIPwarningMessage(scip, "Var <%s> has new local %s bound %g, but identical var <%s> has %g -- don't know how to handle!\n",
1146 /* Second case: The variable is represented by another one due to aggregation; check if its representative has the same bound */
1153 /* Get the most recent bound for the bound change variable as well as for its representative */
1169 SCIPwarningMessage(scip, "Var <%s> has new local %s bound %g, but representative <%s> has %g -- don't know how to handle!\n",
1206 /* if variable belongs to no block, skip it here because the bound changes are treated in the propagation */
1212 if( checkAggregatedLocalBounds(masterprob, consdata->localbndvars, consdata->localnewbnds, consdata->nlocalbndchgs, consdata->localbndvars[i],
1215 SCIPdebugMessage("adjusting bound of pricing var <%s>\n", SCIPvarGetName(consdata->localbndvars[i]));
1217 SCIP_CALL( tightenPricingVarBound(gcg, GCGoriginalVarGetPricingVar(consdata->localbndvars[i]), consdata, i, blocknr) );
1237 if( !checkAggregatedLocalBounds(masterprob, consdata->localbndvars, consdata->localnewbnds, consdata->nlocalbndchgs,
1244 SCIPdebugMessage("adjusting bound of linking pricing var <%s>\n", SCIPvarGetName(consdata->localbndvars[i]));
1258 SCIPerrorMessage("blocknr = %d is not valid! This is a serious error!", GCGvarGetBlock(consdata->localbndvars[i]));
1307 /* if the variable is linking, we have to perform the same step as above for every existing block*/
1348 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(conshdlrdata->collectedbndvars[blocknr]), oldsize, newsize) );
1349 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(conshdlrdata->collectedlbnds[blocknr]), oldsize, newsize) );
1350 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(conshdlrdata->collectedubnds[blocknr]), oldsize, newsize) );
1367 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(conshdlrdata->linkingvaridxs), oldsize, newsize) );
1448 hashmapsize += (conshdlrdata->enforceproper ? curconsdata->nlocalbndchgs : curconsdata->nbranchingchgs);
1465 /* propagate all bound changes or only the branching bound changes, depending on the setting for the enforcement of proper variables */
1466 nlocalbndchgs = (conshdlrdata->enforceproper ? curconsdata->nlocalbndchgs : curconsdata->nbranchingchgs);
1468 /* iterate over bound changes performed at the current node's equivalent in the original tree */
1498 SCIP_CALL( SCIPallocBlockMemoryArray(masterprob, &linkingvaridxs, conshdlrdata->maxblocknum) );
1530 SCIP_CALL( ensureCollectedBndvarsSize(masterprob, conshdlrdata, blocknr, ncollectedbndvars[blocknr] + 1) );
1551 SCIP_CALL( ensureCollectedBndvarsSize(masterprob, conshdlrdata, blocknr, ncollectedbndvars[blocknr] + 1) );
1598 assert(GCGvarGetBlock(bndvar) == blocknr || (GCGoriginalVarIsLinking(bndvar) && GCGisLinkingVarInBlock(bndvar, blocknr)));
1622 SCIPdebugMessage("Finished propagation of newly created variables: %d changed bounds\n", *propcount);
1627/** apply local bound changes on original variables that have been directly copied to the master problem */
1668 SCIPdebugMessage("changed lb of copied original var %s locally to %g\n", SCIPvarGetName(consdata->localbndvars[i]), consdata->localnewbnds[i]);
1677 SCIPdebugMessage("changed ub of copied original var %s locally to %g\n", SCIPvarGetName(consdata->localbndvars[i]), consdata->localnewbnds[i]);
1682 SCIPdebugMessage("Finished propagation of bounds of copied original variables: %d bounds changed.\n", *propcount);
1728/** destructor of constraint handler to free constraint handler data (called when SCIP is exiting) */
1763 SCIP_CALL( SCIPallocBlockMemoryArray(scip, &conshdlrdata->stack, conshdlrdata->maxstacksize) );
1770 SCIP_CALL( SCIPallocBlockMemoryArray(scip, &(conshdlrdata->pendingvars), conshdlrdata->maxpendingbnds) );
1771 SCIP_CALL( SCIPallocBlockMemoryArray(scip, &(conshdlrdata->pendingbndtypes), conshdlrdata->maxpendingbnds) );
1772 SCIP_CALL( SCIPallocBlockMemoryArray(scip, &(conshdlrdata->pendingnewbnds), conshdlrdata->maxpendingbnds) );
1773 SCIP_CALL( SCIPhashmapCreate(&conshdlrdata->pendingvarmaplb, SCIPblkmem(scip), conshdlrdata->maxpendingbnds) );
1774 SCIP_CALL( SCIPhashmapCreate(&conshdlrdata->pendingvarmapub, SCIPblkmem(scip), conshdlrdata->maxpendingbnds) );
1777 SCIP_CALL( SCIPallocBlockMemoryArray(scip, &(conshdlrdata->collectedbndvars), conshdlrdata->maxblocknum) );
1778 SCIP_CALL( SCIPallocBlockMemoryArray(scip, &(conshdlrdata->collectedlbnds), conshdlrdata->maxblocknum) );
1779 SCIP_CALL( SCIPallocBlockMemoryArray(scip, &(conshdlrdata->collectedubnds), conshdlrdata->maxblocknum) );
1780 SCIP_CALL( SCIPallocBlockMemoryArray(scip, &(conshdlrdata->ncollectedbndvars), conshdlrdata->maxblocknum) );
1781 SCIP_CALL( SCIPallocBlockMemoryArray(scip, &(conshdlrdata->maxcollectedbndvars), conshdlrdata->maxblocknum) );
1795/** solving process initialization method of constraint handler (called when branch and bound process is about to begin) */
1810 SCIP_CALL( GCGcreateConsMasterbranch(conshdlrdata->gcg, &cons, "root-masterbranch", NULL, NULL, NULL, NULL, NULL, 0, 0) );
1833 /* we release all the mastersepacuts stored in the data of all the constraints which have not been deleted yet:
1834 * normally we release the mastercuts via/in consDeleteMasterbranch, but some constraints are only deleted after SCIP_STAGE_EXITSOLVE
1861/** deinitialization method of constraint handler (called before transformed problem is freed) */
1879 SCIPfreeBlockMemoryArray(scip, &(conshdlrdata->pendingbndtypes), conshdlrdata->maxpendingbnds);
1888 SCIPfreeBlockMemoryArray(scip, &(conshdlrdata->collectedbndvars[i]), conshdlrdata->maxcollectedbndvars[i]);
1889 SCIPfreeBlockMemoryArray(scip, &(conshdlrdata->collectedlbnds[i]), conshdlrdata->maxcollectedbndvars[i]);
1890 SCIPfreeBlockMemoryArray(scip, &(conshdlrdata->collectedubnds[i]), conshdlrdata->maxcollectedbndvars[i]);
1897 SCIPfreeBlockMemoryArray(scip, &(conshdlrdata->maxcollectedbndvars), conshdlrdata->maxblocknum);
1906 SCIPfreeBlockMemoryArrayNull(scip, &(conshdlrdata->linkingvaridxs), conshdlrdata->maxlinkingvaridxs);
1943 SCIPdebugMessage("Activating branch master constraint: <%s>[stack size: %d].\n", SCIPconsGetName(cons), conshdlrdata->nstack+1);
1955 /* The node has to be repropagated if new variables were created after the node was left the last time
1959 if( GCGmasterGetNPricedvars(conshdlrdata->gcg) > consdata->npropvars || consdata->ncopiedvarbnds > 0 )
1966 SCIPdebugMessage("added %d boundchanges from previous nodes!\n", consdata->nlocalbndchgs - consdata->nlocalbndchgstreated[conshdlrdata->nstack]);
1972 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(conshdlrdata->stack), conshdlrdata->maxstacksize, newsize) );
1974 SCIPdebugMessage("reallocating Memory for stack! %d --> %d\n", conshdlrdata->maxstacksize, newsize);
1981 SCIPdebugMessage("Activating masterbranch constraint: <%s> [stack size: %d], needprop = %u.\n",
1993 SCIP_CALL( GCGrelaxBranchActiveMaster(conshdlrdata->gcg, consdata->branchrule, consdata->branchdata) );
2008 SCIPdebugMessage("Activation of node %lli of type %i with cons %s\n", SCIPnodeGetNumber(consdata->node),
2019 * - the cuts in generated cuts may not have been separated yet, as separation store gets switched when probing */
2021 SCIP_CALL( GCGclearGeneratedMastersepacuts(conshdlrdata->gcg) ); // potentially: move to pricing
2071 SCIP_CALL( GCGrelaxBranchDeactiveMaster(conshdlrdata->gcg, consdata->branchrule, consdata->branchdata) );
2076 SCIPdebugMessage("Deactivation of node %lli of type %i with cons %s\n", SCIPnodeGetNumber(consdata->node),
2080 * - store the mastersepacuts which were (generated and) applied in this node in the data of its defining branch */
2122 * (might happen if node is cut off before branching decisions are transferred to the original problem)
2130 SCIPfreeBlockMemoryArrayNull(scip, &((*consdata)->copiedvarbndtypes), (*consdata)->maxcopiedvarbnds);
2131 SCIPfreeBlockMemoryArrayNull(scip, &((*consdata)->copiedvarbnds), (*consdata)->maxcopiedvarbnds);
2135 SCIPfreeBlockMemoryArrayNull(scip, &(*consdata)->nlocalbndchgstreated, (*consdata)->maxlocalbndchgstreated);
2144 assert((*consdata)->origcons == NULL || GCGconsOrigbranchGetMastercons((*consdata)->origcons) == cons);
2150 SCIP_CALL( GCGrelaxBranchDataDelete(conshdlrdata->gcg, (*consdata)->branchrule, &(*consdata)->branchdata, FALSE, force) );
2215 isinprobing = (SCIPgetStage(scip) <= SCIP_STAGE_SOLVING && SCIPinProbing(scip)) || (SCIPgetStage(origscip) <= SCIP_STAGE_SOLVING && SCIPinProbing(origscip));
2253 SCIPdebugMessage("delete master: release %i cuts and free addedcuts\n", (*consdata)->naddedcuts);
2303 SCIPdebugMessage("Starting propagation of masterbranch constraint: <%s>, stack size = %d, newvars = %d, npendingbnds = %d, npropbounds = %d.\n",
2304 consdata->name, conshdlrdata->nstack, GCGmasterGetNPricedvars(conshdlrdata->gcg) - consdata->npropvars, conshdlrdata->npendingbnds, consdata->ncopiedvarbnds);
2319 SCIP_CALL( applyGlobalBndchgsToPricedMastervars(conshdlrdata->gcg, conshdlrdata, &propcount) );
2329 SCIP_CALL( applyLocalBndchgsToPricedMastervars(conshdlrdata->gcg, conshdlrdata, cons, &propcount) );
2331 /* apply local bound changes on original variables that have been directly copied to the master problem */
2338 SCIP_CALL( GCGrelaxBranchPropMaster(conshdlrdata->gcg, consdata->branchrule, consdata->branchdata, result) );
2391/** solving process initialization method of event handler (called when branch and bound process is about to begin) */
2404 SCIP_CALL( SCIPcatchVarEvent(scip, vars[i], SCIP_EVENTTYPE_GBDCHANGED | SCIP_EVENTTYPE_BOUNDCHANGED,
2458 SCIPdebugMessage("eventexec: eventtype = 0x%x, var = %s, oldbound = %f, newbound = %f\n", (unsigned int) eventtype, SCIPvarGetName(var), oldbound, newbound);
2460 if( GCGgetDecompositionMode(eventhdlrdata->gcg) != GCG_DECMODE_DANTZIGWOLFE || !GCGrelaxIsInitialized(eventhdlrdata->gcg) )
2485 && (((eventtype & SCIP_EVENTTYPE_GLBCHANGED) != 0 && SCIPisFeasLT(scip, SCIPgetRelaxSolVal(scip, var), newbound))
2486 || ((eventtype & SCIP_EVENTTYPE_GUBCHANGED) != 0 && SCIPisFeasGT(scip, SCIPgetRelaxSolVal(scip, var), newbound))) )
2500 SCIP_CALL( addPendingBndChg(masterscip, GCGoriginalVarGetPricingVar(var), SCIP_BOUNDTYPE_LOWER, oldbound, newbound) );
2507 SCIP_CALL( addPendingBndChg(masterscip, GCGoriginalVarGetPricingVar(var), SCIP_BOUNDTYPE_UPPER, oldbound, newbound) );
2523 SCIP_CALL( addPendingBndChg(masterscip, mastervars[0], SCIP_BOUNDTYPE_LOWER, oldbound, newbound) );
2530 SCIP_CALL( addPendingBndChg(masterscip, mastervars[0], SCIP_BOUNDTYPE_UPPER, oldbound, newbound) );
2555 SCIP_CALL( addPendingBndChg(masterscip, mastervars[0], SCIP_BOUNDTYPE_LOWER, oldbound, newbound) );
2565 SCIP_CALL( addPendingBndChg(masterscip, pricingvars[i], SCIP_BOUNDTYPE_LOWER, oldbound, newbound) );
2574 SCIP_CALL( addPendingBndChg(masterscip, mastervars[0], SCIP_BOUNDTYPE_UPPER, oldbound, newbound) );
2584 SCIP_CALL( addPendingBndChg(masterscip, pricingvars[i], SCIP_BOUNDTYPE_UPPER, oldbound, newbound) );
2663 "should propagated bound changes in the original be enforced in the master (only proper vars)?",
2704 SCIP_CALL( SCIPduplicateBlockMemoryArray(masterprob, &(consdata->name), name, strlen(name)+1) );
2722 SCIP_CALL( GCGvarhistoryCopyReference(masterprob, &consdata->knownvarhistory, GCGgetCurrentVarhistoryReference(gcg)) );
2754 SCIP_CALL( SCIPcreateCons(masterprob, cons, name, conshdlr, consdata, FALSE, FALSE, FALSE, FALSE, TRUE,
2783 SCIP_CALL( SCIPreallocBlockMemoryArray(masterprob, &(parentdata->childconss), parentdata->maxchildconss, newmaxsize) );
2874/** returns the origbranch constraint of the node in the original program corresponding to the node
2945/** adds a bound change on an original variable that was directly copied to the master problem */
2972 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(consdata->copiedvars), consdata->maxcopiedvarbnds, newsize) );
2973 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(consdata->copiedvarbndtypes), consdata->maxcopiedvarbnds, newsize) );
2974 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(consdata->copiedvarbnds), consdata->maxcopiedvarbnds, newsize) );
2978 SCIPdebugMessage("Bound change on copied original variable stored at masterbranch constraint: <%s>.\n", SCIPconsGetName(cons));
3005/** returns the number of constraints in the original problem that enforce the branching decision */
3046 SCIPfreeBlockMemoryArray(masterscip, &consdata->origbranchconss, consdata->maxorigbranchconss);
3158/** adjusts the firstnewcut bookkeeping of all active masterbranch nodes after a master separator
3219 if( branchrule == NULL || strcmp(SCIPbranchruleGetName(GCGbranchGetScipBranchrule(branchrule)), "generic") != 0 )
3259 assert(consdata->probingtmpcons == NULL || SCIPconsGetData(consdata->probingtmpcons)->parentcons == conss[i]);
3260 assert(consdata->origcons == NULL || GCGconsOrigbranchGetMastercons(consdata->origcons) == conss[i]);
branching rule based on vanderbeck's generic branching scheme
SCIP_BRANCHRULE * GCGbranchGetScipBranchrule(GCG_BRANCHRULE *branchrule)
Definition: branchgcg.c:102
static SCIP_RETCODE forwardUpdateSeenHistory(GCG *gcg, SCIP_CONSDATA *consdata)
Definition: cons_masterbranch.c:1689
SCIP_RETCODE GCGincludeConshdlrMasterbranch(GCG *gcg)
Definition: cons_masterbranch.c:2607
static SCIP_RETCODE undoLocalBndchgsToPricingprobs(GCG *gcg, SCIP_CONS *cons)
Definition: cons_masterbranch.c:1268
static SCIP_RETCODE initializeAddedCuts(GCG *gcg, SCIP_CONSDATA *consdata, SCIP_CONSHDLRDATA *conshdlrdata)
Definition: cons_masterbranch.c:321
void GCGconsMasterbranchSetBranchdata(SCIP_CONS *cons, GCG_BRANCHDATA *branchdata)
Definition: cons_masterbranch.c:2919
static SCIP_DECL_CONSCHECK(consCheckMasterbranch)
Definition: cons_masterbranch.c:2372
GCG_BRANCHRULE * GCGconsMasterbranchGetBranchrule(SCIP_CONS *cons)
Definition: cons_masterbranch.c:2933
static SCIP_RETCODE addMissedVariables(GCG *gcg, GCG_EXTENDEDMASTERCONSDATA *mastersepacut)
Definition: cons_masterbranch.c:173
static SCIP_DECL_CONSDELETE(consDeleteMasterbranch)
Definition: cons_masterbranch.c:2093
SCIP_CONS * GCGconsMasterbranchGetOrigcons(SCIP_CONS *cons)
Definition: cons_masterbranch.c:2877
SCIP_RETCODE GCGconsMasterbranchAddRootCons(GCG *gcg)
Definition: cons_masterbranch.c:3131
static SCIP_Bool checkAggregatedGlobalBounds(SCIP *scip, SCIP_VAR *bndvar, SCIP_BOUNDTYPE bndtype, SCIP_Real bound)
Definition: cons_masterbranch.c:673
static SCIP_RETCODE addPendingBndChg(SCIP *scip, SCIP_VAR *var, SCIP_BOUNDTYPE boundtype, SCIP_Real oldbound, SCIP_Real newbound)
Definition: cons_masterbranch.c:608
SCIP_CONS * GCGconsMasterbranchGetParentcons(SCIP_CONS *cons)
Definition: cons_masterbranch.c:2828
void GCGconsMasterbranchSetOrigcons(SCIP_CONS *cons, SCIP_CONS *origcons)
Definition: cons_masterbranch.c:2892
static SCIP_RETCODE applyLocalBndchgsToCopiedMastervars(GCG *gcg, SCIP_CONS *cons, int *propcount)
Definition: cons_masterbranch.c:1629
static SCIP_RETCODE applyLocalBndchgsToPricedMastervars(GCG *gcg, SCIP_CONSHDLRDATA *conshdlrdata, SCIP_CONS *cons, int *propcount)
Definition: cons_masterbranch.c:1376
static SCIP_DECL_CONSEXITSOL(consExitSolMasterbranch)
Definition: cons_masterbranch.c:1820
void GCGconsMasterbranchCheckConsistency(GCG *gcg)
Definition: cons_masterbranch.c:3226
int GCGconsMasterbranchGetNOrigbranchConss(SCIP_CONS *cons)
Definition: cons_masterbranch.c:3006
static SCIP_DECL_CONSINITSOL(consInitsolMasterbranch)
Definition: cons_masterbranch.c:1797
static SCIP_RETCODE ensureCollectedBndvarsSize(SCIP *scip, SCIP_CONSHDLRDATA *conshdlrdata, int blocknr, int minsize)
Definition: cons_masterbranch.c:1337
static SCIP_RETCODE ensureLinkingvarIndxsSize(SCIP *scip, SCIP_CONSHDLRDATA *conshdlrdata, int minsize)
Definition: cons_masterbranch.c:1357
static SCIP_RETCODE resetPricingVarBound(GCG *gcg, SCIP_VAR *pricingvar, SCIP_CONSDATA *consdata, int i, int blocknr)
Definition: cons_masterbranch.c:932
static SCIP_DECL_CONSPROP(consPropMasterbranch)
Definition: cons_masterbranch.c:2273
static SCIP_DECL_CONSLOCK(consLockMasterbranch)
Definition: cons_masterbranch.c:2381
GCG_BRANCHDATA * GCGconsMasterbranchGetBranchdata(SCIP_CONS *cons)
Definition: cons_masterbranch.c:2907
char * GCGconsMasterbranchGetName(SCIP_CONS *cons)
Definition: cons_masterbranch.c:2800
static SCIP_DECL_EVENTFREE(eventFreeOrigvarbound)
Definition: cons_masterbranch.c:2413
static SCIP_RETCODE applyLocalBndchgsToPricingprobs(GCG *gcg, SCIP_CONS *cons)
Definition: cons_masterbranch.c:1181
SCIP_CONS * GCGconsMasterbranchGetActiveCons(GCG *gcg)
Definition: cons_masterbranch.c:3056
static SCIP_RETCODE applyGlobalBndchgsToPricingprobs(GCG *gcg, SCIP_CONSHDLRDATA *conshdlrdata)
Definition: cons_masterbranch.c:718
static SCIP_DECL_CONSINIT(consInitMasterbranch)
Definition: cons_masterbranch.c:1751
SCIP_RETCODE GCGconsMasterbranchActiveCutRemoved(GCG *gcg, int removedidx)
Definition: cons_masterbranch.c:3161
int GCGconsMasterbranchGetNChildconss(SCIP_CONS *cons)
Definition: cons_masterbranch.c:2843
static SCIP_DECL_EVENTINITSOL(eventInitsolOrigvarbound)
Definition: cons_masterbranch.c:2393
static SCIP_RETCODE addStoredCutsToActiveCuts(GCG *gcg, SCIP_CONSDATA *consdata, SCIP_CONSHDLRDATA *conshdlrdata)
Definition: cons_masterbranch.c:269
int GCGconsMasterbranchGetNStackelements(GCG *gcg)
Definition: cons_masterbranch.c:3110
static SCIP_DECL_CONSENFOPS(consEnfopsMasterbranch)
Definition: cons_masterbranch.c:2363
static SCIP_DECL_CONSEXIT(consExitMasterbranch)
Definition: cons_masterbranch.c:1863
static SCIP_Bool checkAggregatedLocalBounds(SCIP *scip, SCIP_VAR **bndvars, SCIP_Real *bounds, int nbndvars, SCIP_VAR *bndvar, SCIP_BOUNDTYPE bndtype, SCIP_VAR *pricingvar)
Definition: cons_masterbranch.c:1076
SCIP_Bool GCGcurrentNodeIsGeneric(GCG *gcg)
Definition: cons_masterbranch.c:3202
SCIP_CONS * GCGconsMasterbranchGetChildcons(SCIP_CONS *cons, int childnr)
Definition: cons_masterbranch.c:2858
static SCIP_RETCODE removeStoredCutsFromActiveCuts(GCG *gcg, SCIP_CONSDATA *consdata, SCIP_CONSHDLRDATA *conshdlrdata)
Definition: cons_masterbranch.c:253
static SCIP_DECL_EVENTEXEC(eventExecOrigvarbound)
Definition: cons_masterbranch.c:2427
static SCIP_DECL_CONSFREE(consFreeMasterbranch)
Definition: cons_masterbranch.c:1730
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)
Definition: cons_masterbranch.c:2670
static SCIP_RETCODE initializeConsdata(GCG *gcg, SCIP_CONS *cons)
Definition: cons_masterbranch.c:385
static SCIP_DECL_CONSDEACTIVE(consDeactiveMasterbranch)
Definition: cons_masterbranch.c:2028
static SCIP_RETCODE tightenPricingVarBound(GCG *gcg, SCIP_VAR *pricingvar, SCIP_CONSDATA *consdata, int i, int blocknr)
Definition: cons_masterbranch.c:1015
void GCGconsMasterbranchGetStack(GCG *gcg, SCIP_CONS ***stack, int *nstackelements)
Definition: cons_masterbranch.c:3086
static SCIP_RETCODE applyGlobalBndchgsToPricedMastervars(GCG *gcg, SCIP_CONSHDLRDATA *conshdlrdata, int *propcount)
Definition: cons_masterbranch.c:796
static SCIP_DECL_CONSACTIVE(consActiveMasterbranch)
Definition: cons_masterbranch.c:1914
static SCIP_DECL_CONSENFOLP(consEnfolpMasterbranch)
Definition: cons_masterbranch.c:2354
SCIP_RETCODE GCGconsMasterbranchAddCopiedVarBndchg(GCG *gcg, SCIP_CONS *cons, SCIP_VAR *var, GCG_BOUNDTYPE boundtype, SCIP_Real newbound)
Definition: cons_masterbranch.c:2946
SCIP_NODE * GCGconsMasterbranchGetNode(SCIP_CONS *cons)
Definition: cons_masterbranch.c:2813
SCIP_CONS ** GCGconsMasterbranchGetOrigbranchConss(SCIP_CONS *cons)
Definition: cons_masterbranch.c:2993
SCIP_RETCODE GCGconsMasterbranchReleaseOrigbranchConss(GCG *gcg, SCIP_CONS *cons)
Definition: cons_masterbranch.c:3021
constraint handler for storing the branching decisions at each node of the tree
int GCGconsOrigbranchGetNChildconss(SCIP_CONS *cons)
Definition: cons_origbranch.c:652
SCIP_CONS * GCGconsOrigbranchGetParentcons(SCIP_CONS *cons)
Definition: cons_origbranch.c:635
SCIP_CONS * GCGconsOrigbranchGetMastercons(SCIP_CONS *cons)
Definition: cons_origbranch.c:702
SCIP_NODE * GCGconsOrigbranchGetNode(SCIP_CONS *cons)
Definition: cons_origbranch.c:619
void GCGconsOrigbranchSetBranchdata(SCIP_CONS *cons, GCG_BRANCHDATA *branchdata)
Definition: cons_origbranch.c:578
SCIP_CONS * GCGconsOrigbranchGetActiveCons(GCG *gcg)
Definition: cons_origbranch.c:532
void GCGconsOrigbranchSetMastercons(SCIP_CONS *cons, SCIP_CONS *mastercons)
Definition: cons_origbranch.c:685
constraint handler for storing the branching decisions at each node of the tree
#define SCIP_INVALID
#define SCIP_Bool
#define SCIP_Real
#define SCIPABORT()
#define SCIP_CALL(x)
#define TRUE
#define FALSE
SCIP_RETCODE GCGaddActiveMastersepacut(GCG *gcg, GCG_EXTENDEDMASTERCONSDATA *mastersepacut)
Definition: event_mastersepacut.c:774
SCIP_RETCODE GCGremoveNewInactiveMastersepacuts(GCG *gcg, int startidx)
Definition: event_mastersepacut.c:608
SCIP_RETCODE GCGclearGeneratedMastersepacuts(GCG *gcg)
Definition: event_mastersepacut.c:531
int GCGgetNActiveMastersepacuts(GCG *gcg)
Definition: event_mastersepacut.c:741
SCIP_RETCODE GCGshrinkActiveMastersepacuts(GCG *gcg, int newnrows)
Definition: event_mastersepacut.c:680
GCG_EXTENDEDMASTERCONSDATA ** GCGgetActiveMastersepacuts(GCG *gcg)
Definition: event_mastersepacut.c:712
event handler which manages the active master separator cuts
SCIP_ROW * GCGextendedmasterconsGetRow(GCG_EXTENDEDMASTERCONSDATA *extendedmasterconsdata)
Definition: extendedmasterconsdata.c:411
GCG interface methods.
SCIP_VAR ** GCGlinkingVarGetPricingVars(SCIP_VAR *var)
Definition: gcgvar.c:488
SCIP_VAR ** GCGoriginalVarGetMastervars(SCIP_VAR *var)
Definition: gcgvar.c:666
SCIP_VAR ** GCGpricingVarGetOrigvars(SCIP_VAR *var)
Definition: gcgvar.c:1100
SCIP_Real * GCGoriginalVarGetMastervals(SCIP_VAR *var)
Definition: gcgvar.c:684
SCIP_VAR * GCGoriginalVarGetPricingVar(SCIP_VAR *var)
Definition: gcgvar.c:281
SCIP_Bool GCGisLinkingVarInBlock(SCIP_VAR *var, int block)
Definition: gcgvar.c:1149
SCIP_HASHMAP * GCGmasterVarGetOrigvalmap(SCIP_VAR *var)
Definition: gcgvar.c:1064
SCIP_RETCODE GCGvarhistoryFreeReference(SCIP *scip, GCG_VARHISTORY **pointer)
Definition: gcgvarhistory.c:358
SCIP_RETCODE GCGvarhistoryNext(SCIP *scip, GCG_VARHISTORY **pointer)
Definition: gcgvarhistory.c:125
SCIP_RETCODE GCGvarhistoryJumpToLatest(SCIP *scip, GCG_VARHISTORY *pointer)
Definition: gcgvarhistory.c:180
SCIP_RETCODE GCGvarhistoryGetVar(GCG_VARHISTORY *pointer, SCIP_VAR **var)
Definition: gcgvarhistory.c:72
SCIP_RETCODE GCGvarhistoryCopyReference(SCIP *scip, GCG_VARHISTORY **pointer, GCG_VARHISTORY *source)
Definition: gcgvarhistory.c:337
SCIP_Bool GCGvarhistoryHasNext(GCG_VARHISTORY *pointer)
Definition: gcgvarhistory.c:96
methods for managing variable history
GCG_VARHISTORY * GCGgetCurrentVarhistoryReference(GCG *gcg)
Definition: pricer_gcg.cpp:6800
SCIP_RETCODE GCGcolpoolPropagateGlobalBounds(GCG_COLPOOL *colpool)
Definition: colpool.c:486
GCG_EXPORT SCIP * GCGgetPricingprob(GCG *gcg, int pricingprobnr)
Definition: relax_gcg.c:4075
GCG_EXPORT SCIP_Bool GCGrelaxIsInitialized(GCG *gcg)
Definition: relax_gcg.c:5145
GCG_EXPORT int GCGgetNIdenticalBlocks(GCG *gcg, int pricingprobnr)
Definition: relax_gcg.c:4185
GCG_EXPORT GCG_DECMODE GCGgetDecompositionMode(GCG *gcg)
Definition: relax_gcg.c:5294
GCG_EXPORT SCIP_Bool GCGisPricingprobRelevant(GCG *gcg, int pricingprobnr)
Definition: relax_gcg.c:4132
SCIP_Bool SCIPisTransformed(SCIP *scip)
SCIP_STAGE SCIPgetStage(SCIP *scip)
int SCIPgetNVars(SCIP *scip)
SCIP_VAR ** SCIPgetVars(SCIP *scip)
void SCIPhashmapFree(SCIP_HASHMAP **hashmap)
SCIP_Real SCIPhashmapGetImageReal(SCIP_HASHMAP *hashmap, void *origin)
int SCIPhashmapGetImageInt(SCIP_HASHMAP *hashmap, void *origin)
SCIP_RETCODE SCIPhashmapCreate(SCIP_HASHMAP **hashmap, BMS_BLKMEM *blkmem, int mapsize)
SCIP_RETCODE SCIPhashmapInsertInt(SCIP_HASHMAP *hashmap, void *origin, int image)
SCIP_RETCODE SCIPhashmapRemoveAll(SCIP_HASHMAP *hashmap)
SCIP_RETCODE SCIPaddConsNode(SCIP *scip, SCIP_NODE *node, SCIP_CONS *cons, SCIP_NODE *validnode)
void SCIPwarningMessage(SCIP *scip, const char *formatstr,...)
SCIP_RETCODE SCIPaddBoolParam(SCIP *scip, const char *name, const char *desc, SCIP_Bool *valueptr, SCIP_Bool isadvanced, SCIP_Bool defaultvalue, SCIP_DECL_PARAMCHGD((*paramchgd)), SCIP_PARAMDATA *paramdata)
const char * SCIPbranchruleGetName(SCIP_BRANCHRULE *branchrule)
SCIP_RETCODE SCIPsetConshdlrInit(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSINIT((*consinit)))
SCIP_RETCODE SCIPsetConshdlrProp(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSPROP((*consprop)), int propfreq, SCIP_Bool delayprop, SCIP_PROPTIMING proptiming)
SCIP_RETCODE SCIPincludeConshdlrBasic(SCIP *scip, SCIP_CONSHDLR **conshdlrptr, const char *name, const char *desc, int enfopriority, int chckpriority, int eagerfreq, SCIP_Bool needscons, SCIP_DECL_CONSENFOLP((*consenfolp)), SCIP_DECL_CONSENFOPS((*consenfops)), SCIP_DECL_CONSCHECK((*conscheck)), SCIP_DECL_CONSLOCK((*conslock)), SCIP_CONSHDLRDATA *conshdlrdata)
SCIP_RETCODE SCIPsetConshdlrDeactive(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSDEACTIVE((*consdeactive)))
SCIP_RETCODE SCIPsetConshdlrDelete(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSDELETE((*consdelete)))
SCIP_RETCODE SCIPsetConshdlrFree(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSFREE((*consfree)))
int SCIPconshdlrGetNConss(SCIP_CONSHDLR *conshdlr)
const char * SCIPconshdlrGetName(SCIP_CONSHDLR *conshdlr)
SCIP_RETCODE SCIPsetConshdlrExit(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSEXIT((*consexit)))
SCIP_CONSHDLR * SCIPfindConshdlr(SCIP *scip, const char *name)
SCIP_RETCODE SCIPsetConshdlrExitsol(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSEXITSOL((*consexitsol)))
SCIP_RETCODE SCIPsetConshdlrInitsol(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSINITSOL((*consinitsol)))
SCIP_CONSHDLRDATA * SCIPconshdlrGetData(SCIP_CONSHDLR *conshdlr)
SCIP_CONS ** SCIPconshdlrGetConss(SCIP_CONSHDLR *conshdlr)
SCIP_RETCODE SCIPsetConshdlrActive(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSACTIVE((*consactive)))
SCIP_CONSDATA * SCIPconsGetData(SCIP_CONS *cons)
SCIP_CONSHDLR * SCIPconsGetHdlr(SCIP_CONS *cons)
SCIP_RETCODE SCIPcreateCons(SCIP *scip, SCIP_CONS **cons, const char *name, SCIP_CONSHDLR *conshdlr, SCIP_CONSDATA *consdata, SCIP_Bool initial, SCIP_Bool separate, SCIP_Bool enforce, SCIP_Bool check, SCIP_Bool propagate, SCIP_Bool local, SCIP_Bool modifiable, SCIP_Bool dynamic, SCIP_Bool removable, SCIP_Bool stickingatnode)
const char * SCIPconsGetName(SCIP_CONS *cons)
SCIP_RETCODE SCIPreleaseCons(SCIP *scip, SCIP_CONS **cons)
SCIP_RETCODE SCIPsetEventhdlrInitsol(SCIP *scip, SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTINITSOL((*eventinitsol)))
SCIP_RETCODE SCIPincludeEventhdlrBasic(SCIP *scip, SCIP_EVENTHDLR **eventhdlrptr, const char *name, const char *desc, SCIP_DECL_EVENTEXEC((*eventexec)), SCIP_EVENTHDLRDATA *eventhdlrdata)
SCIP_EVENTHDLRDATA * SCIPeventhdlrGetData(SCIP_EVENTHDLR *eventhdlr)
SCIP_RETCODE SCIPsetEventhdlrFree(SCIP *scip, SCIP_EVENTHDLR *eventhdlr, SCIP_DECL_EVENTFREE((*eventfree)))
SCIP_EVENTTYPE SCIPeventGetType(SCIP_EVENT *event)
SCIP_RETCODE SCIPcatchVarEvent(SCIP *scip, SCIP_VAR *var, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int *filterpos)
SCIP_Real SCIPeventGetOldbound(SCIP_EVENT *event)
SCIP_VAR * SCIPeventGetVar(SCIP_EVENT *event)
SCIP_Real SCIPeventGetNewbound(SCIP_EVENT *event)
#define SCIPfreeBlockMemoryArray(scip, ptr, num)
BMS_BLKMEM * SCIPblkmem(SCIP *scip)
int SCIPcalcMemGrowSize(SCIP *scip, int num)
#define SCIPallocBufferArray(scip, ptr, num)
#define SCIPallocMemory(scip, ptr)
#define SCIPfreeBufferArray(scip, ptr)
#define SCIPfreeMemory(scip, ptr)
#define SCIPallocBlockMemoryArray(scip, ptr, num)
#define SCIPreallocBlockMemoryArray(scip, ptr, oldnum, newnum)
#define SCIPfreeBlockMemory(scip, ptr)
#define SCIPfreeBlockMemoryArrayNull(scip, ptr, num)
#define SCIPfreeBlockMemoryNull(scip, ptr)
#define SCIPfreeBufferArrayNull(scip, ptr)
#define SCIPallocBlockMemory(scip, ptr)
#define SCIPduplicateBlockMemoryArray(scip, ptr, source, num)
SCIP_NODETYPE SCIPnodeGetType(SCIP_NODE *node)
SCIP_DOMCHG * SCIPnodeGetDomchg(SCIP_NODE *node)
SCIP_Longint SCIPnodeGetNumber(SCIP_NODE *node)
int SCIPnodeGetDepth(SCIP_NODE *node)
SCIP_Bool SCIPinProbing(SCIP *scip)
SCIP_RETCODE SCIPaddVarToRow(SCIP *scip, SCIP_ROW *row, SCIP_VAR *var, SCIP_Real val)
const char * SCIProwGetName(SCIP_ROW *row)
SCIP_Longint SCIPgetNNodes(SCIP *scip)
SCIP_Bool SCIPisGE(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisLE(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisFeasZero(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisFeasLT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisGT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisFeasGT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisEQ(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisZero(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisLT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_RETCODE SCIPrepropagateNode(SCIP *scip, SCIP_NODE *node)
SCIP_NODE * SCIPgetCurrentNode(SCIP *scip)
SCIP_NODE * SCIPgetRootNode(SCIP *scip)
SCIP_Bool SCIPvarIsDeleted(SCIP_VAR *var)
SCIP_BOUNDTYPE SCIPboundchgGetBoundtype(SCIP_BOUNDCHG *boundchg)
SCIP_VAR * SCIPboundchgGetVar(SCIP_BOUNDCHG *boundchg)
SCIP_RETCODE SCIPchgVarLb(SCIP *scip, SCIP_VAR *var, SCIP_Real newbound)
SCIP_BOUNDCHG * SCIPdomchgGetBoundchg(SCIP_DOMCHG *domchg, int pos)
SCIP_BOUNDCHGTYPE SCIPboundchgGetBoundchgtype(SCIP_BOUNDCHG *boundchg)
SCIP_Real SCIPvarGetUbLocal(SCIP_VAR *var)
SCIP_Real SCIPboundchgGetNewbound(SCIP_BOUNDCHG *boundchg)
SCIP_RETCODE SCIPchgVarUb(SCIP *scip, SCIP_VAR *var, SCIP_Real newbound)
SCIP_Real SCIPvarGetUbGlobal(SCIP_VAR *var)
int SCIPdomchgGetNBoundchgs(SCIP_DOMCHG *domchg)
const char * SCIPvarGetName(SCIP_VAR *var)
SCIP_RETCODE SCIPchgVarLbGlobal(SCIP *scip, SCIP_VAR *var, SCIP_Real newbound)
SCIP_Real SCIPgetRelaxSolVal(SCIP *scip, SCIP_VAR *var)
SCIP_Bool SCIPisRelaxSolValid(SCIP *scip)
SCIP_Real SCIPvarGetLbLocal(SCIP_VAR *var)
SCIP_RETCODE SCIPchgVarUbGlobal(SCIP *scip, SCIP_VAR *var, SCIP_Real newbound)
SCIP_Real SCIPvarGetLbGlobal(SCIP_VAR *var)
SCIP_RETCODE SCIPmarkRelaxSolInvalid(SCIP *scip)
#define NULL
SCIP_RETCODE GCGmastersepacutGetExtendedmasterconsCoeff(GCG *gcg, GCG_EXTENDEDMASTERCONSDATA *mastersepacut, SCIP_VAR **solvars, SCIP_Real *solvals, int nsolvars, int probnr, GCG_COL *gcgcol, SCIP_Real *coef)
Definition: mastersepacut.c:226
SCIP_RETCODE GCGcaptureMastersepacut(GCG_EXTENDEDMASTERCONSDATA *mastersepacut)
Definition: mastersepacut.c:86
GCG_MASTERSEPACUT * GCGextendedmasterconsGetMastersepacut(GCG_EXTENDEDMASTERCONSDATA *extendedmasterconsdata)
Definition: mastersepacut.c:198
GCG_VARHISTORY * GCGmastersepacutGetVarHistory(GCG_MASTERSEPACUT *mastersepacut)
Definition: mastersepacut.c:151
SCIP_RETCODE GCGreleaseMastersepacut(GCG *gcg, GCG_EXTENDEDMASTERCONSDATA **mastersepacut)
Definition: mastersepacut.c:102
#define BMSclearMemoryArray(ptr, num)
Definition: class_conspartition.cpp:44
GCG variable pricer.
public methods for storing cols in a col pool
#define SCIPerrorMessage
#define SCIPdebugMessage
#define SCIPdebugPrintf
SCIP_RETCODE GCGrelaxBranchActiveMaster(GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata)
Definition: relax_gcg.c:3781
SCIP_RETCODE GCGrelaxBranchPropMaster(GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata, SCIP_RESULT *result)
Definition: relax_gcg.c:3837
SCIP_RETCODE GCGrelaxBranchNewCol(GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata, SCIP_VAR *mastervar)
Definition: relax_gcg.c:3885
SCIP_RETCODE GCGrelaxBranchDataDelete(GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA **branchdata, SCIP_Bool origbranch, SCIP_Bool force)
Definition: relax_gcg.c:3858
SCIP_RETCODE GCGinitializeMasterProblemSolve(GCG *gcg)
Definition: relax_gcg.c:5686
SCIP_RETCODE GCGrelaxBranchDeactiveMaster(GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_BRANCHDATA *branchdata)
Definition: relax_gcg.c:3809
GCG relaxator.
Definition: branch_bpstrong.c:110
Definition: struct_branchgcg.h:56
Definition: struct_gcgvarhistory.h:58
Definition: struct_gcg.h:55
Definition: cons_masterbranch.c:75
GCG_BOUNDTYPE * copiedvarbndtypes
Definition: cons_masterbranch.c:113
Definition: cons_decomp.cpp:124
SCIP_BOUNDTYPE * pendingbndtypes
Definition: cons_masterbranch.c:142
SCIP_Bool pendingbndsactivated
Definition: cons_masterbranch.c:147
Definition: branch_generic.c:112
#define SCIP_EVENTTYPE_BOUNDCHANGED
#define SCIP_EVENTTYPE_GUBCHANGED
#define SCIP_EVENTTYPE_GBDCHANGED
#define SCIP_EVENTTYPE_GLBCHANGED
uint64_t SCIP_EVENTTYPE
SCIP_BOUNDTYPE_UPPER
SCIP_BOUNDTYPE_LOWER
enum SCIP_BoundType SCIP_BOUNDTYPE
SCIP_DIDNOTRUN
SCIP_CUTOFF
SCIP_FEASIBLE
SCIP_REDUCEDDOM
SCIP_DIDNOTFIND
SCIP_PLUGINNOTFOUND
SCIP_OKAY
enum SCIP_Retcode SCIP_RETCODE
SCIP_STAGE_TRANSFORMED
SCIP_STAGE_SOLVING
SCIP_NODETYPE_FORK
SCIP_NODETYPE_PSEUDOFORK
SCIP_NODETYPE_SUBROOT
SCIP_NODETYPE_FOCUSNODE
SCIP_BOUNDCHGTYPE_BRANCHING