cons_integralorig.c
Go to the documentation of this file.
31 * @brief constraint handler for enforcing integrality of the transferred master solution in the original problem
36/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
53#define CONSHDLR_ENFOPRIORITY 1000 /**< priority of the constraint handler for constraint enforcing */
54#define CONSHDLR_CHECKPRIORITY 1000 /**< priority of the constraint handler for checking feasibility */
55#define CONSHDLR_EAGERFREQ -1 /**< frequency for using all instead of only the useful constraints in separation,
57#define CONSHDLR_NEEDSCONS FALSE /**< should the constraint handler be skipped, if no constraints are available? */
93 SCIP_CALL( SCIPreallocMemoryArray(masterprob, &(conshdlrdata->branchrules), (size_t)conshdlrdata->nbranchrules+1) );
171 /* if we use the discretization without continuous variables, we do not have to check for integrality of the solution in the
179 /* if the transferred master solution is feasible, the current node is solved to optimality and can be pruned */
203 SCIPdebugMessage("Call exec lp method of %s\n", SCIPbranchruleGetName(conshdlrdata->branchrules[i]));
205 SCIP_CALL( conshdlrdata->branchrules[i]->branchexeclp(scip, conshdlrdata->branchrules[i], TRUE, result) );
238 /* if we use the discretization without continuous variables, we do not have to check for integrality of the solution in the
260 SCIP_CALL( conshdlrdata->branchrules[i]->branchexecps(scip, conshdlrdata->branchrules[i], TRUE, result) );
295 /* if we use the discretization without continuous variables, we do not have to check for integrality of the solution in the
304 SCIP_CALL( GCGtransformMastersolToOrigsol(conshdlrdata->gcg, sol, &origsol, TRUE, &violatesvarbnds) );
352/** destructor of constraint handler to free constraint handler data (called when SCIP is exiting) */
branching rule for original problem in GCG
static SCIP_DECL_CONSCHECK(consCheckIntegralOrig)
Definition: cons_integralorig.c:270
SCIP_RETCODE GCGincludeConshdlrIntegralOrig(GCG *gcg)
Definition: cons_integralorig.c:387
static SCIP_DECL_CONSFREE(consFreeIntegralOrig)
Definition: cons_integralorig.c:354
static SCIP_DECL_CONSLOCK(consLockIntegralOrig)
Definition: cons_integralorig.c:347
SCIP_RETCODE GCGconsIntegralorigAddBranchrule(GCG *gcg, SCIP_BRANCHRULE *branchrule)
Definition: cons_integralorig.c:69
static SCIP_DECL_CONSENFOLP(consEnfolpIntegralOrig)
Definition: cons_integralorig.c:145
static SCIP_DECL_CONSENFOPS(consEnfopsIntegralOrig)
Definition: cons_integralorig.c:216
static void sortBranchrules(SCIP_BRANCHRULE **branchrules, int nbranchrules)
Definition: cons_integralorig.c:106
constraint handler for the integrality constraint
constraint handler for storing the branching decisions at each node of the tree
#define SCIP_Bool
#define SCIP_Real
#define SCIP_CALL(x)
#define TRUE
GCG interface methods.
SCIP_RETCODE GCGtransformMastersolToOrigsol(GCG *gcg, SCIP_SOL *mastersol, SCIP_SOL **origsol, SCIP_Bool ignorelocalvarbnds, SCIP_Bool *violatesvarbnds)
Definition: misc.c:135
int SCIPgetNContVars(SCIP *scip)
int SCIPgetNVars(SCIP *scip)
SCIP_VAR ** SCIPgetVars(SCIP *scip)
void SCIPinfoMessage(SCIP *scip, FILE *file, const char *formatstr,...)
SCIP_RETCODE SCIPgetBoolParam(SCIP *scip, const char *name, SCIP_Bool *value)
const char * SCIPbranchruleGetName(SCIP_BRANCHRULE *branchrule)
int SCIPgetNPseudoBranchCands(SCIP *scip)
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 SCIPsetConshdlrFree(SCIP *scip, SCIP_CONSHDLR *conshdlr, SCIP_DECL_CONSFREE((*consfree)))
const char * SCIPconshdlrGetName(SCIP_CONSHDLR *conshdlr)
SCIP_CONSHDLR * SCIPfindConshdlr(SCIP *scip, const char *name)
SCIP_CONSHDLRDATA * SCIPconshdlrGetData(SCIP_CONSHDLR *conshdlr)
#define SCIPreallocMemoryArray(scip, ptr, newnum)
#define SCIPallocMemoryArray(scip, ptr, num)
#define SCIPallocMemory(scip, ptr)
#define SCIPfreeMemoryArray(scip, ptr)
#define SCIPfreeMemory(scip, ptr)
SCIP_RETCODE SCIPfreeSol(SCIP *scip, SCIP_SOL **sol)
SCIP_Real SCIPgetSolVal(SCIP *scip, SCIP_SOL *sol, SCIP_VAR *var)
SCIP_Bool SCIPisFeasIntegral(SCIP *scip, SCIP_Real val)
SCIP_VARTYPE SCIPvarGetType(SCIP_VAR *var)
const char * SCIPvarGetName(SCIP_VAR *var)
#define NULL
Definition: class_conspartition.cpp:44
GCG variable pricer.
public methods for GCG variables
#define SCIPdebugMessage
GCG relaxator.
Definition: struct_gcg.h:55
Definition: cons_decomp.cpp:124
SCIP_FEASIBLE
SCIP_REDUCEDDOM
SCIP_BRANCHED
SCIP_INFEASIBLE
SCIP_OKAY
enum SCIP_Retcode SCIP_RETCODE
SCIP_VARTYPE_CONTINUOUS