|
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cons_linear.h File Reference Detailed DescriptionConstraint handler for linear constraints in their most general form, This constraint handler handles linear constraints in their most general form. That is,
with Furthermore, this header offers the upgrade functionality of a general linear constraint into a more specific constraint, such as a knapsack constraint, via SCIP_DECL_LINCONSUPGD() and SCIPincludeLinconsUpgrade() Definition in file cons_linear.h. #include "scip/scip.h"Go to the source code of this file.
Macro Definition Documentation
Value:
SCIP_RETCODE x (SCIP* scip, SCIP_CONS* cons, int nvars, SCIP_VAR** vars, SCIP_Real* vals, SCIP_Real lhs, SCIP_Real rhs, \
int nposbin, int nnegbin, int nposint, int nnegint, int nposimpl, int nnegimpl, int nposimplbin, int nnegimplbin, int nposcont, int nnegcont, \
int ncoeffspone, int ncoeffsnone, int ncoeffspint, int ncoeffsnint, int ncoeffspfrac, int ncoeffsnfrac, \
Definition: struct_scip.h:52 Definition: struct_var.h:196 Definition: struct_cons.h:36 upgrading method for linear constraints into more specific constraints input:
Definition at line 81 of file cons_linear.h. Typedef Documentation
linear constraint update method Definition at line 46 of file cons_linear.h. Function Documentation
creates the handler for linear constraints and includes it in SCIP
Definition at line 14617 of file cons_linear.c. Referenced by SCIPincludeDefaultPlugins().
includes a linear constraint update method into the linear constraint handler
Definition at line 14769 of file cons_linear.c. Referenced by SCIPincludeConshdlrLogicor(), and SCIPincludeConshdlrVarbound().
creates and captures a linear constraint
Definition at line 14821 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_CONSCOPY(), SCIP_DECL_CONSINITPRE(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_NONLINCONSUPGD(), SCIP_DECL_QUADCONSUPGD(), SCIPapplyZeroobj(), SCIPcopyConsLinear(), 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 15013 of file cons_linear.c. Referenced by SCIPapplyProximity(), and SCIPcreateFiniteSolCopy().
creates by copying and captures a linear constraint
Definition at line 15033 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 15158 of file cons_linear.c. 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 15313 of file cons_linear.c. Referenced by addAltLPConstraint(), addLinearConstraints(), checkConsnames(), getLinearConsSides(), initMatrix(), printRangeSection(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), readRanges(), readRhs(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPARSE(), SCIP_DECL_READERWRITE(), SCIPmakeIndicatorFeasible(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), upgradeIndicatorSuperindicator(), upgradeLinearSuperindicator(), writeFzn(), and writeOpbConstraints(). gets right hand side of linear constraint
Definition at line 15337 of file cons_linear.c. Referenced by addAltLPConstraint(), addLinearConstraints(), getLinearConsSides(), initMatrix(), printRangeSection(), propIndicator(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), readRanges(), readRhs(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPARSE(), SCIP_DECL_READERWRITE(), SCIPapplyProximity(), SCIPmakeIndicatorFeasible(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), upgradeIndicatorSuperindicator(), upgradeLinearSuperindicator(), writeFzn(), writeOpbConstraints(), and writeOpbObjective().
changes left hand side of linear constraint
Definition at line 15361 of file cons_linear.c. Referenced by applyFixings(), chgLhsLinearCons(), fixDiscreteVars(), readIndicators(), readRanges(), readRhs(), and tryUpgradingLogicor().
changes right hand side of linear constraint
Definition at line 15382 of file cons_linear.c. Referenced by applyFixings(), chgRhsLinearCons(), fixDiscreteVars(), readRanges(), readRhs(), SCIPapplyHeurDualval(), SCIPapplyProximity(), and tryUpgradingSetppc(). gets the number of variables in the linear constraint
Definition at line 15400 of file cons_linear.c. Referenced by addAltLPConstraint(), addLinearConstraints(), extractLinearValues(), getLinearConsNVars(), getLinearConsVarsData(), initMatrix(), propIndicator(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), 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 15424 of file cons_linear.c. Referenced by addAltLPConstraint(), addLinearConstraints(), extractLinearValues(), getLinearConsVarsData(), initMatrix(), propIndicator(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPRINT(), 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 15448 of file cons_linear.c. Referenced by addAltLPConstraint(), addLinearConstraints(), extractLinearValues(), getLinearConsVarsData(), initMatrix(), propIndicator(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPRINT(), 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 15476 of file cons_linear.c. gets the feasibility of the linear constraint in the given solution
Definition at line 15504 of file cons_linear.c. gets the dual solution of the linear constraint in the current LP
Definition at line 15532 of file cons_linear.c. Referenced by printDualSol(), and SCIP_DECL_EVENTEXEC(). gets the dual Farkas value of the linear constraint in the current infeasible LP
Definition at line 15559 of file cons_linear.c. 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 15588 of file cons_linear.c.
tries to automatically convert a linear constraint into a more specific and more specialized constraint
Definition at line 15612 of file cons_linear.c. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||