All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Detailed Descriptionconstraint handler for linking constraints The constraints handler stores linking constraints between an integer variable and an array of binary variables. Such a linking constraint has the form: intvar = sum_{i=1}^n {vals[i] * binvars[i]} with the additional side condition that exactly one binary variable has to be one (set partitioning condition). This constraint can be created only with the integer variable. In this case the binary variables are only created on demand. That is, whenever someone asks for the binary variables. Therefore, such constraints can be used to get a "binary representation" of the domain of the integer variable which will be dynamically created. Definition in file cons_linking.c. #include <assert.h> #include <string.h> #include <ctype.h> #include "scip/cons_linear.h" #include "scip/cons_linking.h" #include "scip/cons_setppc.h" Go to the source code of this file.
Macro Definition Documentation
Definition at line 49 of file cons_linking.c. Referenced by enforcePseudo(), processBinvarFixings(), processIntegerBoundChg(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSDELETE(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSFREE(), SCIP_DECL_CONSHDLRCOPY(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSSEPALP(), SCIP_DECL_CONSSEPASOL(), SCIP_DECL_CONSTRANS(), SCIPcreateConsLinking(), SCIPexistsConsLinking(), SCIPgetBinvarsLinking(), SCIPgetConsLinking(), SCIPgetIntvarLinking(), SCIPgetNBinvarsLinking(), SCIPgetValsLinking(), SCIPincludeConshdlrLinking(), and separateCons().
Definition at line 50 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
Definition at line 52 of file cons_linking.c. Referenced by SCIP_DECL_EVENTEXEC(), and SCIPincludeConshdlrLinking().
Definition at line 53 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
priority of the constraint handler for separation Definition at line 55 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
priority of the constraint handler for constraint enforcing Definition at line 56 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
priority of the constraint handler for checking feasibility Definition at line 57 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
frequency for separating cuts; zero means to separate only in the root node Definition at line 58 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
frequency for propagating domains; zero means only preprocessing propagation Definition at line 59 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
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 60 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
maximal number of presolving rounds the constraint handler participates in (-1: no limit) Definition at line 61 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
should separation method be delayed, if other separators found cuts? Definition at line 62 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
should propagation method be delayed, if other propagators found reductions? Definition at line 63 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
should presolving method be delayed, if other presolvers found reductions? Definition at line 64 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
should the constraint handler be skipped, if no constraints are available? Definition at line 65 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
Definition at line 67 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking().
minimal size of hash table in linking constraint handler Definition at line 70 of file cons_linking.c. Referenced by SCIPcreateConsLinking().
should the linking constraint be linearize after the binary variable are created Definition at line 71 of file cons_linking.c. Referenced by SCIPincludeConshdlrLinking(). Function Documentation
returns for a given integer variable the corresponding hash map key
Definition at line 109 of file cons_linking.c. References SCIPvarGetIndex(). Referenced by SCIP_DECL_CONSDELETE(), SCIP_DECL_CONSTRANS(), SCIPcreateConsLinking(), SCIPexistsConsLinking(), and SCIPgetConsLinking().
Definition at line 119 of file cons_linking.c. References SCIPsortIntPtr(), and TRUE. Referenced by processBinvarFixings(), and processIntegerBoundChg().
installs rounding locks for the binary variables in the given linking constraint
Definition at line 135 of file cons_linking.c. References SCIP_CALL, SCIP_OKAY, SCIPlockVarCons(), and TRUE. Referenced by consdataCreateBinvars().
creates constraint handler data for the linking constraint handler
Definition at line 154 of file cons_linking.c. References NULL, SCIP_CALL, SCIP_OKAY, and SCIPallocMemory. Referenced by SCIPincludeConshdlrLinking().
frees constraint handler data for linking constraint handler
Definition at line 177 of file cons_linking.c. References NULL, SCIP_OKAY, SCIPfreeMemory, and SCIPhashmapFree(). Referenced by SCIP_DECL_CONSFREE().
prints linking constraint to file stream
Definition at line 197 of file cons_linking.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPfreeBufferArray, SCIPinfoMessage(), SCIPwriteVarName(), and SCIPwriteVarsLinearsum(). Referenced by SCIP_DECL_CONSPRINT().
catches events for variable at given position
Definition at line 251 of file cons_linking.c. References NULL, SCIP_CALL, SCIP_EVENTTYPE_BOUNDCHANGED, SCIP_OKAY, SCIPcatchVarEvent(), SCIPisEQ(), SCIPvarGetLbLocal(), and SCIPvarGetUbLocal(). Referenced by catchAllEvents().
drops events for variable at given position
Definition at line 283 of file cons_linking.c. References NULL, SCIP_CALL, SCIP_EVENTTYPE_BOUNDCHANGED, SCIP_OKAY, SCIPdropVarEvent(), SCIPisEQ(), SCIPvarGetLbLocal(), and SCIPvarGetUbLocal(). Referenced by delCoefPos(), and dropAllEvents().
catches bound change events for all variables in transformed linking constraint
Definition at line 314 of file cons_linking.c. References catchEvent(), NULL, SCIP_CALL, and SCIP_OKAY. Referenced by consdataCreate(), and consdataCreateBinvars().
drops bound change events for all variables in transformed linking constraint
Definition at line 338 of file cons_linking.c. References dropEvent(), NULL, SCIP_CALL, and SCIP_OKAY. Referenced by SCIP_DECL_CONSDELETE().
linearize the given linking constraint into a set partitioning constraint for the binary variables and a linear constraint for the linking between the integer variable and the binary variables
Definition at line 363 of file cons_linking.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaddCoefLinear(), SCIPaddCons(), SCIPconsGetName(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateConsLinear(), SCIPcreateConsSetpart(), SCIPdebugMessage, and SCIPreleaseCons(). Referenced by consdataCreateBinvars(), SCIP_DECL_CONSENABLE(), and SCIP_DECL_CONSINITPRE().
creates the binary variables
Definition at line 402 of file cons_linking.c. References catchAllEvents(), consdataLinearize(), FALSE, lockRounding(), NULL, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_VARTYPE_BINARY, SCIPaddVar(), SCIPallocBlockMemoryArray, SCIPcreateVar(), SCIPdebugMessage, SCIPenableCons(), SCIPisTransformed(), SCIPsnprintf(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetUbGlobal(), and TRUE. Referenced by SCIPgetBinvarsLinking().
creates consdata
Definition at line 497 of file cons_linking.c. References catchAllEvents(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_VARTYPE_CONTINUOUS, SCIPallocBlockMemory, SCIPcaptureVar(), SCIPduplicateBlockMemoryArray, SCIPgetTransformedVar(), SCIPgetTransformedVars(), SCIPisTransformed(), SCIPmarkDoNotMultaggrVar(), and SCIPvarGetType(). Referenced by SCIP_DECL_CONSTRANS(), and SCIPcreateConsLinking().
free consdata
Definition at line 577 of file cons_linking.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPfreeBlockMemory, SCIPfreeBlockMemoryArray, SCIPreleaseRow(), and SCIPreleaseVar(). Referenced by SCIP_DECL_CONSDELETE().
analyzes conflicting assignment on given constraint where reason comes from the integer variable lower or upper bound
Definition at line 628 of file cons_linking.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPaddConflictBinvar(), SCIPaddConflictLb(), SCIPaddConflictUb(), SCIPanalyzeConflictCons(), SCIPgetStage(), SCIPinitConflictAnalysis(), SCIPinProbing(), and SCIPisConflictAnalysisApplicable(). Referenced by consFixInteger(), and processIntegerBoundChg().
fix integer variable to the value of the binary variable at pos
Definition at line 671 of file cons_linking.c. References analyzeConflict(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPinferVarLbCons(), SCIPinferVarUbCons(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), and TRUE. Referenced by processBinvarFixings().
checks constraint for violation from the local bound of the integer variable, applies fixings to the binary variables if possible
Definition at line 728 of file cons_linking.c. References analyzeConflict(), consdataSort(), CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPaddCons(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateConsSetpart(), SCIPdebugMessage, SCIPdelConsLocal(), SCIPgetDepth(), SCIPinferBinvarCons(), SCIPreleaseCons(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), and TRUE. Referenced by enforcePseudo(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPROP(), and separateCons().
deletes coefficient at given position from the binary variable array
Definition at line 919 of file cons_linking.c. References dropEvent(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetData(), SCIPconsIsTransformed(), SCIPreleaseVar(), SCIPunlockVarCons(), SCIPvarIsTransformed(), and TRUE. Referenced by removeFixedBinvars().
remove the trailing and leeading binary variable which are fixed to zero
Definition at line 977 of file cons_linking.c. References delCoefPos(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIPconsGetData(), SCIPgetDepth(), SCIPgetStage(), SCIPinProbing(), SCIPinRepropagation(), and SCIPvarGetUbLocal(). Referenced by SCIP_DECL_CONSPRESOL().
tightened the integer variable due to binary variables which are fixed to zero
Definition at line 1024 of file cons_linking.c. References NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_SOLVING, SCIPaddConflictBinvar(), SCIPaddConflictLb(), SCIPaddConflictUb(), SCIPanalyzeConflictCons(), SCIPdebugMessage, SCIPgetStage(), SCIPinferVarLbCons(), SCIPinferVarUbCons(), SCIPinitConflictAnalysis(), SCIPinProbing(), SCIPisConflictAnalysisApplicable(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), and TRUE. Referenced by processBinvarFixings(), and SCIP_DECL_CONSPRESOL().
checks constraint for violation only looking at the fixed binary variables, applies further fixings if possible
Definition at line 1160 of file cons_linking.c. References consdataSort(), consFixInteger(), CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPaddConflictBinvar(), SCIPanalyzeConflictCons(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdelConsLocal(), SCIPgetStage(), SCIPinferBinvarCons(), SCIPinitConflictAnalysis(), SCIPinProbing(), SCIPisConflictAnalysisApplicable(), SCIPisFeasEQ(), SCIPisFeasZero(), SCIPisLT(), SCIPresetConsAge(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), tightenedIntvar(), and TRUE. Referenced by enforcePseudo(), and SCIP_DECL_CONSPROP(). returns whether the given solution is feasible for the given linking constraint
Definition at line 1406 of file cons_linking.c. References NULL, SCIP_Real, SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPfeastol(), SCIPgetSolVal(), SCIPisFeasEQ(), SCIPisFeasGE(), SCIPisFeasLE(), and SCIPvarIsBinary(). Referenced by enforcePseudo(), SCIP_DECL_CONSCHECK(), and separateCons().
create two rows for the linking constraint
Definition at line 1563 of file cons_linking.c. References NULL, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIPaddVarsToRowSameCoef(), SCIPaddVarToRow(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsRemovable(), SCIPcreateEmptyRowCons(), and SCIPsnprintf(). Referenced by addCuts().
adds linking constraint as cut to the LP
Definition at line 1613 of file cons_linking.c. References createRows(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddCut(), SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIProwIsInLP(), and TRUE. Referenced by SCIP_DECL_CONSINITLP(), and separateCons().
checks constraint for violation, and adds it as a cuts if possible
Definition at line 1661 of file cons_linking.c. References addCuts(), checkCons(), CONSHDLR_NAME, FALSE, MIN, NULL, processIntegerBoundChg(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPdebugMessage, SCIPgetRowLPFeasibility(), SCIPincConsAge(), SCIPisFeasNegative(), SCIPresetConsAge(), SCIProwIsInLP(), and TRUE. Referenced by SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSSEPALP(), and SCIP_DECL_CONSSEPASOL().
enforces the pseudo solution on the given constraint
Definition at line 1755 of file cons_linking.c. References checkCons(), CONSHDLR_NAME, FALSE, NULL, processBinvarFixings(), processIntegerBoundChg(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPhasCurrentNodeLP(), SCIPincConsAge(), SCIPresetConsAge(), and TRUE. Referenced by SCIP_DECL_CONSENFOPS().
copy method for constraint handler plugins (called when SCIP copies plugins) Definition at line 1818 of file cons_linking.c. References CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPconshdlrGetName(), SCIPincludeConshdlrLinking(), and TRUE.
destructor of constraint handler to free constraint handler data (called when SCIP is exiting) Definition at line 1834 of file cons_linking.c. References CONSHDLR_NAME, conshdlrdataFree(), NULL, SCIP_CALL, SCIP_OKAY, SCIPconshdlrGetData(), and SCIPconshdlrGetName().
presolving initialization method of constraint handler (called when presolving is about to begin) Definition at line 1854 of file cons_linking.c. References consdataLinearize(), NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPconshdlrGetData(), SCIPconsIsAdded(), SCIPdelCons(), SCIPdisableCons(), and SCIPvarGetLbGlobal().
solving process deinitialization method of constraint handler (called before branch and bound process data is freed) Definition at line 1891 of file cons_linking.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), and SCIPreleaseRow().
frees specific constraint data Definition at line 1917 of file cons_linking.c. References consdataFree(), CONSHDLR_NAME, dropAllEvents(), getHashmapKey(), NULL, SCIP_CALL, SCIP_OKAY, SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPhashmapExists(), SCIPhashmapRemove(), and SCIPisTransformed().
transforms constraint data into data belonging to the transformed problem Definition at line 1949 of file cons_linking.c. References consdataCreate(), CONSHDLR_NAME, getHashmapKey(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_TRANSFORMING, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateCons(), SCIPdebugMessage, SCIPgetStage(), SCIPhashmapInsert(), and SCIPvarGetName().
LP initialization method of constraint handler (called before the initial LP relaxation at a node is solved) Definition at line 1993 of file cons_linking.c. References addCuts(), NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), and SCIPconsIsInitial().
separation method of constraint handler for LP solutions Definition at line 2019 of file cons_linking.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_REDUCEDDOM, SCIP_SEPARATED, SCIPconshdlrGetName(), SCIPdebugMessage, and separateCons().
separation method of constraint handler for arbitrary primal solutions Definition at line 2059 of file cons_linking.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_REDUCEDDOM, SCIP_SEPARATED, SCIPconshdlrGetName(), SCIPdebugMessage, and separateCons().
constraint enforcing method of constraint handler for LP solutions Definition at line 2099 of file cons_linking.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_FEASIBLE, SCIP_OKAY, SCIP_REDUCEDDOM, SCIP_SEPARATED, SCIPconshdlrGetName(), SCIPdebugMessage, and separateCons().
constraint enforcing method of constraint handler for pseudo solutions Definition at line 2145 of file cons_linking.c. References CONSHDLR_NAME, enforcePseudo(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTRUN, SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIP_REDUCEDDOM, SCIP_SOLVELP, SCIPconshdlrGetName(), and SCIPdebugMessage.
feasibility check method of constraint handler for integral solutions Definition at line 2194 of file cons_linking.c. References checkCons(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconshdlrGetName(), SCIPgetSolVal(), SCIPinfoMessage(), SCIPisFeasEQ(), SCIPisFeasIntegral(), SCIPprintCons(), SCIProwIsInLP(), SCIPvarGetName(), and SCIPvarIsBinary().
domain propagation method of constraint handler Definition at line 2280 of file cons_linking.c. References CONSHDLR_NAME, FALSE, NULL, processBinvarFixings(), processIntegerBoundChg(), SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_REDUCEDDOM, SCIPconshdlrGetName(), SCIPdebugMessage, and TRUE.
presolving method of constraint handler Definition at line 2321 of file cons_linking.c. References aggregateVariables(), CONSHDLR_NAME, FALSE, NULL, processIntegerBoundChg(), removeFixedBinvars(), SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_Real, SCIP_SUCCESS, SCIPaddClique(), SCIPaggregateVars(), SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPconsIsActive(), SCIPconsIsEnabled(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdelCons(), SCIPfixVar(), SCIPisStopped(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetUbGlobal(), tightenedIntvar(), and TRUE.
propagation conflict resolving method of constraint handler Definition at line 2651 of file cons_linking.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_SUCCESS, SCIPaddConflictBinvar(), SCIPaddConflictLb(), SCIPaddConflictUb(), SCIPconsGetData(), SCIPdebugMessage, SCIPisFeasEQ(), SCIPvarGetLbAtIndex(), SCIPvarGetUbAtIndex(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), and TRUE.
variable rounding lock method of constraint handler Definition at line 2827 of file cons_linking.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPaddVarLocks(), and SCIPconsGetData().
constraint enabling notification method of constraint handler Definition at line 2849 of file cons_linking.c. References consdataLinearize(), NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPconshdlrGetData(), SCIPdelCons(), SCIPdisableCons(), and SCIPvarGetLbGlobal().
constraint display method of constraint handler Definition at line 2877 of file cons_linking.c. References consdataPrint(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPconsGetData().
constraint copying method of constraint handler Definition at line 2891 of file cons_linking.c. References CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPcreateConsLinking(), SCIPduplicateBufferArray, SCIPerrorMessage, SCIPfreeBufferArrayNull, SCIPgetVarCopy(), and TRUE.
constraint parsing method of constraint handler Definition at line 2968 of file cons_linking.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VERBLEVEL_MINIMAL, SCIPallocBufferArray, SCIPcreateConsLinking(), SCIPfreeBufferArray, SCIPisIntegral(), SCIPparseVarName(), SCIPparseVarsLinearsum(), SCIPreallocBufferArray, SCIPverbMessage(), and TRUE.
constraint method of constraint handler which returns the variables (if possible) Definition at line 3071 of file cons_linking.c. References BMScopyMemoryArray, FALSE, NULL, SCIP_OKAY, SCIPconsGetData(), and TRUE.
constraint method of constraint handler which returns the number of variables (if possible) Definition at line 3094 of file cons_linking.c. References NULL, SCIP_OKAY, SCIPconsGetData(), and TRUE.
execution method of event handler Definition at line 3113 of file cons_linking.c. References EVENTHDLR_NAME, NULL, SCIP_EVENTTYPE_LBRELAXED, SCIP_EVENTTYPE_LBTIGHTENED, SCIP_EVENTTYPE_UBRELAXED, SCIP_EVENTTYPE_UBTIGHTENED, SCIP_INVALIDDATA, SCIP_OKAY, SCIPerrorMessage, SCIPeventGetType(), and SCIPeventhdlrGetName().
creates the handler for linking constraints and includes it in SCIP
Definition at line 3163 of file cons_linking.c. References CONSHDLR_CHECKPRIORITY, CONSHDLR_DELAYPRESOL, CONSHDLR_DELAYPROP, CONSHDLR_DELAYSEPA, CONSHDLR_DESC, CONSHDLR_EAGERFREQ, CONSHDLR_ENFOPRIORITY, CONSHDLR_MAXPREROUNDS, CONSHDLR_NAME, CONSHDLR_NEEDSCONS, CONSHDLR_PROP_TIMING, CONSHDLR_PROPFREQ, CONSHDLR_SEPAFREQ, CONSHDLR_SEPAPRIORITY, conshdlrdataCreate(), DEFAULT_LINEARIZE, EVENTHDLR_DESC, EVENTHDLR_NAME, FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPincludeConshdlrBasic(), SCIPincludeEventhdlrBasic(), SCIPsetConshdlrCopy(), SCIPsetConshdlrDelete(), SCIPsetConshdlrEnable(), SCIPsetConshdlrExitsol(), SCIPsetConshdlrFree(), SCIPsetConshdlrGetNVars(), SCIPsetConshdlrGetVars(), SCIPsetConshdlrInitlp(), SCIPsetConshdlrInitpre(), SCIPsetConshdlrParse(), SCIPsetConshdlrPresol(), SCIPsetConshdlrPrint(), SCIPsetConshdlrProp(), SCIPsetConshdlrResprop(), SCIPsetConshdlrSepa(), and SCIPsetConshdlrTrans(). Referenced by SCIP_DECL_CONSHDLRCOPY(), and SCIPincludeDefaultPlugins().
creates and captures a linking constraint
Definition at line 3222 of file cons_linking.c. References consdataCreate(), CONSHDLR_NAME, getHashmapKey(), HASHSIZE_BINVARSCONS, NULL, SCIP_CALL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPblkmem(), SCIPconshdlrGetData(), SCIPcreateCons(), SCIPdebugMessage, SCIPerrorMessage, SCIPfindConshdlr(), SCIPgetStage(), SCIPhashmapCreate(), SCIPhashmapExists(), SCIPhashmapInsert(), SCIPisInfinity(), SCIPvarGetLbGlobal(), SCIPvarGetName(), and SCIPvarGetUbGlobal(). Referenced by consdataCollectLinkingCons(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSPARSE(), and SCIPcreateConsBasicLinking().
creates and captures a linking constraint in its most basic version, i. e., all constraint flags are set to their basic value as explained for the method SCIPcreateConsLinking(); all flags can be set via SCIPsetCons<Flagname>-methods in scip.h
Definition at line 3308 of file cons_linking.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcreateConsLinking(), and TRUE. checks if for the given integer variable a linking constraint exists
Definition at line 3327 of file cons_linking.c. References CONSHDLR_NAME, getHashmapKey(), NULL, SCIPconshdlrGetData(), SCIPfindConshdlr(), and SCIPhashmapExists(). Referenced by collectBinaryVars(), and consdataCollectLinkingCons(). returns the linking constraint belonging to the given integer variable or NULL if it does not exist yet
Definition at line 3345 of file cons_linking.c. References CONSHDLR_NAME, getHashmapKey(), NULL, SCIPconshdlrGetData(), SCIPfindConshdlr(), and SCIPhashmapGetImage(). Referenced by collectBinaryVars(), consdataCollectLinkingCons(), and consdataCreate(). returns the integer variable of the linking constraint
Definition at line 3366 of file cons_linking.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage.
returns the binary variables of the linking constraint
Definition at line 3388 of file cons_linking.c. References consdataCreateBinvars(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by collectBinaryVars(), and createCoverCutsTimepoint(). returns the number of binary variables of the linking constraint
Definition at line 3432 of file cons_linking.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. returns the coefficients of the binary variables
Definition at line 3453 of file cons_linking.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by collectBinaryVars(), and createCoverCutsTimepoint(). |