Loading...
Searching...
No Matches
branch_generic.c
Go to the documentation of this file.
37/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
80#define EVENTHDLR_DESC "event handler for adding a new generated mastervar into the right branching constraints by using Vanderbecks generic branching scheme"
85 GCG_COMPSEQUENCE** C; /**< S[k] bound sequence for block k */ /* !!! sort of each C[i] = S is important !!! */
87 SCIP_CONS* mastercons; /**< constraint enforcing the branching restriction in the master problem */
88 GCG_COMPSEQUENCE* consS; /**< component bound sequence which induce the current branching constraint */
91 int consblocknr; /**< id of the pricing problem (or block) to which this branching constraint belongs */
166 if( probnr == -1 || GCGbranchGenericBranchdataGetConsblocknr(branchdata) == -3 || probnr != GCGbranchGenericBranchdataGetConsblocknr(branchdata) )
175 generatorentry = getGeneratorEntry(mastervar, GCGbranchGenericBranchdataGetConsS(branchdata)[p].component);
244 SCIP_CALL( SCIPaddCoefLinear(masterprob, GCGbranchGenericBranchdataGetMastercons(branchdata), mastervar, coef) );
266 (void) SCIPsnprintf(name, SCIP_MAXSTRLEN, "directchild(%d, %g) sense = %d", branchdata->consSsize, branchdata->consS[0].bound, branchdata->consS[0].sense);
271 SCIP_CALL( SCIPcreateConsLinear(scip, &(branchdata->mastercons), name, 0, NULL, NULL, branchdata->consS[0].bound, SCIPinfinity(scip), TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, TRUE) );
274 SCIP_CALL( SCIPcreateConsLinear(scip, &(branchdata->mastercons), name, 0, NULL, NULL, -SCIPinfinity(scip), branchdata->consS[0].bound-1, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE, TRUE) );
277 SCIP_CALL( SCIPaddCoefLinear(scip, branchdata->mastercons, branchdata->consS[0].component, 1.0) );
301 (void) SCIPsnprintf(name, SCIP_MAXSTRLEN, "child(%d, %g)", branchdata->consSsize, branchdata->lhs);
322/** solving process initialization method of event handler (called when branch and bound process is about to begin) */
336/** solving process deinitialization method of event handler (called before branch and bound process data is freed) */
418 && GCGbranchGenericBranchdataGetConsS(branchdata) != NULL && GCGbranchGenericBranchdataGetConsSsize(branchdata) > 0 )
420 if( GCGconsMasterbranchGetBranchrule(parentcons) == NULL || strcmp(SCIPbranchruleGetName(GCGbranchGetScipBranchrule(GCGconsMasterbranchGetBranchrule(parentcons))), "generic") != 0 )
426 if( (GCGbranchGenericBranchdataGetConsblocknr(branchdata) != GCGvarGetBlock(mastervar) && GCGvarGetBlock(mastervar) != -1 )
644 if( SCIPisFeasGT(origprob, getGeneratorEntry(mastervar1, origvars[i]), getGeneratorEntry(mastervar2, origvars[i])) )
647 if( SCIPisFeasLT(origprob, getGeneratorEntry(mastervar1, origvars[i]), getGeneratorEntry(mastervar2, origvars[i])) )
759 if( SCIPisGE(scip, getGeneratorEntry(mastervar1, origvar), ivalue) && SCIPisGE(scip, getGeneratorEntry(mastervar2, origvar), ivalue) )
804 if( SCIPisLT(scip, getGeneratorEntry(mastervar1, origvar), ivalue) && SCIPisLT(scip, getGeneratorEntry(mastervar2, origvar), ivalue) )
849 if( SCIPisGT(scip, getGeneratorEntry(mastervar1, origvar), getGeneratorEntry(mastervar2, origvar)) )
917 SCIP_VAR** origvar, /**< pointer to store the variable which belongs to a discriminating component with maximum priority */
1001 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(record->sequencesizes), record->recordcapacity, i) );
1002 SCIP_CALL( SCIPreallocBlockMemoryArray(scip, &(record->capacities), record->recordcapacity, i) );
1008 SCIP_CALL( SCIPallocBlockMemoryArray(scip, &(record->record[record->recordsize]), i) ); /*lint !e866*/
1088 SCIPdebugPrintf("Fsize = %d; Ssize = %d, IndexSetSize = %d, nuF=%.6g \n", Fsize, Ssize, IndexSetSize, muF);
1168 SCIPdebugMessage("new median is %g, comp=%s, Ssize=%d\n", median, SCIPvarGetName(origvar), Ssize);
1296 SCIP_CALL( Separate(origprob, masterprob, copyF, Flower, J, Jsize, upperLowerS, Ssize+1, record) );
1400/** updates the new set of sequences C in CopyC and the corresponding size array newsequencesizes
1475 SCIP_VAR** IndexSet, /**< array of original variables which belong to the fractional master columns */
1476 int IndexSetSize, /**< number of original variables which belong to fractional master columns. Note that IndexSetSize >= Fsize */
1517 SCIPdebugMessage("with Fsize = %d, Csize = %d, Ssize = %d, p = %d\n", Fsize, Csize, *Ssize, p);
1528 SCIP_CALL( Separate(origprob, masterprob, F, Fsize, IndexSet, IndexSetSize, *S, *Ssize, record) );
1558 SCIP_CALL( Separate(origprob, masterprob, F, Fsize, IndexSet, IndexSetSize, *S, *Ssize, record) );
1706 k = computeNewSequence(Csize, p, origvar, sequencesizes, C, CopyC, newsequencesizes, GCG_COMPSENSE_GE);
1718 SCIP_CALL( Explore( origprob, masterprob, CopyC, Cupper, newsequencesizes, p+1, copyF, Fupper, IndexSet, IndexSetSize, S, Ssize, record) );
1742 k = computeNewSequence(Csize, p, origvar, sequencesizes, C, CopyC, newsequencesizes, GCG_COMPSENSE_LT);
1754 SCIP_CALL( Explore( origprob, masterprob, CopyC, Clower, newsequencesizes, p+1, copyF, Flower, IndexSet, IndexSetSize, &lowerS, &lowerSsize, record) );
1797 bound = (int) (SCIPceil( origprob, SCIPgetSolVal(masterscip, NULL, mastervar)) + 0.5); /*lint -e524*/
1804 SCIP_CALL( SCIPallocBlockMemoryArray(origprob, &(branchupchilddata->consS), branchupchilddata->maxconsS) ); /*lint !e506*/
1808 SCIP_CALL( SCIPallocBlockMemoryArray(origprob, &(branchdownchilddata->consS), branchdownchilddata->maxconsS) ); /*lint !e506*/
1823 (void) SCIPsnprintf(upchildname, SCIP_MAXSTRLEN, "node(-3, %f) direct up on comp=%s", branchupchilddata->consS[0].bound,
1825 (void) SCIPsnprintf(downchildname, SCIP_MAXSTRLEN, "node(-3, %f) direct up on comp=%s", branchdownchilddata->consS[0].bound,
1828 SCIP_CALL( SCIPcreateChild(masterscip, &upchild, 0.0, SCIPgetLocalTransEstimate(masterscip)) );
1833 SCIP_CALL( SCIPcreateChild(masterscip, &downchild, 0.0, SCIPgetLocalTransEstimate(masterscip)) );
1911 SCIP_CALL( Separate(origprob, masterprob, F, Fsize, IndexSet, IndexSetSize, NULL, 0, record) );
1915 SCIP_CALL( Explore(origprob, masterprob, C, Csize, CompSizes, 1, F, Fsize, IndexSet, IndexSetSize, &exploreS, &exploreSsize, record) );
1969 SCIP_CALL( SCIPallocBufferArray(origprob, &((*checkedblockssortstrips)[(*ncheckedblocks)-1]), nstrips) ); /*lint !e866*/
1977 SCIP_CALL( SCIPallocBuffer(origprob, &((*checkedblockssortstrips)[(*ncheckedblocks)-1][i])) ); /*lint !e866*/
1990 SCIP_CALL( initBranch(gcg, branchrule, result, checkedblocks, ncheckedblocks, checkedblockssortstrips, checkedblocksnsortstrips) );
2060 SCIPdebugMessage("branchDataDeleteGeneric: child blocknr %d, %s\n", (*branchdata)->consblocknr,
2065 SCIPdebugMessage("branchDataDeleteGeneric: child blocknr %d, empty mastercons\n", (*branchdata)->consblocknr);
2118 if( GCGconsMasterbranchGetBranchrule(childcons) != NULL && strcmp(SCIPbranchruleGetName(GCGbranchGetScipBranchrule(GCGconsMasterbranchGetBranchrule(childcons))), "generic") != 0 )
2124 if( childBlocknr != branchdata->consblocknr || childSsize != branchdata->consSsize || !SCIPisEQ(scip, lhs, branchdata->lhs) )
2182 if( strcmp(SCIPbranchruleGetName(GCGbranchGetScipBranchrule(GCGconsMasterbranchGetBranchrule(cons))), "generic") != 0 )
2242 SCIPdebugMessage("Vanderbeck branching rule Node creation for blocknr %d with %.1f identical blocks \n", blocknr, pL);
2251 SCIP_CALL( SCIPgetLPBranchCands(masterprob, &branchcands, NULL, NULL, &nbranchcands, NULL, NULL) );
2271 SCIP_CALL( SCIPallocBlockMemoryArray(origprob, &(branchchilddata->consS), branchchilddata->maxconsS) );
2277 SCIP_CALL( SCIPallocBlockMemoryArray(origprob, &(branchchilddata->consS), branchchilddata->maxconsS) );
2374 if( masterbranchcons == NULL || !pruneChildNodeByDominanceGeneric(origprob, lhs, branchchilddata->consS, branchchilddata->consSsize, masterbranchcons, blocknr) )
2384 (void) SCIPsnprintf(childname, SCIP_MAXSTRLEN, "node(%d, %d) (last comp=%s %s %g) >= %g", blocknr, p+1,
2541 if( GCGisMasterSetCovering(branchruledata->gcg) || GCGisMasterSetPartitioning(branchruledata->gcg) )
2543 SCIPdebugMessage("Generic branching executed on a set covering or set partitioning problem\n");
2562 SCIP_CALL( initBranch(branchruledata->gcg, branchruledata->gcgbranchrule, result, &checkedblocks, &ncheckedblocks, &checkedblockssortstrips, &checkedblocksnsortstrips) );
2624 SCIP_CALL( SCIPgetLPBranchCands(masterprob, &branchcands, NULL, NULL, &nbranchcands, NULL, NULL) );
2679 assert(i <= nbranchcands); /* else all blocks has been checked and we can observe an integer solution */
2681 /* in case of continuous origvar look for "fractional" blocks using the representation (currentorigsol) in the original problem */
2705 if( SCIPisIntegral(origprob, SCIPgetSolVal(origprob, GCGrelaxGetCurrentOrigSol(gcg), origvar)) )
2710 SCIPdebugMessage("Variable %s belonging to block %d with representative %d is not integral!\n", SCIPvarGetName(origvar), GCGvarGetBlock(origvar), blocknr);
2796 && strcmp(SCIPbranchruleGetName(GCGbranchGetScipBranchrule(GCGconsMasterbranchGetBranchrule(parentcons))), "generic") == 0)
2842 if( branchdata->consS[i].component != C[c][i].component || branchdata->consS[i].sense != C[c][i].sense || !SCIPisEQ(origprob, branchdata->consS[i].bound, C[c][i].bound) )
2859 SCIP_CALL( SCIPallocBufferArray(origprob, &(C[Csize-1]), branchdata->consSsize) ); /*lint !e866*/
2888 SCIP_CALL( ChooseSeparateMethod(gcg, F, Fsize, &S, &Ssize, C, Csize, sequencesizes, blocknr, branchrule, result, checkedblocks,
2895 SCIP_CALL( ChooseSeparateMethod(gcg, F, Fsize, &S, &Ssize, NULL, 0, NULL, blocknr, branchrule, result,
2918 SCIP_CALL( ChooseSeparateMethod(gcg, F, Fsize, &S, &Ssize, NULL, 0, NULL, blocknr, branchrule, result, checkedblocks,
2925 SCIP_CALL( createChildNodesGeneric(gcg, branchrule, S, Ssize, blocknr, masterbranchcons, result) );
2962 SCIPwarningMessage(scip, "No branching could be created, solving process cannot be restarted...\n" );
2971 SCIPdialogMessage(scip, NULL, "You can try to disable discretization and aggregation and resolve the problem.\n");
3025 SCIP_CALL( GCGrelaxIncludeBranchrule(branchruledata->gcg, &branchrule, &gcgbranchrule, BRANCHRULE_NAME,
3026 BRANCHRULE_DESC, BRANCHRULE_PRIORITY, BRANCHRULE_MAXDEPTH, BRANCHRULE_MAXBOUNDDIST, branchruledata, NULL,
3027 NULL, branchPropMasterGeneric, NULL, branchDataDeleteGeneric, branchNewColGeneric, NULL, NULL) );
3089 return (branchrule != NULL) && (strcmp(BRANCHRULE_NAME, SCIPbranchruleGetName(GCGbranchGetScipBranchrule(branchrule))) == 0);
SCIP_DECL_EVENTEXEC(EventhdlrNewSol::scip_exec)
SCIP_DECL_EVENTINITSOL(EventhdlrNewSol::scip_initsol)
SCIP_DECL_EVENTEXITSOL(EventhdlrNewSol::scip_exitsol)
SCIP_DECL_EVENTFREE(EventhdlrNewSol::scip_free)
SCIP_RETCODE SCIPincludeBranchruleAllfullstrong(SCIP *scip)
static SCIP_DECL_BRANCHFREE(branchFreeBPStrong)
Definition branch_bpstrong.c:1489
static SCIP_DECL_BRANCHINIT(branchInitBPStrong)
Definition branch_bpstrong.c:1527
static SCIP_RETCODE initBranch(GCG *gcg, GCG_BRANCHRULE *branchrule, SCIP_RESULT *result)
Definition branch_compbnd.c:1673
static SCIP_RETCODE addVarToMasterbranch(GCG *gcg, SCIP_VAR *mastervar, GCG_BRANCHDATA *branchdata)
Definition branch_compbnd.c:367
static SCIP_DECL_BRANCHEXECLP(branchExeclpCompBnd)
Definition branch_compbnd.c:1838
static SCIP_DECL_BRANCHEXECEXT(branchExecextCompBnd)
Definition branch_compbnd.c:1892
static SCIP_DECL_BRANCHEXECPS(branchExecpsCompBnd)
Definition branch_compbnd.c:1908
static SCIP_RETCODE createBranchingCons(GCG *gcg, GCG_BRANCHRULE *branchrule, SCIP_NODE *node, GCG_BRANCHDATA *branchdata)
Definition branch_compbnd.c:427
static SCIP_RETCODE initNodeBranchdata(SCIP *scip, GCG_BRANCHDATA **nodebranchdata, GCG_BRANCH_TYPE branchtype, int constant, GCG_COMPBND *compBndSeq, int compBndSeqSize, int blocknr)
Definition branch_compbnd.c:137
static SCIP_Real getGeneratorEntry(SCIP_VAR *mastervar, SCIP_VAR *origvar)
Definition branch_compbnd.c:292
static SCIP_Real GetMedian(SCIP *scip, SCIP_Real *array, int arraysize, SCIP_Real min)
Definition branch_generic.c:536
static SCIP_Bool pruneChildNodeByDominanceGeneric(SCIP *scip, SCIP_Real lhs, GCG_COMPSEQUENCE *childS, int childSsize, SCIP_CONS *masterbranchcons, int childBlocknr)
Definition branch_generic.c:2152
static int computeNewSequence(int Csize, int p, SCIP_VAR *origvar, int *sequencesizes, GCG_COMPSEQUENCE **C, GCG_COMPSEQUENCE **CopyC, int *newsequencesizes, GCG_COMPSENSE sense)
Definition branch_generic.c:1403
static SCIP_RETCODE createChildNodesGeneric(GCG *gcg, GCG_BRANCHRULE *branchrule, GCG_COMPSEQUENCE *S, int Ssize, int blocknr, SCIP_CONS *masterbranchcons, SCIP_RESULT *result)
Definition branch_generic.c:2201
static SCIP_RETCODE Explore(SCIP *origprob, SCIP *masterprob, GCG_COMPSEQUENCE **C, int Csize, int *sequencesizes, int p, SCIP_VAR **F, int Fsize, SCIP_VAR **IndexSet, int IndexSetSize, GCG_COMPSEQUENCE **S, int *Ssize, GCG_RECORD *record)
Definition branch_generic.c:1466
static SCIP_RETCODE branchDirectlyOnMastervar(GCG *gcg, SCIP_VAR *mastervar, GCG_BRANCHRULE *branchrule)
Definition branch_generic.c:1775
int GCGbranchGenericBranchdataGetConsSsize(GCG_BRANCHDATA *branchdata)
Definition branch_generic.c:3058
static SCIP_RETCODE partition(SCIP *scip, SCIP_VAR **J, int *Jsize, SCIP_Longint *priority, SCIP_VAR **F, int Fsize, SCIP_VAR **origvar, SCIP_Real *median)
Definition branch_generic.c:910
static double computeAlpha(SCIP *origprob, SCIP *masterprob, int Fsize, GCG_COMPSENSE isense, double ivalue, SCIP_VAR *origvar, SCIP_VAR **F)
Definition branch_generic.c:1435
static SCIP_RETCODE ChoseS(SCIP *scip, GCG_RECORD **record, GCG_COMPSEQUENCE **S, int *Ssize)
Definition branch_generic.c:1331
int GCGbranchGenericBranchdataGetConsblocknr(GCG_BRANCHDATA *branchdata)
Definition branch_generic.c:3067
static int ILOcomp(SCIP *scip, SCIP_VAR *mastervar1, SCIP_VAR *mastervar2, GCG_COMPSEQUENCE **C, int NBoundsequences, int *sequencesizes, int p)
Definition branch_generic.c:678
static SCIP_RETCODE InducedLexicographicSort(SCIP *scip, GCG_STRIP **array, int arraysize, GCG_COMPSEQUENCE **C, int NBoundsequences, int *sequencesizes)
Definition branch_generic.c:873
static SCIP_RETCODE addToRecord(SCIP *scip, GCG_RECORD *record, GCG_COMPSEQUENCE *S, int Ssize)
Definition branch_generic.c:986
static SCIP_RETCODE LexicographicSort(SCIP *scip, GCG_STRIP **array, int arraysize)
Definition branch_generic.c:658
SCIP_RETCODE GCGincludeBranchruleGeneric(GCG *gcg)
Definition branch_generic.c:3002
static SCIP_RETCODE Separate(SCIP *origprob, SCIP *masterprob, SCIP_VAR **F, int Fsize, SCIP_VAR **IndexSet, int IndexSetSize, GCG_COMPSEQUENCE *S, int Ssize, GCG_RECORD *record)
Definition branch_generic.c:1026
GCG_COMPSEQUENCE * GCGbranchGenericBranchdataGetConsS(GCG_BRANCHDATA *branchdata)
Definition branch_generic.c:3049
static SCIP_RETCODE ChooseSeparateMethod(GCG *gcg, SCIP_VAR **F, int Fsize, GCG_COMPSEQUENCE **S, int *Ssize, GCG_COMPSEQUENCE **C, int Csize, int *CompSizes, int blocknr, GCG_BRANCHRULE *branchrule, SCIP_RESULT *result, int **checkedblocks, int *ncheckedblocks, GCG_STRIP ****checkedblockssortstrips, int **checkedblocksnsortstrips)
Definition branch_generic.c:1852
static SCIP_RETCODE GCGincludeMasterCopyPlugins(SCIP *scip)
Definition branch_generic.c:2446
static SCIP_RETCODE InitIndexSet(SCIP *scip, SCIP_VAR **F, int Fsize, SCIP_VAR ***IndexSet, int *IndexSetSize)
Definition branch_generic.c:454
static SCIP_RETCODE createDirectBranchingCons(SCIP *scip, SCIP_NODE *node, GCG_BRANCHDATA *branchdata)
Definition branch_generic.c:253
SCIP_CONS * GCGbranchGenericBranchdataGetMastercons(GCG_BRANCHDATA *branchdata)
Definition branch_generic.c:3076
static SCIP_Bool checkchildconsS(SCIP *scip, SCIP_Real lhs, GCG_COMPSEQUENCE *childS, int childSsize, SCIP_CONS *parentcons, int childBlocknr)
Definition branch_generic.c:2091
static SCIP_Real getColCoefficient(SCIP *scip, GCG_BRANCHDATA *branchdata, SCIP_VAR *mastervar, int probnr)
Definition branch_generic.c:151
SCIP_Bool GCGisBranchruleGeneric(GCG_BRANCHRULE *branchrule)
Definition branch_generic.c:3085
branching rule based on vanderbeck's generic branching scheme
SCIP_BRANCHRULE * GCGbranchGetScipBranchrule(GCG_BRANCHRULE *branchrule)
Definition branchgcg.c:102
SCIP_Real * r
constraint handler for the integrality constraint
GCG_BRANCHRULE * GCGconsMasterbranchGetBranchrule(SCIP_CONS *cons)
Definition cons_masterbranch.c:2933
SCIP_CONS * GCGconsMasterbranchGetParentcons(SCIP_CONS *cons)
Definition cons_masterbranch.c:2828
GCG_BRANCHDATA * GCGconsMasterbranchGetBranchdata(SCIP_CONS *cons)
Definition cons_masterbranch.c:2907
SCIP_CONS * GCGconsMasterbranchGetActiveCons(GCG *gcg)
Definition cons_masterbranch.c:3056
int GCGconsMasterbranchGetNChildconss(SCIP_CONS *cons)
Definition cons_masterbranch.c:2843
SCIP_CONS * GCGconsMasterbranchGetChildcons(SCIP_CONS *cons, int childnr)
Definition cons_masterbranch.c:2858
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
constraint handler for storing the branching decisions at each node of the tree
constraint handler for storing the branching decisions at each node of the tree
#define SCIP_MAXSTRLEN
#define SCIP_Longint
#define SCIP_INVALID
#define SCIP_Bool
#define SCIP_Real
#define SCIP_CALL_ABORT(x)
#define SCIP_LONGINT_MIN
#define SCIP_LONGINT_MAX
#define TRUE
#define FALSE
GCG interface methods.
sorting functions, adapted from SCIP's sorttpl to include userdata
GCG_EXPORT void GCGsortPtr(void **ptrarray, GCG_DECL_SORTPTRCOMP((*ptrcomp)), void *userdata, int len)
SCIP_VAR ** GCGoriginalVarGetMastervars(SCIP_VAR *var)
Definition gcgvar.c:666
SCIP_Bool GCGisMasterVarInBlock(SCIP_VAR *mastervar, int block)
Definition gcgvar.c:1169
SCIP_Real GCGmasterVarGetOrigval(SCIP_VAR *mastervar, SCIP_VAR *origvar)
Definition gcgvar.c:1034
SCIP_RETCODE SCIPincludeBranchruleInference(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleRandom(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleLeastinf(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleFullstrong(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleMostinf(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchruleRelpscost(SCIP *scip)
SCIP_RETCODE SCIPincludeBranchrulePscost(SCIP *scip)
SCIP_RETCODE SCIPaddCoefLinear(SCIP *scip, SCIP_CONS *cons, SCIP_VAR *var, SCIP_Real val)
SCIP_RETCODE SCIPcreateConsLinear(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, SCIP_VAR **vars, SCIP_Real *vals, SCIP_Real lhs, SCIP_Real rhs, 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)
SCIP_RETCODE GCGpricerExistRays(GCG *gcg, SCIP_Bool *exist)
Definition pricer_gcg.cpp:6029
GCG_EXPORT SCIP_Bool GCGisMasterSetPartitioning(GCG *gcg)
Definition relax_gcg.c:4366
GCG_EXPORT SCIP_Bool GCGisMasterSetCovering(GCG *gcg)
Definition relax_gcg.c:4347
GCG_EXPORT int GCGgetNIdenticalBlocks(GCG *gcg, int pricingprobnr)
Definition relax_gcg.c:4185
GCG_EXPORT int GCGgetBlockRepresentative(GCG *gcg, int pricingprobnr)
Definition relax_gcg.c:4155
SCIP_Bool SCIPisStopped(SCIP *scip)
int SCIPgetNContVars(SCIP *scip)
SCIP_RETCODE SCIPgetVarsData(SCIP *scip, SCIP_VAR ***vars, int *nvars, int *nbinvars, int *nintvars, int *nimplvars, int *ncontvars)
int SCIPgetNVars(SCIP *scip)
SCIP_VAR ** SCIPgetVars(SCIP *scip)
SCIP_RETCODE SCIPaddConsNode(SCIP *scip, SCIP_NODE *node, SCIP_CONS *cons, SCIP_NODE *validnode)
SCIP_Real SCIPgetLocalTransEstimate(SCIP *scip)
void SCIPdialogMessage(SCIP *scip, FILE *file, const char *formatstr,...)
void SCIPwarningMessage(SCIP *scip, const char *formatstr,...)
SCIP_RETCODE SCIPincludeNodeselDfs(SCIP *scip)
SCIP_RETCODE SCIPincludeNodeselEstimate(SCIP *scip)
SCIP_RETCODE SCIPincludeNodeselRestartdfs(SCIP *scip)
SCIP_RETCODE SCIPincludeNodeselHybridestim(SCIP *scip)
SCIP_RETCODE SCIPincludeNodeselBfs(SCIP *scip)
SCIP_RETCODE SCIPgetBoolParam(SCIP *scip, const char *name, SCIP_Bool *value)
SCIP_DECL_SORTPTRCOMP(SCIPbendersComp)
SCIP_RETCODE SCIPsetBranchruleExecExt(SCIP *scip, SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHEXECEXT((*branchexecext)))
SCIP_RETCODE SCIPsetBranchruleExecLp(SCIP *scip, SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHEXECLP((*branchexeclp)))
SCIP_BRANCHRULE * SCIPfindBranchrule(SCIP *scip, const char *name)
SCIP_RETCODE SCIPsetBranchruleCopy(SCIP *scip, SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHCOPY((*branchcopy)))
SCIP_RETCODE SCIPsetBranchruleExecPs(SCIP *scip, SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHEXECPS((*branchexecps)))
const char * SCIPbranchruleGetName(SCIP_BRANCHRULE *branchrule)
SCIP_BRANCHRULEDATA * SCIPbranchruleGetData(SCIP_BRANCHRULE *branchrule)
SCIP_RETCODE SCIPsetBranchruleFree(SCIP *scip, SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHFREE((*branchfree)))
SCIP_RETCODE SCIPsetBranchruleInit(SCIP *scip, SCIP_BRANCHRULE *branchrule, SCIP_DECL_BRANCHINIT((*branchinit)))
SCIP_RETCODE SCIPgetLPBranchCands(SCIP *scip, SCIP_VAR ***lpcands, SCIP_Real **lpcandssol, SCIP_Real **lpcandsfrac, int *nlpcands, int *npriolpcands, int *nfracimplvars)
SCIP_RETCODE SCIPcreateChild(SCIP *scip, SCIP_NODE **node, SCIP_Real nodeselprio, SCIP_Real estimate)
const char * SCIPconsGetName(SCIP_CONS *cons)
SCIP_RETCODE SCIPreleaseCons(SCIP *scip, SCIP_CONS **cons)
SCIP_RETCODE SCIPincludeEventhdlr(SCIP *scip, const char *name, const char *desc, SCIP_DECL_EVENTCOPY((*eventcopy)), SCIP_DECL_EVENTFREE((*eventfree)), SCIP_DECL_EVENTINIT((*eventinit)), SCIP_DECL_EVENTEXIT((*eventexit)), SCIP_DECL_EVENTINITSOL((*eventinitsol)), SCIP_DECL_EVENTEXITSOL((*eventexitsol)), SCIP_DECL_EVENTDELETE((*eventdelete)), SCIP_DECL_EVENTEXEC((*eventexec)), SCIP_EVENTHDLRDATA *eventhdlrdata)
const char * SCIPeventhdlrGetName(SCIP_EVENTHDLR *eventhdlr)
SCIP_EVENTHDLRDATA * SCIPeventhdlrGetData(SCIP_EVENTHDLR *eventhdlr)
SCIP_EVENTTYPE SCIPeventGetType(SCIP_EVENT *event)
SCIP_VAR * SCIPeventGetVar(SCIP_EVENT *event)
SCIP_RETCODE SCIPcatchEvent(SCIP *scip, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int *filterpos)
SCIP_RETCODE SCIPdropEvent(SCIP *scip, SCIP_EVENTTYPE eventtype, SCIP_EVENTHDLR *eventhdlr, SCIP_EVENTDATA *eventdata, int filterpos)
#define SCIPfreeBuffer(scip, ptr)
#define SCIPfreeBlockMemoryArray(scip, ptr, num)
int SCIPcalcMemGrowSize(SCIP *scip, int num)
#define SCIPallocBufferArray(scip, ptr, num)
#define SCIPreallocBufferArray(scip, ptr, num)
#define SCIPduplicateBufferArray(scip, ptr, source, num)
#define SCIPallocBlockMemoryArray(scip, ptr, num)
#define SCIPallocBuffer(scip, ptr)
#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)
SCIP_Real SCIPgetSolOrigObj(SCIP *scip, SCIP_SOL *sol)
SCIP_Real SCIPgetSolVal(SCIP *scip, SCIP_SOL *sol, SCIP_VAR *var)
SCIP_Real SCIPinfinity(SCIP *scip)
SCIP_Bool SCIPisGE(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisIntegral(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisLE(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisInfinity(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisFeasLT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Bool SCIPisFeasIntegral(SCIP *scip, SCIP_Real val)
SCIP_Bool SCIPisGT(SCIP *scip, SCIP_Real val1, SCIP_Real val2)
SCIP_Real SCIPceil(SCIP *scip, SCIP_Real val)
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_VARTYPE SCIPvarGetType(SCIP_VAR *var)
const char * SCIPvarGetName(SCIP_VAR *var)
void SCIPsortPtr(void **ptrarray, SCIP_DECL_SORTPTRCOMP((*ptrcomp)), int len)
int SCIPsnprintf(char *t, int len, const char *s,...)
static assert(heur !=NULL)
SCIP_CALL(SCIPgetExternBranchCands(origprob, &lpcands, &lpcandssol, NULL, &nlpcands, NULL, NULL, NULL, NULL))
SCIPdebugMessage("feasibility pump finished [%d iterations done].\n", nloops)
SCIPfreeBufferArray(scip, &cycles)
#define NULL
Definition class_conspartition.cpp:44
INLINE Rational & min(Rational &r1, Rational &r2)
GCG variable pricer.
public methods for interacting with GCG_EXTENDEDMASTERCONSDATA
public methods for GCG variables
#define SCIPerrorMessage
#define SCIPdebugPrintf
SCIP_RETCODE GCGrelaxIncludeBranchrule(GCG *gcg, SCIP_BRANCHRULE **branchrule, GCG_BRANCHRULE **gcgbranchrule, const char *name, const char *desc, int priority, int maxdepth, SCIP_Real maxbounddist, SCIP_BRANCHRULEDATA *branchruledata, GCG_DECL_BRANCHACTIVEMASTER((*branchactivemaster)), GCG_DECL_BRANCHDEACTIVEMASTER((*branchdeactivemaster)), GCG_DECL_BRANCHPROPMASTER((*branchpropmaster)), GCG_DECL_BRANCHMASTERSOLVED((*branchmastersolved)), GCG_DECL_BRANCHDATADELETE((*branchdatadelete)), GCG_DECL_BRANCHNEWCOL((*branchnewcol)), GCG_DECL_BRANCHGETEXTENDEDMASTERCONS((*branchgetextendedmastercons)),)
Definition relax_gcg.c:3717
GCG relaxator.
Definition branch_bpstrong.c:110
Definition branch_generic.c:96
Definition branch_bpstrong.c:128
Definition branch_generic.c:112
struct SCIP_Branchrule SCIP_BRANCHRULE
struct SCIP_BranchruleData SCIP_BRANCHRULEDATA
type definitions for branching rules in GCG projects
struct SCIP_Cons SCIP_CONS
struct SCIP_EventhdlrData SCIP_EVENTHDLRDATA
#define SCIP_EVENTTYPE_VARADDED
SCIP_DIDNOTRUN
SCIP_CUTOFF
SCIP_DIDNOTFIND
SCIP_BRANCHED
enum SCIP_Result SCIP_RESULT
SCIP_ERROR
enum SCIP_Retcode SCIP_RETCODE
struct Scip SCIP
struct SCIP_Node SCIP_NODE
struct SCIP_Var SCIP_VAR
SCIP_VARTYPE_INTEGER