Loading...
Searching...
No Matches
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) */
SCIP_DECL_CONSENFOPS(ConshdlrSubtour::scip_enfops)
SCIP_DECL_CONSLOCK(ConshdlrSubtour::scip_lock)
SCIP_DECL_CONSCHECK(ConshdlrSubtour::scip_check)
SCIP_DECL_CONSENFOLP(ConshdlrSubtour::scip_enfolp)
branching rule for original problem in GCG
SCIP_RETCODE GCGincludeConshdlrIntegralOrig(GCG *gcg)
Definition cons_integralorig.c:387
SCIP_RETCODE GCGconsIntegralorigAddBranchrule(GCG *gcg, SCIP_BRANCHRULE *branchrule)
Definition cons_integralorig.c:69
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 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)
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)
SCIPfreeMemory(GCGgetOrigprob(gcg), &divingdata)
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)
#define NULL
Definition class_conspartition.cpp:44
GCG variable pricer.
public methods for GCG variables
GCG relaxator.
Definition cons_decomp.cpp:124
struct SCIP_Branchrule SCIP_BRANCHRULE
struct SCIP_ConshdlrData SCIP_CONSHDLRDATA
struct SCIP_Conshdlr SCIP_CONSHDLR
SCIP_FEASIBLE
SCIP_REDUCEDDOM
SCIP_BRANCHED
SCIP_INFEASIBLE
enum SCIP_Retcode SCIP_RETCODE
struct Scip SCIP
struct SCIP_Sol SCIP_SOL
struct SCIP_Var SCIP_VAR
SCIP_VARTYPE_CONTINUOUS