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 , , , and decision variables which can be binary, integer, or continuous. 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:53 Definition: struct_var.h:196 Definition: struct_cons.h:36 Definition: objbranchrule.h:33 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 15871 of file cons_linear.c. Referenced by SCIP_DECL_NONLINCONSUPGD(), and SCIPincludeDefaultPlugins().
includes a linear constraint update method into the linear constraint handler
Definition at line 16047 of file cons_linear.c. Referenced by SCIPincludeConshdlrIndicator(), SCIPincludeConshdlrLogicor(), SCIPincludeConshdlrVarbound(), and SCIPincludeConshdlrXor().
creates and captures a linear constraint
Definition at line 16099 of file cons_linear.c. References consCatchAllEvents(), consdataCreate(), CONSHDLR_NAME, FALSE, needEvents(), NULL, REALABS, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIP_STAGE_EXITPRESOLVE, SCIPABORT, SCIPconshdlrGetData(), SCIPcreateCons(), SCIPcreateConsBasicLinear(), SCIPcreateConsLinear(), SCIPduplicateBufferArray, SCIPerrorMessage, SCIPfindConshdlr(), SCIPfreeBufferArray, SCIPgetProbvarLinearSum(), SCIPgetStage(), SCIPinfinity(), SCIPisInfinity(), SCIPisTransformed(), SCIPreallocBufferArray, and TRUE. Referenced by addBranchingComplementaritiesSOS1(), addExtendedAsymmetricFormulation(), addExtendedFlowFormulation(), addLocalBranchingConstraint(), aggregateConstraints(), applyFixings(), consdataLinearize(), copyCuts(), CREATE_CONSTRAINT(), createAndAddLinearCons(), createConstraints(), createCoveringProblem(), createLinearCons(), createNAryBranch(), createRows(), createSubproblem(), createSubSCIP(), createSubscip(), dualPresolve(), fixDeleteOrUpgradeCons(), fixVariableZeroNode(), forbidCover(), getFixedVariable(), preprocessConstraintPairs(), 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(), SCIPcreateConsLinear(), SCIPgetVarCopy(), selectVarMultAggrBranching(), 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 16291 of file cons_linear.c. Referenced by createMIP(), SCIPapplyProximity(), SCIPcreateConsLinear(), and SCIPcreateFiniteSolCopy().
creates by copying and captures a linear constraint
Definition at line 16311 of file cons_linear.c. References CONSHDLR_NAME, FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIPaddCoefLinear(), SCIPallocBufferArray, SCIPconsGetHdlr(), SCIPconshdlrGetName(), SCIPcreateConsLinear(), SCIPduplicateBufferArray, SCIPerrorMessage, 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 16436 of file cons_linear.c. References addCoef(), chgLhs(), chgRhs(), NULL, REALABS, SCIP_Bool, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIPABORT, SCIPallocBufferArray, SCIPchgCoefLinear(), SCIPconsGetData(), SCIPconsGetName(), SCIPerrorMessage, SCIPfreeBufferArray, SCIPgetProbvarLinearSum(), SCIPinfinity(), SCIPisInfinity(), SCIPreallocBufferArray, SCIPvarGetName(), and TRUE. Referenced by addCoefTerm(), applyFixings(), consdataLinearize(), createAndAddLinearCons(), createMIP(), createSubSCIP(), getBoundConsFromVertices(), readCols(), readIndicators(), readLinearCoefs(), SCIP_DECL_CONSINITPRE(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_NONLINCONSUPGD(), SCIP_DECL_QUADCONSUPGD(), SCIPaddCoefPseudoboolean(), SCIPaddVarIndicator(), SCIPapplyProximity(), SCIPapplyZeroobj(), SCIPchgCoefLinear(), SCIPcopyConsLinear(), SCIPcreateConsIndicator(), SCIPcreateFiniteSolCopy(), SCIPgetVarCopy(), tryUpgradingLogicor(), and tryUpgradingSetppc().
changes coefficient of variable in linear constraint; deletes the variable if coefficient is zero; adds variable if not yet contained in the constraint
Definition at line 16597 of file cons_linear.c. References chgCoefPos(), delCoefPos(), FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_STAGE_PROBLEM, SCIPaddCoefLinear(), SCIPchgCoefLinear(), SCIPconsGetData(), SCIPconsIsOriginal(), SCIPdelCoefLinear(), SCIPerrorMessage, SCIPgetStage(), SCIPisZero(), SCIPvarIsOriginal(), and TRUE. Referenced by SCIPaddCoefLinear(), and SCIPchgCoefLinear().
deletes variable from linear constraint
Definition at line 16665 of file cons_linear.c. References CONSHDLR_NAME, NULL, SCIP_INVALID, SCIPABORT, SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by SCIPchgCoefLinear(). gets left hand side of linear constraint
Definition at line 16681 of file cons_linear.c. Referenced by addAltLPConstraint(), addLinearConstraints(), checkConsnames(), checkLinearConssVarboundSOS1(), getLinearConsSides(), printRangeSection(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), readRanges(), readRhs(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPARSE(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_READERWRITE(), SCIPmakeIndicatorFeasible(), SCIPmatrixCreate(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), tightenVarsBoundsSOS1(), upgradeIndicatorSuperindicator(), upgradeLinearSuperindicator(), writeFzn(), and writeOpbConstraints(). gets right hand side of linear constraint
Definition at line 16705 of file cons_linear.c. Referenced by addAltLPConstraint(), addLinearConstraints(), checkLinearConssVarboundSOS1(), getLinearConsSides(), printRangeSection(), propIndicator(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), readRanges(), readRhs(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPARSE(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_READERWRITE(), SCIPapplyProximity(), SCIPmakeIndicatorFeasible(), SCIPmatrixCreate(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), tightenVarsBoundsSOS1(), upgradeIndicatorSuperindicator(), upgradeLinearSuperindicator(), writeFzn(), writeOpbConstraints(), and writeOpbObjective().
changes left hand side of linear constraint
Definition at line 16729 of file cons_linear.c. References chgRhs(), CONSHDLR_NAME, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by applyFixings(), chgLhsLinearCons(), fixDiscreteVars(), readIndicators(), readRanges(), readRhs(), SCIP_DECL_PRESOLEXEC(), and tryUpgradingLogicor().
changes right hand side of linear constraint
Definition at line 16750 of file cons_linear.c. References CONSHDLR_NAME, NULL, SCIPABORT, SCIPconsGetHdlr(), SCIPconshdlrGetName(), and SCIPerrorMessage. Referenced by applyFixings(), chgRhsLinearCons(), fixDiscreteVars(), readRanges(), readRhs(), SCIP_DECL_PRESOLEXEC(), SCIPapplyHeurDualval(), SCIPapplyProximity(), and tryUpgradingSetppc(). gets the number of variables in the linear constraint
Definition at line 16768 of file cons_linear.c. Referenced by addAltLPConstraint(), addLinearConstraints(), checkLinearConssVarboundSOS1(), extractLinearValues(), getLinearConsNVars(), getLinearConsVarsData(), propIndicator(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_READERWRITE(), SCIPcreateConsIndicatorLinCons(), SCIPmakeIndicatorFeasible(), SCIPmatrixCreate(), SCIPsetLinearConsIndicator(), SCIPwriteCcg(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePbm(), SCIPwritePip(), SCIPwritePpm(), tightenVarsBoundsSOS1(), 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 16792 of file cons_linear.c. Referenced by addAltLPConstraint(), addLinearConstraints(), checkLinearConssVarboundSOS1(), extractLinearValues(), getLinearConsVarsData(), propIndicator(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_READERWRITE(), SCIPcreateConsIndicatorLinCons(), SCIPmakeIndicatorFeasible(), SCIPmatrixCreate(), SCIPsetLinearConsIndicator(), SCIPwriteCcg(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePbm(), SCIPwritePip(), SCIPwritePpm(), tightenVarsBoundsSOS1(), 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 16816 of file cons_linear.c. Referenced by addAltLPConstraint(), addLinearConstraints(), checkLinearConssVarboundSOS1(), extractLinearValues(), getLinearConsVarsData(), propIndicator(), readIndicators(), readNonlinearExprs(), readQCMatrix(), readQuadraticCoefs(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_READERWRITE(), SCIPmakeIndicatorFeasible(), SCIPmatrixCreate(), SCIPwriteCcg(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePbm(), SCIPwritePip(), SCIPwritePpm(), tightenVarsBoundsSOS1(), upgradeIndicatorSuperindicator(), upgradeLinearSuperindicator(), writeFzn(), and writeOpbConstraints(). gets the activity of the linear constraint in the given solution
Definition at line 16844 of file cons_linear.c. gets the feasibility of the linear constraint in the given solution
Definition at line 16872 of file cons_linear.c. gets the dual solution of the linear constraint in the current LP
Definition at line 16900 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 16927 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 16956 of file cons_linear.c.
tries to automatically convert a linear constraint into a more specific and more specialized constraint
Definition at line 16980 of file cons_linear.c. |