cons_varbound.c File Reference Detailed DescriptionConstraint handler for variable bound constraints . This constraint handler handles a special type of linear constraints, namely variable bound constraints. A variable bound constraint has the form
with coefficient , , , and decision variables (non-binary) and (binary or integer).
Definition in file cons_varbound.c. #include <assert.h> #include <string.h> #include <limits.h> #include <ctype.h> #include "scip/cons_varbound.h" #include "scip/cons_linear.h" #include "scip/cons_setppc.h" Go to the source code of this file.
Macro Definition Documentation
Definition at line 53 of file cons_varbound.c. Referenced by addRelaxation(), SCIP_DECL_CONSFREE(), SCIP_DECL_CONSHDLRCOPY(), SCIP_DECL_CONSPRESOL(), SCIPcreateConsVarbound(), SCIPgetDualfarkasVarbound(), SCIPgetDualsolVarbound(), SCIPgetLhsVarbound(), SCIPgetRhsVarbound(), SCIPgetRowVarbound(), SCIPgetVarVarbound(), SCIPgetVbdcoefVarbound(), SCIPgetVbdvarVarbound(), SCIPincludeConshdlrVarbound(), and separateCons().
Definition at line 54 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
priority of the constraint handler for separation Definition at line 55 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
priority of the constraint handler for constraint enforcing Definition at line 56 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
priority of the constraint handler for checking feasibility Definition at line 57 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
frequency for separating cuts; zero means to separate only in the root node Definition at line 58 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
frequency for propagating domains; zero means only preprocessing propagation Definition at line 59 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
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_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
maximal number of presolving rounds the constraint handler participates in (-1: no limit) Definition at line 63 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
should separation method be delayed, if other separators found cuts? Definition at line 64 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
should propagation method be delayed, if other propagators found reductions? Definition at line 65 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
should the constraint handler be skipped, if no constraints are available? Definition at line 66 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
Definition at line 68 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
Definition at line 69 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
Definition at line 71 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
Definition at line 72 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
priority of the constraint handler for upgrading of linear constraints Definition at line 74 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
should pairwise constraint comparison be performed in presolving? Definition at line 83 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
maximum coefficient in varbound constraint to be added as a row into LP Definition at line 84 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
should bound widening be used to initialize conflict analysis? Definition at line 85 of file cons_varbound.c. Referenced by SCIPincludeConshdlrVarbound().
maximal coefficient value after scaling Definition at line 88 of file cons_varbound.c. Referenced by prettifyConss(). Typedef DocumentationDefinition at line 125 of file cons_varbound.c. Enumeration Type Documentation
Propagation rules Definition at line 118 of file cons_varbound.c. Function Documentation
compares two varbound constraints cons1: and cons2: w.r.t. the indices of the contained variables returns -1 if:
returns 0 if x1 = x2, y1 = y2, and the changed status of both constraints is the same and returns +1 otherwise Definition at line 145 of file cons_varbound.c. References conshdlrdataCreate(), NULL, SCIPconsGetData(), and SCIPvarGetIndex().
creates constraint handler data for varbound constraint handler
Definition at line 181 of file cons_varbound.c. References conshdlrdataFree(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPallocMemory. Referenced by SCIP_DECL_SORTPTRCOMP(), and SCIPincludeConshdlrVarbound().
frees constraint handler data for varbound constraint handler
Definition at line 200 of file cons_varbound.c. References catchEvents(), NULL, and SCIPfreeMemory. Referenced by conshdlrdataCreate(), and SCIP_DECL_CONSFREE().
catches events for variables
Definition at line 217 of file cons_varbound.c. References dropEvents(), NULL, SCIP_CALL, SCIP_EVENTTYPE_BOUNDTIGHTENED, SCIP_EVENTTYPE_VARFIXED, SCIP_OKAY, SCIPcatchVarEvent(), and SCIPconsGetData(). Referenced by applyFixings(), conshdlrdataFree(), SCIP_DECL_CONSTRANS(), and SCIPcreateConsVarbound().
drops events for variables
Definition at line 237 of file cons_varbound.c. References consdataCreate(), NULL, SCIP_CALL, SCIP_EVENTTYPE_BOUNDTIGHTENED, SCIP_EVENTTYPE_VARFIXED, SCIP_OKAY, SCIPconsGetData(), and SCIPdropVarEvent(). Referenced by applyFixings(), catchEvents(), and SCIP_DECL_CONSDELETE().
creates a variable bound constraint data object
Definition at line 257 of file cons_varbound.c. References consdataFree(), FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_MULTAGGR, SCIP_VARTYPE_CONTINUOUS, SCIPallocBlockMemory, SCIPcaptureVar(), SCIPerrorMessage, SCIPgetTransformedVar(), SCIPinfinity(), SCIPisGT(), SCIPisInfinity(), SCIPisTransformed(), SCIPvarGetProbvar(), SCIPvarGetStatus(), SCIPvarGetType(), and TRUE. Referenced by dropEvents(), SCIP_DECL_CONSTRANS(), and SCIPcreateConsVarbound().
frees a variable bound constraint data
Definition at line 327 of file cons_varbound.c. References createRelaxation(), NULL, SCIP_CALL, SCIP_OKAY, SCIPfreeBlockMemory, SCIPreleaseRow(), and SCIPreleaseVar(). Referenced by consdataCreate(), and SCIP_DECL_CONSDELETE().
creates LP row corresponding to variable bound constraint
Definition at line 352 of file cons_varbound.c. References addRelaxation(), NULL, SCIP_CALL, SCIP_OKAY, SCIPaddVarToRow(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsRemovable(), and SCIPcreateEmptyRowCons(). Referenced by addRelaxation(), consdataFree(), and separateCons().
adds linear relaxation of variable bound constraint to the LP
Definition at line 373 of file cons_varbound.c. References checkCons(), CONSHDLR_NAME, createRelaxation(), FALSE, NULL, REALABS, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_VARTYPE_CONTINUOUS, SCIPaddCut(), SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetData(), SCIPdebug, SCIPdebugMessage, SCIPerrorMessage, SCIPfindConshdlr(), SCIPisGT(), SCIPprintRow(), SCIProwIsInLP(), and SCIPvarGetType(). Referenced by createRelaxation(), and SCIP_DECL_CONSINITLP().
returns whether the given solution is feasible for the given variable bound constraint
Definition at line 423 of file cons_varbound.c. References FALSE, NULL, resolvePropagation(), SCIP_Real, SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPgetSolVal(), SCIPisFeasGE(), SCIPisFeasLE(), SCIPisFeasZero(), SCIPisInfinity(), SCIProwIsInLP(), and TRUE. Referenced by addRelaxation(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSENFOPS(), and separateCons().
resolves a propagation on the given variable by supplying the variables needed for applying the corresponding propagation rule (see propagateCons()): (1) left hand side and bounds on y -> lower bound on x (2) left hand side and upper bound on x -> bound on y (3) right hand side and bounds on y -> upper bound on x (4) right hand side and lower bound on x -> bound on y
Definition at line 467 of file cons_varbound.c. References analyzeConflict(), NULL, PROPRULE_1, PROPRULE_2, PROPRULE_3, PROPRULE_4, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_CONTINUOUS, SCIPaddConflictLb(), SCIPaddConflictRelaxedLb(), SCIPaddConflictRelaxedUb(), SCIPaddConflictUb(), SCIPadjustedVarLb(), SCIPadjustedVarUb(), SCIPconsGetData(), SCIPconsGetName(), SCIPerrorMessage, SCIPfeastol(), SCIPgetHugeValue(), SCIPisEQ(), SCIPisInfinity(), SCIPisZero(), SCIPvarGetType(), and SCIPvarIsIntegral(). Referenced by analyzeConflict(), checkCons(), and SCIP_DECL_CONSRESPROP().
analyze infeasibility
Definition at line 678 of file cons_varbound.c. References MAX, NULL, REALABS, resolvePropagation(), SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_SOLVING, SCIPaddConflictLb(), SCIPaddConflictRelaxedLb(), SCIPaddConflictRelaxedUb(), SCIPaddConflictUb(), SCIPadjustedVarLb(), SCIPadjustedVarUb(), SCIPanalyzeConflictCons(), SCIPconsGetData(), SCIPfeastol(), SCIPgetConflictVarLb(), SCIPgetConflictVarUb(), SCIPgetStage(), SCIPinitConflictAnalysis(), SCIPinProbing(), SCIPisConflictAnalysisApplicable(), SCIPvarIsIntegral(), and separateCons(). Referenced by propagateCons(), resolvePropagation(), and separateCons().
separates the given variable bound constraint
Definition at line 844 of file cons_varbound.c. References analyzeConflict(), checkCons(), chgLhs(), CONSHDLR_NAME, createRelaxation(), FALSE, NULL, PROPRULE_1, PROPRULE_3, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_CUTOFF, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIP_REDUCEDDOM, SCIP_SEPARATED, SCIP_VARTYPE_CONTINUOUS, SCIPaddCut(), SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPerrorMessage, SCIPfindConshdlr(), SCIPgetRowSolFeasibility(), SCIPinferVarLbCons(), SCIPinferVarUbCons(), SCIPisFeasEQ(), SCIPisFeasNegative(), SCIPisGT(), SCIPisInfinity(), SCIPisLT(), SCIProwIsInLP(), SCIPvarGetLbLocal(), SCIPvarGetType(), SCIPvarGetUbLocal(), and TRUE. Referenced by analyzeConflict(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSSEPALP(), and SCIP_DECL_CONSSEPASOL().
sets left hand side of varbound constraint
Definition at line 975 of file cons_varbound.c. References chgRhs(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPconsIsLocked(), SCIPconsIsTransformed(), SCIPinfinity(), SCIPisEQ(), SCIPisInfinity(), SCIPisLT(), SCIPisPositive(), SCIPlockVarCons(), SCIPunlockVarCons(), and TRUE. Referenced by preprocessConstraintPairs(), propagateCons(), and separateCons().
sets right hand side of varbound constraint
Definition at line 1057 of file cons_varbound.c. References FALSE, NULL, propagateCons(), SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPconsIsLocked(), SCIPconsIsTransformed(), SCIPinfinity(), SCIPisEQ(), SCIPisGT(), SCIPisInfinity(), SCIPisPositive(), SCIPlockVarCons(), SCIPunlockVarCons(), and TRUE. Referenced by chgLhs(), preprocessConstraintPairs(), and propagateCons().
propagation method for variable bound constraint
Definition at line 1139 of file cons_varbound.c. References analyzeConflict(), checkRedundancySide(), chgLhs(), chgRhs(), FALSE, NULL, PROPRULE_1, PROPRULE_2, PROPRULE_3, PROPRULE_4, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_PRESOLVING, SCIP_VARSTATUS_MULTAGGR, SCIPadjustedVarLb(), SCIPadjustedVarUb(), SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPdelConsLocal(), SCIPgetStage(), SCIPincConsAge(), SCIPinferVarLbCons(), SCIPinferVarUbCons(), SCIPinfinity(), SCIPinProbing(), SCIPinRepropagation(), SCIPisFeasGE(), SCIPisFeasLE(), SCIPisGT(), SCIPisInfinity(), SCIPisLT(), SCIPresetConsAge(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), and TRUE. Referenced by chgRhs(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPROP(), and upgradeConss().
Definition at line 1480 of file cons_varbound.c. References FALSE, MAX, MIN, NULL, preprocessConstraintPairs(), REALABS, SCIP_Bool, SCIP_Real, SCIP_VARTYPE_CONTINUOUS, SCIPepsilon(), SCIPfeasCeil(), SCIPfeasFloor(), SCIPisFeasIntegral(), SCIPisInfinity(), SCIPisPositive(), SCIPvarGetLbGlobal(), SCIPvarGetType(), SCIPvarGetUbGlobal(), and TRUE. Referenced by preprocessConstraintPairs(), and propagateCons().
compares each constraint with all other constraints for possible redundancy and removes or changes constraint we will order all constraint to have constraints with same variables next to each other to speed up presolving consider two constraints like lhs1 <= x + b1*y <= rhs1 and lhs2 <= x + b2*y <= rhs2 we are doing the following presolving steps: if( b1 == b2 ) newlhs = MAX(lhs1, lhs2) newrhs = MIN(rhs1, rhs2) updateSides delete one constraint else if( ((b1 > 0) == (b2 > 0)) && (lhs1 != -inf && lhs2 != -inf) || (rhs1 != inf && rhs2 != inf) ) (i.e. both constraint have either a valid lhs or a valid rhs and infinity is on the same side and the coeffcients have the same size ) if( y is binary ) if( lhs1 != -inf ) newlhs = MAX(lhs1, lhs2) newb = newlhs - MAX(lhs1 - b1, lhs2 - b2) else newrhs = MIN(lhs1, lhs2) newb = newrhs - MIN(rhs1 - b1, rhs2 - b2) updateSidesAndCoef delete one constraint else we calculate possible values for both variables and check which constraint is tighter else nothing possible We also try to tighten bounds in the case of two constraints lhs1 <= x + b1*y <= rhs1 and lhs2 <= y + b2*x <= rhs2. Eliminiating one variable and inserting into the second yields the following bounds: If b2 > 0: (1 - b1 * b2) * y >= lhs2 - b2 * rhs1 (1 - b1 * b2) * y <= rhs2 - b2 * lhs1 If b2 < 0: (1 - b1 * b2) * y >= lhs2 - b2 * lhs1 (1 - b1 * b2) * y <= rhs2 - b2 * rhs1 The case of x is similar.
Definition at line 1828 of file cons_varbound.c. References checkRedundancySide(), chgLhs(), chgRhs(), FALSE, MAX, MIN, NULL, prettifyConss(), REALABS, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_UNKNOWN, SCIPadjustedVarLb(), SCIPadjustedVarUb(), SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsActive(), SCIPconsIsLocked(), SCIPconsIsModifiable(), SCIPconsIsTransformed(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelCons(), SCIPduplicateBufferArray, SCIPfreeBufferArray, SCIPinfinity(), SCIPisEQ(), SCIPisFeasLT(), SCIPisFeasNegative(), SCIPisFeasPositive(), SCIPisFeasZero(), SCIPisInfinity(), SCIPisNegative(), SCIPisPositive(), SCIPisZero(), SCIPlockVarCons(), SCIPsortPtr(), SCIPtightenVarLb(), SCIPtightenVarUb(), SCIPunlockVarCons(), SCIPupdateConsFlags(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetUbGlobal(), SCIPvarIsBinary(), and TRUE. Referenced by checkRedundancySide(), and SCIP_DECL_CONSPRESOL().
for all varbound constraints with two integer variables make the coefficients integral
Definition at line 2405 of file cons_varbound.c. References applyFixings(), FALSE, MAXSCALEDCOEF, MIN, NULL, REALABS, SCIP_Bool, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_IMPLINT, SCIP_VARTYPE_INTEGER, SCIPconsGetData(), SCIPconsIsDeleted(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPepsilon(), SCIPfeastol(), SCIPgetNImplVars(), SCIPgetNIntVars(), SCIPinfinity(), SCIPisEQ(), SCIPisGE(), SCIPisInfinity(), SCIPisIntegral(), SCIPisLT(), SCIPrealToRational(), and SCIPvarGetType(). Referenced by preprocessConstraintPairs(), and SCIP_DECL_CONSPRESOL().
replaces fixed and aggregated variables in variable bound constraint by active problem variables
Definition at line 2565 of file cons_varbound.c. References catchEvents(), dropEvents(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_MULTAGGR, SCIPaddCoefLinear(), SCIPaddCons(), SCIPcaptureVar(), SCIPchgLhsLinear(), SCIPchgRhsLinear(), SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateConsLinear(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelCons(), SCIPgetProbvarSum(), SCIPisFeasGT(), SCIPisFeasLT(), SCIPisInfinity(), SCIPisZero(), SCIPreleaseCons(), SCIPreleaseVar(), SCIPtightenVarLb(), SCIPtightenVarUb(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetStatus(), SCIPvarGetUbGlobal(), tightenCoefs(), and TRUE. Referenced by prettifyConss(), SCIP_DECL_CONSPRESOL(), and upgradeConss().
tightens variable bound coefficient by inspecting the global bounds of the involved variables; note: this is also performed by the linear constraint handler - only necessary if the user directly creates variable bound constraints
Definition at line 2979 of file cons_varbound.c. References FALSE, MAX, MIN, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_IMPLINT, SCIP_VARTYPE_INTEGER, SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPdelCons(), SCIPfeasCeil(), SCIPfeasFloor(), SCIPisEQ(), SCIPisFeasGE(), SCIPisFeasGT(), SCIPisFeasIntegral(), SCIPisFeasLE(), SCIPisFeasLT(), SCIPisGE(), SCIPisInfinity(), SCIPisIntegral(), SCIPisLE(), SCIPisZero(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetType(), SCIPvarGetUbGlobal(), SCIPvarIsBinary(), TRUE, and upgradeConss(). Referenced by applyFixings(), SCIP_DECL_CONSPRESOL(), and upgradeConss().
check if we can upgrade to a set-packing constraint
Definition at line 3377 of file cons_varbound.c. References applyFixings(), NULL, propagateCons(), REALABS, SCIP_Bool, SCIP_CALL, SCIP_DECL_LINCONSUPGD(), SCIP_OKAY, SCIPaddCons(), SCIPaggregateVars(), SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsActive(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateConsSetpack(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelCons(), SCIPgetNBinVars(), SCIPgetNegatedVar(), SCIPgetNImplVars(), SCIPisEQ(), SCIPisInfinity(), SCIPisLE(), SCIPisZero(), SCIPreleaseCons(), SCIPvarGetName(), SCIPvarIsBinary(), and tightenCoefs(). Referenced by SCIP_DECL_CONSPRESOL(), and tightenCoefs().
tries to upgrade a linear constraint into a variable bound constraint Definition at line 3580 of file cons_varbound.c. References NULL, REALABS, SCIP_Bool, SCIP_CALL, SCIP_DECL_CONSHDLRCOPY(), SCIP_OKAY, SCIP_Real, SCIPconsGetName(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateConsVarbound(), SCIPdebugMessage, SCIPinfinity(), SCIPisInfinity(), SCIPisIntegral(), SCIPisZero(), and SCIPvarGetType(). Referenced by upgradeConss().
copy method for constraint handler plugins (called when SCIP copies plugins) Definition at line 3657 of file cons_varbound.c. References CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_DECL_CONSFREE(), SCIP_OKAY, SCIPconshdlrGetName(), SCIPincludeConshdlrVarbound(), and TRUE. Referenced by SCIP_DECL_LINCONSUPGD().
destructor of constraint handler to free constraint handler data (called when SCIP is exiting) Definition at line 3673 of file cons_varbound.c. References CONSHDLR_NAME, conshdlrdataFree(), NULL, SCIP_DECL_CONSEXITSOL(), SCIP_OKAY, SCIPconshdlrGetData(), SCIPconshdlrGetName(), and SCIPconshdlrSetData(). Referenced by SCIP_DECL_CONSHDLRCOPY().
solving process deinitialization method of constraint handler (called before branch and bound process data is freed) Definition at line 3694 of file cons_varbound.c. References NULL, SCIP_CALL, SCIP_DECL_CONSDELETE(), SCIP_OKAY, SCIPconsGetData(), and SCIPreleaseRow(). Referenced by SCIP_DECL_CONSFREE().
frees specific constraint data Definition at line 3717 of file cons_varbound.c. References consdataFree(), dropEvents(), NULL, SCIP_CALL, SCIP_DECL_CONSTRANS(), SCIP_OKAY, SCIPconshdlrGetData(), and SCIPisTransformed(). Referenced by SCIP_DECL_CONSEXITSOL().
transforms constraint data into data belonging to the transformed problem Definition at line 3738 of file cons_varbound.c. References catchEvents(), consdataCreate(), NULL, SCIP_CALL, SCIP_DECL_CONSINITLP(), SCIP_OKAY, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetData(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), and SCIPcreateCons(). Referenced by SCIP_DECL_CONSDELETE().
LP initialization method of constraint handler (called before the initial LP relaxation at a node is solved) Definition at line 3772 of file cons_varbound.c. References addRelaxation(), SCIP_CALL, SCIP_DECL_CONSSEPALP(), SCIP_OKAY, and SCIPconsIsInitial(). Referenced by SCIP_DECL_CONSTRANS().
separation method of constraint handler for LP solutions Definition at line 3788 of file cons_varbound.c. References NULL, SCIP_CALL, SCIP_DECL_CONSSEPASOL(), SCIP_DIDNOTFIND, SCIP_OKAY, SCIPconshdlrGetData(), and separateCons(). Referenced by SCIP_DECL_CONSINITLP().
separation method of constraint handler for arbitrary primal solutions Definition at line 3818 of file cons_varbound.c. References NULL, SCIP_CALL, SCIP_DECL_CONSENFOLP(), SCIP_DIDNOTFIND, SCIP_OKAY, SCIPconshdlrGetData(), and separateCons(). Referenced by SCIP_DECL_CONSSEPALP().
constraint enforcing method of constraint handler for LP solutions Definition at line 3848 of file cons_varbound.c. References checkCons(), FALSE, NULL, SCIP_CALL, SCIP_DECL_CONSENFOPS(), SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIPconshdlrGetData(), SCIPincConsAge(), SCIPresetConsAge(), and separateCons(). Referenced by SCIP_DECL_CONSSEPASOL().
constraint enforcing method of constraint handler for pseudo solutions Definition at line 3888 of file cons_varbound.c. References checkCons(), NULL, SCIP_CALL, SCIP_DECL_CONSCHECK(), SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIPincConsAge(), SCIPresetConsAge(), and TRUE. Referenced by SCIP_DECL_CONSENFOLP().
feasibility check method of constraint handler for integral solutions Definition at line 3915 of file cons_varbound.c. References checkCons(), NULL, SCIP_CALL, SCIP_DECL_CONSPROP(), SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPgetSolVal(), SCIPinfoMessage(), SCIPisFeasGE(), SCIPisFeasLE(), and SCIPprintCons(). Referenced by SCIP_DECL_CONSENFOPS().
domain propagation method of constraint handler Definition at line 3958 of file cons_varbound.c. References FALSE, NULL, propagateCons(), SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DECL_CONSPRESOL(), SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_REDUCEDDOM, SCIPconshdlrGetData(), and SCIPunmarkConsPropagate(). Referenced by SCIP_DECL_CONSCHECK().
presolving method of constraint handler Definition at line 3994 of file cons_varbound.c. References applyFixings(), CONSHDLR_NAME, FALSE, NULL, preprocessConstraintPairs(), prettifyConss(), propagateCons(), SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DECL_CONSRESPROP(), SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_PRESOLTIMING_MEDIUM, SCIP_SUCCESS, SCIPaddVarVlb(), SCIPaddVarVub(), SCIPconsGetData(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPconsIsActive(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPisInfinity(), SCIPisStopped(), SCIPvarGetName(), tightenCoefs(), TRUE, and upgradeConss(). Referenced by SCIP_DECL_CONSPROP().
propagation conflict resolving method of constraint handler Definition at line 4148 of file cons_varbound.c. References NULL, resolvePropagation(), SCIP_CALL, SCIP_DECL_CONSLOCK(), SCIP_OKAY, SCIP_SUCCESS, and SCIPconshdlrGetData(). Referenced by SCIP_DECL_CONSPRESOL().
variable rounding lock method of constraint handler Definition at line 4167 of file cons_varbound.c. References NULL, SCIP_CALL, SCIP_DECL_CONSPRINT(), SCIP_OKAY, SCIPaddVarLocks(), SCIPconsGetData(), and SCIPisInfinity(). Referenced by SCIP_DECL_CONSRESPROP().
constraint display method of constraint handler Definition at line 4205 of file cons_varbound.c. References NULL, SCIP_DECL_CONSCOPY(), SCIP_OKAY, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_BINARY_CHAR, SCIP_VARTYPE_CONTINUOUS_CHAR, SCIP_VARTYPE_IMPLINT, SCIP_VARTYPE_IMPLINT_CHAR, SCIP_VARTYPE_INTEGER, SCIP_VARTYPE_INTEGER_CHAR, SCIPconsGetData(), SCIPinfoMessage(), SCIPisEQ(), SCIPisInfinity(), SCIPvarGetName(), and SCIPvarGetType(). Referenced by SCIP_DECL_CONSLOCK().
constraint copying method of constraint handler Definition at line 4247 of file cons_varbound.c. References NULL, SCIP_CALL, SCIP_DECL_CONSPARSE(), SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPconsGetName(), SCIPcopyConsLinear(), SCIPfreeBufferArray, SCIPgetLhsVarbound(), SCIPgetRhsVarbound(), SCIPgetVarVarbound(), SCIPgetVbdcoefVarbound(), and SCIPgetVbdvarVarbound(). Referenced by SCIP_DECL_CONSPRINT().
constraint parsing method of constraint handler Definition at line 4280 of file cons_varbound.c. References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_DECL_CONSGETVARS(), SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPcreateConsVarbound(), SCIPdebugMessage, SCIPerrorMessage, SCIPfreeBufferArray, SCIPinfinity(), SCIPisEQ(), SCIPisInfinity(), SCIPparseVarsLinearsum(), SCIPstrToRealValue(), and SCIPvarGetName(). Referenced by SCIP_DECL_CONSCOPY().
constraint method of constraint handler which returns the variables (if possible) Definition at line 4403 of file cons_varbound.c. References FALSE, NULL, SCIP_DECL_CONSGETNVARS(), SCIP_OKAY, SCIPconsGetData(), and TRUE. Referenced by SCIP_DECL_CONSPARSE().
constraint method of constraint handler which returns the number of variables (if possible) Definition at line 4427 of file cons_varbound.c. References SCIP_DECL_EVENTEXEC(), SCIP_OKAY, and TRUE. Referenced by SCIP_DECL_CONSGETVARS().
execution method of bound change event handler Definition at line 4441 of file cons_varbound.c. References FALSE, NULL, SCIP_CALL, SCIP_EVENTTYPE_BOUNDTIGHTENED, SCIP_EVENTTYPE_VARFIXED, SCIP_OKAY, SCIPconsGetData(), SCIPeventGetType(), SCIPincludeConshdlrVarbound(), and SCIPmarkConsPropagate(). Referenced by SCIP_DECL_CONSGETNVARS().
creates the handler for variable bound constraints and includes it in SCIP
Definition at line 4479 of file cons_varbound.c. References CONSHDLR_CHECKPRIORITY, CONSHDLR_DELAYPROP, CONSHDLR_DELAYSEPA, CONSHDLR_DESC, CONSHDLR_EAGERFREQ, CONSHDLR_ENFOPRIORITY, CONSHDLR_MAXPREROUNDS, CONSHDLR_NAME, CONSHDLR_NEEDSCONS, CONSHDLR_PRESOLTIMING, CONSHDLR_PROP_TIMING, CONSHDLR_PROPFREQ, CONSHDLR_SEPAFREQ, CONSHDLR_SEPAPRIORITY, conshdlrdataCreate(), DEFAULT_MAXLPCOEF, DEFAULT_PRESOLPAIRWISE, DEFAULT_USEBDWIDENING, EVENTHDLR_DESC, EVENTHDLR_NAME, FALSE, LINCONSUPGD_PRIORITY, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPaddRealParam(), SCIPcreateConsVarbound(), SCIPfindConshdlr(), SCIPincludeConshdlrBasic(), SCIPincludeEventhdlrBasic(), SCIPincludeLinconsUpgrade(), SCIPsetConshdlrCopy(), SCIPsetConshdlrDelete(), SCIPsetConshdlrExitsol(), SCIPsetConshdlrFree(), SCIPsetConshdlrGetNVars(), SCIPsetConshdlrGetVars(), SCIPsetConshdlrInitlp(), SCIPsetConshdlrParse(), SCIPsetConshdlrPresol(), SCIPsetConshdlrPrint(), SCIPsetConshdlrProp(), SCIPsetConshdlrResprop(), SCIPsetConshdlrSepa(), SCIPsetConshdlrTrans(), and TRUE. Referenced by SCIP_DECL_CONSHDLRCOPY(), SCIP_DECL_EVENTEXEC(), and SCIPincludeDefaultPlugins().
creates and captures a variable bound constraint: lhs <= x + c*y <= rhs
Definition at line 4545 of file cons_varbound.c. References catchEvents(), consdataCreate(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPconshdlrGetData(), SCIPcreateCons(), SCIPcreateConsBasicVarbound(), SCIPerrorMessage, SCIPfindConshdlr(), and SCIPisTransformed(). Referenced by addVarbound(), createPrecedenceCons(), createVarUbs(), presolveTryAddLinearReform(), SCIP_DECL_CONSINITLP(), SCIP_DECL_CONSPARSE(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_LINCONSUPGD(), SCIPcreateConsBasicVarbound(), and SCIPincludeConshdlrVarbound().
creates and captures a variable bound constraint: lhs <= x + c*y <= rhs with all constraint flags set to their default values
Definition at line 4615 of file cons_varbound.c. References FALSE, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPcreateConsVarbound(), SCIPgetLhsVarbound(), and TRUE. Referenced by SCIPcreateConsVarbound(). gets left hand side of variable bound constraint lhs <= x + c*y <= rhs
Definition at line 4633 of file cons_varbound.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIP_Real, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, and SCIPgetRhsVarbound(). Referenced by addVarboundConstraints(), checkVarbound(), printRangeSection(), SCIP_DECL_CONSCOPY(), SCIP_DECL_READERWRITE(), SCIPcreateConsBasicVarbound(), SCIPmatrixCreate(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), writeFzn(), and writeOpbConstraints(). gets right hand side of variable bound constraint lhs <= x + c*y <= rhs
Definition at line 4654 of file cons_varbound.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, and SCIPgetVarVarbound(). Referenced by addVarboundConstraints(), checkVarbound(), printRangeSection(), SCIP_DECL_CONSCOPY(), SCIP_DECL_READERWRITE(), SCIPgetLhsVarbound(), SCIPmatrixCreate(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), writeFzn(), and writeOpbConstraints(). gets bounded variable x of variable bound constraint lhs <= x + c*y <= rhs
Definition at line 4675 of file cons_varbound.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, and SCIPgetVbdvarVarbound(). Referenced by addVarboundConstraints(), checkVarbound(), SCIP_DECL_CONSCOPY(), SCIP_DECL_READERWRITE(), SCIPgetRhsVarbound(), SCIPmatrixCreate(), SCIPwriteCcg(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePbm(), SCIPwritePip(), SCIPwritePpm(), writeFzn(), and writeOpbConstraints(). gets bounding variable y of variable bound constraint lhs <= x + c*y <= rhs
Definition at line 4696 of file cons_varbound.c. References CONSHDLR_NAME, NULL, SCIP_Real, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, and SCIPgetVbdcoefVarbound(). Referenced by addVarboundConstraints(), checkVarbound(), SCIP_DECL_CONSCOPY(), SCIP_DECL_READERWRITE(), SCIPgetVarVarbound(), SCIPmatrixCreate(), SCIPwriteCcg(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePbm(), SCIPwritePip(), SCIPwritePpm(), writeFzn(), and writeOpbConstraints(). gets bound coefficient c of variable bound constraint lhs <= x + c*y <= rhs
Definition at line 4717 of file cons_varbound.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIP_Real, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, and SCIPgetDualsolVarbound(). Referenced by addVarboundConstraints(), checkVarbound(), SCIP_DECL_CONSCOPY(), SCIP_DECL_READERWRITE(), SCIPgetVbdvarVarbound(), SCIPmatrixCreate(), SCIPwriteCcg(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePbm(), SCIPwritePip(), SCIPwritePpm(), writeFzn(), and writeOpbConstraints(). gets the dual solution of the variable bound constraint in the current LP
Definition at line 4738 of file cons_varbound.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIP_Real, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, SCIPgetDualfarkasVarbound(), and SCIProwGetDualsol(). Referenced by SCIPgetVbdcoefVarbound(). gets the dual Farkas value of the variable bound constraint in the current infeasible LP
Definition at line 4762 of file cons_varbound.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, SCIPgetRowVarbound(), and SCIProwGetDualfarkas(). Referenced by SCIPgetDualsolVarbound(). returns the linear relaxation of the given variable bound constraint; may return NULL if no LP row was yet created; the user must not modify the row!
Definition at line 4788 of file cons_varbound.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by SCIPgetDualfarkasVarbound(). |