All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cons_linear.c File Reference Detailed DescriptionConstraint handler for linear constraints in their most general form, . Linear constraints are separated with a high priority, because they are easy to separate. Instead of using the global cut pool, the same effect can be implemented by adding linear constraints to the root node, such that they are separated each time, the linear constraints are separated. A constraint handler, which generates linear constraints in this way should have a lower separation priority than the linear constraint handler, and it should have a separation frequency that is a multiple of the frequency of the linear constraint handler. In this way, it can be avoided to separate the same cut twice, because if a separation run of the handler is always preceded by a separation of the linear constraints, the priorily added constraints are always satisfied. Linear constraints are enforced and checked with a very low priority. Checking of (many) linear constraints is much more involved than checking the solution values for integrality. Because we are separating the linear constraints quite often, it is only necessary to enforce them for integral solutions. A constraint handler which generates pool cuts in its enforcing method should have an enforcing priority smaller than that of the linear constraint handler to avoid regenerating constraints which already exist. Definition in file cons_linear.c. #include <assert.h> #include <string.h> #include <limits.h> #include <ctype.h> #include "scip/cons_linear.h" #include "scip/cons_knapsack.h" #include "scip/cons_quadratic.h" #include "scip/cons_nonlinear.h" #include "scip/pub_misc.h" #include "scip/debug.h" Go to the source code of this file.
Macro Definition Documentation
Definition at line 61 of file cons_linear.c. Referenced by performVarDeletions(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSDELETE(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSFREE(), SCIP_DECL_CONSHDLRCOPY(), SCIP_DECL_CONSINITLP(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSSEPALP(), SCIP_DECL_CONSSEPASOL(), SCIP_DECL_CONSTRANS(), SCIPaddCoefLinear(), SCIPchgLhsLinear(), SCIPchgRhsLinear(), SCIPcreateConsLinear(), SCIPgetActivityLinear(), SCIPgetDualfarkasLinear(), SCIPgetDualsolLinear(), SCIPgetFeasibilityLinear(), SCIPgetLhsLinear(), SCIPgetNVarsLinear(), SCIPgetRhsLinear(), SCIPgetRowLinear(), SCIPgetValsLinear(), SCIPgetVarsLinear(), SCIPincludeConshdlrLinear(), SCIPincludeLinconsUpgrade(), and SCIPupgradeConsLinear().
Definition at line 62 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
priority of the constraint handler for separation Definition at line 63 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
priority of the constraint handler for constraint enforcing Definition at line 64 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
priority of the constraint handler for checking feasibility Definition at line 65 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
frequency for separating cuts; zero means to separate only in the root node Definition at line 66 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
frequency for propagating domains; zero means only preprocessing propagation Definition at line 67 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
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 68 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
maximal number of presolving rounds the constraint handler participates in (-1: no limit) Definition at line 70 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should separation method be delayed, if other separators found cuts? Definition at line 71 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should propagation method be delayed, if other propagators found reductions? Definition at line 72 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should presolving method be delayed, if other presolvers found reductions? Definition at line 73 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should the constraint handler be skipped, if no constraints are available? Definition at line 74 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
Definition at line 76 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
Definition at line 78 of file cons_linear.c. Referenced by SCIP_DECL_EVENTEXEC(), and SCIPincludeConshdlrLinear().
Definition at line 79 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
Definition at line 81 of file cons_linear.c. Referenced by SCIP_DECL_CONFLICTEXEC(), and SCIPincludeConshdlrLinear().
Definition at line 82 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
Definition at line 83 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
multiplier on propagation frequency, how often the bounds are tightened Definition at line 85 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
maximal number of separation rounds per node (-1: unlimited) Definition at line 86 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
maximal number of separation rounds in the root node (-1: unlimited) Definition at line 87 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
maximal number of cuts separated per separation round Definition at line 88 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
maximal number of cuts separated per separation round in root node Definition at line 89 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should pairwise constraint comparison be performed in presolving? Definition at line 90 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should hash table be used for detecting redundant constraints in advance Definition at line 91 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
number for minimal pairwise presolving comparisons Definition at line 92 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
minimal gain per minimal pairwise presolving comparisons to repeat pairwise comparison round Definition at line 93 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should variables be sorted after presolve w.r.t their coefficient absolute for faster propagation? Definition at line 95 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should the violation for a constraint with side 0.0 be checked relative to 1.0 (FALSE) or to the maximum absolute value in the activity (TRUE)? Definition at line 97 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
maximal allowed relative gain in maximum norm for constraint aggregation (0.0: disable constraint aggregation) Definition at line 99 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
maximal relative distance from current node's dual bound to primal bound compared to best node's dual bound for separating knapsack cardinality cuts Definition at line 101 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should all constraints be subject to cardinality cut generation instead of only the ones with non-zero dual value? Definition at line 103 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should presolving search for redundant variables in equations Definition at line 105 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should presolving try to simplify inequalities Definition at line 106 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should dual presolving steps be performed? Definition at line 107 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should presolving try to detect constraints parallel to the objective function defining an upper bound and prevent these constraints from entering the LP Definition at line 108 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should presolving try to detect constraints parallel to the objective function defining a lower bound and prevent these constraints from entering the LP Definition at line 111 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
should presolving try to detect subsets of constraints parallel to the objective function Definition at line 114 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
maximal denominator for simple rational fixed values Definition at line 117 of file cons_linear.c. Referenced by convertUnaryEquality(), fixVariables(), SCIP_DECL_PRESOLEXEC(), and tryAggregateIntVars().
maximal coefficient value after scaling Definition at line 118 of file cons_linear.c. Referenced by normalizeCons().
maximal coefficient value after scaling if all variables are of integral type Definition at line 119 of file cons_linear.c. Referenced by normalizeCons().
minimal size of hash table in linear constraint tables Definition at line 123 of file cons_linear.c. Referenced by detectRedundantConstraints().
priority of the constraint handler for upgrading of quadratic constraints Definition at line 125 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
priority of the constraint handler for upgrading of nonlinear constraints Definition at line 126 of file cons_linear.c. Referenced by SCIPincludeConshdlrLinear().
Definition at line 5242 of file cons_linear.c. Referenced by tightenBounds().
Definition at line 5243 of file cons_linear.c. Referenced by SCIP_DECL_CONSEXITPRE(), and tightenBounds().
Definition at line 5924 of file cons_linear.c. Referenced by extractCliques().
Definition at line 7005 of file cons_linear.c. Referenced by consdataTightenCoefs().
Definition at line 7627 of file cons_linear.c. Referenced by convertLongEquality().
Definition at line 9025 of file cons_linear.c. Referenced by getVarWeight().
Definition at line 9026 of file cons_linear.c. Referenced by getVarWeight().
Definition at line 9027 of file cons_linear.c. Referenced by getVarWeight().
Definition at line 10946 of file cons_linear.c. Referenced by SCIP_DECL_HASHKEYVAL().
Definition at line 13252 of file cons_linear.c. Referenced by SCIP_DECL_CONSPRESOL(). Typedef DocumentationDefinition at line 298 of file cons_linear.c.
Definition at line 313 of file cons_linear.c. Enumeration Type Documentation
Definition at line 290 of file cons_linear.c. Function Documentation
converts an integer into an inference information
Definition at line 317 of file cons_linear.c. Referenced by SCIP_DECL_CONSRESPROP().
converts an inference information into an int
Definition at line 330 of file cons_linear.c. Referenced by getInferInt().
returns the propagation rule stored in the inference information
Definition at line 339 of file cons_linear.c. Referenced by resolvePropagation().
returns the position stored in the inference information
Definition at line 348 of file cons_linear.c. Referenced by resolvePropagation(). constructs an inference information out of a propagation rule and a position number
Definition at line 357 of file cons_linear.c. Referenced by getInferInt().
constructs an inference information out of a propagation rule and a position number, returns info as int
Definition at line 373 of file cons_linear.c. References getInferInfo(), and inferInfoToInt(). Referenced by tightenVarBounds(), tightenVarLb(), and tightenVarUb().
ensures, that linconsupgrades array can store at least num entries
Definition at line 388 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPcalcMemGrowSize(), and SCIPreallocMemoryArray. Referenced by conshdlrdataIncludeUpgrade().
ensures, that vars and vals arrays can store at least num entries
Definition at line 413 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPcalcMemGrowSize(), and SCIPreallocBlockMemoryArray. Referenced by addCoef().
creates a linear constraint upgrade data object
Definition at line 448 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPallocMemory, and TRUE. Referenced by SCIPincludeLinconsUpgrade().
frees a linear constraint upgrade data object
Definition at line 469 of file cons_linear.c. References NULL, and SCIPfreeMemory. Referenced by conshdlrdataFree().
creates constraint handler data for linear constraint handler
Definition at line 483 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_OKAY, and SCIPallocMemory. Referenced by SCIPincludeConshdlrLinear().
frees constraint handler data for linear constraint handler
Definition at line 506 of file cons_linear.c. References linconsupgradeFree(), NULL, SCIPfreeMemory, and SCIPfreeMemoryArrayNull. Referenced by SCIP_DECL_CONSFREE().
creates a linear constraint upgrade data object
Definition at line 528 of file cons_linear.c. References FALSE, NULL, SCIPwarningMessage(), and TRUE. Referenced by SCIPincludeLinconsUpgrade().
adds a linear constraint update method to the constraint handler's data
Definition at line 558 of file cons_linear.c. References conshdlrdataEnsureLinconsupgradesSize(), NULL, SCIP_LinConsUpgrade::priority, SCIP_CALL, and SCIP_OKAY. Referenced by SCIPincludeLinconsUpgrade().
installs rounding locks for the given variable associated to the given coefficient in the linear constraint
Definition at line 590 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPisInfinity(), SCIPisPositive(), SCIPisZero(), and SCIPlockVarCons(). Referenced by addCoef(), and chgCoefPos().
removes rounding locks for the given variable associated to the given coefficient in the linear constraint
Definition at line 623 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPisInfinity(), SCIPisPositive(), SCIPisZero(), and SCIPunlockVarCons(). Referenced by chgCoefPos(), and delCoefPos().
creates event data for variable at given position, and catches events
Definition at line 656 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_EVENTTYPE_BOUNDCHANGED, SCIP_EVENTTYPE_GBDCHANGED, SCIP_EVENTTYPE_VARDELETED, SCIP_EVENTTYPE_VARFIXED, SCIP_EVENTTYPE_VARUNLOCKED, SCIP_OKAY, SCIPallocBlockMemory, SCIPcatchVarEvent(), SCIPconsGetData(), and SCIPvarIsTransformed(). Referenced by addCoef(), and consCatchAllEvents().
deletes event data for variable at given position, and drops events
Definition at line 692 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_EVENTTYPE_BOUNDCHANGED, SCIP_EVENTTYPE_GBDCHANGED, SCIP_EVENTTYPE_VARDELETED, SCIP_EVENTTYPE_VARFIXED, SCIP_EVENTTYPE_VARUNLOCKED, SCIP_OKAY, SCIPconsGetData(), SCIPdropVarEvent(), and SCIPfreeBlockMemory. Referenced by consDropAllEvents(), and delCoefPos().
catches bound change events for all variables in transformed linear constraint
Definition at line 726 of file cons_linear.c. References BMSclearMemoryArray, consCatchEvent(), NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBlockMemoryArray, and SCIPconsGetData(). Referenced by SCIP_DECL_CONSINIT(), SCIP_DECL_CONSTRANS(), and SCIPcreateConsLinear().
drops bound change events for all variables in transformed linear constraint
Definition at line 758 of file cons_linear.c. References consDropEvent(), NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), and SCIPfreeBlockMemoryArray. Referenced by SCIP_DECL_CONSDELETE(), and SCIP_DECL_CONSEXIT(). returns whether we are in a stage, where the variable events should be caught
Definition at line 789 of file cons_linear.c. References NULL, SCIP_STAGE_FREETRANS, SCIP_STAGE_TRANSFORMED, and SCIPgetStage(). Referenced by SCIP_DECL_CONSTRANS(), and SCIPcreateConsLinear().
creates a linear constraint data
Definition at line 800 of file cons_linear.c. References FALSE, NULL, SCIP_CALL, SCIP_INVALID, SCIP_INVALIDDATA, SCIP_OKAY, SCIPallocBlockMemory, SCIPcaptureVar(), SCIPduplicateBlockMemoryArray, SCIPerrorMessage, SCIPgetTransformedVars(), SCIPinfinity(), SCIPisGT(), SCIPisInfinity(), SCIPisTransformed(), SCIPisZero(), and TRUE. Referenced by SCIP_DECL_CONSTRANS(), and SCIPcreateConsLinear().
frees a linear constraint data
Definition at line 937 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPfreeBlockMemory, SCIPfreeBlockMemoryArrayNull, SCIPisZero(), SCIPreleaseRow(), and SCIPreleaseVar(). Referenced by SCIP_DECL_CONSDELETE().
prints linear constraint in CIP format to file stream
Definition at line 972 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPinfoMessage(), SCIPisEQ(), SCIPisInfinity(), SCIPwriteVarsLinearsum(), and TRUE. Referenced by SCIP_DECL_CONSPRINT().
invalidates activity bounds, such that they are recalculated in next get
Definition at line 1011 of file cons_linear.c. References FALSE, NULL, and SCIP_INVALID. Referenced by delCoefPos(), and scaleCons().
compute the pseudo activity of a constraint
Definition at line 1051 of file cons_linear.c. References SCIP_BOUNDTYPE_LOWER, SCIP_Real, SCIPinfinity(), SCIPisInfinity(), SCIPvarGetBestBoundType(), SCIPvarGetLbLocal(), and SCIPvarGetUbLocal(). Referenced by checkCons(), and consdataGetActivity().
recompute the minactivity of a constraint
Definition at line 1102 of file cons_linear.c. References SCIP_Real, SCIPisHugeValue(), SCIPisInfinity(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), and TRUE. Referenced by consdataTightenCoefs(), getMinActivity(), and tightenVarBoundsEasy().
recompute the maxactivity of a constraint
Definition at line 1129 of file cons_linear.c. References SCIP_Real, SCIPisHugeValue(), SCIPisInfinity(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), and TRUE. Referenced by consdataTightenCoefs(), getMaxActivity(), and tightenVarBoundsEasy().
recompute the global minactivity of a constraint
Definition at line 1156 of file cons_linear.c. References SCIP_Real, SCIPisInfinity(), SCIPvarGetLbGlobal(), SCIPvarGetUbGlobal(), and TRUE. Referenced by extractCliques(), and getMinActivity().
recompute the global maxactivity of a constraint
Definition at line 1182 of file cons_linear.c. References SCIP_Real, SCIPisInfinity(), SCIPvarGetLbGlobal(), SCIPvarGetUbGlobal(), and TRUE. Referenced by extractCliques(), and getMaxActivity().
recompute maximal activity contribution for a single variable
Definition at line 1208 of file cons_linear.c. References MAX, REALABS, SCIP_Real, SCIPinfinity(), SCIPisInfinity(), SCIPvarGetLbLocal(), and SCIPvarGetUbLocal(). Referenced by SCIP_DECL_CONSEXITPRE(), simplifyInequalities(), and tightenBounds().
updates activities for a change in a bound
Definition at line 1242 of file cons_linear.c. References FALSE, NULL, REALABS, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_INVALID, SCIP_Real, SCIPdebugMessage, SCIPisHugeValue(), SCIPisInfinity(), and SCIPisUpdateUnreliable(). Referenced by consdataUpdateActivitiesGlbLb(), consdataUpdateActivitiesGlbUb(), consdataUpdateActivitiesLb(), and consdataUpdateActivitiesUb().
updates minimum and maximum activity for a change in lower bound
Definition at line 1600 of file cons_linear.c. References consdataUpdateActivities(), FALSE, NULL, SCIP_BOUNDTYPE_LOWER, and SCIPisInfinity(). Referenced by consdataUpdateAddCoef(), consdataUpdateDelCoef(), and SCIP_DECL_EVENTEXEC().
updates minimum and maximum activity for a change in upper bound
Definition at line 1625 of file cons_linear.c. References consdataUpdateActivities(), FALSE, NULL, SCIP_BOUNDTYPE_UPPER, and SCIPisInfinity(). Referenced by consdataUpdateAddCoef(), consdataUpdateDelCoef(), and SCIP_DECL_EVENTEXEC().
updates minimum and maximum global activity for a change in the global lower bound
Definition at line 1650 of file cons_linear.c. References consdataUpdateActivities(), NULL, SCIP_BOUNDTYPE_LOWER, SCIPisInfinity(), and TRUE. Referenced by consdataUpdateAddCoef(), consdataUpdateDelCoef(), and SCIP_DECL_EVENTEXEC().
updates minimum and maximum global activity for a change in global upper bound
Definition at line 1673 of file cons_linear.c. References consdataUpdateActivities(), NULL, SCIP_BOUNDTYPE_UPPER, SCIPisInfinity(), and TRUE. Referenced by consdataUpdateAddCoef(), consdataUpdateDelCoef(), and SCIP_DECL_EVENTEXEC().
updates minimum and maximum activity and maximum absolute value for coefficient addition
Definition at line 1696 of file cons_linear.c. References consdataUpdateActivitiesGlbLb(), consdataUpdateActivitiesGlbUb(), consdataUpdateActivitiesLb(), consdataUpdateActivitiesUb(), MAX, NULL, REALABS, SCIP_INVALID, SCIP_Real, SCIPvarGetLbGlobal(), SCIPvarGetLbLocal(), SCIPvarGetUbGlobal(), and SCIPvarGetUbLocal(). Referenced by addCoef(), consdataCalcActivities(), and consdataUpdateChgCoef().
updates minimum and maximum activity for coefficient deletion, invalidates maximum absolute value if necessary
Definition at line 1736 of file cons_linear.c. References consdataUpdateActivitiesGlbLb(), consdataUpdateActivitiesGlbUb(), consdataUpdateActivitiesLb(), consdataUpdateActivitiesUb(), FALSE, NULL, REALABS, SCIP_INVALID, SCIP_Real, SCIPisEQ(), SCIPvarGetLbGlobal(), SCIPvarGetLbLocal(), SCIPvarGetUbGlobal(), and SCIPvarGetUbLocal(). Referenced by consdataUpdateChgCoef(), and delCoefPos().
updates minimum and maximum activity for coefficient change, invalidates maximum absolute value if necessary
Definition at line 1779 of file cons_linear.c. References consdataUpdateAddCoef(), consdataUpdateDelCoef(), FALSE, NULL, REALABS, SCIP_INVALID, SCIP_Real, SCIPisEQ(), SCIPisGE(), and SCIPisZero(). Referenced by chgCoefPos().
calculates maximum absolute value of coefficients
Definition at line 1827 of file cons_linear.c. References MAX, NULL, REALABS, SCIP_INVALID, SCIP_Real, and TRUE. Referenced by consdataGetMaxAbsval(), and normalizeCons().
returns the maximum absolute value of all coefficients in the constraint
Definition at line 1850 of file cons_linear.c. References consdataCalcMaxAbsval(), NULL, and SCIP_INVALID. Referenced by aggregateConstraints(), normalizeCons(), and SCIP_DECL_HASHKEYVAL().
calculates minimum and maximum local and global activity for constraint from scratch; additionally recalculates maximum absolute value of coefficients
Definition at line 1868 of file cons_linear.c. References consdataUpdateAddCoef(), FALSE, NULL, SCIP_INVALID, and TRUE. Referenced by consdataGetActivityBounds(), consdataGetActivityResiduals(), consdataGetGlbActivityBounds(), consdataGetGlbActivityResiduals(), extractCliques(), and tightenVarBoundsEasy().
gets minimal activity for constraint and given values of counters for infinite and huge contributions and (if needed) delta to subtract from stored finite part of activity in case of a residual activity
Definition at line 1928 of file cons_linear.c. References consdataRecomputeGlbMinactivity(), consdataRecomputeMinactivity(), FALSE, NULL, SCIP_Real, SCIPgetHugeValue(), SCIPinfinity(), and TRUE. Referenced by consdataGetActivityBounds(), consdataGetActivityResiduals(), consdataGetGlbActivityBounds(), and consdataGetGlbActivityResiduals().
gets maximal activity for constraint and given values of counters for infinite and huge contributions and (if needed) delta to subtract from stored finite part of activity in case of a residual activity
Definition at line 2029 of file cons_linear.c. References consdataRecomputeGlbMaxactivity(), consdataRecomputeMaxactivity(), FALSE, NULL, SCIP_Real, SCIPgetHugeValue(), SCIPinfinity(), and TRUE. Referenced by consdataGetActivityBounds(), consdataGetActivityResiduals(), consdataGetGlbActivityBounds(), and consdataGetGlbActivityResiduals().
gets activity bounds for constraint
Definition at line 2128 of file cons_linear.c. References consdataCalcActivities(), FALSE, getMaxActivity(), getMinActivity(), NULL, SCIP_Bool, and SCIP_INVALID. Referenced by consdataTightenCoefs(), propagateCons(), SCIP_DECL_CONSPRESOL(), and tightenBounds().
calculates activity bounds for constraint after setting variable to zero
Definition at line 2174 of file cons_linear.c. References NULL, REALABS, SCIP_Real, SCIPisHugeValue(), SCIPisInfinity(), SCIPisLE(), SCIPisZero(), SCIPvarGetLbGlobal(), SCIPvarGetLbLocal(), SCIPvarGetUbGlobal(), and SCIPvarGetUbLocal(). Referenced by addConflictBounds(), convertLongEquality(), dualPresolve(), fullDualPresolve(), and tightenVarBounds().
gets activity bounds for constraint after setting variable to zero
Definition at line 2255 of file cons_linear.c. References consdataCalcActivities(), FALSE, getMaxActivity(), getMinActivity(), NULL, SCIP_INVALID, SCIP_Real, SCIPisHugeValue(), SCIPisInfinity(), SCIPvarGetLbLocal(), and SCIPvarGetUbLocal(). Referenced by convertLongEquality(), dualPresolve(), and tightenVarBounds().
gets global activity bounds for constraint
Definition at line 2406 of file cons_linear.c. References consdataCalcActivities(), getMaxActivity(), getMinActivity(), NULL, SCIP_INVALID, and TRUE. Referenced by addConflictBounds(), and simplifyInequalities().
gets global activity bounds for constraint after setting variable to zero
Definition at line 2468 of file cons_linear.c. References consdataCalcActivities(), getMaxActivity(), getMinActivity(), NULL, SCIP_INVALID, SCIP_Real, SCIPisHugeValue(), SCIPisInfinity(), SCIPvarGetLbGlobal(), SCIPvarGetUbGlobal(), and TRUE. Referenced by addConflictBounds(), and fullDualPresolve().
calculates the activity of the linear constraint for given solution
Definition at line 2620 of file cons_linear.c. References consdataComputePseudoActivity(), FALSE, MAX, MIN, NULL, SCIP_Bool, SCIP_Real, SCIPdebugMessage, SCIPgetSolVal(), SCIPhasCurrentNodeLP(), SCIPinfinity(), SCIPisInfinity(), and TRUE. Referenced by checkCons(), consdataGetFeasibility(), SCIP_DECL_CONSCHECK(), and SCIPgetActivityLinear().
calculates the feasibility of the linear constraint for given solution
Definition at line 2687 of file cons_linear.c. References consdataGetActivity(), MIN, NULL, and SCIP_Real. Referenced by SCIPgetFeasibilityLinear().
returns the signature bitmask for the given variable
Definition at line 2705 of file cons_linear.c. References NULL, SCIP_Longint, and SCIPvarGetIndex(). Referenced by consdataUpdateSignatures().
updates bit signatures after adding a single coefficient
Definition at line 2719 of file cons_linear.c. References getVarSignature(), NULL, SCIP_Longint, SCIP_Real, SCIPvarGetLbGlobal(), and SCIPvarGetUbGlobal(). Referenced by addCoef(), and consdataCalcSignatures().
calculates the bit signatures of the given constraint data
Definition at line 2744 of file cons_linear.c. References consdataUpdateSignatures(), NULL, and TRUE. Referenced by preprocessConstraintPairs().
index comparison method of linear constraints: compares two indices of the variable set in the linear constraint Definition at line 2764 of file cons_linear.c. References NULL, and SCIPvarCompare().
permutes the constraint's variables according to a given permutation.
Definition at line 2777 of file cons_linear.c. References NULL, and SCIP_Real. Referenced by consdataSort(), and simplifyInequalities().
sorts linear constraint's variables depending on the stage of the solving process:
Definition at line 2850 of file cons_linear.c. References FALSE, NULL, permSortConsdata(), SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_INITSOLVE, SCIPallocBufferArray, SCIPfreeBufferArray, SCIPgetStage(), SCIPsort(), SCIPsortDownRealInt(), SCIPvarIsBinary(), and TRUE. Referenced by detectRedundantConstraints(), extractCliques(), mergeMultiples(), preprocessConstraintPairs(), and tightenBounds().
sets left hand side of linear constraint
Definition at line 2998 of file cons_linear.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPchgRowLhs(), SCIPconsGetData(), SCIPconsIsLocked(), SCIPinfinity(), SCIPisEQ(), SCIPisGT(), SCIPisInfinity(), SCIPisPositive(), SCIPisZero(), SCIPlockVarCons(), SCIPunlockVarCons(), and TRUE. Referenced by applyFixings(), consdataTightenCoefs(), convertLongEquality(), detectRedundantConstraints(), preprocessConstraintPairs(), rangedRowSimplify(), SCIP_DECL_CONSPRESOL(), SCIPaddCoefLinear(), SCIPchgLhsLinear(), simplifyInequalities(), and tightenSides().
sets right hand side of linear constraint
Definition at line 3112 of file cons_linear.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPchgRowRhs(), SCIPconsGetData(), SCIPconsIsLocked(), SCIPconsIsTransformed(), SCIPinfinity(), SCIPisEQ(), SCIPisInfinity(), SCIPisLT(), SCIPisPositive(), SCIPisZero(), SCIPlockVarCons(), SCIPunlockVarCons(), and TRUE. Referenced by applyFixings(), consdataTightenCoefs(), convertLongEquality(), detectRedundantConstraints(), preprocessConstraintPairs(), rangedRowSimplify(), SCIP_DECL_CONSPRESOL(), SCIPaddCoefLinear(), SCIPchgRhsLinear(), simplifyInequalities(), and tightenSides().
adds coefficient in linear constraint
Definition at line 3228 of file cons_linear.c. References consCatchEvent(), consdataEnsureVarsSize(), consdataUpdateAddCoef(), consdataUpdateSignatures(), FALSE, lockRounding(), NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPaddVarToRow(), SCIPcaptureVar(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetData(), SCIPconsIsTransformed(), SCIPgetTransformedVar(), SCIPisZero(), SCIPvarCompare(), SCIPvarIsActive(), SCIPvarIsBinary(), SCIPvarIsTransformed(), and TRUE. Referenced by applyFixings(), and SCIPaddCoefLinear().
deletes coefficient at given position from linear constraint data
Definition at line 3334 of file cons_linear.c. References consdataInvalidateActivities(), consdataUpdateDelCoef(), consDropEvent(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaddVarToRow(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetData(), SCIPconsIsTransformed(), SCIPreleaseVar(), SCIPvarCompare(), SCIPvarIsBinary(), TRUE, and unlockRounding(). Referenced by applyFixings(), consdataTightenCoefs(), convertLongEquality(), mergeMultiples(), performVarDeletions(), scaleCons(), and simplifyInequalities().
changes coefficient value at given position of linear constraint data
Definition at line 3432 of file cons_linear.c. References consdataUpdateChgCoef(), FALSE, lockRounding(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconsIsLocked(), SCIPconsIsTransformed(), SCIPisZero(), SCIPvarIsBinary(), SCIPvarIsTransformed(), TRUE, and unlockRounding(). Referenced by consdataTightenCoefs(), mergeMultiples(), rangedRowSimplify(), and simplifyInequalities().
scales a linear constraint with a constant scalar
Definition at line 3493 of file cons_linear.c. References consdataInvalidateActivities(), delCoefPos(), FALSE, NULL, REALABS, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconsGetName(), SCIPfeasCeil(), SCIPfeasFloor(), SCIPisEQ(), SCIPisInfinity(), SCIPisScalingIntegral(), SCIPisZero(), SCIPvarGetName(), and SCIPwarningMessage(). Referenced by normalizeCons().
Definition at line 3577 of file cons_linear.c. References CONSHDLR_NAME, delCoefPos(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPconshdlrGetName(), and SCIPvarIsDeleted(). Referenced by SCIP_DECL_CONSDELVARS().
normalizes a linear constraint with the following rules:
Definition at line 3636 of file cons_linear.c. References consdataCalcMaxAbsval(), consdataGetMaxAbsval(), FALSE, MAX, MAXSCALEDCOEF, MAXSCALEDCOEFINTEGER, MIN, NULL, REALABS, scaleCons(), SCIP_Bool, SCIP_CALL, SCIP_INVALID, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_CONTINUOUS, SCIPcalcGreComDiv(), SCIPcalcSmaComMul(), SCIPconsGetData(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPepsilon(), SCIPfeastol(), SCIPisEQ(), SCIPisGT(), SCIPisInfinity(), SCIPisIntegral(), SCIPisLT(), SCIPisNegative(), SCIPisPositive(), SCIPrealToRational(), SCIPvarGetType(), and TRUE. Referenced by aggregateConstraints(), aggregateVariables(), SCIP_DECL_CONSPRESOL(), SCIPupgradeConsLinear(), and simplifyInequalities().
replaces multiple occurrences of a variable by a single coefficient
Definition at line 3956 of file cons_linear.c. References chgCoefPos(), consdataSort(), delCoefPos(), NULL, SCIP_CALL, SCIP_INVALID, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPisZero(), and TRUE. Referenced by applyFixings().
replaces all fixed and aggregated variables by their non-fixed counterparts
Definition at line 4021 of file cons_linear.c. References addCoef(), chgLhs(), chgRhs(), delCoefPos(), FALSE, mergeMultiples(), NULL, REALABS, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPconsGetData(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPerrorMessage, SCIPflattenVarAggregationGraph(), SCIPgetProbvarSum(), SCIPinfinity(), SCIPisEQ(), SCIPisFeasEQ(), SCIPisFeasGE(), SCIPisInfinity(), SCIPisZero(), SCIPvarGetAggrConstant(), SCIPvarGetAggrScalar(), SCIPvarGetAggrVar(), SCIPvarGetLbGlobal(), SCIPvarGetMultaggrConstant(), SCIPvarGetMultaggrNVars(), SCIPvarGetMultaggrScalars(), SCIPvarGetMultaggrVars(), SCIPvarGetNegationConstant(), SCIPvarGetNegationVar(), SCIPvarGetStatus(), SCIPvarGetUbGlobal(), SCIPvarIsActive(), SCIPvarIsTransformed(), and TRUE. Referenced by aggregateVariables(), fixVariables(), SCIP_DECL_CONSEXITPRE(), SCIP_DECL_CONSPRESOL(), and tightenBounds().
for each variable in the linear constraint, except the inferred variable, adds one bound to the conflict analysis' candidate store (bound depends on sign of coefficient and whether the left or right hand side was the reason for the inference variable's bound change); the conflict analysis can be initialized with the linear constraint being the conflict detecting constraint by using NULL as inferred variable
Definition at line 4262 of file cons_linear.c. References consdataGetGlbActivityBounds(), consdataGetGlbActivityResiduals(), consdataGetReliableResidualActivity(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaddConflictLb(), SCIPaddConflictUb(), SCIPconsGetData(), SCIPinfinity(), SCIPisFeasNegative(), SCIPisFeasPositive(), SCIPisInfinity(), SCIPisUpdateUnreliable(), SCIPisZero(), SCIPvarGetLbAtIndex(), SCIPvarGetLbGlobal(), SCIPvarGetUbAtIndex(), SCIPvarGetUbGlobal(), SCIPvarIsIntegral(), and TRUE. Referenced by analyzeConflict(), and resolvePropagation().
resolves a propagation on the given variable by supplying the variables needed for applying the corresponding propagation rule (see propagateCons()): (1) activity residuals of all other variables tighten bounds of single variable
Definition at line 4441 of file cons_linear.c. References addConflictBounds(), FALSE, inferInfoGetPos(), inferInfoGetProprule(), NULL, PROPRULE_1_LHS, PROPRULE_1_RHS, PROPRULE_INVALID, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIP_SUCCESS, SCIPconsGetData(), SCIPconsGetName(), SCIPerrorMessage, SCIPinfoMessage(), SCIPisZero(), SCIPprintCons(), SCIPvarGetName(), and TRUE. Referenced by SCIP_DECL_CONSRESPROP().
analyzes conflicting bounds on given constraint, and adds conflict constraint to problem
Definition at line 4523 of file cons_linear.c. References addConflictBounds(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPanalyzeConflictCons(), SCIPgetStage(), SCIPinitConflictAnalysis(), SCIPinProbing(), and SCIPisConflictAnalysisApplicable(). Referenced by propagateCons(), tightenVarBounds(), tightenVarLb(), and tightenVarUb(). check if there is any hope of tightening some bounds
Definition at line 4547 of file cons_linear.c. References FALSE, NULL, SCIPconsGetData(), and TRUE. Referenced by tightenBounds().
tighten upper bound
Definition at line 4576 of file cons_linear.c. References analyzeConflict(), FALSE, getInferInt(), NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPadjustedVarUb(), SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPinferVarUbCons(), SCIPisFeasLE(), SCIPisInfinity(), SCIPisUbBetter(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetType(), SCIPvarGetUbLocal(), and TRUE. Referenced by tightenVarBoundsEasy().
tighten lower bound
Definition at line 4645 of file cons_linear.c. References analyzeConflict(), FALSE, getInferInt(), NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPadjustedVarLb(), SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPinferVarLbCons(), SCIPisFeasGE(), SCIPisInfinity(), SCIPisLbBetter(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetType(), SCIPvarGetUbLocal(), and TRUE. Referenced by tightenVarBoundsEasy().
tightens bounds of a single variable due to activity bounds (easy case)
Definition at line 4714 of file cons_linear.c. References consdataCalcActivities(), consdataRecomputeMaxactivity(), consdataRecomputeMinactivity(), FALSE, NULL, PROPRULE_1_LHS, PROPRULE_1_RHS, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_MULTAGGR, SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPisFeasLT(), SCIPisGT(), SCIPisInfinity(), SCIPisLE(), SCIPisNegative(), SCIPisPositive(), SCIPisSumGT(), SCIPisZero(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), tightenVarLb(), tightenVarUb(), and TRUE. Referenced by tightenBounds().
tightens bounds of a single variable due to activity bounds
Definition at line 4974 of file cons_linear.c. References analyzeConflict(), consdataGetActivityResiduals(), consdataGetReliableResidualActivity(), FALSE, getInferInt(), NULL, PROPRULE_1_LHS, PROPRULE_1_RHS, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_MULTAGGR, SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPinferVarLbCons(), SCIPinferVarUbCons(), SCIPisFeasGE(), SCIPisFeasGT(), SCIPisFeasLE(), SCIPisFeasLT(), SCIPisGT(), SCIPisInfinity(), SCIPisLbBetter(), SCIPisLE(), SCIPisLT(), SCIPisUbBetter(), SCIPisUpdateUnreliable(), SCIPisZero(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), SCIPvarIsIntegral(), and TRUE. Referenced by tightenBounds().
tightens bounds of variables in constraint due to activity bounds
Definition at line 5247 of file cons_linear.c. References applyFixings(), canTightenBounds(), consdataGetActivityBounds(), consdataRecomputeMaxActivityDelta(), consdataSort(), FALSE, MAXACTIVITYDELTATHR, MAXTIGHTENROUNDS, MIN, NULL, SCIP_Bool, SCIP_CALL, SCIP_INVALID, SCIP_OKAY, SCIP_Real, SCIP_STAGE_INITSOLVE, SCIP_STAGE_SOLVING, SCIPconsGetData(), SCIPconsIsModifiable(), SCIPgetStage(), SCIPinfinity(), SCIPisEQ(), SCIPisFeasEQ(), SCIPisFeasNegative(), SCIPisFeasZero(), SCIPisInfinity(), SCIPisLE(), SCIPisLT(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), tightenVarBounds(), tightenVarBoundsEasy(), and TRUE. Referenced by extractCliques(), propagateCons(), and SCIP_DECL_CONSPRESOL().
checks linear constraint for feasibility of given solution or current solution
Definition at line 5385 of file cons_linear.c. References consdataComputePseudoActivity(), consdataGetActivity(), FALSE, MAX, NULL, REALABS, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconsGetName(), SCIPdebug, SCIPdebugMessage, SCIPdebugPrintCons, SCIPfeastol(), SCIPgetRowSolActivity(), SCIPgetSolVal(), SCIPhasCurrentNodeLP(), SCIPincConsAge(), SCIPisFeasGT(), SCIPisFeasLT(), SCIPisZero(), SCIPprintCons(), SCIPresetConsAge(), SCIProwIsInLP(), and TRUE. Referenced by SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSENFOPS(), and separateCons().
creates an LP row in a linear constraint data
Definition at line 5591 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPaddVarsToRow(), SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsRemovable(), and SCIPcreateEmptyRowCons(). Referenced by addRelaxation().
adds linear constraint as cut to the LP
Definition at line 5615 of file cons_linear.c. References createRow(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddCut(), SCIPconsGetData(), SCIPconsGetName(), SCIPdebug, SCIPdebugMessage, SCIPgetIntParam(), SCIPisInfinity(), SCIPprintRow(), and SCIProwIsInLP(). Referenced by SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSINITLP(), and separateCons().
separates linear constraint: adds linear constraint as cut, if violated by given solution
Definition at line 5662 of file cons_linear.c. References addRelaxation(), checkCons(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconsIsModifiable(), SCIPisFeasNegative(), SCIPisFeasPositive(), SCIPisInfinity(), SCIPresetConsAge(), SCIProwGetDualsol(), SCIProwIsInLP(), and SCIPseparateRelaxedKnapsack(). Referenced by SCIP_DECL_CONSSEPALP(), and SCIP_DECL_CONSSEPASOL().
propagation method for linear constraints
Definition at line 5752 of file cons_linear.c. References analyzeConflict(), consdataGetActivityBounds(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdelConsLocal(), SCIPincConsAge(), SCIPinRepropagation(), SCIPisFeasGT(), SCIPisFeasLT(), SCIPisGE(), SCIPisLE(), SCIPresetConsAge(), tightenBounds(), and TRUE. Referenced by SCIP_DECL_CONSPROP().
converts all variables with fixed domain into FIXED variables
Definition at line 5856 of file cons_linear.c. References applyFixings(), MAXDNOM, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_FIXED, SCIPconsGetData(), SCIPdebugMessage, SCIPepsilon(), SCIPfixVar(), SCIPisEQ(), SCIPselectSimpleValue(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetStatus(), SCIPvarGetUbGlobal(), and TRUE. Referenced by extractCliques(), and SCIP_DECL_CONSPRESOL().
extracts cliques of the constraint and adds them to SCIP The following clique extraction mechanism are implemeneted
Definition at line 5991 of file cons_linear.c. References BMSclearMemoryArray, consdataCalcActivities(), consdataRecomputeGlbMaxactivity(), consdataRecomputeGlbMinactivity(), consdataSort(), FALSE, fixVariables(), MAX_CLIQUE_NONZEROS_PER_CONS, NULL, REALABS, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_CONTINUOUS, SCIPaddClique(), SCIPaddVarImplication(), SCIPallocBufferArray, SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsDeleted(), SCIPdebugMessage, SCIPduplicateBufferArray, SCIPfreeBufferArray, SCIPisEQ(), SCIPisFeasGE(), SCIPisFeasGT(), SCIPisFeasLE(), SCIPisFeasLT(), SCIPisInfinity(), SCIPisPositive(), SCIPisZero(), SCIPsortDownRealPtr(), SCIPvarGetLbGlobal(), SCIPvarGetType(), SCIPvarGetUbGlobal(), SCIPvarIsBinary(), tightenBounds(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL().
tightens left and right hand side of constraint due to integrality
Definition at line 6956 of file cons_linear.c. References chgLhs(), chgRhs(), NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_VARTYPE_CONTINUOUS, SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPfeasCeil(), SCIPfeasFloor(), SCIPisInfinity(), SCIPisIntegral(), SCIPvarGetType(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL().
tightens coefficients of binary, integer, and implicit integer variables due to activity bounds in presolving: given an inequality lhs <= a*x + ai*xi <= rhs, with a non-continuous variable li <= xi <= ui let minact := min{a*x + ai*xi}, maxact := max{a*x + ai*xi} (i) ai >= 0: if minact + ai >= lhs and maxact - ai <= rhs: (**)
We further try to remove redundant variable from the constraint; Variables which fulfill conditions (**) or (***) are called surely non-redundant variables. A deviation of only one from their bound makes the lhs/rhs feasible (i.e., redundant), even if all other variables are set to their "worst" bound. If all variables which are not surely non-redundant cannot make the lhs/rhs redundant, even if they are set to their "best" bound, they can be removed from the constraint. E.g., for binary variables and an inequality x_1 +x_2 +10y_1 +10y_2 >= 5, setting either of the y_i to one suffices to fulfill the inequality, whereas the x_i do not contribute to feasibility and can be removed.
Definition at line 7041 of file cons_linear.c. References chgCoefPos(), chgLhs(), chgRhs(), consdataGetActivityBounds(), consdataRecomputeMaxactivity(), consdataRecomputeMinactivity(), delCoefPos(), FALSE, MAX, MAXVALRECOMP, MIN, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_CONTINUOUS, SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPinfinity(), SCIPisEQ(), SCIPisFeasEQ(), SCIPisFeasGT(), SCIPisFeasLT(), SCIPisGE(), SCIPisGT(), SCIPisInfinity(), SCIPisLE(), SCIPisLT(), SCIPisSumRelEQ(), SCIPisSumRelGE(), SCIPisSumRelLE(), SCIPisZero(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetType(), SCIPvarGetUbLocal(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL().
Definition at line 7467 of file cons_linear.c. References MAXDNOM, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPdelCons(), SCIPepsilon(), SCIPfixVar(), SCIPisEQ(), SCIPisZero(), SCIPselectSimpleValue(), SCIPvarGetName(), and TRUE. Referenced by convertEquality().
Definition at line 7523 of file cons_linear.c. References NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPaggregateVars(), SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPdelCons(), SCIPisEQ(), SCIPvarGetName(), and TRUE. Referenced by convertEquality().
calculates the new lhs and rhs of the constraint after the given variable is aggregated out
Definition at line 7581 of file cons_linear.c. References NULL, SCIP_Real, SCIPinfinity(), SCIPisInfinity(), SCIPisLE(), SCIPvarGetLbGlobal(), and SCIPvarGetUbGlobal(). Referenced by convertLongEquality().
Definition at line 7637 of file cons_linear.c. References chgLhs(), chgRhs(), consdataGetActivityResiduals(), consdataGetReliableResidualActivity(), delCoefPos(), FALSE, getNewSidesAfterAggregation(), MAXMULTIAGGRQUOTIENT, NULL, REALABS, scalars, SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_CONTINUOUS, SCIP_VARTYPE_IMPLINT, SCIP_VARTYPE_INTEGER, SCIPaddVar(), SCIPaggregateVars(), SCIPallocBufferArray, SCIPchgVarType(), SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsChecked(), SCIPcreateVar(), SCIPdebugAddSolVal, SCIPdebugGetSolVal, SCIPdebugMessage, SCIPdebugPrintCons, SCIPdebugPrintf, SCIPdelCons(), SCIPdoNotAggr(), SCIPdoNotMultaggrVar(), SCIPfreeBufferArray, SCIPinfinity(), SCIPisEQ(), SCIPisFeasIntegral(), SCIPisFeasLE(), SCIPisGE(), SCIPisGT(), SCIPisHugeValue(), SCIPisInfinity(), SCIPisIntegral(), SCIPisLE(), SCIPisNegative(), SCIPisPositive(), SCIPisUpdateUnreliable(), SCIPisZero(), SCIPmultiaggregateVar(), SCIPreleaseVar(), SCIPsnprintf(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetNLocksDown(), SCIPvarGetNLocksUp(), SCIPvarGetType(), SCIPvarGetUbGlobal(), SCIPvarIsActive(), SCIPvarIsBinary(), SCIPvarIsInitial(), SCIPvarIsRemovable(), and TRUE. Referenced by convertEquality().
checks if the given variables and their coefficient are equal (w.r.t. scaling factor) to the objective function
Definition at line 8171 of file cons_linear.c. References FALSE, NULL, SCIP_Bool, SCIP_Real, SCIPisEQ(), SCIPisZero(), SCIPvarGetNegatedVar(), SCIPvarGetObj(), SCIPvarIsNegated(), and TRUE. Referenced by checkParallelObjective(), and checkPartialObjective().
check if the linear equality constraint is equal to a subset of the objective function; if so we can remove the objective coefficients and add an objective offset
Definition at line 8250 of file cons_linear.c. References checkEqualObjective(), NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaddObjoffset(), SCIPchgVarObj(), SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPgetNObjVars(), and SCIPisEQ(). Referenced by convertEquality().
updates the cutoff if the given primal bound (which is implied by the given constraint) is better
Definition at line 8317 of file cons_linear.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPcutoffbounddelta(), SCIPdebugMessage, SCIPgetCutoffbound(), SCIPisInfinity(), SCIPsetConsEnforced(), SCIPsetConsPropagated(), and SCIPupdateCutoffbound(). Referenced by checkParallelObjective().
check if the linear constraint is parallel to objective function; if so update the cutoff bound and avoid that the constraint enters the LP by setting the initial and separated flag to FALSE
Definition at line 8363 of file cons_linear.c. References checkEqualObjective(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsInitial(), SCIPconsIsSeparated(), SCIPdebugMessage, SCIPgetNObjVars(), SCIPisEQ(), SCIPisInfinity(), SCIPisPositive(), SCIPsetConsInitial(), SCIPsetConsSeparated(), SCIPupdateLocalLowerbound(), and updateCutoffbound(). Referenced by SCIP_DECL_CONSPRESOL().
converts special equalities
Definition at line 8482 of file cons_linear.c. References checkPartialObjective(), convertBinaryEquality(), convertLongEquality(), convertUnaryEquality(), NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), and SCIPisEQ(). Referenced by SCIP_DECL_CONSPRESOL().
returns whether the linear sum of all variables/coefficients except the given one divided by the given value is always integral
Definition at line 8537 of file cons_linear.c. References FALSE, NULL, SCIPisIntegral(), SCIPvarIsIntegral(), and TRUE. Referenced by dualPresolve().
Definition at line 8563 of file cons_linear.c. References NULL, and SCIPisInfinity(). Referenced by dualPresolve().
Definition at line 8608 of file cons_linear.c. References calculateMinvalAndMaxval(), consdataGetActivityResiduals(), consdataGetReliableResidualActivity(), consdataIsResidualIntegral(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPallocBufferArray, SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsChecked(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdebugPrintf, SCIPdelCons(), SCIPdoNotMultaggrVar(), SCIPfloor(), SCIPfreeBufferArray, SCIPisEQ(), SCIPisFeasGE(), SCIPisFeasLE(), SCIPisInfinity(), SCIPisIntegral(), SCIPisLE(), SCIPisNegative(), SCIPisPositive(), SCIPisUpdateUnreliable(), SCIPmultiaggregateVar(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetNLocksDown(), SCIPvarGetNLocksUp(), SCIPvarGetObj(), SCIPvarGetType(), SCIPvarGetUbGlobal(), SCIPvarIsBinary(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL().
gets weight for variable in a "weighted number of variables" sum
Definition at line 9031 of file cons_linear.c. References BINWEIGHT, CONTWEIGHT, INTWEIGHT, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_CONTINUOUS, SCIP_VARTYPE_IMPLINT, SCIP_VARTYPE_INTEGER, SCIPABORT, SCIPerrorMessage, and SCIPvarGetType(). Referenced by aggregateConstraints(), and preprocessConstraintPairs().
tries to aggregate variables in equations a^Tx = lhs in case there are at most two binary variables with an odd coefficient and all other variables are not continuous and have an even coefficient then:
Definition at line 9064 of file cons_linear.c. References applyFixings(), FALSE, normalizeCons(), NULL, SCIP_Bool, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_CONTINUOUS, SCIPaggregateVars(), SCIPconsGetData(), SCIPconsGetName(), SCIPdebugMessage, SCIPfeasFloor(), SCIPfixVar(), SCIPisEQ(), SCIPisInfinity(), SCIPisIntegral(), SCIPvarGetName(), SCIPvarGetType(), SCIPvarIsBinary(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL().
sorting method for constraint data, compares two variables on given indices, continuous variables will be sorted to the end and for all other variables the sortation will be in non-increasing order of their absolute value of the coefficients Definition at line 9230 of file cons_linear.c. References NULL, REALABS, SCIP_Real, SCIP_VARTYPE_CONTINUOUS, and SCIPvarGetType().
tries to simplify coefficients and delete variables in ranged row of the form lhs <= a^Tx <= rhs, e.g. using the greatest common divisor
Definition at line 9270 of file cons_linear.c. References chgCoefPos(), chgLhs(), chgRhs(), NULL, SCIP_CALL, SCIP_INVALID, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconsIsDeleted(), SCIPconsIsModifiable(), SCIPisEQ(), SCIPisGE(), SCIPisGT(), SCIPisInfinity(), SCIPisLE(), SCIPisNegative(), and SCIPvarIsBinary(). Referenced by simplifyInequalities().
tries to simplify coefficients and delete variables in constraints of the form lhs <= a^Tx <= rhs for equations
there are several different coefficient reduction steps which will be applied
Definition at line 9382 of file cons_linear.c. References chgCoefPos(), chgLhs(), chgRhs(), consdataGetGlbActivityBounds(), consdataRecomputeMaxActivityDelta(), delCoefPos(), FALSE, normalizeCons(), NULL, permSortConsdata(), rangedRowSimplify(), REALABS, SCIP_Bool, SCIP_CALL, SCIP_INVALID, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_CONTINUOUS, SCIPallocBufferArray, SCIPcalcGreComDiv(), SCIPceil(), SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsDeleted(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPfeasCeil(), SCIPfeasFloor(), SCIPfeastol(), SCIPfloor(), SCIPfreeBufferArray, SCIPisEQ(), SCIPisFeasEQ(), SCIPisFeasGT(), SCIPisFeasIntegral(), SCIPisFeasLT(), SCIPisFeasNegative(), SCIPisFeasZero(), SCIPisGE(), SCIPisGT(), SCIPisInfinity(), SCIPisIntegral(), SCIPisLE(), SCIPisLT(), SCIPisNegative(), SCIPisZero(), SCIPsort(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetType(), SCIPvarGetUbGlobal(), SCIPvarIsBinary(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL().
Definition at line 10571 of file cons_linear.c. References consdataGetMaxAbsval(), FALSE, getVarWeight(), normalizeCons(), NULL, REALABS, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaddCons(), SCIPallocBufferArray, SCIPconsGetData(), SCIPconsGetName(), SCIPconsGetNUpgradeLocks(), SCIPconsIsActive(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateConsLinear(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelCons(), SCIPfreeBufferArray, SCIPinfinity(), SCIPisEQ(), SCIPisInfinity(), SCIPisIntegral(), SCIPisLE(), SCIPisPositive(), SCIPisZero(), SCIPreleaseCons(), and TRUE. Referenced by preprocessConstraintPairs().
gets the key of the given element Definition at line 10884 of file cons_linear.c.
returns TRUE iff both keys are equal; two constraints are equal if they have the same variables and the coefficients are either equal or negated Definition at line 10894 of file cons_linear.c. References FALSE, NULL, SCIP_Bool, SCIP_Real, SCIPconsGetData(), SCIPisEQ(), SCIPvarCompare(), and TRUE.
returns the hash value of the key Definition at line 10949 of file cons_linear.c. References consdataGetMaxAbsval(), MULTIPLIER, NULL, REALABS, SCIP_Real, SCIPconsGetData(), and SCIPvarGetIndex().
compares each constraint with all other constraints for possible redundancy and removes or changes constraint accordingly; in contrast to preprocessConstraintPairs(), it uses a hash table
Definition at line 11000 of file cons_linear.c. References chgLhs(), chgRhs(), consdataSort(), HASHSIZE_LINEARCONS, MAX, MIN, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPcalcHashtableSize(), SCIPconsGetData(), SCIPconsGetName(), SCIPconsGetPos(), SCIPconsIsActive(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelCons(), SCIPgetMessagehdlr(), SCIPhashtableCreate(), SCIPhashtableFree(), SCIPhashtableInsert(), SCIPhashtablePrintStatistics(), SCIPhashtableRemove(), SCIPhashtableRetrieve(), SCIPinfoMessage(), SCIPisEQ(), SCIPisFeasLT(), SCIPisStopped(), SCIPupdateConsFlags(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL().
compares constraint with all prior constraints for possible redundancy or aggregation, and removes or changes constraint accordingly
Definition at line 11181 of file cons_linear.c. References aggregateConstraints(), chgLhs(), chgRhs(), consdataCalcSignatures(), consdataSort(), FALSE, getVarWeight(), MAX, MIN, NULL, SCIP_Bool, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIPABORT, SCIPallocBufferArray, SCIPconsGetData(), SCIPconsGetName(), SCIPconsIsActive(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelCons(), SCIPerrorMessage, SCIPfreeBufferArray, SCIPinfinity(), SCIPisEQ(), SCIPisFeasGT(), SCIPisFeasLT(), SCIPisGE(), SCIPisGT(), SCIPisInfinity(), SCIPisLE(), SCIPisLT(), SCIPisNegative(), SCIPisPositive(), SCIPreallocBufferArray, SCIPupdateConsFlags(), SCIPvarCompare(), SCIPvarGetLbGlobal(), SCIPvarGetUbGlobal(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL().
applies full dual presolving on variables that only appear in linear constraints
Definition at line 11779 of file cons_linear.c. References BMSclearMemoryArray, consdataGetGlbActivityResiduals(), consdataGetReliableResidualActivity(), FALSE, MAX, MIN, NULL, REALABS, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_CONTINUOUS, SCIP_VARTYPE_IMPLINT, SCIPallocBufferArray, SCIPceil(), SCIPchgVarType(), SCIPconsGetData(), SCIPconsGetNLocksNeg(), SCIPconsGetNLocksPos(), SCIPconsIsLocked(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPduplicateBufferArray, SCIPfloor(), SCIPfreeBufferArray, SCIPgetNBinVars(), SCIPgetNContVars(), SCIPgetNVars(), SCIPgetVars(), SCIPinfinity(), SCIPinProbing(), SCIPisEQ(), SCIPisInfinity(), SCIPisIntegral(), SCIPisUpdateUnreliable(), SCIPtightenVarLb(), SCIPtightenVarUb(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetNLocksDown(), SCIPvarGetNLocksUp(), SCIPvarGetObj(), SCIPvarGetProbindex(), SCIPvarGetType(), SCIPvarGetUbGlobal(), SCIPvarIsBinary(), SCIPvarIsIntegral(), and TRUE. Referenced by SCIP_DECL_CONSPRESOL().
copy method for constraint handler plugins (called when SCIP copies plugins) Definition at line 12235 of file cons_linear.c. References CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPconshdlrGetName(), SCIPincludeConshdlrLinear(), and TRUE.
destructor of constraint handler to free constraint handler data (called when SCIP is exiting) Definition at line 12251 of file cons_linear.c. References CONSHDLR_NAME, conshdlrdataFree(), NULL, SCIP_OKAY, SCIPconshdlrGetData(), SCIPconshdlrGetName(), and SCIPconshdlrSetData().
initialization method of constraint handler (called after problem was transformed) Definition at line 12273 of file cons_linear.c. References consCatchAllEvents(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPconshdlrGetData().
deinitialization method of constraint handler (called before transformed problem is freed) Definition at line 12299 of file cons_linear.c. References consDropAllEvents(), NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), and SCIPconshdlrGetData().
presolving deinitialization method of constraint handler (called after presolving has been finished) Definition at line 12677 of file cons_linear.c. References applyFixings(), consdataRecomputeMaxActivityDelta(), MAXACTIVITYDELTATHR, NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetData(), SCIPconsIsDeleted(), SCIPdelCons(), SCIPisLT(), and SCIPstatisticMessage.
solving process deinitialization method of constraint handler (called before branch and bound process data is freed) Definition at line 12752 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIP_VERBLEVEL_HIGH, SCIPconsGetData(), SCIPconvertCutsToConss(), SCIPreleaseRow(), SCIPverbMessage(), and TRUE.
frees specific constraint data Definition at line 12799 of file cons_linear.c. References consdataFree(), consDropAllEvents(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPconshdlrGetData(), and SCIPconshdlrGetName().
transforms constraint data into data belonging to the transformed problem Definition at line 12829 of file cons_linear.c. References consCatchAllEvents(), consdataCreate(), CONSHDLR_NAME, needEvents(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_TRANSFORMING, SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateCons(), SCIPgetStage(), and SCIPisTransformed().
LP initialization method of constraint handler (called before the initial LP relaxation at a node is solved) Definition at line 12876 of file cons_linear.c. References addRelaxation(), CONSHDLR_NAME, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPconshdlrGetName(), and SCIPconsIsInitial().
separation method of constraint handler for LP solutions Definition at line 12897 of file cons_linear.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_Real, SCIP_SEPARATED, SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPgetCutoffbound(), SCIPgetDepth(), SCIPgetLocalLowerbound(), SCIPgetLowerbound(), SCIPgetNLPBranchCands(), SCIPgetNSepaRounds(), SCIPisLE(), and separateCons().
separation method of constraint handler for arbitrary primal solutions Definition at line 12968 of file cons_linear.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_OKAY, SCIP_SEPARATED, SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPgetDepth(), SCIPgetNSepaRounds(), separateCons(), and TRUE.
constraint enforcing method of constraint handler for LP solutions Definition at line 13026 of file cons_linear.c. References addRelaxation(), checkCons(), CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_FEASIBLE, SCIP_OKAY, SCIP_SEPARATED, SCIPconshdlrGetData(), and SCIPconshdlrGetName().
constraint enforcing method of constraint handler for pseudo solutions Definition at line 13089 of file cons_linear.c. References checkCons(), CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_DIDNOTRUN, SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPdebugMessage, and TRUE.
feasibility check method of constraint handler for integral solutions Definition at line 13137 of file cons_linear.c. References checkCons(), consdataGetActivity(), CONSHDLR_NAME, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_FEASIBLE, SCIP_INFEASIBLE, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPinfoMessage(), SCIPisFeasGT(), SCIPisFeasLT(), and SCIPprintCons().
domain propagation method of constraint handler Definition at line 13196 of file cons_linear.c. References CONSHDLR_NAME, FALSE, NULL, propagateCons(), SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DIDNOTFIND, SCIP_OKAY, SCIP_REDUCEDDOM, SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPconshdlrGetPropFreq(), SCIPgetDepth(), SCIPinProbing(), SCIPunmarkConsPropagate(), and TRUE.
presolving method of constraint handler Definition at line 13255 of file cons_linear.c. References aggregateVariables(), applyFixings(), checkParallelObjective(), chgLhs(), chgRhs(), consdataGetActivityBounds(), consdataTightenCoefs(), CONSHDLR_NAME, convertEquality(), detectRedundantConstraints(), dualPresolve(), extractCliques(), FALSE, fixVariables(), fullDualPresolve(), MAXCONSPRESOLROUNDS, normalizeCons(), NULL, preprocessConstraintPairs(), SCIP_Bool, SCIP_CALL, SCIP_CUTOFF, SCIP_DELAYED, SCIP_DIDNOTFIND, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIP_SUCCESS, SCIPaddCons(), SCIPallocBufferArray, SCIPblkmem(), SCIPconsGetData(), SCIPconsGetName(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPconsIsActive(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPdelCons(), SCIPfreeBufferArray, SCIPgetNRuns(), SCIPinfinity(), SCIPisFeasGE(), SCIPisFeasGT(), SCIPisFeasLE(), SCIPisFeasLT(), SCIPisInfinity(), SCIPisLT(), SCIPisStopped(), SCIPreleaseCons(), SCIPupgradeConsLinear(), simplifyInequalities(), tightenBounds(), tightenSides(), and TRUE.
propagation conflict resolving method of constraint handler Definition at line 13703 of file cons_linear.c. References intToInferInfo(), NULL, resolvePropagation(), SCIP_CALL, and SCIP_OKAY.
variable rounding lock method of constraint handler Definition at line 13718 of file cons_linear.c. References NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPaddVarLocks(), SCIPconsGetData(), SCIPisInfinity(), and SCIPisPositive().
variable deletion method of constraint handler Definition at line 13766 of file cons_linear.c. References NULL, performVarDeletions(), SCIP_CALL, and SCIP_OKAY.
constraint display method of constraint handler Definition at line 13782 of file cons_linear.c. References consdataPrint(), NULL, SCIP_CALL, SCIP_OKAY, and SCIPconsGetData().
constraint copying method of constraint handler Definition at line 13795 of file cons_linear.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPconsGetName(), SCIPcopyConsLinear(), SCIPgetLhsLinear(), SCIPgetNVarsLinear(), SCIPgetRhsLinear(), SCIPgetValsLinear(), and SCIPgetVarsLinear().
constraint parsing method of constraint handler Definition at line 13826 of file cons_linear.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPcreateConsLinear(), SCIPerrorMessage, SCIPfreeBufferArray, SCIPinfinity(), SCIPisInfinity(), SCIPparseVarsLinearsum(), SCIPreallocBufferArray, SCIPstrToRealValue(), and TRUE.
constraint method of constraint handler which returns the variables (if possible) Definition at line 13984 of file cons_linear.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 14006 of file cons_linear.c. References NULL, SCIP_OKAY, SCIPconsGetData(), and TRUE.
Definition at line 14024 of file cons_linear.c. References consdataUpdateActivitiesGlbLb(), consdataUpdateActivitiesGlbUb(), consdataUpdateActivitiesLb(), consdataUpdateActivitiesUb(), EVENTHDLR_NAME, FALSE, NULL, SCIP_CALL, SCIP_EVENTTYPE_BOUNDCHANGED, SCIP_EVENTTYPE_BOUNDTIGHTENED, SCIP_EVENTTYPE_GBDCHANGED, SCIP_EVENTTYPE_GLBCHANGED, SCIP_EVENTTYPE_GUBCHANGED, SCIP_EVENTTYPE_LBCHANGED, SCIP_EVENTTYPE_LBRELAXED, SCIP_EVENTTYPE_LBTIGHTENED, SCIP_EVENTTYPE_UBCHANGED, SCIP_EVENTTYPE_UBRELAXED, SCIP_EVENTTYPE_UBTIGHTENED, SCIP_EVENTTYPE_VARDELETED, SCIP_EVENTTYPE_VARFIXED, SCIP_EVENTTYPE_VARUNLOCKED, SCIP_INVALID, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIPconsGetData(), SCIPerrorMessage, SCIPeventGetNewbound(), SCIPeventGetOldbound(), SCIPeventGetType(), SCIPeventGetVar(), SCIPeventhdlrGetName(), SCIPisInfinity(), SCIPmarkConsPropagate(), SCIPvarGetNLocksDown(), SCIPvarGetNLocksUp(), and TRUE.
Definition at line 14160 of file cons_linear.c. References CONFLICTHDLR_NAME, FALSE, NULL, SCIP_CALL, SCIP_CONSADDED, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, SCIPaddConsNode(), SCIPallocBufferArray, SCIPbdchginfoGetNewbound(), SCIPbdchginfoGetVar(), SCIPconflicthdlrGetName(), SCIPcreateConsLinear(), SCIPfreeBufferArray, SCIPgetNConflictConssApplied(), SCIPinfinity(), SCIPreleaseCons(), SCIPsnprintf(), SCIPupgradeConsLinear(), SCIPvarIsBinary(), and TRUE.
upgrades quadratic constraints with only and at least one linear variables into a linear constraint Definition at line 14249 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetName(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateConsLinear(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPgetCoefsLinearVarsQuadratic(), SCIPgetLhsQuadratic(), SCIPgetLinearVarsQuadratic(), SCIPgetNLinearVarsQuadratic(), SCIPgetNQuadVarTermsQuadratic(), and SCIPgetRhsQuadratic().
tries to upgrade a nonlinear constraint into a linear constraint Definition at line 14291 of file cons_linear.c. References NULL, SCIP_CALL, SCIP_OKAY, SCIPconsGetName(), SCIPconsIsChecked(), SCIPconsIsDynamic(), SCIPconsIsEnforced(), SCIPconsIsInitial(), SCIPconsIsLocal(), SCIPconsIsModifiable(), SCIPconsIsPropagated(), SCIPconsIsRemovable(), SCIPconsIsSeparated(), SCIPconsIsStickingAtNode(), SCIPcreateConsLinear(), SCIPgetExprgraphNodeNonlinear(), SCIPgetLhsNonlinear(), SCIPgetLinearCoefsNonlinear(), SCIPgetLinearVarsNonlinear(), SCIPgetNLinearVarsNonlinear(), and SCIPgetRhsNonlinear().
creates the handler for linear constraints and includes it in SCIP
Definition at line 14330 of file cons_linear.c. References CONFLICTHDLR_DESC, CONFLICTHDLR_NAME, CONFLICTHDLR_PRIORITY, 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_AGGREGATEVARIABLES, DEFAULT_CHECKRELMAXABS, DEFAULT_DETECTCUTOFFBOUND, DEFAULT_DETECTLOWERBOUND, DEFAULT_DETECTPARTIALOBJECTIVE, DEFAULT_DUALPRESOLVING, DEFAULT_MAXAGGRNORMSCALE, DEFAULT_MAXCARDBOUNDDIST, DEFAULT_MAXROUNDS, DEFAULT_MAXROUNDSROOT, DEFAULT_MAXSEPACUTS, DEFAULT_MAXSEPACUTSROOT, DEFAULT_MINGAINPERNMINCOMP, DEFAULT_NMINCOMPARISONS, DEFAULT_PRESOLPAIRWISE, DEFAULT_PRESOLUSEHASHING, DEFAULT_SEPARATEALL, DEFAULT_SIMPLIFYINEQUALITIES, DEFAULT_SORTVARS, DEFAULT_TIGHTENBOUNDSFREQ, EVENTHDLR_DESC, EVENTHDLR_NAME, FALSE, NONLINCONSUPGD_PRIORITY, NULL, QUADCONSUPGD_PRIORITY, SCIP_CALL, SCIP_OKAY, SCIP_REAL_MAX, SCIPaddBoolParam(), SCIPaddIntParam(), SCIPaddRealParam(), SCIPfindConshdlr(), SCIPincludeConflicthdlrBasic(), SCIPincludeConshdlrBasic(), SCIPincludeEventhdlrBasic(), SCIPincludeNonlinconsUpgrade(), SCIPincludeQuadconsUpgrade(), SCIPsetConshdlrCopy(), SCIPsetConshdlrDelete(), SCIPsetConshdlrDelvars(), SCIPsetConshdlrExit(), SCIPsetConshdlrExitpre(), SCIPsetConshdlrExitsol(), SCIPsetConshdlrFree(), SCIPsetConshdlrGetNVars(), SCIPsetConshdlrGetVars(), SCIPsetConshdlrInit(), SCIPsetConshdlrInitlp(), SCIPsetConshdlrInitpre(), SCIPsetConshdlrParse(), SCIPsetConshdlrPresol(), SCIPsetConshdlrPrint(), SCIPsetConshdlrProp(), SCIPsetConshdlrResprop(), SCIPsetConshdlrSepa(), SCIPsetConshdlrTrans(), and TRUE. Referenced by SCIP_DECL_CONSHDLRCOPY(), and SCIPincludeDefaultPlugins().
includes a linear constraint update method into the linear constraint handler
Definition at line 14482 of file cons_linear.c. References SCIP_LinConsUpgrade::active, CONSHDLR_NAME, conshdlrdataHasUpgrade(), conshdlrdataIncludeUpgrade(), FALSE, linconsupgradeCreate(), NULL, paramname, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPaddBoolParam(), SCIPconshdlrGetData(), SCIPerrorMessage, SCIPfindConshdlr(), SCIPsnprintf(), and TRUE. Referenced by SCIPincludeConshdlrKnapsack(), SCIPincludeConshdlrLogicor(), SCIPincludeConshdlrSetppc(), and SCIPincludeConshdlrVarbound().
creates and captures a linear constraint
Definition at line 14534 of file cons_linear.c. References consCatchAllEvents(), consdataCreate(), CONSHDLR_NAME, needEvents(), NULL, REALABS, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIP_STAGE_EXITPRESOLVE, SCIPABORT, SCIPconshdlrGetData(), SCIPcreateCons(), SCIPduplicateBufferArray, SCIPerrorMessage, SCIPfindConshdlr(), SCIPfreeBufferArray, SCIPgetProbvarLinearSum(), SCIPgetStage(), SCIPinfinity(), SCIPisInfinity(), SCIPisTransformed(), SCIPreallocBufferArray, and TRUE. Referenced by addExtendedAsymmetricFormulation(), addExtendedFlowFormulation(), addLocalBranchingConstraint(), aggregateConstraints(), applyFixings(), consdataLinearize(), copyCuts(), CREATE_CONSTRAINT(), createAndAddLinearCons(), createCoveringProblem(), createLinearCons(), createNAryBranch(), createRows(), createSubproblem(), createSubSCIP(), createSubscip(), dualPresolve(), fixDeleteOrUpgradeCons(), fixVariableZeroNode(), forbidCover(), getFixedVariable(), presolveCreateBenTalNemirovskiApproxDim3(), presolveCreateGlineurApproxDim3(), presolveFindDuplicates(), presolveFindDuplicatesUpgradeCons(), presolveRemoveFixedVariables(), presolveTryAddLinearReform(), propIndicator(), readCnf(), readConstraints(), readOPBFile(), readRows(), replaceByLinearConstraints(), replaceViolatedByLinearConstraints(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSINITPRE(), SCIP_DECL_CONSPARSE(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_NONLINCONSUPGD(), SCIP_DECL_QUADCONSUPGD(), SCIPapplyZeroobj(), SCIPcopyConsLinear(), SCIPcreateConsBasicLinear(), SCIPcreateConsIndicator(), SCIPgetVarCopy(), tightenBounds(), tryUpgradingLogicor(), tryUpgradingSetppc(), and upgradeLinearSuperindicator().
creates and captures a linear constraint in its most basic version, i. e., all constraint flags are set to their basic value as explained for the method SCIPcreateConsLinear(); all flags can be set via SCIPsetConsFLAGNAME-methods in scip.h
Definition at line 14726 of file cons_linear.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcreateConsLinear(), and TRUE. Referenced by SCIPapplyProximity(), and SCIPcreateFiniteSolCopy().
creates by copying and captures a linear constraint
Definition at line 14746 of file cons_linear.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPcreateConsLinear(), SCIPduplicateBufferArray, SCIPfreeBufferArray, SCIPgetProbvarLinearSum(), SCIPgetVarCopy(), SCIPisGT(), SCIPisInfinity(), SCIPreallocBufferArray, SCIPvarGetOrigvarSum(), SCIPvarIsOriginal(), and TRUE. Referenced by SCIP_DECL_CONSCOPY().
adds coefficient to linear constraint (if it is not zero)
Definition at line 14871 of file cons_linear.c. References addCoef(), chgLhs(), chgRhs(), CONSHDLR_NAME, NULL, REALABS, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIP_STAGE_EXITPRESOLVE, SCIPABORT, SCIPallocBufferArray, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconshdlrGetName(), SCIPerrorMessage, SCIPfreeBufferArray, SCIPgetProbvarLinearSum(), SCIPgetStage(), SCIPinfinity(), SCIPisInfinity(), SCIPreallocBufferArray, SCIPvarGetName(), and TRUE. Referenced by addCoefTerm(), applyFixings(), consdataLinearize(), createAndAddLinearCons(), createSubSCIP(), readCols(), readIndicators(), readLinearCoefs(), SCIP_DECL_CONSINITPRE(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_NONLINCONSUPGD(), SCIP_DECL_QUADCONSUPGD(), SCIPaddCoefPseudoboolean(), SCIPaddVarIndicator(), SCIPapplyProximity(), SCIPapplyZeroobj(), SCIPcreateConsIndicator(), SCIPcreateFiniteSolCopy(), SCIPgetVarCopy(), tryUpgradingLogicor(), and tryUpgradingSetppc(). gets left hand side of linear constraint
Definition at line 15026 of file cons_linear.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by addAltLPConstraint(), addLinearConstraints(), checkConsnames(), getLinearConsSides(), initMatrix(), printRangeSection(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), readRanges(), readRhs(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSLOCK(), SCIP_DECL_READERWRITE(), SCIPmakeIndicatorFeasible(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), upgradeIndicatorSuperindicator(), upgradeLinearSuperindicator(), writeFzn(), and writeOpbConstraints(). gets right hand side of linear constraint
Definition at line 15050 of file cons_linear.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by addAltLPConstraint(), addLinearConstraints(), getLinearConsSides(), initMatrix(), printRangeSection(), propIndicator(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), readRanges(), readRhs(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSLOCK(), SCIP_DECL_READERWRITE(), SCIPapplyProximity(), SCIPmakeIndicatorFeasible(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), upgradeIndicatorSuperindicator(), upgradeLinearSuperindicator(), writeFzn(), writeOpbConstraints(), and writeOpbObjective().
changes left hand side of linear constraint
Definition at line 15074 of file cons_linear.c. References chgLhs(), CONSHDLR_NAME, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by applyFixings(), chgLhsLinearCons(), fixDiscreteVars(), readRanges(), readRhs(), and tryUpgradingLogicor().
changes right hand side of linear constraint
Definition at line 15095 of file cons_linear.c. References chgRhs(), CONSHDLR_NAME, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by applyFixings(), chgRhsLinearCons(), fixDiscreteVars(), readRanges(), readRhs(), SCIPapplyHeurDualval(), SCIPapplyProximity(), and tryUpgradingSetppc(). gets the number of variables in the linear constraint
Definition at line 15113 of file cons_linear.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by addAltLPConstraint(), addLinearConstraints(), extractLinearValues(), getLinearConsNVars(), getLinearConsVarsData(), initMatrix(), propIndicator(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_READERWRITE(), SCIPcreateConsIndicatorLinCons(), SCIPmakeIndicatorFeasible(), SCIPsetLinearConsIndicator(), SCIPwriteCcg(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePbm(), SCIPwritePip(), SCIPwritePpm(), upgradeIndicatorSuperindicator(), upgradeLinearSuperindicator(), writeFzn(), writeOpbConstraints(), and writeOpbObjective(). gets the array of variables in the linear constraint; the user must not modify this array!
Definition at line 15137 of file cons_linear.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by addAltLPConstraint(), addLinearConstraints(), extractLinearValues(), getLinearConsVarsData(), initMatrix(), propIndicator(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_READERWRITE(), SCIPcreateConsIndicatorLinCons(), SCIPmakeIndicatorFeasible(), SCIPsetLinearConsIndicator(), SCIPwriteCcg(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePbm(), SCIPwritePip(), SCIPwritePpm(), upgradeIndicatorSuperindicator(), upgradeLinearSuperindicator(), writeFzn(), writeOpbConstraints(), and writeOpbObjective(). gets the array of coefficient values in the linear constraint; the user must not modify this array!
Definition at line 15161 of file cons_linear.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by addAltLPConstraint(), addLinearConstraints(), extractLinearValues(), getLinearConsVarsData(), initMatrix(), propIndicator(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_READERWRITE(), SCIPmakeIndicatorFeasible(), SCIPwriteCcg(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePbm(), SCIPwritePip(), SCIPwritePpm(), upgradeIndicatorSuperindicator(), upgradeLinearSuperindicator(), writeFzn(), and writeOpbConstraints(). gets the activity of the linear constraint in the given solution
Definition at line 15185 of file cons_linear.c. References consdataGetActivity(), CONSHDLR_NAME, NULL, SCIP_INVALID, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, and SCIPgetRowSolActivity(). gets the feasibility of the linear constraint in the given solution
Definition at line 15213 of file cons_linear.c. References consdataGetFeasibility(), CONSHDLR_NAME, NULL, SCIP_INVALID, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, and SCIPgetRowSolFeasibility(). gets the dual solution of the linear constraint in the current LP
Definition at line 15241 of file cons_linear.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, and SCIProwGetDualsol(). Referenced by printDualSol(), and SCIP_DECL_EVENTEXEC(). gets the dual Farkas value of the linear constraint in the current infeasible LP
Definition at line 15268 of file cons_linear.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPerrorMessage, and SCIProwGetDualfarkas(). returns the linear relaxation of the given linear constraint; may return NULL if no LP row was yet created; the user must not modify the row!
Definition at line 15297 of file cons_linear.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage.
tries to automatically convert a linear constraint into a more specific and more specialized constraint
Definition at line 15321 of file cons_linear.c. References CONSHDLR_NAME, normalizeCons(), NULL, SCIP_Bool, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_CONTINUOUS, SCIP_VARTYPE_IMPLINT, SCIP_VARTYPE_INTEGER, SCIPconsGetData(), SCIPconsGetHdlr(), SCIPconsGetName(), SCIPconsGetNUpgradeLocks(), SCIPconshdlrGetData(), SCIPconshdlrGetName(), SCIPconsIsModifiable(), SCIPdebugMessage, SCIPdebugPrintCons, SCIPerrorMessage, SCIPisEQ(), SCIPisIntegral(), SCIPisPositive(), SCIPisZero(), SCIPreleaseRow(), SCIProwIsInLP(), SCIPvarGetLbLocal(), SCIPvarGetType(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), and TRUE. Referenced by SCIP_DECL_CONFLICTEXEC(), and SCIP_DECL_CONSPRESOL(). |