Detailed Description
public methods for problem variables
Public SCIP_BDCHGIDX Methods | |
| SCIP_Bool | SCIPbdchgidxIsEarlier (SCIP_BDCHGIDX *bdchgidx1, SCIP_BDCHGIDX *bdchgidx2) |
| SCIP_Bool | SCIPbdchgidxIsEarlierNonNull (SCIP_BDCHGIDX *bdchgidx1, SCIP_BDCHGIDX *bdchgidx2) |
Public SCIP_BOUNDCHG Methods | |
| SCIP_Real | SCIPboundchgGetNewbound (SCIP_BOUNDCHG *boundchg) |
| SCIP_Real | SCIPboundchgGetLPSolVal (SCIP_BOUNDCHG *boundchg) |
| SCIP_VAR * | SCIPboundchgGetVar (SCIP_BOUNDCHG *boundchg) |
| SCIP_BOUNDCHGTYPE | SCIPboundchgGetBoundchgtype (SCIP_BOUNDCHG *boundchg) |
| SCIP_BOUNDTYPE | SCIPboundchgGetBoundtype (SCIP_BOUNDCHG *boundchg) |
| SCIP_Bool | SCIPboundchgIsRedundant (SCIP_BOUNDCHG *boundchg) |
Public SCIP_DOMCHG Methods | |
| int | SCIPdomchgGetNBoundchgs (SCIP_DOMCHG *domchg) |
| SCIP_BOUNDCHG * | SCIPdomchgGetBoundchg (SCIP_DOMCHG *domchg, int pos) |
Public SCIP_HOLELIST Methods | |
| SCIP_Real | SCIPholelistGetLeft (SCIP_HOLELIST *holelist) |
| SCIP_Real | SCIPholelistGetRight (SCIP_HOLELIST *holelist) |
| SCIP_HOLELIST * | SCIPholelistGetNext (SCIP_HOLELIST *holelist) |
Function Documentation
◆ SCIPvarGetNLocksDown()
| int SCIPvarGetNLocksDown | ( | SCIP_VAR * | var | ) |
gets number of locks for rounding down
- Note
- This method will always return variable locks of type model
- It is recommented to use SCIPvarGetNLocksDownType()
- Parameters
-
var problem variable
Definition at line 4449 of file var.c.
References SCIP_LOCKTYPE_MODEL, and SCIPvarGetNLocksDownType().
Referenced by checkRedundancy(), collectActivities(), collectSolActivities(), fixIntegerVariable(), propagateCons(), SCIPbendersExit(), SCIPisStrongbranchDownFirst(), SCIPlpGetUnboundedSol(), SCIPprobExitSolve(), and scoring().
◆ SCIPvarGetNLocksUp()
| int SCIPvarGetNLocksUp | ( | SCIP_VAR * | var | ) |
gets number of locks for rounding up
- Note
- This method will always return variable locks of type model
- It is recommented to use SCIPvarGetNLocksUpType()
- Parameters
-
var problem variable
Definition at line 4462 of file var.c.
References SCIP_LOCKTYPE_MODEL, and SCIPvarGetNLocksUpType().
Referenced by checkRedundancy(), collectActivities(), collectSolActivities(), fixIntegerVariable(), fromCommandLine(), propagateCons(), SCIPisStrongbranchDownFirst(), SCIPlpGetUnboundedSol(), SCIPprobExitSolve(), and scoring().
◆ SCIPvarGetNLocksUpType()
| int SCIPvarGetNLocksUpType | ( | SCIP_VAR * | var, |
| SCIP_LOCKTYPE | locktype | ||
| ) |
gets number of locks for rounding up of a special type
- Parameters
-
var problem variable locktype type of variable locks
Definition at line 4386 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::donotaggr, SCIP_Var::donotmultaggr, SCIP_Var::multaggr, SCIP_Var::negatedvar, SCIP_Var::nlocksup, NLOCKTYPES, NULL, SCIP_Multaggr::nvars, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_Multaggr::scalars, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPvarGetNLocksDownType(), SCIPvarGetNLocksUpType(), SCIPvarGetStatus(), SCIP_Original::transvar, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by applyAlternativeBoundsBranching(), applyAlternativeBoundsFixing(), applyProbing(), calcBdchgScore(), checkCands(), checkConsQuadraticProblem(), checkLocksAndRes(), chooseCoefVar(), chooseVeclenVar(), collectCliqueData(), compensateVarLock(), convertLongEquality(), createCoveringProblem(), dualPresolve(), dualPresolving(), extractGates(), findComponents(), findUnlockedLinearVar(), fixIntegerVariableUb(), fullDualPresolve(), getScore(), getScoreLikeCoefdiving(), isConsIndependently(), isSingleLockedCand(), matrixCreate(), multiAggregateBinvar(), performDualfix(), presolRoundIndicator(), presolStuffing(), presolveConsLct(), propagateCons(), propIndicator(), removeDoubleAndSingletonsAndPerformDualpresolve(), roundFixingValue(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPINITPRE(), SCIP_DECL_SORTPTRCOMP(), SCIPanalyzeDeductionsProbing(), SCIPapplyLockFixings(), SCIPapplyProbingVar(), SCIPcollectBranchingStatistics(), SCIPmakeIndicatorFeasible(), SCIPmatrixCreate(), SCIPmatrixUplockConflict(), SCIPprintBranchingStatistics(), SCIPsolAdjustImplicitSolVals(), SCIPvarGetNLocksDownType(), SCIPvarGetNLocksUp(), SCIPvarGetNLocksUpType(), SCIPvarGetProbvarBinary(), SCIPvarMayRoundUp(), SCIPwriteMps(), selectEssentialRounding(), selectRounding(), selectShifting(), singletonColumnStuffing(), and sortVariables().
◆ SCIPvarGetNLocksDownType()
| int SCIPvarGetNLocksDownType | ( | SCIP_VAR * | var, |
| SCIP_LOCKTYPE | locktype | ||
| ) |
gets number of locks for rounding down of a special type
- Parameters
-
var problem variable locktype type of variable locks
Definition at line 4328 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::donotaggr, SCIP_Var::donotmultaggr, SCIP_Var::multaggr, SCIP_Var::negatedvar, SCIP_Var::nlocksdown, NLOCKTYPES, NULL, SCIP_Multaggr::nvars, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_Multaggr::scalars, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPvarGetNLocksDownType(), SCIPvarGetNLocksUpType(), SCIPvarGetStatus(), SCIP_Original::transvar, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by addConsToOccurList(), applyAlternativeBoundsBranching(), applyAlternativeBoundsFixing(), applyProbing(), calcBdchgScore(), checkCands(), checkConsQuadraticProblem(), checkLocksAndRes(), chooseCoefVar(), chooseVeclenVar(), collectCliqueData(), compensateVarLock(), convertLongEquality(), createCoveringProblem(), dualPresolve(), dualPresolving(), extractGates(), findComponents(), findUnlockedLinearVar(), fixIntegerVariableLb(), fullDualPresolve(), getScore(), getScoreLikeCoefdiving(), isConsIndependently(), isSingleLockedCand(), matrixCreate(), multiAggregateBinvar(), performDualfix(), presolRoundIndicator(), presolStuffing(), presolveConsEst(), propagateCons(), propIndicator(), removeDoubleAndSingletonsAndPerformDualpresolve(), roundFixingValue(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPINITPRE(), SCIP_DECL_SORTPTRCOMP(), SCIPanalyzeDeductionsProbing(), SCIPapplyLockFixings(), SCIPapplyProbingVar(), SCIPcollectBranchingStatistics(), SCIPmakeIndicatorFeasible(), SCIPmatrixCreate(), SCIPmatrixDownlockConflict(), SCIPprintBranchingStatistics(), SCIPsolAdjustImplicitSolVals(), SCIPvarGetNLocksDown(), SCIPvarGetNLocksDownType(), SCIPvarGetNLocksUpType(), SCIPvarMayRoundDown(), SCIPwriteMps(), selectEssentialRounding(), selectRounding(), selectShifting(), singletonColumnStuffing(), and sortVariables().
◆ SCIPvarMayRoundDown()
is it possible, to round variable down and stay feasible?
- Note
- This method will always check w.r.t variable locks of type model
- Parameters
-
var problem variable
Definition at line 4473 of file var.c.
References SCIP_LOCKTYPE_MODEL, and SCIPvarGetNLocksDownType().
Referenced by chooseCoefVar(), chooseDoubleVar(), chooseFracVar(), chooseGuidedVar(), choosePscostVar(), chooseVeclenVar(), makeSOS1conflictgraphFeasible(), makeSOS1constraintsFeasible(), performDualfix(), performRandRounding(), performSimpleRounding(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_HEUREXEC(), SCIPperformGenericDivingAlgorithm(), and SCIPsolRound().
◆ SCIPvarMayRoundUp()
is it possible, to round variable up and stay feasible?
- Note
- This method will always check w.r.t. variable locks of type model
- Parameters
-
var problem variable
Definition at line 4484 of file var.c.
References SCIP_LOCKTYPE_MODEL, and SCIPvarGetNLocksUpType().
Referenced by chooseCoefVar(), chooseDoubleVar(), chooseFracVar(), chooseGuidedVar(), choosePscostVar(), chooseVeclenVar(), makeSOS1conflictgraphFeasible(), makeSOS1constraintsFeasible(), performDualfix(), performRandRounding(), performSimpleRounding(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_HEUREXEC(), SCIPperformGenericDivingAlgorithm(), and SCIPsolRound().
◆ SCIPvarCompareActiveAndNegated()
compares the index of two variables, only active or negated variables are allowed, if a variable is negated then the index of the corresponding active variable is taken, returns -1 if first is smaller than, and +1 if first is greater than second variable index; returns 0 if both indices are equal, which means both variables are equal
compares the index of two variables, only active, fixed or negated variables are allowed, if a variable is negated then the index of the corresponding active variable is taken, returns -1 if first is smaller than, and +1 if first is greater than second variable index; returns 0 if both indices are equal, which means both variables are equal
- Parameters
-
var1 first problem variable var2 second problem variable
Definition at line 17236 of file var.c.
References NULL, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_NEGATED, SCIPvarGetIndex(), SCIPvarGetNegatedVar(), SCIPvarGetStatus(), and SCIPvarIsActive().
Referenced by consdataSort(), liftCliqueVariables(), preprocessConstraintPairs(), SCIP_DECL_HASHKEYEQ(), and SCIP_DECL_SORTPTRCOMP().
◆ SCIP_DECL_SORTPTRCOMP() [1/3]
| SCIP_DECL_SORTPTRCOMP | ( | SCIPvarCompActiveAndNegated | ) |
comparison method for sorting active and negated variables by non-decreasing index, active and negated variables are handled as the same variables
Definition at line 17266 of file var.c.
References SCIPvarCompareActiveAndNegated().
◆ SCIPvarCompare()
compares the index of two variables, returns -1 if first is smaller than, and +1 if first is greater than second variable index; returns 0 if both indices are equal, which means both variables are equal
- Parameters
-
var1 first problem variable var2 second problem variable
Definition at line 17274 of file var.c.
References SCIP_Var::index, and NULL.
Referenced by addAuxexprCoefs(), addBranchingComplementaritiesSOS1(), bilinearTermsInsertEntry(), consdataSort(), detectRedundantConstraints(), extractGates(), generateBoundInequalityFromSOS1Nodes(), getBoundConsFromVertices(), nlrowAddLinearCoef(), passConComponentVarbound(), preprocessConstraintPairs(), propVariableNonzero(), removeRedundantConss(), removeRedundantNonZeros(), SCIP_DECL_HASHKEYEQ(), SCIP_DECL_HASHKEYVAL(), SCIP_DECL_SORTINDCOMP(), SCIP_DECL_SORTPTRCOMP(), SCIPgetBilinTermIdxNonlinear(), SCIPinsertBilinearTermImplicitNonlinear(), SCIPvarGetActiveRepresentativesExact(), SCIPvarsGetActiveVars(), and selectBranchVar().
◆ SCIP_DECL_SORTPTRCOMP() [2/3]
| SCIP_DECL_SORTPTRCOMP | ( | SCIPvarComp | ) |
comparison method for sorting variables by non-decreasing index
Definition at line 17294 of file var.c.
References SCIPvarCompare().
◆ SCIP_DECL_SORTPTRCOMP() [3/3]
| SCIP_DECL_SORTPTRCOMP | ( | SCIPvarCompObj | ) |
comparison method for sorting variables by non-decreasing objective coefficient
Definition at line 17300 of file var.c.
References SCIP_Real, and SCIPvarGetObj().
◆ SCIP_DECL_HASHGETKEY()
| SCIP_DECL_HASHGETKEY | ( | SCIPvarGetHashkey | ) |
◆ SCIP_DECL_HASHKEYEQ()
| SCIP_DECL_HASHKEYEQ | ( | SCIPvarIsHashkeyEq | ) |
◆ SCIP_DECL_HASHKEYVAL()
| SCIP_DECL_HASHKEYVAL | ( | SCIPvarGetHashkeyVal | ) |
returns the hash value of the key
Definition at line 17331 of file var.c.
References SCIPvarGetIndex().
◆ SCIPvarsGetProbvar()
| void SCIPvarsGetProbvar | ( | SCIP_VAR ** | vars, |
| int | nvars | ||
| ) |
gets corresponding active, fixed, or multi-aggregated problem variables of given variables,
- Note
- the content of the given array will/might change
- Parameters
-
vars array of problem variables nvars number of variables
Definition at line 17530 of file var.c.
References NULL, and SCIPvarGetProbvar().
Referenced by SCIPvarsGetActiveVars().
◆ SCIPvarGetProbvar()
gets corresponding active, fixed, or multi-aggregated problem variable of a variable
- Parameters
-
var problem variable
Definition at line 17550 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::multaggr, SCIP_Var::name, SCIP_Var::negatedvar, NULL, SCIP_Multaggr::nvars, SCIP_Var::original, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPdebugMessage, SCIPerrorMessage, SCIPvarGetStatus(), SCIP_Original::transvar, TRUE, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by addCoef(), applyFixings(), cliquetableGetNodeIndexBinvar(), consdataCreate(), countNonlinearities(), getRandomVariable(), preprocessConstraintPairs(), processBinvarFixings(), processWatchedVars(), readSolFile(), readXmlSolFile(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_EVENTEXEC(), SCIPaddVarImplication(), SCIPcliquetableComputeCliqueComponents(), SCIPcreateConsAnd(), SCIPnodePropagateImplics(), SCIPtreeBranchVar(), SCIPtreeBranchVarExact(), SCIPtreeBranchVarNary(), SCIPvarGetLastBdchgIndex(), SCIPvarsGetProbvar(), SCIPvarWasFixedEarlier(), tightenedLinkvar(), and updateBestCandidate().
◆ SCIPvarsGetProbvarBinary()
| SCIP_RETCODE SCIPvarsGetProbvarBinary | ( | SCIP_VAR *** | vars, |
| SCIP_Bool ** | negatedarr, | ||
| int | nvars | ||
| ) |
gets corresponding active, fixed, or multi-aggregated problem variables of binary variables and updates the given negation status of each variable
- Parameters
-
vars pointer to binary problem variables negatedarr pointer to corresponding array to update the negation status nvars number of variables and values in vars and negated array
Definition at line 17610 of file var.c.
References NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, and SCIPvarGetProbvarBinary().
Referenced by GUBsetCalcCliquePartition(), SCIPcalcCliquePartition(), SCIPcliquetableAdd(), and SCIPgetBinvarRepresentatives().
◆ SCIPvarGetProbvarBinary()
| SCIP_RETCODE SCIPvarGetProbvarBinary | ( | SCIP_VAR ** | var, |
| SCIP_Bool * | negated | ||
| ) |
gets corresponding active, fixed, or multi-aggregated problem variable of a binary variable and updates the given negation status
gets corresponding active, fixed, or multi-aggregated problem variable of a binary variable and updates the given negation status (this means you have to assign a value to SCIP_Bool negated before calling this method, usually FALSE is used)
- Parameters
-
var pointer to binary problem variable negated pointer to update the negation status
Definition at line 17642 of file var.c.
References active, SCIP_Var::aggregate, SCIP_Var::data, EPSEQ, EPSLE, EPSZ, FALSE, SCIP_Var::multaggr, SCIP_Var::negatedvar, NULL, SCIP_Var::original, REALABS, SCIP_Bool, SCIP_INVALIDDATA, SCIP_LOCKTYPE_MODEL, 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, SCIPerrorMessage, SCIPvarGetNLocksUpType(), SCIPvarGetStatus(), SCIPvarGetUbGlobal(), SCIPvarIsBinary(), SCIP_Original::transvar, TRUE, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by cliqueCleanup(), cliquePresolve(), dualPresolving(), GUBsetCheck(), presolRoundIndicator(), SCIPgetBinvarRepresentative(), SCIPtestCliquePartition(), SCIPvarAddClique(), SCIPvarDelClique(), SCIPvarsGetProbvarBinary(), and tightenWeightsLift().
◆ SCIPvarGetProbvarBound()
| SCIP_RETCODE SCIPvarGetProbvarBound | ( | SCIP_VAR ** | var, |
| SCIP_Real * | bound, | ||
| SCIP_BOUNDTYPE * | boundtype | ||
| ) |
transforms given variable, boundtype and bound to the corresponding active, fixed, or multi-aggregated variable values
- Parameters
-
var pointer to problem variable bound pointer to bound value to transform boundtype pointer to type of bound: lower or upper bound
Definition at line 17801 of file var.c.
References SCIP_Var::aggregate, bound, SCIP_Var::data, SCIP_Var::multaggr, SCIP_Var::negatedvar, NULL, SCIP_Var::original, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPdebugMessage, SCIPerrorMessage, SCIPvarGetProbvarBound(), SCIPvarGetStatus(), SCIP_Original::transvar, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by addSplitcons(), applyBoundChanges(), changeAncestorBranchings(), dryBranch(), fixBounds(), fixInterdiction(), presolRoundIndicator(), removeFixedVariables(), SCIP_DECL_CONCSOLVERSYNCREAD(), SCIPnodeAddBoundinfer(), SCIPvarAddImplic(), SCIPvarGetProbvarBound(), and tightenVarBounds().
◆ SCIPvarGetProbvarBoundExact()
| SCIP_RETCODE SCIPvarGetProbvarBoundExact | ( | SCIP_VAR ** | var, |
| SCIP_RATIONAL * | bound, | ||
| SCIP_BOUNDTYPE * | boundtype | ||
| ) |
transforms given variable, boundtype and exact bound to the corresponding active, fixed, or multi-aggregated variable values
- Parameters
-
var pointer to problem variable bound pointer to bound value to transform boundtype pointer to type of bound: lower or upper bound
Definition at line 17894 of file var.c.
References SCIP_Var::aggregate, bound, SCIP_Var::data, SCIP_Var::multaggr, SCIP_Var::negatedvar, NULL, SCIP_Var::original, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPerrorMessage, SCIPrationalDebugMessage, SCIPrationalDiff(), SCIPrationalDiffReal(), SCIPrationalDiv(), SCIPrationalIsNegative(), SCIPrationalNegate(), SCIPvarGetProbvarBoundExact(), SCIPvarGetStatus(), SCIPvarGetStatusExact(), SCIP_Original::transvar, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by SCIPnodeAddBoundinferExact(), and SCIPvarGetProbvarBoundExact().
◆ SCIPvarGetProbvarHole()
| SCIP_RETCODE SCIPvarGetProbvarHole | ( | SCIP_VAR ** | var, |
| SCIP_Real * | left, | ||
| SCIP_Real * | right | ||
| ) |
transforms given variable and domain hole to the corresponding active, fixed, or multi-aggregated variable values
- Parameters
-
var pointer to problem variable left pointer to left bound of open interval in hole to transform right pointer to right bound of open interval in hole to transform
Definition at line 17990 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::negatedvar, NULL, SCIP_Var::original, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPdebugMessage, SCIPerrorMessage, SCIPvarGetProbvarHole(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPnodeAddHoleinfer(), SCIPtreeBranchVarHole(), and SCIPvarGetProbvarHole().
◆ SCIPvarGetOrigvarSum()
| SCIP_RETCODE SCIPvarGetOrigvarSum | ( | SCIP_VAR ** | var, |
| SCIP_Real * | scalar, | ||
| SCIP_Real * | constant | ||
| ) |
retransforms given variable, scalar and constant to the corresponding original variable, scalar and constant, if possible; if the retransformation is impossible, NULL is returned as variable
- Parameters
-
var pointer to problem variable x in sum a*x + c scalar pointer to scalar a in sum a*x + c constant pointer to constant c in sum a*x + c
Definition at line 18320 of file var.c.
References SCIP_Var::aggregate, SCIP_Aggregate::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::negate, SCIP_Var::negatedvar, NULL, SCIP_Var::parentvars, SCIP_Aggregate::scalar, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPerrorMessage, SCIPvarGetStatus(), SCIPvarIsOriginal(), and SCIP_Aggregate::var.
Referenced by checkConsQuadraticProblem(), collectDualInformation(), countSparseSol(), createAndAddTransferredCut(), createVariableMappings(), fixBounds(), getActiveVariables(), getActiveVariables2(), getBinVarsRepresentatives(), getLinearCoeffs(), reoptSimilarity(), saveConsBounddisjuction(), saveConsLinear(), SCIP_DECL_BENDERSGETVAR(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEUREXEC(), SCIPapplyHeurDualval(), SCIPbendersGetStoredCutOrigData(), SCIPbendersMergeSubproblemIntoMaster(), SCIPcopyConsExactLinear(), SCIPcopyConsLinear(), SCIPgetReoptOldObjCoef(), SCIPgetSymActiveVariables(), SCIPreoptAddDualBndchg(), SCIPsolGetVal(), SCIPtransformDecompstore(), solveSubNLP(), storeCuts(), and transformIntoOrig().
◆ SCIPvarGetOrigvarSumExact()
| SCIP_RETCODE SCIPvarGetOrigvarSumExact | ( | SCIP_VAR ** | var, |
| SCIP_RATIONAL * | scalar, | ||
| SCIP_RATIONAL * | constant | ||
| ) |
retransforms given variable, scalar and constant to the corresponding original variable, scalar and constant, if possible; if the retransformation is impossible, NULL is returned as variable
retransforms given variable, scalar anqd constant to the corresponding original variable, scalar and constant, if possible; if the retransformation is impossible, NULL is returned as variable
- Parameters
-
var pointer to problem variable x in sum a*x + c scalar pointer to scalar a in sum a*x + c constant pointer to constant c in sum a*x + c
Definition at line 18409 of file var.c.
References SCIP_VarDataExact::aggregate, SCIP_Var::aggregate, SCIP_AggregateExact::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::exactdata, SCIP_Var::negate, SCIP_Var::negatedvar, NULL, SCIP_Var::parentvars, SCIP_Aggregate::scalar, SCIP_AggregateExact::scalar, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPerrorMessage, SCIPrationalDiffProd(), SCIPrationalDiffProdReal(), SCIPrationalDiv(), SCIPrationalNegate(), SCIPvarGetStatusExact(), SCIPvarIsOriginal(), and SCIP_Aggregate::var.
Referenced by getActiveVariablesExact(), and SCIPsolGetValExact().
◆ SCIPvarIsTransformedOrigvar()
returns whether the given variable is the direct counterpart of an original problem variable
- Parameters
-
var problem variable
Definition at line 18497 of file var.c.
References FALSE, SCIP_Var::nparentvars, NULL, SCIP_Var::parentvars, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetStatus(), and SCIPvarIsTransformed().
Referenced by createAndAddAndCons(), fixBounds(), fixInterdiction(), SCIPprobDelVar(), SCIPsolPrint(), SCIPsolPrintExact(), SCIPsolPrintRay(), and SCIPwriteBnd().
◆ SCIPvarGetNBranchings()
| SCIP_Longint SCIPvarGetNBranchings | ( | SCIP_VAR * | var, |
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the number of times, a bound of the variable was changed in given direction due to branching
- Parameters
-
var problem variable dir branching direction (downwards, or upwards)
Definition at line 21751 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::history, SCIP_Var::negatedvar, NULL, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPbranchdirOpposite(), SCIPerrorMessage, SCIPhistoryGetNBranchings(), SCIPvarGetNBranchings(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPcollectBranchingStatistics(), SCIPprintBranchingStatistics(), and SCIPvarGetNBranchings().
◆ SCIPvarGetNBranchingsCurrentRun()
| SCIP_Longint SCIPvarGetNBranchingsCurrentRun | ( | SCIP_VAR * | var, |
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the number of times, a bound of the variable was changed in given direction due to branching in the current run
- Parameters
-
var problem variable dir branching direction (downwards, or upwards)
Definition at line 21796 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::historycrun, SCIP_Var::negatedvar, NULL, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPbranchdirOpposite(), SCIPerrorMessage, SCIPhistoryGetNBranchings(), SCIPvarGetNBranchingsCurrentRun(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by processWatchedVars(), and SCIPvarGetNBranchingsCurrentRun().
◆ SCIPvarGetInferenceSum()
| SCIP_Real SCIPvarGetInferenceSum | ( | SCIP_VAR * | var, |
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the number of inferences branching on this variable in given direction triggered
- Parameters
-
var problem variable dir branching direction (downwards, or upwards)
Definition at line 22031 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::history, SCIP_Var::negatedvar, NULL, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPbranchdirOpposite(), SCIPerrorMessage, SCIPhistoryGetInferenceSum(), SCIPvarGetInferenceSum(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPvarGetInferenceSum().
◆ SCIPvarGetInferenceSumCurrentRun()
| SCIP_Real SCIPvarGetInferenceSumCurrentRun | ( | SCIP_VAR * | var, |
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the number of inferences branching on this variable in given direction triggered in the current run
- Parameters
-
var problem variable dir branching direction (downwards, or upwards)
Definition at line 22076 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::historycrun, SCIP_Var::negatedvar, NULL, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPbranchdirOpposite(), SCIPerrorMessage, SCIPhistoryGetInferenceSum(), SCIPvarGetInferenceSumCurrentRun(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPvarGetInferenceSumCurrentRun().
◆ SCIPvarGetCutoffSum()
| SCIP_Real SCIPvarGetCutoffSum | ( | SCIP_VAR * | var, |
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the number of cutoffs branching on this variable in given direction produced
- Parameters
-
var problem variable dir branching direction (downwards, or upwards)
Definition at line 22231 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::history, SCIP_Var::negatedvar, NULL, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPbranchdirOpposite(), SCIPerrorMessage, SCIPhistoryGetCutoffSum(), SCIPvarGetCutoffSum(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPvarGetCutoffSum().
◆ SCIPvarGetCutoffSumCurrentRun()
| SCIP_Real SCIPvarGetCutoffSumCurrentRun | ( | SCIP_VAR * | var, |
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the number of cutoffs branching on this variable in given direction produced in the current run
- Parameters
-
var problem variable dir branching direction (downwards, or upwards)
Definition at line 22274 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::historycrun, SCIP_Var::negatedvar, NULL, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPbranchdirOpposite(), SCIPerrorMessage, SCIPhistoryGetCutoffSum(), SCIPvarGetCutoffSumCurrentRun(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPvarGetCutoffSumCurrentRun().
◆ SCIPvarGetAvgBranchdepth()
| SCIP_Real SCIPvarGetAvgBranchdepth | ( | SCIP_VAR * | var, |
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the average depth of bound changes in given direction due to branching on the variable
- Parameters
-
var problem variable dir branching direction (downwards, or upwards)
Definition at line 21839 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::history, SCIP_Var::negatedvar, NULL, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPbranchdirOpposite(), SCIPerrorMessage, SCIPhistoryGetAvgBranchdepth(), SCIPvarGetAvgBranchdepth(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPcollectBranchingStatistics(), SCIPprintBranchingStatistics(), and SCIPvarGetAvgBranchdepth().
◆ SCIPvarGetAvgBranchdepthCurrentRun()
| SCIP_Real SCIPvarGetAvgBranchdepthCurrentRun | ( | SCIP_VAR * | var, |
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the average depth of bound changes in given direction due to branching on the variable in the current run
- Parameters
-
var problem variable dir branching direction (downwards, or upwards)
Definition at line 21884 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::historycrun, SCIP_Var::negatedvar, NULL, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPhistoryGetAvgBranchdepth(), SCIPvarGetAvgBranchdepthCurrentRun(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPvarGetAvgBranchdepthCurrentRun().
◆ SCIPvarHasImplic()
| SCIP_Bool SCIPvarHasImplic | ( | SCIP_VAR * | var, |
| SCIP_Bool | varfixing, | ||
| SCIP_VAR * | implvar, | ||
| SCIP_BOUNDTYPE | impltype | ||
| ) |
returns whether there is an implication x == varfixing -> y <= b or y >= b in the implication graph; implications that are represented as cliques in the clique table are not regarded (use SCIPvarsHaveCommonClique()); both variables must be active, variable x must be binary
- Parameters
-
var problem variable x varfixing FALSE if y should be searched in implications for x == 0, TRUE for x == 1 implvar variable y to search for impltype type of implication y <=/>= b to search for
Definition at line 16441 of file var.c.
References SCIP_Var::implics, NULL, SCIPimplicsContainsImpl(), SCIPvarIsActive(), and SCIPvarIsBinary().
Referenced by initData(), SCIPvarHasBinaryImplic(), and SCIPvarsHaveCommonClique().
◆ SCIPvarHasBinaryImplic()
| SCIP_Bool SCIPvarHasBinaryImplic | ( | SCIP_VAR * | var, |
| SCIP_Bool | varfixing, | ||
| SCIP_VAR * | implvar, | ||
| SCIP_Bool | implvarfixing | ||
| ) |
returns whether there is an implication x == varfixing -> y == implvarfixing in the implication graph; implications that are represented as cliques in the clique table are not regarded (use SCIPvarsHaveCommonClique()); both variables must be active binary variables
- Parameters
-
var problem variable x varfixing FALSE if y should be searched in implications for x == 0, TRUE for x == 1 implvar variable y to search for implvarfixing value of the implied variable to search for
Definition at line 16461 of file var.c.
References SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIPvarHasImplic(), and SCIPvarIsBinary().
◆ SCIPvarGetImplicVarBounds()
| void SCIPvarGetImplicVarBounds | ( | SCIP_VAR * | var, |
| SCIP_Bool | varfixing, | ||
| SCIP_VAR * | implvar, | ||
| SCIP_Real * | lb, | ||
| SCIP_Real * | ub | ||
| ) |
gets the values of b in implications x == varfixing -> y <= b or y >= b in the implication graph; the values are set to SCIP_INVALID if there is no implied bound
- Parameters
-
var problem variable x varfixing FALSE if y should be searched in implications for x == 0, TRUE for x == 1 implvar variable y to search for lb buffer to store the value of the implied lower bound ub buffer to store the value of the implied upper bound
Definition at line 16476 of file var.c.
References SCIP_Var::implics, NULL, SCIP_INVALID, SCIP_Real, SCIPimplicsGetVarImplicPoss(), and SCIPvarGetImplBounds().
Referenced by detectProductsImplbnd().
◆ SCIPvarsHaveCommonClique()
| SCIP_Bool SCIPvarsHaveCommonClique | ( | SCIP_VAR * | var1, |
| SCIP_Bool | value1, | ||
| SCIP_VAR * | var2, | ||
| SCIP_Bool | value2, | ||
| SCIP_Bool | regardimplics | ||
| ) |
returns whether there is a clique that contains both given variable/value pairs; the variables must be active binary variables; if regardimplics is FALSE, only the cliques in the clique table are looked at; if regardimplics is TRUE, both the cliques and the implications of the implication graph are regarded
returns whether there is a clique that contains both given variable/value pairs; the variables must be active binary variables; if regardimplics is FALSE, only the cliques in the clique table are looked at; if regardimplics is TRUE, both the cliques and the implications of the implication graph are regarded
- Note
- a variable with it's negated variable are NOT! in a clique
- a variable with itself are in a clique
- Parameters
-
var1 first variable value1 value of first variable var2 second variable value2 value of second variable regardimplics should the implication graph also be searched for a clique?
Definition at line 16807 of file var.c.
References SCIP_Var::cliquelist, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIPcliquelistsHaveCommonClique(), SCIPvarHasImplic(), SCIPvarIsActive(), and SCIPvarIsBinary().
Referenced by addCliques(), cliquePresolve(), detectDominatingVlbs(), detectDominatingVubs(), detectProductsClique(), findFixings(), getMinactImplicObjchg(), GUBsetCalcCliquePartition(), GUBsetCheck(), liftCliqueVariables(), removeConstraintsDueToNegCliques(), SCIPhaveVarsCommonClique(), and SCIPtestCliquePartition().
◆ SCIPvarGetAggregatedObj()
| SCIP_RETCODE SCIPvarGetAggregatedObj | ( | SCIP_VAR * | var, |
| SCIP_Real * | aggrobj | ||
| ) |
gets corresponding objective value of active, fixed, or multi-aggregated problem variable of given variable e.g. obj(x) = 1 this method returns for ~x the value -1
- Parameters
-
var problem variable aggrobj pointer to store the aggregated objective value
Definition at line 23944 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::multaggr, SCIP_Var::negatedvar, NULL, SCIP_Multaggr::nvars, SCIP_Aggregate::scalar, SCIP_Multaggr::scalars, 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, SCIPvarGetAggregatedObj(), SCIPvarGetObj(), SCIPvarGetStatus(), SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by dualPresolve(), dualPresolving(), removeDoubleAndSingletonsAndPerformDualpresolve(), and SCIPvarGetAggregatedObj().
◆ SCIPvarSetInitial()
| SCIP_RETCODE SCIPvarSetInitial | ( | SCIP_VAR * | var, |
| SCIP_Bool | initial | ||
| ) |
sets the initial flag of a variable; only possible for original or loose variables
- Parameters
-
var problem variable initial initial flag
Definition at line 23354 of file var.c.
References SCIP_Var::initial, NULL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_ORIGINAL, and SCIP_Var::varstatus.
Referenced by addVariable(), SCIPcreateVarBinpacking(), and AMPLProblemHandler::SuffixHandler< T >::SetValue().
◆ SCIPvarSetRemovable()
| SCIP_RETCODE SCIPvarSetRemovable | ( | SCIP_VAR * | var, |
| SCIP_Bool | removable | ||
| ) |
sets the removable flag of a variable; only possible for original or loose variables
- Parameters
-
var problem variable removable removable flag
Definition at line 23370 of file var.c.
References NULL, SCIP_Var::removable, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_ORIGINAL, and SCIP_Var::varstatus.
Referenced by addVariable(), SCIPcreateVarBinpacking(), and AMPLProblemHandler::SuffixHandler< T >::SetValue().
◆ SCIPvarGetName()
| const char * SCIPvarGetName | ( | SCIP_VAR * | var | ) |
returns the name of the variable
- Note
- to change the name of a variable, use SCIPchgVarName() from scip.h
- Parameters
-
var problem variable
Definition at line 23267 of file var.c.
References SCIP_Var::name, and NULL.
Referenced by addAltLPColumn(), addBilinearTermToCut(), addBoundViolated(), addCand(), addCliques(), addCoef(), addColToCut(), addConflictBinvar(), addConflictBounds(), addCut(), addExprsViolScore(), addExprViolScoresAuxVars(), addFixedVarsConss(), addGenVBound(), addLinearTermToCut(), addNode(), addRegularScholtes(), addRltTerm(), addScenarioVarsToProb(), addSplitcons(), addSSTConssOrbitAndUpdateSST(), addStrongSBCsSubgroup(), addVarCardinality(), addVariableToBendersProblem(), addWeakSBCsSubgroup(), adjustOversizedJobBounds(), aggregateVariables(), aggregation(), alnsFixMoreVariables(), alnsUnfixVariables(), analyseInfeasibelCoreInsertion(), analyseVarOnoffBounds(), analyzeEnergyRequirement(), analyzeGenVBoundConflict(), analyzeViolation(), analyzeZeroResultant(), appendVarCardinality(), applyAlternativeBoundsBranching(), applyBdchgs(), applyBoundChgs(), applyBoundHeur(), applyCliqueFixings(), applyDomainReductions(), applyFixings(), applyFixingsAndAggregations(), applyGenVBound(), applyObbtBilinear(), applyOptcumulativeFixings(), applyProbing(), applyRepair(), applyVboundsFixings(), applyZeroFixings(), betterBoundInResolutionQueue(), boundchgApplyExact(), boundchgApplyGlobal(), branch(), branchcandCalcLPCands(), branchcandCalcLPCandsExact(), branchcandInsertPseudoCand(), branchcandRemovePseudoCand(), branching(), branchingIntegralOrNonlinear(), branchOnVar(), branchUnbalancedCardinality(), calcBranchScore(), calcShiftVal(), cancelCol(), candidateFree(), candidateFreeWarmStartInfo(), candidateListGetAllFractionalCandidates(), catchVarEvents(), certificatePrintMirSplit(), changeAncestorBranchings(), checkCons(), checkCumulativeCondition(), checkForOverlapping(), checkIntegralityExact(), checkPackingPartitioningOrbitopeSolution(), checkSolOrig(), checkSolOrigExact(), checkSolution(), checkSystemGF2(), checkVarbound(), checkVarnames(), cliqueCleanup(), cliquePresolve(), colAddCoef(), colExactAddCoef(), colExactChgCoefPos(), colExactDelCoefPos(), colExactLink(), collectActivities(), collectBinaryCliqueData(), collectBranchingCandidates(), collectBranchingCands(), collectLeafs(), collectMinactVar(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), collectSolActivities(), collectSolution(), collectThetaSubtree(), colLink(), colUnlink(), compensateVarLock(), computeConvexEnvelopeFacet(), computeCut(), computeEnergyContribution(), computeImpliedEst(), computeImpliedLct(), computeOffValues(), computeRltCut(), computeSlack(), computeStandardLPFeasibilityCut(), SCIPNLFeeder::ConDescription(), conflictAddBound(), conflictAddConflictBound(), conflictAddConflictCons(), conflictAnalyze(), conflictAnalyzeResolution(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictMarkBoundCheckPresence(), conflictResolveBound(), conflictsetAddBounds(), consdataCheckSuperindicator(), consdataCollectLinkingCons(), consdataCreate(), consdataCreateBinvars(), consdataDeletePos(), consdataFixOperandsOne(), consdataFixResultantZero(), consdataPrint(), consdataTightenCoefs(), constraintNonOverlappingGraph(), constructCompression(), constructSNFRelaxation(), convertBinaryEquality(), convertLongEquality(), convertUnaryEquality(), coretimesUpdateLb(), coretimesUpdateUb(), countSparseSol(), createAndAddAndCons(), createAndStoreSparseRays(), createAuxiliaryNonlinearSubproblem(), createAuxVar(), createBinaryConstraintName(), createBlockproblem(), createConsSetppc(), createConstraints(), createConsXorIntvar(), createCoreProfile(), createCoveringProblem(), createGenVBound(), createKKTComplementarityBinary(), createKKTComplementarityBounds(), createKKTDualCons(), createMIP(), createNAryBranch(), createSelectedSortedEventpointsSol(), createSubproblem(), createSubproblems(), createSubSCIP(), createTcliqueGraph(), createVariableMappings(), detectAndHandleSubgroups(), detectDominatingVlbs(), detectDominatingVubs(), detectHiddenProducts(), detectImplications(), detectImpliedBounds(), detectMinors(), detectProductsClique(), detectVarboundSOS1(), determineBound(), determineBoundForSNF(), determineVariableFixings(), dfs(), displayCycleOfSymmetry(), doSeachEcAggr(), dropVarEvent(), dryBranch(), dualPresolve(), dualPresolving(), enforceCardinality(), enforceConssSOS1(), enforceConstraint(), enforceConstraints(), enforceSOS2(), estimateBivariateQuotient(), estimateConvexSecant(), estimateGradientInner(), estimateUnivariateQuotient(), estimateVertexPolyhedral(), execRelpscost(), executeBranching(), executeBranchingRecursive(), executeResolutionStep(), exprIsSemicontinuous(), extractCycle(), extractProducts(), SCIPNLFeeder::FeedColNames(), SCIPNLFeeder::FeedConBounds(), SCIPNLFeeder::FeedConExpression(), SCIPNLFeeder::FeedLinearConExpr(), SCIPNLFeeder::FeedRowAndObjNames(), filterCandidates(), filterCands(), filterExistingLP(), findAggregation(), findCumulativeConss(), findNewBounds(), findScenarioVar(), findUncapacitatedArcs(), findUnlockedLinearVar(), fixAdditionalVars(), fixAndPropagate(), fixBounds(), fixDeleteOrUpgradeCons(), fixIntegerVariableLb(), fixIntegerVariableUb(), fixInterdiction(), fixVariable(), fixVariables(), fixVariableZeroNode(), forwardPropExpr(), freeAuxVar(), fullDualPresolve(), generateAndApplyBendersCuts(), getBinaryProductExprDo(), getConflictImplics(), getFactorizedBinaryQuadraticExpr(), getFixedVariable(), getMaxactImplicObjchg(), getNLPVarsNonConvexity(), getOldBranching(), getScenarioDecompVar(), GUBsetCheck(), GUBsetMoveVar(), handle1Cycle(), handleNewVariableSOS1(), inferboundsEdgeFinding(), initBounds(), initCurrent(), initData(), initSepa(), insertIndex(), liftCliqueVariables(), lpExactFlushAddCols(), lpExactFlushAddRows(), lpFlushAddCols(), lpFlushAddRows(), lpRemoveObsoleteCols(), markBdchgAsFixed(), markRowsXj(), maximalslack(), mergeMultiples(), multiAggregateBinvar(), nlpCalcFracVars(), nlpFlushVarAdditions(), nlrowAddLinearCoef(), nodepairqueueCreate(), notifyNlhdlrNewsol(), objimplicsCreate(), objimplicsDelPos(), optimize(), parseBase(), performAggregations(), performBranchingNoSol(), performBranchingSol(), performDualfix(), performFixing(), performImplicationGraphAnalysis(), performRandRounding(), performSimpleRounding(), performStrongbranchWithPropagation(), predBndStr(), preprocessConstraintPairs(), presolRoundCardinality(), presolRoundConsSOS1(), presolRoundIndicator(), presolRoundSOS2(), presolRoundVarsSOS1(), presolStuffing(), presolveAddKKTAggregatedVars(), presolveConsEst(), presolveConsLct(), presolveImplint(), presolvePropagateCons(), presolveRedundantConss(), presolveSingleLockedVars(), printActiveVariables(), printAggregatedCons(), printAndCons(), printBoundSection(), printExpr(), printIndicatorCons(), printLinearCons(), printLinearRow(), printNLRow(), printRow(), printRowAnd(), printRowExact(), printSignomial(), printSosCons(), probScaleObjExact(), processBinvarFixings(), processFixings(), processNlRow(), processRealBoundChg(), processWatchedVars(), propagateBinaryBestRootRedcost(), propagateCons(), propagateCutoffboundVar(), propagateLbTTEF(), propagateLowerBoundVar(), propagateRedcostBinvar(), propagateRedcostVar(), propagateRootRedcostBinvar(), propagateSelfReflectionVar(), propagateStaticOrbitope(), propagateTimetable(), propagateUbTTEF(), propagateUpperBoundSymVar(), propagateVbounds(), propCardinality(), propConsSOS1(), propdataInit(), propIndicator(), proposeFeasibleSolution(), propSOS2(), rangedRowPropagation(), readBinaries(), readBounds(), readBoundsExact(), readBoundsRational(), readCoefficients(), readCoefficientsRational(), readCols(), readerdataAddOutputvar(), readGenerals(), readObjective(), readPolynomial(), readQCMatrix(), readQMatrix(), readSemicontinuous(), readSOS(), readSos(), readVariables(), reformulateFactorizedBinaryQuadratic(), registerBranchingCandidates(), relaxVar(), removeConstraintsDueToNegCliques(), removeDoubleAndSingletonsAndPerformDualpresolve(), removeFixedVariables(), removeIrrelevantJobs(), removeRedundantNonZeros(), reoptimize(), resetVarname(), resolveGenVBoundPropagation(), resolvePropagation(), resolvePropagationCoretimes(), respropCumulativeCondition(), rowAddCoef(), rowExactAddCoef(), rowExactChgCoefPos(), rowExactDelCoefPos(), rowFindSlackVar(), rowprepCleanupImproveCoefrange(), rowprepCleanupIntegralCoefs(), rowprepRecordModifiedVar(), runVanillaStrongBranching(), scaleCons(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECPS(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSENFORELAX(), SCIP_DECL_CONSEXIT(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSINITLP(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPARSE(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPRINT(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSSEPALP(), SCIP_DECL_CONSSEPASOL(), SCIP_DECL_CONSTRANS(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPR_OWNERPRINT(), SCIP_DECL_EXPRPRINT(), SCIP_DECL_EXPRSIMPLIFY(), SCIP_DECL_HASHGETKEY(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_NLHDLRENFO(), SCIP_DECL_NLHDLRINITSEPA(), SCIP_DECL_NLHDLRSOLLINEARIZE(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPRESPROP(), SCIP_DECL_READERWRITE(), SCIP_DECL_RELAXEXEC(), SCIP_DECL_SEPAEXECLP(), SCIP_DECL_SORTPTRCOMP(), SCIP_DECL_VERTEXPOLYFUN(), SCIPaddCoefExactLinear(), SCIPaddCoefLinear(), SCIPaddIneqBilinear(), SCIPaddVarCardinality(), SCIPaddVarSOS1(), SCIPaddVarSOS2(), SCIPaggrRowPrint(), SCIPanalyzeDeductionsProbing(), SCIPappendVarCardinality(), SCIPappendVarSOS1(), SCIPappendVarSOS2(), SCIPapplyHeurDualval(), SCIPapplyHeurSubNlp(), SCIPapplyLockFixings(), SCIPapplyProbingVar(), SCIPbendersGetVar(), SCIPbendersMergeSubproblemIntoMaster(), SCIPbendersSetupSubproblem(), SCIPbendersSolSlackVarsActive(), SCIPboundchgApply(), SCIPboundchgUndo(), SCIPbranchcandAddExternCand(), SCIPbranchExecExtern(), SCIPbranchVar(), SCIPbranchVarVal(), SCIPbranchVarValNary(), SCIPcatchVarEvent(), SCIPcertificateInit(), SCIPcertificateInitTransFile(), SCIPchgReoptObjective(), SCIPchgVarImplType(), SCIPchgVarLb(), SCIPchgVarLbExact(), SCIPchgVarLbGlobal(), SCIPchgVarLbNode(), SCIPchgVarLbProbing(), SCIPchgVarType(), SCIPchgVarUb(), SCIPchgVarUbExact(), SCIPchgVarUbGlobal(), SCIPchgVarUbNode(), SCIPchgVarUbProbing(), SCIPcliqueAddVar(), SCIPcliqueDelVar(), SCIPcliquelistRemoveFromCliques(), SCIPcliquetableAdd(), SCIPcolChgLb(), SCIPcolChgObj(), SCIPcolChgUb(), SCIPcolDelCoef(), SCIPcolExactChgLb(), SCIPcolExactChgObj(), SCIPcolExactChgUb(), SCIPcolExactDelCoef(), SCIPcolGetStrongbranch(), SCIPcollectBranchingStatistics(), SCIPconflictAddConflictCon(), SCIPconflictAddRelaxedBound(), SCIPconflictAnalyzeRemainingBdchgs(), SCIPconflictAnalyzeStrongbranch(), SCIPconflictIsVarUsed(), SCIPcopyImplicationsCliques(), SCIPcreateConsAnd(), SCIPcreateConsBasicSOCNonlinear(), SCIPcreateConsCardinality(), SCIPcreateConsCumulative(), SCIPcreateConsExactLinear(), SCIPcreateConsIndicatorGenericLinConsPure(), SCIPcreateConsKnapsack(), SCIPcreateConsLinear(), SCIPcreateConsLinking(), SCIPcreateConsLogicor(), SCIPcreateConsOr(), SCIPcreateConsQuadraticNonlinear(), SCIPcreateConsXor(), SCIPcreateFiniteSolCopy(), SCIPcreateNlpiProblemFromNlRows(), SCIPdropVarEvent(), SCIPendStrongbranch(), SCIPeventqueueAdd(), SCIPexprDismantle(), SCIPgenerateAndApplyBendersOptCut(), SCIPgetVarCopy(), SCIPgetVarsStrongbranchesFrac(), SCIPgetVarsStrongbranchesInt(), SCIPgetVarStrongbranchFrac(), SCIPgetVarStrongbranchInt(), SCIPgetVarStrongbranchWithPropagation(), SCIPimplicsAdd(), SCIPimplicsDel(), SCIPincSolVal(), SCIPinferVarLbConsExact(), SCIPinferVarLbProp(), SCIPinferVarUbConsExact(), SCIPinferVarUbProp(), SCIPlpAddCol(), SCIPlpAddRow(), SCIPlpExactAddCol(), SCIPlpExactAddRow(), SCIPlpExactGetSol(), SCIPlpExactLink(), SCIPlpGetDualfarkas(), SCIPlpGetSol(), SCIPmatrixGetColName(), SCIPmatrixPrintRow(), SCIPnlpDelVar(), SCIPnlrowDelLinearCoef(), SCIPnlrowPrint(), SCIPnodeAddBoundinfer(), SCIPnodeAddBoundinferExact(), SCIPnodeAddHolechg(), SCIPnodeAddHoleinfer(), SCIPnodePrintAncestorBranchings(), SCIPperformGenericDivingAlgorithm(), SCIPpricestoreAddBdviolvar(), SCIPpricestoreAddProbVars(), SCIPpricestoreAddVar(), SCIPpricestoreApplyVars(), SCIPprimalTransformSol(), SCIPprintBranchingStatistics(), SCIPprintNodeRootPath(), SCIPprintRowprep(), SCIPprintRowprepSol(), SCIPprintSolutionPbSolver(), SCIPprobAddVar(), SCIPprobDelVar(), SCIPprobExitSolve(), SCIPprobFree(), SCIPprobPerformVarDeletions(), SCIPprobPrintPseudoSol(), SCIPprobScaleObj(), SCIPreaderWrite(), SCIPreoptAddDualBndchg(), SCIPreoptApplyGlbConss(), SCIPreoptMergeVarHistory(), SCIProwDelCoef(), SCIProwExactDelCoef(), SCIProwExactPrint(), SCIProwPrint(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), SCIPseparateKnapsackCuts(), SCIPseparateRelaxedKnapsack(), SCIPsetBinaryVarIndicator(), SCIPsetSolVal(), SCIPsetSolValExact(), SCIPsetSolVals(), SCIPshrinkDisjunctiveVarSet(), SCIPsolCheck(), SCIPsolCheckOrig(), SCIPsolIncVal(), SCIPsolPrint(), SCIPsolPrintExact(), SCIPsolPrintRay(), SCIPsolSetVal(), SCIPsolSetValExact(), SCIPstatComputeRootLPBestEstimate(), SCIPstatUpdateVarRootLPBestEstimate(), SCIPtightenVarLb(), SCIPtightenVarLbExact(), SCIPtightenVarLbGlobal(), SCIPtightenVarUb(), SCIPtightenVarUbExact(), SCIPtightenVarUbGlobal(), SCIPtreeBranchVar(), SCIPtreeBranchVarExact(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPtreeCalcNodeselPriority(), SCIPundoBdchgsProof(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarCopy(), SCIPvarGetImplRedcost(), SCIPvarIncVSIDS(), SCIPvarMultiaggregate(), SCIPvarMultiaggregateExact(), SCIPvarPrint(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarSetNLPSol(), SCIPvarSetRelaxSol(), SCIPvarUpdateBestRootSol(), SCIPvarUpdatePseudocost(), SCIPvisualCutoffNode(), SCIPvisualizeConsCumulative(), SCIPvisualNewChild(), SCIPvisualSolvedNode(), SCIPvisualUpdateChild(), SCIPwriteBnd(), SCIPwriteCliqueGraph(), SCIPwriteGms(), SCIPwriteLp(), SCIPwriteMps(), SCIPwriteOpb(), SCIPwritePip(), SCIPwriteVarName(), scoreBranchingCandidates(), scoreContainerSetScore(), selectBestCands(), selectBranchingCandidate(), selectInitialVariableDecomposition(), selectInitialVariableRandomly(), selectVarMultAggrBranching(), selectVarRecursive(), selectVarStart(), sepadataAddMinor(), sepaImplBoundCutsSOS1(), separateCuts(), separateMcCormickImplicit(), separateRltCuts(), sepastoreApplyLb(), sepastoreApplyUb(), setupAndSolveFiniteSolSubscip(), simplifyInequalities(), solCheckExact(), solUnlinkVar(), solUnlinkVarExact(), solveAndEvalSubscip(), solveBilinearLP(), solveNlp(), solveNode(), solveSubNLP(), sortAndMergeClique(), strengthenVarbounds(), tarjan(), tightenAuxVarBounds(), tightenCoefs(), tightenDualproof(), tightenedLinkvar(), tightenSingleVar(), tightenVarBounds(), tightenVarBoundsEasy(), tightenVariables(), tightenVarLb(), tightenVarLbGlobalSafe(), tightenVarsBoundsSOS1(), tightenVarUb(), tightenVarUbGlobalSafe(), tightenWeights(), tightenWeightsLift(), transformAndSolve(), transformVariable(), treeApplyPendingBdchgs(), tryFixVar(), updateArcData(), updateAuxiliaryVarLowerbound(), updateBestCandidate(), updatePseudocost(), upgradeConss(), usePreviousResult(), varAddImplic(), varAddLbchginfo(), varAddUbchginfo(), varAddVbound(), varHasName(), varIsSemicontinuous(), varProcessAddHoleGlobal(), varProcessAddHoleLocal(), varProcessChgLbGlobal(), varProcessChgUbGlobal(), weakenVarConflictRow(), writeFzn(), writeOpbFixedVars(), writeOpbObjective(), and writeOpbRelevantAnds().
◆ SCIPvarGetNUses()
| int SCIPvarGetNUses | ( | SCIP_VAR * | var | ) |
gets number of times, the variable is currently captured
- Parameters
-
var problem variable
Definition at line 23277 of file var.c.
References NULL, and SCIP_Var::nuses.
Referenced by SCIPiisGenerate(), SCIPprobExitSolve(), and SCIPprobFree().
◆ SCIPvarGetData()
| SCIP_VARDATA * SCIPvarGetData | ( | SCIP_VAR * | var | ) |
returns the user data of the variable
- Parameters
-
var problem variable
Definition at line 23287 of file var.c.
References NULL, and SCIP_Var::vardata.
Referenced by addFixedVarsConss(), checkVariable(), computeBranchingPriorities(), consdataCheck(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_EVENTEXEC(), and SCIPgetObjVardata().
◆ SCIPvarSetData()
| void SCIPvarSetData | ( | SCIP_VAR * | var, |
| SCIP_VARDATA * | vardata | ||
| ) |
sets the user data for the variable
- Parameters
-
var problem variable vardata user variable data
Definition at line 23297 of file var.c.
References NULL, and SCIP_Var::vardata.
Referenced by addAuxiliaryVariablesToMaster(), assignAuxiliaryVariables(), createInitialColumns(), SCIP_DECL_EVENTEXEC(), and SCIPcreateVarBinpacking().
◆ SCIPvarSetDelorigData()
| void SCIPvarSetDelorigData | ( | SCIP_VAR * | var, |
| SCIP_DECL_VARDELORIG((*vardelorig)) | |||
| ) |
sets method to free user data for the original variable
- Parameters
-
var problem variable
Definition at line 23308 of file var.c.
References NULL, SCIP_VARSTATUS_ORIGINAL, and SCIPvarGetStatus().
◆ SCIPvarSetTransData()
| void SCIPvarSetTransData | ( | SCIP_VAR * | var, |
| SCIP_DECL_VARTRANS((*vartrans)) | |||
| ) |
sets method to transform user data of the variable
- Parameters
-
var problem variable
Definition at line 23320 of file var.c.
References NULL, SCIP_VARSTATUS_ORIGINAL, and SCIPvarGetStatus().
◆ SCIPvarSetDeltransData()
| void SCIPvarSetDeltransData | ( | SCIP_VAR * | var, |
| SCIP_DECL_VARDELTRANS((*vardeltrans)) | |||
| ) |
sets method to free transformed user data for the variable
- Parameters
-
var problem variable
Definition at line 23332 of file var.c.
References NULL.
Referenced by SCIPcreateVarBinpacking().
◆ SCIPvarSetCopyData()
| void SCIPvarSetCopyData | ( | SCIP_VAR * | var, |
| SCIP_DECL_VARCOPY((*varcopy)) | |||
| ) |
◆ SCIPvarGetStatus()
| SCIP_VARSTATUS SCIPvarGetStatus | ( | SCIP_VAR * | var | ) |
gets status of variable
- Parameters
-
var problem variable
Definition at line 23386 of file var.c.
References NULL, and SCIP_Var::varstatus.
Referenced by addAltLPConstraint(), addBdchg(), addCliques(), addCoef(), addSplitcons(), applyBoundChanges(), applyFixings(), applyGenVBound(), applyObbt(), applyRepair(), assignVars(), boundchgApplyExact(), branchcandCalcLPCands(), branchcandCalcLPCandsExact(), branchOnBin(), calcBdchgScore(), calcBranchScore(), calcVarBoundsDominated(), calcVarBoundsDominating(), changeAncestorBranchings(), checkForOverlapping(), checkSystemGF2(), cleanupHashDatas(), cliqueCleanup(), cliquePresolve(), colCalcInternalFarkasCoef(), colCalcInternalRedcost(), collectAggregatedVars(), computeAlternativeBounds(), computeCut(), conflictAddBound(), conflictResolveBound(), consdataComputeSolActivityWithErrorbound(), consdataCreate(), constructValidSolution(), convertToActiveVar(), correctConshdlrdata(), correctPresoldata(), createBlockproblem(), createCGCutCMIR(), createCGCuts(), createCoveringProblem(), createKKTComplementarityBounds(), createNAryBranch(), createNewSol(), createPresoldata(), determineVariableFixings(), enforceCardinality(), enforceConflictgraph(), enforceIndicators(), exitPresolve(), SCIPNLFeeder::FeedConBounds(), SCIPNLFeeder::FeedLinearConExpr(), fixDeleteOrUpgradeCons(), fixVariables(), fixVariableZero(), fixVariableZeroNode(), getActiveVar(), getActiveVariables(), getBranchCands(), getDualBranchscore(), getImplVarRedcost(), getLinearCoeffs(), getNActiveConsScore(), getNVarsIndicators(), getRandomVariable(), getVariablePscostScore(), getVariableRedcostScore(), includeVarGenVBound(), inferVariableZero(), initLP(), liftCliqueVariables(), lpFlushAddCols(), lpFlushChgCols(), lpUpdateObjval(), lpUpdateVarColumn(), lpUpdateVarColumnProved(), lpUpdateVarLoose(), lpUpdateVarLooseProved(), lpUpdateVarProved(), markNeighborsMWISHeuristic(), markRowsXj(), mergeMultiples(), nlrowRemoveFixedLinearCoefPos(), optimize(), overwriteMultAggrWithExactData(), performInteriorSolCutStrengthening(), performRandRounding(), performSimpleRounding(), performStrongbranchSOS1(), preprocessCliques(), presolRoundIndicator(), presolve(), presolveAddKKTAggregatedVars(), printBoundSection(), probInsertVar(), probRemoveVar(), processBinvarFixings(), processRealBoundChg(), processWatchedVars(), propagateCons(), propIndicator(), propVariableNonzero(), readSolFile(), readXmlSolFile(), recomputeLooseObjectiveValue(), recomputeSafeLooseObjectiveValue(), relaxVar(), removeConstraintsDueToNegCliques(), removeDoubleAndSingletonsAndPerformDualpresolve(), removeFixedVariables(), replaceAggregatedVarsOrbisack(), replaceAggregatedVarsOrbitopeFull(), replaceAggregatedVarsOrbitopePP(), replaceAggregatedVarsSymresack(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONCSOLVERSYNCREAD(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPRINT(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HASHKEYVAL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_NLHDLRENFO(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPEXITPRE(), SCIP_DECL_READERWRITE(), SCIPaddPricedVar(), SCIPaddVar(), SCIPaggregateVars(), SCIPaggregateVarsExact(), SCIPapplyLockFixings(), SCIPboundchgApply(), SCIPboundchgUndo(), SCIPbranchcandAddExternCand(), SCIPbranchcandGetPseudoCands(), SCIPbranchcandUpdateVar(), SCIPchgReoptObjective(), SCIPcliqueAddVar(), SCIPcliquetableAdd(), SCIPcliquetableCleanup(), SCIPcolCalcFarkasCoef(), SCIPcolCalcRedcost(), SCIPcolChgLb(), SCIPcolChgObj(), SCIPcolChgUb(), SCIPcolFree(), SCIPcolGetStrongbranch(), SCIPcolGetStrongbranches(), SCIPcolInvalidateStrongbranchData(), SCIPcolSetStrongbranchData(), SCIPcomputeVarLbGlobal(), SCIPcomputeVarLbLocal(), SCIPcomputeVarUbGlobal(), SCIPcomputeVarUbLocal(), SCIPconflictAddBound(), SCIPconflictAddRelaxedBound(), SCIPconflictAnalyzeRemainingBdchgs(), SCIPconflictIsVarUsed(), SCIPcreateFiniteSolCopy(), SCIPdelVar(), SCIPdomchgAddBoundchg(), SCIPeventCreateImplAdded(), SCIPeventCreateVarFixed(), SCIPeventCreateVarUnlocked(), SCIPeventProcess(), SCIPfixVar(), SCIPfixVarExact(), SCIPgetRowprepViolation(), SCIPgetVarCopy(), SCIPgetVarFarkasCoef(), SCIPgetVarImplRedcost(), SCIPgetVarLbAtIndex(), SCIPgetVarMultaggrLbGlobal(), SCIPgetVarMultaggrLbLocal(), SCIPgetVarMultaggrUbGlobal(), SCIPgetVarMultaggrUbLocal(), SCIPgetVarNStrongbranchs(), SCIPgetVarRedcost(), SCIPgetVarsStrongbranchesFrac(), SCIPgetVarsStrongbranchesInt(), SCIPgetVarStrongbranchFrac(), SCIPgetVarStrongbranchInt(), SCIPgetVarStrongbranchLast(), SCIPgetVarStrongbranchLPAge(), SCIPgetVarStrongbranchNode(), SCIPgetVarStrongbranchWithPropagation(), SCIPgetVarUbAtIndex(), SCIPimplicsAdd(), SCIPisVarAggrCoefAcceptable(), SCIPlpAddCol(), SCIPlpEndDive(), SCIPlpExactEndDive(), SCIPlpExactUpdateVarLoose(), SCIPlpExactUpdateVarObj(), SCIPlpMarkFlushed(), SCIPlpShrinkCols(), SCIPlpStartDive(), SCIPlpSumRows(), SCIPlpUpdateAddVar(), SCIPlpUpdateDelVar(), SCIPlpUpdateVarLb(), SCIPlpUpdateVarObj(), SCIPlpUpdateVarUb(), SCIPmakeIndicatorFeasible(), SCIPmergeVariableStatistics(), SCIPnlrowAddLinearCoef(), SCIPnodeAddBoundinfer(), SCIPnodeAddBoundinferExact(), SCIPnodeAddHoleinfer(), SCIPnodePropagateImplics(), SCIPpricestoreAddProbVars(), SCIPpricestoreApplyVars(), SCIPprimalTransformSol(), SCIPprintSolutionPbSolver(), SCIPprobAddVar(), SCIPprobChgVarImplType(), SCIPprobChgVarType(), SCIPprobDelVar(), SCIPprobExitSolve(), SCIPprobPerformVarDeletions(), SCIPprobUpdateBestRootSol(), SCIPprobVarChangedStatus(), SCIPrelaxationUpdateVarObj(), SCIPreoptApplyCuts(), SCIProwCalcIntegralScalar(), SCIProwExactPrint(), SCIProwExactRecalcPseudoActivity(), SCIProwPrint(), SCIProwRecalcPseudoActivity(), SCIPsetVarStrongbranchData(), SCIPsolAdjustImplicitSolVals(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolIncVal(), SCIPsolRound(), SCIPsolSetVal(), SCIPsolUpdateVarObj(), SCIPstatUpdateVarRootLPBestEstimate(), SCIPtreeBranchVar(), SCIPtreeBranchVarExact(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPvarAddClique(), SCIPvarAddCliqueToList(), SCIPvarAddExactData(), SCIPvarAddHoleGlobal(), SCIPvarAddHoleLocal(), SCIPvarAddHoleOriginal(), SCIPvarAddImplic(), SCIPvarAddLocks(), SCIPvarAddObj(), SCIPvarAddObjExact(), SCIPvarAddToRow(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarAggregate(), SCIPvarChgBranchDirection(), SCIPvarChgBranchFactor(), SCIPvarChgBranchPriority(), SCIPvarChgLbDive(), SCIPvarChgLbGlobal(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLazy(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarChgLbOriginalExact(), SCIPvarChgObj(), SCIPvarChgObjDive(), SCIPvarChgUbDive(), SCIPvarChgUbGlobal(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLazy(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarChgUbOriginalExact(), SCIPvarColumn(), SCIPvarCompareActiveAndNegated(), SCIPvarCopy(), SCIPvarDelClique(), SCIPvarDoNotAggr(), SCIPvarDoNotMultaggr(), SCIPvarFix(), SCIPvarFixExact(), SCIPvarFlattenAggregationGraph(), SCIPvarGetActiveRepresentatives(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetAggrConstant(), SCIPvarGetAggregatedObj(), SCIPvarGetAggrScalar(), SCIPvarGetAggrVar(), SCIPvarGetAncPseudocost(), SCIPvarGetAncPseudocostCountCurrentRun(), SCIPvarGetAvgBranchdepth(), SCIPvarGetAvgBranchdepthCurrentRun(), SCIPvarGetAvgConflictlength(), SCIPvarGetAvgConflictlengthCurrentRun(), SCIPvarGetAvgCutoffs(), SCIPvarGetAvgCutoffsCurrentRun(), SCIPvarGetAvgGMIScore(), SCIPvarGetAvgInferences(), SCIPvarGetAvgInferencesCurrentRun(), SCIPvarGetAvgSol(), SCIPvarGetBestRootLPObjval(), SCIPvarGetBestRootRedcost(), SCIPvarGetBestRootSol(), SCIPvarGetCol(), SCIPvarGetCutoffSum(), SCIPvarGetCutoffSumCurrentRun(), SCIPvarGetHolelistOriginal(), SCIPvarGetImplRedcost(), SCIPvarGetInferenceSum(), SCIPvarGetInferenceSumCurrentRun(), SCIPvarGetLastBdchgIndex(), SCIPvarGetLastGMIScore(), SCIPvarGetLbLP(), SCIPvarGetLbOriginal(), SCIPvarGetLPSol(), SCIPvarGetLPSol_rec(), SCIPvarGetLPSolExact_rec(), SCIPvarGetMaxAggrCoef(), SCIPvarGetMinAggrCoef(), SCIPvarGetMultaggrConstant(), SCIPvarGetMultaggrLbGlobal(), SCIPvarGetMultaggrLbLocal(), SCIPvarGetMultaggrNVars(), SCIPvarGetMultaggrScalars(), SCIPvarGetMultaggrUbGlobal(), SCIPvarGetMultaggrUbLocal(), SCIPvarGetMultaggrVars(), SCIPvarGetNActiveConflicts(), SCIPvarGetNActiveConflictsCurrentRun(), SCIPvarGetNBranchings(), SCIPvarGetNBranchingsCurrentRun(), SCIPvarGetNegationConstant(), SCIPvarGetNegationVar(), SCIPvarGetNLocksDownType(), SCIPvarGetNLocksUpType(), SCIPvarGetNLPSol(), SCIPvarGetNLPSol_rec(), SCIPvarGetObjLP(), SCIPvarGetOrigvarSum(), SCIPvarGetProbvar(), SCIPvarGetProbvarBinary(), SCIPvarGetProbvarBound(), SCIPvarGetProbvarBoundExact(), SCIPvarGetProbvarHole(), SCIPvarGetProbvarSum(), SCIPvarGetProbvarSumExact(), SCIPvarGetPseudocost(), SCIPvarGetPseudocostCount(), SCIPvarGetPseudocostCountCurrentRun(), SCIPvarGetPseudocostCurrentRun(), SCIPvarGetPseudocostVariance(), SCIPvarGetPseudoSol(), SCIPvarGetPseudoSol_rec(), SCIPvarGetRelaxSol(), SCIPvarGetRelaxSolTransVar(), SCIPvarGetRootSol(), SCIPvarGetTransformed(), SCIPvarGetTransVar(), SCIPvarGetUbLP(), SCIPvarGetUbOriginal(), SCIPvarGetVSIDS(), SCIPvarGetVSIDS_rec(), SCIPvarGetVSIDSCurrentRun(), SCIPvarIncCutoffSum(), SCIPvarIncGMIeffSum(), SCIPvarIncInferenceSum(), SCIPvarIncNActiveConflicts(), SCIPvarIncNBranchings(), SCIPvarIncVSIDS(), SCIPvarIsAggrCoefAcceptable(), SCIPvarIsInLP(), SCIPvarIsNegated(), SCIPvarIsOriginal(), SCIPvarIsTransformed(), SCIPvarIsTransformedOrigvar(), SCIPvarLoose(), SCIPvarMarkDoNotAggr(), SCIPvarMarkDoNotMultaggr(), SCIPvarMultiaggregate(), SCIPvarNegate(), SCIPvarPrint(), SCIPvarRemove(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarsAddClique(), SCIPvarScaleVSIDS(), SCIPvarSetDelorigData(), SCIPvarSetLastGMIScore(), SCIPvarSetNLPSol(), SCIPvarSetRelaxSol(), SCIPvarSetTransData(), SCIPvarsGetActiveVars(), SCIPvarTransform(), SCIPvarTryAggregateVars(), SCIPvarTryAggregateVarsExact(), SCIPvarUpdateAncPseudocost(), SCIPvarUpdatePseudocost(), SCIPvarWasFixedEarlier(), SCIPvboundsAdd(), SCIPwriteGms(), SCIPwriteLp(), SCIPwriteMps(), SCIPwritePip(), selectVarMultAggrBranching(), separateCons(), shortenConss(), solUnlinkVar(), solUnlinkVarExact(), solveLp(), sortAndMergeClique(), tightenedLinkvar(), tightenVarBounds(), tightenVarBoundsEasy(), tightenVarsBoundsSOS1(), tryAddGadgetSquaredDifference(), tryAggregateIntVars(), tryAggregateIntVarsExact(), updateBestCandidate(), updateConsanddataUses(), updateSubproblemLowerbound(), varAddImplic(), varAddParent(), varAddTransitiveImplic(), varEventGlbChanged(), varEventGlbChangedExact(), varEventGubChanged(), varEventGubChangedExact(), varEventLbChanged(), varEventLbChangedExact(), varEventObjChanged(), varEventObjChangedExact(), varEventUbChanged(), varEventUbChangedExact(), varEventVarFixed(), varFree(), varFreeParents(), varGetActiveVar(), varGetObjDelta(), varIsInteresting(), varMayRoundDown(), varMayRoundUp(), varProcessAddHoleGlobal(), varProcessAddHoleLocal(), varProcessChgBranchDirection(), varProcessChgBranchFactor(), varProcessChgBranchPriority(), varProcessChgLbGlobal(), varProcessChgLbGlobalExact(), varProcessChgLbLocal(), varProcessChgLbLocalExact(), varProcessChgUbGlobal(), varProcessChgUbGlobalExact(), varProcessChgUbLocal(), varProcessChgUbLocalExact(), varSetProbindex(), varUpdateMinMaxAggrCoef(), writeOpbConstraints(), and writeOpbObjective().
◆ SCIPvarGetStatusExact()
| SCIP_VARSTATUS SCIPvarGetStatusExact | ( | SCIP_VAR * | var | ) |
returns the status of the exact variable data
- Parameters
-
var scip variable
Definition at line 23396 of file var.c.
References SCIP_Var::exactdata, NULL, and SCIP_VarDataExact::varstatusexact.
Referenced by lpExactFlushAddCols(), lpExactFlushChgCols(), lpExactUpdateObjval(), SCIP_DECL_CONSCHECK(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPcolExactChgLb(), SCIPcolExactChgObj(), SCIPcolExactChgUb(), SCIPcomputeVarLbLocalExact(), SCIPcomputeVarUbLocalExact(), SCIPeventProcess(), SCIPlpExactAddCol(), SCIPlpExactEndDive(), SCIPlpExactLink(), SCIPlpExactShrinkCols(), SCIPlpExactStartDive(), SCIPlpExactUpdateAddVar(), SCIPlpExactUpdateDelVar(), SCIPlpExactUpdateVarColumn(), SCIPlpExactUpdateVarLb(), SCIPlpExactUpdateVarUb(), SCIPsolGetValExact(), SCIPsolSetValExact(), SCIPvarAddObjExact(), SCIPvarAddToRowExact(), SCIPvarAggregateExact(), SCIPvarChgLbExactDive(), SCIPvarChgLbLocalExact(), SCIPvarChgLbOriginalExact(), SCIPvarChgObjExact(), SCIPvarChgUbExactDive(), SCIPvarChgUbLocalExact(), SCIPvarChgUbOriginalExact(), SCIPvarFixExact(), SCIPvarGetActiveRepresentativesExact(), SCIPvarGetAggrConstantExact(), SCIPvarGetAggrScalarExact(), SCIPvarGetColExact(), SCIPvarGetLbOriginalExact(), SCIPvarGetLPSolExact(), SCIPvarGetLPSolExact_rec(), SCIPvarGetMultaggrConstantExact(), SCIPvarGetMultaggrLbLocalExact(), SCIPvarGetMultaggrScalarsExact(), SCIPvarGetMultaggrUbLocalExact(), SCIPvarGetOrigvarSumExact(), SCIPvarGetProbvarBoundExact(), SCIPvarGetProbvarSumExact(), SCIPvarGetPseudoSolExact(), SCIPvarGetPseudoSolExact_rec(), SCIPvarGetUbOriginalExact(), SCIPvarMultiaggregateExact(), updateLpExactBoundChange(), and varFreeExactData().
◆ SCIPvarIsExact()
returns whether the variable has exact variable data
- Parameters
-
var scip variable
Definition at line 23407 of file var.c.
References SCIP_Var::exactdata, and NULL.
Referenced by SCIPaddVar().
◆ SCIPvarIsOriginal()
returns whether the variable belongs to the original problem
- Parameters
-
var problem variable
Definition at line 23417 of file var.c.
References SCIP_Var::negatedvar, NULL, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, and SCIPvarGetStatus().
Referenced by addGlobalCut(), addSplitcons(), changeAncestorBranchings(), collectDualInformation(), consdataFree(), constructCompression(), createAndAddAndCons(), fixBounds(), reoptSaveNewObj(), reoptSimilarity(), SCIP_DECL_EXPRSIMPLIFY(), SCIPcatchVarEvent(), SCIPchgCoefExactLinear(), SCIPchgCoefLinear(), SCIPchgReoptObjective(), SCIPcopyConsExactLinear(), SCIPcopyConsLinear(), SCIPdropVarEvent(), SCIPgetConcurrentVaridx(), SCIPgetReoptOldObjCoef(), SCIPreoptAddDualBndchg(), SCIPreoptApplyCuts(), SCIPreoptApplyGlbConss(), SCIPreoptMergeVarHistory(), SCIPreoptUpdateVarHistory(), SCIPvarGetHolelistOriginal(), SCIPvarGetLbOriginal(), SCIPvarGetLbOriginalExact(), SCIPvarGetOrigvarSum(), SCIPvarGetOrigvarSumExact(), SCIPvarGetUbOriginal(), SCIPvarGetUbOriginalExact(), SCIPvarResetBounds(), separateSolution(), and transformIntoOrig().
◆ SCIPvarIsTransformed()
returns whether the variable belongs to the transformed problem
- Parameters
-
var problem variable
Definition at line 23430 of file var.c.
References SCIP_Var::negatedvar, NULL, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, and SCIPvarGetStatus().
Referenced by addCoef(), addExtendedAsymmetricFormulation(), addExtendedFlowFormulation(), addOrbitope(), addSplitcons(), addVarCardinality(), addVarSOS1(), addVarSOS2(), appendVarCardinality(), appendVarSOS1(), appendVarSOS2(), applyFixings(), assignVars(), changeAncestorBranchings(), chgCoefPos(), consCatchEvent(), delCoefPos(), lexdataCreate(), nlpAddVars(), SCIP_DECL_CONSDEACTIVE(), SCIP_DECL_CONSDELETE(), SCIP_DECL_CONSINIT(), SCIP_DECL_EVENTEXEC(), SCIPaddVarLocksType(), SCIPaddVarObj(), SCIPchgVarImplType(), SCIPchgVarLb(), SCIPchgVarLbExact(), SCIPchgVarLbGlobal(), SCIPchgVarLbGlobalExact(), SCIPchgVarObj(), SCIPchgVarObjExact(), SCIPchgVarType(), SCIPchgVarUb(), SCIPchgVarUbExact(), SCIPchgVarUbGlobal(), SCIPchgVarUbGlobalExact(), SCIPcreateConsSOS1(), SCIPgetTransformedVar(), SCIPgetTransformedVars(), SCIPincSolVal(), SCIPinferBinvarCons(), SCIPinferBinvarProp(), SCIPinferVarLbCons(), SCIPinferVarLbConsExact(), SCIPinferVarLbProp(), SCIPinferVarUbCons(), SCIPinferVarUbConsExact(), SCIPinferVarUbProp(), SCIPlockVarCons(), SCIPnlpAddVar(), SCIPreleaseVar(), SCIPsetSolVal(), SCIPsetSolValExact(), SCIPsetSolVals(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPsolMarkPartial(), SCIPtightenVarLb(), SCIPtightenVarLbExact(), SCIPtightenVarLbGlobal(), SCIPtightenVarUb(), SCIPtightenVarUbExact(), SCIPtightenVarUbGlobal(), SCIPtransformVar(), SCIPtransformVars(), SCIPunlockVarCons(), SCIPvarAddHoleOriginal(), SCIPvarCatchEvent(), SCIPvarChgLbOriginal(), SCIPvarChgLbOriginalExact(), SCIPvarChgUbOriginal(), SCIPvarChgUbOriginalExact(), SCIPvarDropEvent(), SCIPvarIsTransformedOrigvar(), SCIPvarNegate(), SCIPvarPrint(), SCIPvarRemove(), SCIPwriteBnd(), setIntvar(), shadowtreeFillNodeDepthBranchIndices(), solUnlinkVar(), solUnlinkVarExact(), tightenBounds(), tightenVarLbGlobalSafe(), tightenVarUbGlobalSafe(), transformToOrig(), varEnsureLbchginfosSize(), varEnsureUbchginfosSize(), varEventGholeAdded(), varEventGlbChanged(), varEventGlbChangedExact(), varEventGubChanged(), varEventGubChangedExact(), varEventLbChanged(), varEventLbChangedExact(), varEventObjChanged(), varEventObjChangedExact(), varEventUbChanged(), varEventUbChangedExact(), varIncRootboundchgs(), varProcessAddHoleGlobal(), varProcessChgLbGlobal(), varProcessChgLbGlobalExact(), varProcessChgLbLocal(), varProcessChgLbLocalExact(), varProcessChgUbGlobal(), varProcessChgUbGlobalExact(), varProcessChgUbLocal(), and varProcessChgUbLocalExact().
◆ SCIPvarIsNegated()
returns whether the variable was created by negation of a different variable
- Parameters
-
var problem variable
Definition at line 23443 of file var.c.
References NULL, SCIP_VARSTATUS_NEGATED, and SCIPvarGetStatus().
Referenced by addCliqueDataEntry(), addCliques(), addSplitcons(), applyFixings(), checkEqualObjective(), checkParallelObjective(), checkSolution(), checkSystemGF2(), collectCliqueData(), computeRanks(), correctLocksAndCaptures(), createCoveringProblem(), createSubSCIP(), decompGetConsVarsAndLabels(), extractGates(), SCIPNLFeeder::FeedConExpression(), SCIPNLFeeder::FeedLinearConExpr(), findAggregation(), getLinVarsAndAndRess(), mergeMultiples(), packingUpgrade(), preprocessCliques(), presolRoundIndicator(), printIndicatorCons(), printNLRow(), printRow(), printRowExact(), propagateCons(), removeConstraintsDueToNegCliques(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_SORTPTRCOMP(), SCIPapplyHeurDualval(), SCIPchgVarImplType(), SCIPchgVarType(), SCIPcomputeDecompVarsLabels(), SCIPcreateConsOrbitopeFull(), SCIPcreateConsOrbitopePP(), SCIPwriteLp(), SCIPwriteMps(), SCIPwriteVarName(), setObjective(), tryUpgradingXor(), varGetObjDelta(), writeOpbObjective(), and writeOpbRelevantAnds().
◆ SCIPvarGetType()
| SCIP_VARTYPE SCIPvarGetType | ( | SCIP_VAR * | var | ) |
gets type of variable
- Parameters
-
var problem variable
Definition at line 23453 of file var.c.
References NULL, and SCIP_Var::vartype.
Referenced by addCoef(), addFixedVarsConss(), addGlobalCut(), addLocalBranchingConstraint(), addLocalbranchingConstraintAndObjcutoff(), addRltTerm(), addScenarioVarsToProb(), addVariableToBendersProblem(), applyBoundHeur(), applyFixings(), applyNlobbt(), applyRepair(), branchcandCalcLPCands(), branchcandCalcLPCandsExact(), branchcandInsertPseudoCand(), branchcandRemovePseudoCand(), branchingIntegralOrNonlinear(), calcBranchScore(), checkAndGetVarbound(), checkIntegralityExact(), chooseVeclenVar(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), compensateVarLock(), computeIntegerVariableBounds(), computeIntegerVariableBoundsDins(), conflictAddBound(), conflictResolveBound(), consdataCheckNonbinvar(), consdataCreate(), convertLongEquality(), copyVars(), countKernelVariables(), createAndSplitProblem(), createConsXorIntvar(), cutsRoundMIR(), cutsRoundStrongCG(), cutsTransformKnapsackCover(), DECL_VARFIXINGS(), delCoefPos(), deletionFilterBatch(), detectHiddenProducts(), detectProductsClique(), detectProductsImplbnd(), determineBoundForSNF(), dualPresolve(), extractCliques(), extractFlowRows(), extractProducts(), fillKernels(), fillRelationTables(), findBestLb(), findBestLbSafely(), findBestUb(), findBestUbSafely(), findFixings(), findImpliedIntegers(), fixMatchingSolutionValues(), forbidFixation(), fullDualPresolve(), getBinVarIdxInDownlockRow(), getBinVarIdxInUplockRow(), getScenarioDecompVar(), getScore(), getScoreOfFarkasDiving(), getVarWeight(), heurExec(), initData(), isFixedVar(), isSingleLockedCand(), isVlb(), isVub(), level2dataGetResult(), level2dataStoreResult(), mergeMultiples(), AMPLProblemHandler::OnVarBounds(), optimize(), predBndStr(), presolveSingleLockedVars(), prettifyConss(), printBoundSection(), probInsertVar(), probRemoveVar(), readBounds(), readBoundsExact(), readIndicators(), reformulateFactorizedBinaryQuadratic(), rowCalculateGauss(), saveGlobalCons(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_NONLINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_SEPAEXECLP(), SCIP_DECL_SORTINDCOMP(), SCIP_DECL_SORTPTRCOMP(), SCIPaddTrustregionNeighborhoodConstraint(), SCIPaddVarImplication(), SCIPanalyzeDeductionsProbing(), SCIPapplyLockFixings(), SCIPbendersMergeSubproblemIntoMaster(), SCIPbranchcandAddExternCand(), SCIPbranchcandContainsExternCand(), SCIPcertificateInit(), SCIPcertificateInitTransFile(), SCIPcertifyActivityVarBoundExact(), SCIPchgVarType(), SCIPclassifyConstraintTypesLinear(), SCIPcliquetableCleanup(), SCIPconflictAnalyzeRemainingBdchgs(), SCIPcreateConsAnd(), SCIPcutGenerationHeuristicCMIR(), SCIPdomchgMakeStatic(), SCIPfixVarExact(), SCIPprobChgVarType(), SCIPreoptApplyGlbConss(), SCIPreoptnodeAddCons(), SCIPreoptSplitRoot(), SCIPsetBinaryVarIndicator(), SCIPshrinkDisjunctiveVarSet(), SCIPupgradeConsLinear(), SCIPvarAddImplic(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarAggregate(), SCIPvarChgType(), SCIPvarCopy(), SCIPvarIsBinary(), SCIPvarIsIntegral(), SCIPvarIsNonimpliedIntegral(), SCIPvarNegate(), SCIPvarPrint(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarsCountTypes(), SCIPvarTransform(), SCIPvarTryAggregateVars(), SCIPvarTryAggregateVarsExact(), SCIPwriteGms(), SCIPwriteLp(), SCIPwriteOpb(), SCIPwritePip(), SCIPwriteVarName(), scoreBranchingCandidates(), searchKernelAndBucket(), selectEssentialRounding(), selectInitialVariableRandomly(), selectRounding(), selectShifting(), separateCuts(), separateSolution(), sortComponents(), storeSubproblemMasterVar(), tcliquegraphAddNode(), tcliquegraphConstructCliqueTable(), tightenVarBounds(), tightenVarLb(), tightenVarUb(), tryAdd2variableBuffer(), tryAggregateIntVars(), tryAggregateIntVarsExact(), updateActivities(), updateBestCandidate(), useValuehistory(), varAddImplic(), varAddTransitiveImplic(), varGetChar(), varIsSemicontinuous(), varProcessBoundChanges(), varProcessChgLbLocal(), varProcessChgLbLocalExact(), varProcessChgUbLocal(), varProcessChgUbLocalExact(), writeFzn(), writeOpbConstraints(), and writeVarIsIntegral().
◆ SCIPvarGetImplType()
| SCIP_IMPLINTTYPE SCIPvarGetImplType | ( | SCIP_VAR * | var | ) |
gets the implied integral type of the variable
- Parameters
-
var problem variable
Definition at line 23463 of file var.c.
References NULL, and SCIP_Var::varimpltype.
Referenced by addScenarioVarsToProb(), addVariableToBendersProblem(), applyFixings(), branchcandCalcLPCands(), branchcandCalcLPCandsExact(), branchcandInsertPseudoCand(), calcBranchScore(), convertLongEquality(), createAndAddAndCons(), dualPresolve(), getBinaryProductExprDo(), getScenarioDecompVar(), isBinaryProduct(), probInsertVar(), probRemoveVar(), reformulateFactorizedBinaryQuadratic(), rowCalculateGauss(), SCIP_DECL_CONSCHECK(), SCIP_DECL_EXPRINTEGRALITY(), SCIP_DECL_PRESOLEXEC(), SCIPbranchcandAddExternCand(), SCIPchgVarImplType(), SCIPprobChgVarImplType(), SCIPvarChgImplType(), SCIPvarChgType(), SCIPvarCopy(), SCIPvarIsBinary(), SCIPvarIsImpliedIntegral(), SCIPvarIsIntegral(), SCIPvarIsNonimpliedIntegral(), SCIPvarNegate(), SCIPvarPrint(), SCIPvarTransform(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), tightenVarLb(), tightenVarUb(), tryAggregateIntVars(), tryAggregateIntVarsExact(), varProcessBoundChanges(), writeFzn(), and writeVarIsIntegral().
◆ SCIPvarIsBinary()
returns TRUE if the variable is of binary type; this is the case if: (1) variable type is binary (2) variable type is integer or implicit integer and (i) the global lower bound is greater than or equal to zero (ii) the global upper bound is less than or equal to one
returns TRUE if the variable is of binary type; this is the case if: (1) variable type is binary (2) variable type is integer or implicit integer and (i) the lazy lower bound or the global lower bound is greater than or equal to zero (ii) the lazy upper bound or the global upper bound is less than or equal to one
- Parameters
-
var problem variable
Definition at line 23478 of file var.c.
References SCIP_Var::glbdom, SCIP_Var::lazylb, SCIP_Var::lazyub, SCIP_Dom::lb, MAX, MIN, NULL, SCIP_IMPLINTTYPE_NONE, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_CONTINUOUS, SCIPvarGetImplType(), SCIPvarGetType(), and SCIP_Dom::ub.
Referenced by addBinaryConstraint(), addCand(), addCoef(), addConflictBinvar(), addOrbitopeSubgroup(), addSSTConssOrbitAndUpdateSST(), addVarCardinality(), adjustCutoffbound(), aggregateVariables(), analyzeStrongbranch(), appendVarCardinality(), applyBinaryConstraints(), applyFixings(), applyProbing(), bdchginfoIsInvalid(), binaryVarListAppend(), buildQuadExprMatrix(), calcBranchScore(), calcPscostQuot(), calculateAlternatives(), cancelCol(), cancelRow(), certificatePrintMirSplit(), checkAndCollectQuadratic(), checkCons(), checkLogicor(), checkSystemGF2(), checkTwoCyclePermsAreOrbitope(), chooseCoefVar(), chooseDoubleVar(), chooseFracVar(), chooseGuidedVar(), cliquetableGetNodeIndexBinvar(), collectBinaryCliqueData(), collectMaxactVar(), collectMinactImplicVars(), collectMinactObjchg(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), ComplementedMirLhs(), computeNogoodCut(), conflictQueueBound(), consdataCheckNonbinvar(), consdataCreate(), consdataPrint(), consdataSort(), convertLongEquality(), createConflict(), createConsSetppc(), createConsXorIntvar(), createKKTDualCons(), createSolFromSubScipSol(), createSubproblem(), CUTOFF_CONSTRAINT(), DECL_VARFIXINGS(), delCoefPos(), detectAndHandleSubgroups(), detectImpliedBounds(), detectMinors(), detectSocNorm(), detectSocQuadraticSimple(), dfs(), dropVarEvents(), dualPresolve(), enforceConflictgraph(), enforceConssSOS1(), executeBranchingRecursive(), extractCliques(), findFixings(), findMIRBestLb(), findMIRBestUb(), fixMatchingSolutionValues(), fullDualPresolve(), getBinaryProductExprDo(), getClosestVlb(), getClosestVub(), getConflictImplics(), getCover(), getFixedVariable(), getMaxactImplicObjchg(), getMaxactObjchg(), getMinactImplicObjchg(), getMinactObjchg(), getNOrbitopesInComp(), getScore(), getScoreLikeCoefdiving(), getVarObjchg(), handleOrbitope(), hasInferredBinVar(), hasInferredIntVar(), heurExec(), isBinaryConflictRow(), isBinaryProduct(), isConsViolated(), lpCopyIntegrality(), mergeMultiples(), objimplicsCreate(), orbisackUpgrade(), predBndStr(), preprocessConstraintPairs(), presolRoundCardinality(), presolRoundConsSOS1(), printIndicatorCons(), processBinvarFixings(), propagateCutoffboundBinvar(), propagateLowerbound(), propagateLowerboundBinvar(), propagateVbounds(), propCardinality(), propdataInit(), rangedRowPropagation(), rangedRowSimplify(), removeDoubleAndSingletonsAndPerformDualpresolve(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPRSIMPLIFY(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_NLHDLRDETECT(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPEXEC(), SCIP_DECL_PROPPRESOL(), SCIP_DECL_PROPRESPROP(), SCIP_DECL_SORTINDCOMP(), SCIP_DECL_SORTPTRCOMP(), SCIPaddConflictBinvar(), SCIPaddVarImplication(), SCIPanalyzeDeductionsProbing(), SCIPapplyHeurDualval(), SCIPapplyProximity(), SCIPchgVarLb(), SCIPchgVarLbExact(), SCIPchgVarLbGlobal(), SCIPchgVarUb(), SCIPchgVarUbExact(), SCIPchgVarUbGlobal(), SCIPcliqueAddVar(), SCIPcliqueDelVar(), SCIPcliquelistRemoveFromCliques(), SCIPcliquetableAdd(), SCIPcliquetableComputeCliqueComponents(), SCIPcliquetableGetVarComponentIdx(), SCIPcreateConsAnd(), SCIPcreateConsCardinality(), SCIPcreateConsIndicatorGeneric(), SCIPcreateConsIndicatorGenericLinCons(), SCIPcreateConsIndicatorGenericLinConsPure(), SCIPcreateConsKnapsack(), SCIPcreateConsLogicor(), SCIPcreateConsOr(), SCIPcreateConsOrbitopeFull(), SCIPcreateConsOrbitopePP(), SCIPcreateConsXor(), SCIPdomchgAddBoundchg(), SCIPextendSubOrbitope(), SCIPgenerateOrbitopeVarsMatrix(), SCIPgetSymInferredVarType(), SCIPgetVarWasFixedAtIndex(), SCIPhaveVarsCommonClique(), SCIPinferBinvarCons(), SCIPinferBinvarProp(), SCIPinferVarLbCons(), SCIPinferVarLbConsExact(), SCIPinferVarLbProp(), SCIPinferVarUbCons(), SCIPinferVarUbConsExact(), SCIPinferVarUbProp(), SCIPisInvolutionPerm(), SCIPnodePropagateImplics(), SCIPprobUpdateBestRootSol(), SCIPseparateRelaxedKnapsack(), SCIPsetBinaryVarIndicator(), SCIPshrinkDisjunctiveVarSet(), SCIPtightenVarLb(), SCIPtightenVarLbExact(), SCIPtightenVarLbGlobal(), SCIPtightenVarUb(), SCIPtightenVarUbExact(), SCIPtightenVarUbGlobal(), SCIPupgradeConsLinear(), SCIPvarAddClique(), SCIPvarAddCliqueToList(), SCIPvarAddImplic(), SCIPvarAddVub(), SCIPvarAggregate(), SCIPvarAggregateExact(), SCIPvarChgType(), SCIPvarDelClique(), SCIPvarDelCliqueFromList(), SCIPvarGetImplRedcost(), SCIPvarGetProbvarBinary(), SCIPvarHasBinaryImplic(), SCIPvarHasImplic(), SCIPvarNegate(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarsAddClique(), SCIPvarsHaveCommonClique(), SCIPvarTryAggregateVars(), SCIPvarTryAggregateVarsExact(), SCIPvarWasFixedEarlier(), SCIPwriteOpb(), separateCuts(), separateGLS(), separateHeur(), setSymmetryData(), simplifyInequalities(), sortAndMergeClique(), sortVariables(), tightenCoefs(), tightenDualproof(), tightenVarLbGlobalSafe(), tightenVarUbGlobalSafe(), upgradeCons(), upgradeConss(), varAddImplic(), varAddLbchginfo(), varAddUbchginfo(), varGetObjDelta(), and varIsInteresting().
◆ SCIPvarIsIntegral()
returns whether variable is of integral type (binary, integer, or implied integral of any type)
- Parameters
-
var problem variable
Definition at line 23490 of file var.c.
References SCIP_IMPLINTTYPE_NONE, SCIP_VARTYPE_CONTINUOUS, SCIPvarGetImplType(), and SCIPvarGetType().
Referenced by addBilinearTermToCut(), addCoef(), addConflictBounds(), addGlobalCut(), addLinearConstraints(), addRelaxation(), addRltTerm(), addSplitcons(), addVarboundConstraints(), adjustCutoffbound(), aggregateVariables(), aggregation(), analyzeConflict(), analyzeConflictLowerbound(), analyzeConflictUpperbound(), applyFixings(), applyVboundsFixings(), areBoundsChanged(), boundchgApplyExact(), branchingIntegralFirst(), calculateAlternatives(), cancelCol(), cancelRow(), certificatePrintMirSplit(), checkExec(), checkKnapsack(), checkProbHasContEqs(), checkRedundancy(), checkRedundancySide(), checkVarbound(), compensateVarLock(), computeCut(), computeFixingOrder(), computeMonoidalStrengthCoef(), computeRelaxedLowerbound(), computeRelaxedUpperbound(), conflictAddConflictCons(), conflictCreateReconvergenceConss(), consdataCheckNonbinvar(), consdataCreate(), consdataCreateBinvars(), consdataIsResidualIntegral(), consdataTightenCoefs(), convertLongEquality(), countSparseSol(), createAndAddProofcons(), createCGCutCMIR(), createCGMIPprimalsols(), createNewSol(), createSubSCIP(), CUTOFF_CONSTRAINT(), cutTightenCoefs(), cutTightenCoefsQuad(), cutTightenCoefsSafely(), DECL_VARFIXINGS(), detectAndHandleSubgroups(), detectImpliedBounds(), determineBestBounds(), determineBestBoundsSafely(), determineBound(), determineVariableFixings(), determineVariableFixingsDecomp(), dfs(), domchgMakeDynamic(), dualBoundStrengthening(), enforceConflictgraph(), extractCapacityRows(), extractCliques(), findBestLbSafely(), findBestUbSafely(), findImpliedIntegers(), findNewBounds(), findVarAggrRedVbcons(), fixAndPropagate(), fixInterdiction(), fixMatchingSolutionValues(), fullDualPresolve(), generateClusterCuts(), generateGMICuts(), initializeCandsLists(), isBoundchgUseless(), isOverlapping(), isPseudocostUpdateValid(), lpCopyIntegrality(), matrixCreate(), MirReduction(), performFixing(), performStrongbranchSOS1(), predBndStr(), presolStuffing(), presolveImplint(), prettifyConss(), printLinearCons(), probCheckObjIntegralExact(), propagateLowerboundVar(), propagateRedcostVar(), propagateStaticLexred(), propagateStaticOrbitope(), propIndicator(), proposeFeasibleSolution(), rangedRowPropagation(), reformulateFactorizedBinaryQuadratic(), registerBranchingCandidates(), removeDoubleAndSingletonsAndPerformDualpresolve(), resolveGenVBoundPropagation(), resolvePropagation(), roundPartition(), rowFindSlackVar(), sampleRandomPoints(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSENFORELAX(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_EXPR_INTEVALVAR(), SCIP_DECL_EXPRINTEGRALITY(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPEXEC(), SCIP_DECL_PROPRESPROP(), SCIP_DECL_SEPAEXECLP(), SCIP_DECL_SORTINDCOMP(), SCIPaddVarIndicator(), SCIPaddVarVlb(), SCIPaddVarVub(), SCIPanalyzeDeductionsProbing(), SCIPbendersChgMastervarsToCont(), SCIPboundchgApply(), SCIPbranchcandGetPseudoCands(), SCIPbranchcandUpdateVar(), SCIPbranchExecLP(), SCIPbranchExecPseudo(), SCIPbranchGetBranchingPoint(), SCIPbranchVar(), SCIPbranchVarVal(), SCIPbranchVarValNary(), SCIPcalcChildEstimateIncrease(), SCIPchgVarType(), SCIPclassifyConstraintTypesLinear(), SCIPcolCreate(), SCIPcolGetStrongbranch(), SCIPcolGetStrongbranches(), SCIPcolInvalidateStrongbranchData(), SCIPcolIsIntegral(), SCIPcolSetStrongbranchData(), SCIPconflictAddConflictCon(), SCIPcreateConsIndicatorGeneric(), SCIPcreateConsIndicatorGenericLinCons(), SCIPcreateConsIndicatorGenericLinConsPure(), SCIPcreateConsLinking(), SCIPcutGenerationHeuristicCMIR(), SCIPcutsTightenCoefficients(), SCIPdomchgAddBoundchg(), SCIPfixVar(), SCIPgetSymInferredVarType(), SCIPgetVarStrongbranchWithPropagation(), SCIPisObjIntegral(), SCIPlpAddCol(), SCIPlpExactAddCol(), SCIPlpWriteMip(), SCIPnlpHasContinuousNonlinearity(), SCIPnodeGetDualBoundchgs(), SCIPnodeGetNDualBndchgs(), SCIPnodeGetPropsAfterDual(), SCIPnodeGetPropsBeforeDual(), SCIPprobAddVar(), SCIPprobCheckObjIntegral(), SCIPreoptApplyGlbConss(), SCIPreoptSplitRoot(), SCIProwCreate(), SCIProwExactCreate(), SCIPsetLinearConsIndicator(), SCIPsolPrint(), SCIPsolPrintExact(), SCIPstatComputeRootLPBestEstimate(), SCIPtreeBranchVar(), SCIPtreeBranchVarExact(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPtreeCalcChildEstimate(), SCIPupdateVarPseudocostSymmetric(), SCIPvarAddHoleGlobal(), SCIPvarAddHoleLocal(), SCIPvarAddHoleOriginal(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarAdjustLb(), SCIPvarAdjustLbExact(), SCIPvarAdjustLbExactFloat(), SCIPvarAdjustUb(), SCIPvarAdjustUbExact(), SCIPvarAdjustUbExactFloat(), SCIPvarChgLbGlobal(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocal(), SCIPvarChgLbLocalExact(), SCIPvarChgLbOriginal(), SCIPvarChgLbOriginalExact(), SCIPvarChgUbGlobal(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocal(), SCIPvarChgUbLocalExact(), SCIPvarChgUbOriginal(), SCIPvarChgUbOriginalExact(), SCIPvarFix(), SCIPvarFixExact(), SCIPvboundsAdd(), scoreBranchingCandidates(), selectShifting(), separateCons(), separateGLS(), separateHeur(), separateSolution(), simplifyInequalities(), singletonColumnStuffing(), slackReducingContinuousBdchgQueue(), solCreateSolAssignment(), soltreeAddSol(), solveNode(), tightenBoundProbing(), tightenBounds(), tightenCoefs(), tightenDualproof(), tightenSides(), tightenSingleVar(), tightenVarBounds(), tightenVariables(), tightenVarLb(), tightenVarsBoundsSOS1(), tightenVarUb(), transformAndSolve(), transformVariable(), tryAdd2variableBuffer(), updateArcData(), updateBestCandidate(), updatePseudocost(), varAddLbchginfo(), varAddTransitiveImplic(), varAddUbchginfo(), varGetChar(), varIncRootboundchgs(), varIsDiscrete(), varIsUnfixedLocal(), varProcessAddHoleGlobal(), varProcessAddHoleLocal(), varProcessChgLbGlobal(), varProcessChgLbGlobalExact(), varProcessChgLbLocal(), varProcessChgLbLocalExact(), varProcessChgUbGlobal(), varProcessChgUbGlobalExact(), varProcessChgUbLocal(), varProcessChgUbLocalExact(), vartypeIsBranchRowType(), weakenContinuousVarsConflictRow(), and writeFzn().
◆ SCIPvarIsImpliedIntegral()
returns whether variable is implied integral (weakly or strongly)
- Parameters
-
var problem variable
Definition at line 23498 of file var.c.
References SCIP_IMPLINTTYPE_NONE, and SCIPvarGetImplType().
Referenced by addGlobalCut(), addLocalBranchingConstraint(), addLocalbranchingConstraintAndObjcutoff(), aggregation(), applyNlobbt(), applyRepair(), branchcandCalcLPCands(), branchcandCalcLPCandsExact(), branchcandRemovePseudoCand(), cancelCol(), checkAndGetVarbound(), chooseVeclenVar(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), computeIntegerVariableBounds(), computeIntegerVariableBoundsDins(), consdataCreate(), copyVars(), cutsTransformKnapsackCover(), dualBoundStrengthening(), extractCliques(), extractFlowRows(), findBestLb(), findBestLbSafely(), findBestUb(), findBestUbSafely(), findFixings(), forbidFixation(), fullDualPresolve(), getBinVarIdxInDownlockRow(), getBinVarIdxInUplockRow(), getScore(), getScoreOfFarkasDiving(), getVarWeight(), heurExec(), initData(), isFixedVar(), isSingleLockedCand(), isVlb(), isVub(), level2dataGetResult(), level2dataStoreResult(), matrixCreate(), mergeMultiples(), performSimpleRounding(), predBndStr(), presolveSingleLockedVars(), readBounds(), readBoundsExact(), saveGlobalCons(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPR_INTEVALVAR(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_NONLINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_SORTINDCOMP(), SCIP_DECL_SORTPTRCOMP(), SCIPaddTrustregionNeighborhoodConstraint(), SCIPanalyzeDeductionsProbing(), SCIPapplyLockFixings(), SCIPbranchcandContainsExternCand(), SCIPbranchExecLP(), SCIPbranchGetBranchingPoint(), SCIPcolCreate(), SCIPcolIsImpliedIntegral(), SCIPcreateConsAnd(), SCIPlpAddCol(), SCIPreoptApplyGlbConss(), SCIPreoptnodeAddCons(), SCIPreoptSplitRoot(), SCIPsetBinaryVarIndicator(), SCIPshrinkDisjunctiveVarSet(), SCIPsolAdjustImplicitSolVals(), SCIPupgradeConsLinear(), SCIPvarAddImplic(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarAggregate(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarsCountTypes(), SCIPvarTryAggregateVars(), SCIPvarTryAggregateVarsExact(), SCIPwriteVarName(), scoreBranchingCandidates(), separateCuts(), separateSolution(), setupAndSolveSubscipRapidlearning(), sortComponents(), tcliquegraphAddNode(), tcliquegraphConstructCliqueTable(), tryAggregateIntVars(), tryAggregateIntVarsExact(), updateBestCandidate(), varAddTransitiveImplic(), varIsDiscrete(), and varIsSemicontinuous().
◆ SCIPvarIsNonimpliedIntegral()
returns TRUE if the variable is integral, but not implied integral.
- Parameters
-
var problem variable
Definition at line 23506 of file var.c.
References SCIP_IMPLINTTYPE_NONE, SCIP_VARTYPE_CONTINUOUS, SCIPvarGetImplType(), and SCIPvarGetType().
Referenced by applyBoundChanges(), applyRepair(), branchcandRemovePseudoCand(), decompHorizonInitialize(), dualBoundStrengthening(), dualPresolve(), findImpliedIntegers(), nlpCalcFracVars(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONCSOLVERSYNCREAD(), SCIP_DECL_PRESOLEXEC(), SCIPbranchGetBranchingPoint(), scoreBranchingCandidates(), selectInitialVariableDecomposition(), selectVarMultAggrBranching(), and tightenDualproof().
◆ SCIPvarIsInitial()
returns whether variable's column should be present in the initial root LP
- Parameters
-
var problem variable
Definition at line 23514 of file var.c.
References SCIP_Var::initial, and NULL.
Referenced by addScenarioVarsToProb(), addVariableToBendersProblem(), aggregation(), applyFixings(), convertLongEquality(), getScenarioDecompVar(), initLP(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIPvarCopy(), tryAggregateIntVars(), and tryAggregateIntVarsExact().
◆ SCIPvarIsRemovable()
returns whether variable's column is removable from the LP (due to aging or cleanup)
- Parameters
-
var problem variable
Definition at line 23524 of file var.c.
References NULL, and SCIP_Var::removable.
Referenced by addScenarioVarsToProb(), addVariableToBendersProblem(), aggregation(), applyFixings(), convertLongEquality(), getScenarioDecompVar(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIPvarCopy(), tryAggregateIntVars(), and tryAggregateIntVarsExact().
◆ SCIPvarIsDeleted()
returns whether the variable was deleted from the problem
- Parameters
-
var problem variable
Definition at line 23534 of file var.c.
References SCIP_Var::deleted, and NULL.
Referenced by addScenarioVarsToProb(), applyProbing(), performDualfix(), performVarDeletions(), removeCoreVariablesAndConstraints(), SCIP_DECL_CONSDELETE(), and SCIP_DECL_PRESOLEXEC().
◆ SCIPvarMarkDeletable()
| void SCIPvarMarkDeletable | ( | SCIP_VAR * | var | ) |
marks the variable to be deletable, i.e., it may be deleted completely from the problem; method can only be called before the variable is added to the problem by SCIPaddVar() or SCIPaddPricedVar()
- Parameters
-
var problem variable
Definition at line 23546 of file var.c.
References SCIP_Var::deletable, NULL, SCIP_Var::probindex, and TRUE.
Referenced by addVariable(), SCIP_DECL_PRICERFARKAS(), SCIP_DECL_PRICERREDCOST(), SCIPcreateVarBinpacking(), and SCIPvarMarkRelaxationOnly().
◆ SCIPvarMarkNotDeletable()
| void SCIPvarMarkNotDeletable | ( | SCIP_VAR * | var | ) |
marks the variable to be not deletable from the problem
Definition at line 23557 of file var.c.
References SCIP_Var::deletable, FALSE, and NULL.
Referenced by focusnodeCleanupVars(), SCIPsolMarkPartial(), SCIPvarAggregate(), SCIPvarAggregateExact(), SCIPvarMultiaggregate(), SCIPvarMultiaggregateExact(), SCIPvarNegate(), solIncArrayVal(), solSetArrayVal(), and solSetArrayValExact().
◆ SCIPvarIsDeletable()
returns whether variable is allowed to be deleted completely from the problem
Definition at line 23632 of file var.c.
References SCIP_Var::deletable, and NULL.
Referenced by focusnodeCleanupVars(), SCIPprobExitSolve(), and SCIPvarMarkRelaxationOnly().
◆ SCIPvarMarkDeleteGlobalStructures()
| void SCIPvarMarkDeleteGlobalStructures | ( | SCIP_VAR * | var | ) |
marks variable to be deleted from global structures (cliques etc.) when cleaning up
- Note
- : this is not equivalent to marking the variable itself for deletion, this is done by using SCIPvarMarkDeletable()
- Parameters
-
var problem variable
Definition at line 23570 of file var.c.
References SCIP_Var::delglobalstructs, NULL, and TRUE.
Referenced by SCIPremoveVarFromGlobalStructures(), and solveAndEvalSubscip().
◆ SCIPvarIsActive()
returns whether variable is an active (neither fixed nor aggregated) variable
- Parameters
-
var problem variable
Definition at line 23642 of file var.c.
References NULL, and SCIP_Var::probindex.
Referenced by addCliqueDataEntry(), addCliques(), addCoef(), addConsToOccurList(), addLargestCliquePart(), addUseConstraint(), adjustKernelVars(), applyFixings(), applyGenVBounds(), applyProbing(), branchruledataEnsureArraySize(), bucketCreateSubscip(), calcCliquePartitionGreedy(), checkForOverlapping(), checkLocksAndRes(), checkRedundantCons(), checkSystemGF2(), cliquePresolve(), cliquetableGetNodeIndexBinvar(), collectCliqueData(), conflictAddBound(), conflictAnalyze(), conflictAnalyzeResolution(), conflictCreateReconvergenceConss(), conflictResolveBound(), consCatchEvent(), constructValidSolution(), convertLongEquality(), createAndSplitProblem(), createCoveringProblem(), createNAryBranch(), createSolFromNLP(), createSolFromSubScipSol(), createSubproblem(), createSubSCIP(), cutsRoundMIR(), cutsRoundStrongCG(), decompGetConsVarsAndLabels(), dfs(), doMIRBoundSubstitution(), dualPresolving(), extractGates(), findAggregation(), findMIRBestLb(), findMIRBestUb(), freeSubSCIP(), getActiveVar(), getMaxactImplicObjchg(), getRandomVariable(), GUBsetCalcCliquePartition(), heurdataEnsureArraySize(), initData(), initTCliquegraph(), liftCliqueVariables(), mergeMultiples(), nlpAddVars(), nlpRemoveFixedVar(), nlpSetupNlpiIndices(), nlrowAddLinearCoef(), nlrowRemoveFixedLinearCoefPos(), nlrowRemoveFixedVar(), performBoundSubstitution(), preprocessCliques(), preprocessConstraintPairs(), presolRoundIndicator(), propagateCons(), propagateVbounds(), removeConstraintsDueToNegCliques(), removeFixedVariables(), replaceAggregatedVarsOrbisack(), replaceAggregatedVarsOrbitopeFull(), replaceAggregatedVarsOrbitopePP(), replaceAggregatedVarsSymresack(), resolvePropagationCoretimes(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_EXPR_MAPEXPR(), SCIP_DECL_EXPRSIMPLIFY(), SCIP_DECL_HASHKEYVAL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROBCOPY(), SCIP_DECL_SEPAEXECLP(), SCIPaddVarImplication(), SCIPcliquetableComputeCliqueComponents(), SCIPcomputeDecompVarsLabels(), SCIPconflictAddBound(), SCIPconflictAddRelaxedBound(), SCIPconflictIsVarUsed(), SCIPcreateConsOrbitopeFull(), SCIPcreateConsOrbitopePP(), SCIPgetReoptOldObjCoef(), SCIPhaveVarsCommonClique(), SCIPimplicsAdd(), SCIPnlrowAddLinearCoef(), SCIPnlrowDelLinearCoef(), SCIPprimalTransformSol(), SCIPreoptMergeVarHistory(), SCIPreoptUpdateVarHistory(), SCIPseparateRelaxedKnapsack(), SCIPsolLinkNLPSol(), SCIPtreeBranchVar(), SCIPtreeBranchVarExact(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPupdateVarPseudocostSymmetric(), SCIPvarAddImplic(), SCIPvarAddObj(), SCIPvarAddObjExact(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarChgObj(), SCIPvarChgObjExact(), SCIPvarCompareActiveAndNegated(), SCIPvarGetClosestVlb(), SCIPvarGetClosestVub(), SCIPvarGetImplBounds(), SCIPvarGetImplIds(), SCIPvarGetImplRedcost(), SCIPvarGetImplTypes(), SCIPvarGetImplVars(), SCIPvarGetLastBdchgIndex(), SCIPvarGetLbchgInfo(), SCIPvarGetNImpls(), SCIPvarGetUbchgInfo(), SCIPvarHasImplic(), SCIPvariablegraphBreadthFirst(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarsHaveCommonClique(), SCIPvarWasFixedEarlier(), SCIPwriteGms(), selectInitialVariableRandomly(), shortenConss(), solveComponent(), sortVariables(), tarjan(), tcliquegraphAddNode(), tightenVariables(), tryUpgradingXor(), updateBestCandidate(), varAddImplic(), varAddTransitiveBinaryClosureImplic(), varAddTransitiveImplic(), varIncRootboundchgs(), varMayRoundDown(), varMayRoundUp(), and writeOpbRelevantAnds().
◆ SCIPvarGetIndex()
| int SCIPvarGetIndex | ( | SCIP_VAR * | var | ) |
gets unique index of variable
- Parameters
-
var problem variable
Definition at line 23652 of file var.c.
References SCIP_Var::index, and NULL.
Referenced by addAdjacentVars(), addCoef(), addProductVars(), applyProbing(), calcSignature(), checkForOverlapping(), componentSetupWorkingSol(), computeConsAndDataChanges(), conflictsetAddBound(), conflictsetAddBounds(), consdataCalcSignature(), consdataGetSignature(), consdataUpdateSignatures(), correctLocksAndCaptures(), correctPresoldata(), createAltLPColumn(), createPresoldata(), createTcliqueGraph(), detectProductsUnconditional(), evaluateValueCand(), extractGates(), fixAdditionalVars(), getAdjacentVars(), getFactorizedBinaryQuadraticExpr(), getHashmapKey(), initConcsolver(), initConflictgraph(), liftCliqueVariables(), printNLRow(), propagateCons(), removeRedundantConstraints(), reoptSaveNewObj(), reoptSimilarity(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_EXPRCOMPARE(), SCIP_DECL_EXPRHASH(), SCIP_DECL_HASHKEYEQ(), SCIP_DECL_HASHKEYVAL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_SORTINDCOMP(), SCIP_DECL_SORTPTRCOMP(), SCIPcliqueSearchVar(), SCIPgetConcurrentVaridx(), SCIPgetReoptOldObjCoef(), SCIPisPackingPartitioningOrbitope(), SCIPreoptMergeVarHistory(), SCIPreoptUpdateVarHistory(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPsolIncVal(), SCIPsolMarkPartial(), SCIPsolRound(), SCIPsolSetVal(), SCIPvarCompareActiveAndNegated(), solCreateSolAssignment(), solGetArrayVal(), solGetArrayValExact(), solIncArrayVal(), solSetArrayVal(), solSetArrayValExact(), solUnlinkVar(), solUnlinkVarExact(), solveClassification(), solveMinIISC(), sortVariables(), tiebreakAggrCand(), tryAddGadgetSquaredDifference(), tryUpgradingLogicor(), tryUpgradingSetppc(), tryUpgradingXor(), and writeOpbObjective().
◆ SCIPvarGetProbindex()
| int SCIPvarGetProbindex | ( | SCIP_VAR * | var | ) |
gets position of variable in problem, or -1 if variable is not active
- Parameters
-
var problem variable
Definition at line 23662 of file var.c.
References NULL, and SCIP_Var::probindex.
Referenced by addGLSCliques(), addLargestCliquePart(), addLowerBound(), addNextLevelCliques(), addRow(), addRowExact(), addUpperBound(), addUseConstraint(), addXorLinearization(), adjustKernelVars(), aggrRowGetMinActivitySafely(), alnsFixMoreVariables(), alnsUnfixVariables(), applyRepair(), betterBoundInResolutionQueue(), branchruledataAddBoundChangeVar(), branchruledataEnsureArraySize(), branchruledataPopBoundChangeVar(), branchruledataUpdateCurrentBounds(), bucketCreateSubscip(), buildBlockGraph(), calcCliquePartitionGreedy(), calcSignature(), checkIntegralityExact(), checkRedundancy(), collectBinaryCliqueData(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), computeAlternativeBounds(), computeCut(), computeMIRForOptimalityCut(), computeSlack(), conflictAnalyzeLP(), conflictAnalyzeResolution(), conflictFirstCand(), conflictRowFromLpRow(), constructCompression(), constructSNFRelaxation(), correctLocksAndCaptures(), countNonlinearities(), createCGCutDirect(), createCoveringProblem(), createEdgesFromRow(), createRows(), createSubproblem(), createSubSCIP(), createTcliqueGraph(), cutsRoundMIR(), cutsRoundMIRSafely(), cutsRoundStrongCG(), detectImpliedBounds(), determineBestBounds(), determineBestBoundsSafely(), determineBoundForSNF(), dfs(), doMIRBoundSubstitution(), ensureScoresPresent(), execRelpscost(), executeBranchingRecursive(), executeResolutionStep(), fillDigraph(), fillVariableGraph(), filterCandidates(), findBestLb(), findBestLbSafely(), findBestUb(), findBestUbSafely(), findInsertionPoint(), findMIRBestLb(), findMIRBestUb(), forbidFixation(), freeMemory(), freeSubSCIP(), fullDualPresolve(), generateAverageNBRay(), getClosestVlb(), getClosestVub(), getMaxactImplicObjchg(), getMaxActivity(), getMinActivity(), getNLPVarsNonConvexity(), getNodeIdx(), getNVarsIndicators(), getOldBranching(), getReasonRow(), getRowFracActivity(), heurdataAddBoundChangeVar(), heurdataEnsureArraySize(), heurdataFreeArrays(), heurdataPopBoundChangeVar(), heurdataUpdateCurrentBounds(), initLP(), insertIndex(), insertSortedRootNeighbors(), isBdchgConflictRelevant(), isNeighbor(), isUseOldBranching(), isVariableInNeighborhood(), LNSFixMoreVariables(), LNSUnfixVariables(), lpUpdateVarColumn(), lpUpdateVarColumnProved(), lpUpdateVarLoose(), lpUpdateVarLooseProved(), lpUpdateVarProved(), markBdchgAsFixed(), matrixAddRow(), mergeMultiples(), mod2MatrixAddCol(), packingUpgrade(), performBoundSubstitution(), printLinearCons(), printRow(), probInsertVar(), probRemoveVar(), processNlRow(), reasonRowFromLpRow(), reoptCheckLocalRestart(), rowAddCoef(), rowCalculateGauss(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PROPPRESOL(), SCIP_DECL_SORTINDCOMP(), SCIP_DECL_SORTPTRCOMP(), SCIPaddPricedVar(), SCIPaddSymgraphVarAggregation(), SCIPaddVar(), SCIPaggrRowAddObjectiveFunction(), SCIPaggrRowCancelVarWithBound(), SCIPaggrRowGetMinActivity(), SCIPaggrRowPrint(), SCIPapplyHeurSubNlp(), SCIPapplyLockFixings(), SCIPchgVarImplType(), SCIPchgVarName(), SCIPchgVarType(), SCIPcolCreate(), SCIPeventProcess(), SCIPextendPermsymDetectionGraphLinear(), SCIPfixSymgraphVarnode(), SCIPgetSymgraphVarnodeidx(), SCIPlpExactGetPrimalRay(), SCIPlpExactUpdateAddVar(), SCIPlpExactUpdateDelVar(), SCIPlpExactUpdateVarColumn(), SCIPlpExactUpdateVarLb(), SCIPlpExactUpdateVarLoose(), SCIPlpExactUpdateVarObj(), SCIPlpExactUpdateVarUb(), SCIPlpGetPrimalRay(), SCIPlpSumRows(), SCIPlpUpdateAddVar(), SCIPlpUpdateDelVar(), SCIPlpUpdateVarLb(), SCIPlpUpdateVarObj(), SCIPlpUpdateVarUb(), SCIPpricestoreApplyVars(), SCIPprimalTransformSol(), SCIPprobAddVar(), SCIPprobAddVarName(), SCIPprobChgVarImplType(), SCIPprobChgVarType(), SCIPprobDelVar(), SCIPprobFree(), SCIPprobPerformVarDeletions(), SCIPprobVarChangedStatus(), SCIPrunBoundHeuristic(), SCIPseparateRelaxedKnapsack(), SCIPshrinkDisjunctiveVarSet(), SCIPsolRetransform(), SCIPsolRetransformExact(), SCIPtreeBranchVar(), SCIPtreeBranchVarExact(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPundoBdchgsProof(), SCIPvarGetImplRedcost(), SCIPvariablegraphBreadthFirst(), SCIPvarRemove(), SCIPwriteCliqueGraph(), scoreContainerSetScore(), selectInitialVariableRandomly(), selectNextVariable(), selectOrbitLeaderSSTConss(), selectShifting(), selectVarStart(), separateCuts(), separateGLS(), separateHeur(), slackReducingContinuousBdchgQueue(), solveSubNLP(), sortFirstCandidatesByScore(), tarjan(), tightenDualproof(), tightenVariables(), tightenWeightsLift(), transformNonIntegralRow(), updateBdchgQueue(), updateOldBranching(), and varProcessBoundChanges().
◆ SCIPvarGetCertificateIndex()
| int SCIPvarGetCertificateIndex | ( | SCIP_VAR * | var | ) |
returns position of variable in certificate
- Parameters
-
var variable to get index for
Definition at line 25098 of file var.c.
References SCIP_VarDataExact::certificateindex, SCIP_Var::exactdata, and NULL.
Referenced by certificatePrintMirSplit(), certificatePrintRow(), certificatePrintSol(), certificatePrintWeakDerStart(), printBoundAssumption(), SCIPcertificateEnsureLastBoundInfoConsistent(), SCIPcertificateInit(), SCIPcertificateInitTransFile(), SCIPcertificatePrintAggrrow(), SCIPcertificatePrintBoundCons(), SCIPcertificatePrintDualboundPseudo(), SCIPcertificatePrintGlobalBound(), SCIPcertifyActivityVarBoundExact(), SCIPcertifyConsOrigExactLinear(), SCIPconsPrintCertificateExactLinear(), SCIPnodeAddBoundinfer(), and SCIPnodeAddBoundinferExact().
◆ SCIPvarSetCertificateIndex()
| void SCIPvarSetCertificateIndex | ( | SCIP_VAR * | var, |
| int | certidx | ||
| ) |
sets index of variable in certificate
- Parameters
-
var variable to set index for certidx the index
Definition at line 25109 of file var.c.
References SCIP_VarDataExact::certificateindex, SCIP_Var::exactdata, and NULL.
Referenced by SCIPcertificateInit(), and SCIPcertificateInitTransFile().
◆ SCIPvarSetUbCertificateIndexGlobal()
| void SCIPvarSetUbCertificateIndexGlobal | ( | SCIP_VAR * | var, |
| SCIP_Longint | certidx | ||
| ) |
sets index of variable in certificate
- Parameters
-
var variable to set index for certidx the index
Definition at line 25122 of file var.c.
References SCIP_Var::exactdata, SCIP_VarDataExact::glbdom, SCIP_VarDataExact::locdom, NULL, and SCIP_DomExact::ubcertificateidx.
Referenced by SCIPcertificateInitTransFile(), and SCIPcertificatePrintBoundCons().
◆ SCIPvarSetLbCertificateIndexGlobal()
| void SCIPvarSetLbCertificateIndexGlobal | ( | SCIP_VAR * | var, |
| SCIP_Longint | certidx | ||
| ) |
sets index of variable in certificate
- Parameters
-
var variable to set index for certidx the index
Definition at line 25162 of file var.c.
References SCIP_Var::exactdata, SCIP_VarDataExact::glbdom, SCIP_DomExact::lbcertificateidx, SCIP_VarDataExact::locdom, and NULL.
Referenced by SCIPcertificateInitTransFile(), and SCIPcertificatePrintBoundCons().
◆ SCIPvarGetLbCertificateIndexLocal()
| SCIP_Longint SCIPvarGetLbCertificateIndexLocal | ( | SCIP_VAR * | var | ) |
returns index of variable bound in vipr certificate
- Parameters
-
var variable to get index for
Definition at line 25176 of file var.c.
References SCIP_Var::exactdata, SCIP_DomExact::lbcertificateidx, SCIP_VarDataExact::locdom, NULL, SCIP_Var::scip, SCIPcertificateGetCurrentIndex(), and SCIPgetCertificate().
Referenced by certificatePrintWeakDerStart(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificatePrintDualboundPseudo(), SCIPcertifyActivityConflict(), and SCIPcertifyActivityVarBoundExact().
◆ SCIPvarGetUbCertificateIndexLocal()
| SCIP_Longint SCIPvarGetUbCertificateIndexLocal | ( | SCIP_VAR * | var | ) |
returns index of variable bound in vipr certificate
- Parameters
-
var variable to get index for
Definition at line 25188 of file var.c.
References SCIP_Var::exactdata, SCIP_VarDataExact::locdom, NULL, SCIP_Var::scip, SCIPcertificateGetCurrentIndex(), SCIPgetCertificate(), and SCIP_DomExact::ubcertificateidx.
Referenced by certificatePrintWeakDerStart(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintDualboundExactLP(), SCIPcertificatePrintDualboundPseudo(), SCIPcertifyActivityConflict(), and SCIPcertifyActivityVarBoundExact().
◆ SCIPvarGetLbCertificateIndexGlobal()
| SCIP_Longint SCIPvarGetLbCertificateIndexGlobal | ( | SCIP_VAR * | var | ) |
returns index of variable bound in vipr certificate
- Parameters
-
var variable to get index for
Definition at line 25200 of file var.c.
References SCIP_Var::exactdata, SCIP_VarDataExact::glbdom, SCIP_DomExact::lbcertificateidx, NULL, SCIP_Var::scip, SCIPcertificateGetCurrentIndex(), and SCIPgetCertificate().
◆ SCIPvarGetUbCertificateIndexGlobal()
| SCIP_Longint SCIPvarGetUbCertificateIndexGlobal | ( | SCIP_VAR * | var | ) |
returns index of variable bound in vipr certificate
- Parameters
-
var variable to get index for
Definition at line 25212 of file var.c.
References SCIP_Var::exactdata, SCIP_VarDataExact::glbdom, NULL, SCIP_Var::scip, SCIPcertificateGetCurrentIndex(), SCIPgetCertificate(), and SCIP_DomExact::ubcertificateidx.
◆ SCIPvarGetTransVar()
gets transformed variable of ORIGINAL variable
- Parameters
-
var problem variable
Definition at line 23672 of file var.c.
References SCIP_Var::data, NULL, SCIP_Var::original, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetStatus(), and SCIP_Original::transvar.
Referenced by assignAuxiliaryVariables(), assignVars(), computeRanks(), createSolFromNLP(), createSolFromSubScipSol(), createSubSCIP(), fixDiscreteVars(), reoptSimilarity(), SCIP_DECL_HEUREXEC(), SCIPapplyHeurDualval(), SCIPmergeVariableStatistics(), SCIPreoptApplyCuts(), SCIPreoptMergeVarHistory(), SCIPreoptUpdateVarHistory(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPsolIncVal(), SCIPsolSetVal(), SCIPsolSetValExact(), SCIPvarResetBounds(), and setupAndSolveSubscipRapidlearning().
◆ SCIPvarGetCol()
gets column of COLUMN variable
- Parameters
-
var problem variable
Definition at line 23683 of file var.c.
References SCIP_Var::col, SCIP_Var::data, NULL, SCIP_VARSTATUS_COLUMN, and SCIPvarGetStatus().
Referenced by addBdchg(), addCols(), addFracCounter(), analyzeStrongbranch(), branchcandCalcLPCands(), branchcandCalcLPCandsExact(), calcBdchgScore(), calcBranchScore(), calcShiftVal(), calculateBounds(), checkConstraintMatching(), colCalcInternalFarkasCoef(), colCalcInternalRedcost(), computeCut(), constructLPPos2ConsPosMap(), countBasicVars(), createCGCutCMIR(), determineBound(), determineVariableFixings(), filterExistingLP(), filterRound(), findVertexAndGetRays(), generateAverageRay(), getDualBranchscore(), getImplVarRedcost(), getNActiveConsScore(), getTableauRows(), initLP(), lpFlushAddCols(), lpFlushChgCols(), markRowsXj(), relaxVar(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_HEUREXEC(), SCIP_DECL_SEPAEXECLP(), SCIPapplyLockFixings(), SCIPcolCalcFarkasCoef(), SCIPcolCalcRedcost(), SCIPcolChgLb(), SCIPcolChgObj(), SCIPcolChgUb(), SCIPcolGetStrongbranch(), SCIPcolGetStrongbranches(), SCIPcolInvalidateStrongbranchData(), SCIPcolSetStrongbranchData(), SCIPeventProcess(), SCIPgetVarFarkasCoef(), SCIPgetVarNStrongbranchs(), SCIPgetVarRedcost(), SCIPgetVarsStrongbranchesFrac(), SCIPgetVarsStrongbranchesInt(), SCIPgetVarStrongbranchFrac(), SCIPgetVarStrongbranchInt(), SCIPgetVarStrongbranchLast(), SCIPgetVarStrongbranchLPAge(), SCIPgetVarStrongbranchNode(), SCIPgetVarStrongbranchWithPropagation(), SCIPlpAddCol(), SCIPlpEndDive(), SCIPlpExactAddCol(), SCIPlpMarkFlushed(), SCIPlpShrinkCols(), SCIPlpStartDive(), SCIPlpSumRows(), SCIPpricestoreAddProbVars(), SCIPpricestoreApplyVars(), SCIPprobUpdateBestRootSol(), SCIPreoptApplyCuts(), SCIProwCalcIntegralScalar(), SCIPsetVarStrongbranchData(), SCIPsolAdjustImplicitSolVals(), SCIPvarColumnExact(), SCIPvarGetImplRedcost(), setupAggregationData(), shiftValues(), storeDenseTableauRowsByColumns(), tryFixVar(), updateActivities(), updateRowActivities(), updateSlacks(), varColCompare(), and varProcessBoundChanges().
◆ SCIPvarGetColExact()
| SCIP_COLEXACT * SCIPvarGetColExact | ( | SCIP_VAR * | var | ) |
gets column of COLUMN variable
gets exact column of COLUMN variable
- Parameters
-
var problem variable
Definition at line 23694 of file var.c.
References SCIP_VarDataExact::colexact, SCIP_Var::exactdata, NULL, SCIP_VARSTATUS_COLUMN, and SCIPvarGetStatusExact().
Referenced by lpExactFlushAddCols(), lpExactFlushChgCols(), SCIPcolExactCalcFarkasRedcostCoef(), SCIPcolExactChgLb(), SCIPcolExactChgObj(), SCIPcolExactChgUb(), SCIPeventProcess(), SCIPlpExactEndDive(), SCIPlpExactLink(), SCIPlpExactShrinkCols(), SCIPlpExactStartDive(), and updateLpExactBoundChange().
◆ SCIPvarIsInLP()
returns whether the variable is a COLUMN variable that is member of the current LP
- Parameters
-
var problem variable
Definition at line 23706 of file var.c.
References SCIP_Var::col, SCIP_Var::data, NULL, SCIP_VARSTATUS_COLUMN, SCIPcolIsInLP(), and SCIPvarGetStatus().
Referenced by COLORprobPrintStableSets(), focusnodeCleanupVars(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRICERFARKAS(), SCIPselectVarPseudoStrongBranching(), SCIPundoBdchgsProof(), and setupAggregationData().
◆ SCIPvarGetMinAggrCoef()
gets lower bound on absolute coefficient of a loose variable in (multi)aggregations of other variables
gets minimal absolute coefficient of a loose variable in (multi)aggregations of other variables
- Parameters
-
var problem variable
Definition at line 23716 of file var.c.
References SCIP_Var::data, SCIP_Var::loose, SCIP_Loose::minaggrcoef, SCIP_VARSTATUS_LOOSE, and SCIPvarGetStatus().
Referenced by SCIPvarIsAggrCoefAcceptable().
◆ SCIPvarGetMaxAggrCoef()
gets upper bound on absolute coefficient of a loose variable in (multi)aggregations of other variables
gets lower bound on absolute coefficient of a loose variable in (multi)aggregations of other variables
- Parameters
-
var problem variable
Definition at line 23726 of file var.c.
References SCIP_Var::data, SCIP_Var::loose, SCIP_Loose::maxaggrcoef, SCIP_VARSTATUS_LOOSE, and SCIPvarGetStatus().
Referenced by SCIPvarIsAggrCoefAcceptable().
◆ SCIPvarGetAggrVar()
gets aggregation variable y of an aggregated variable x = a*y + c
gets upper bound on absolute coefficient of a loose variable in (multi)aggregations of other variables
- Parameters
-
var problem variable
Definition at line 23736 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::donotaggr, NULL, SCIP_VARSTATUS_AGGREGATED, SCIPvarGetStatus(), and SCIP_Aggregate::var.
Referenced by applyFixings(), checkSystemGF2(), SCIPNLFeeder::FeedLinearConExpr(), markNeighborsMWISHeuristic(), presolveAddKKTAggregatedVars(), processBinvarFixings(), processRealBoundChg(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_READERWRITE(), SCIPgetVarCopy(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPsolIncVal(), SCIPsolSetVal(), SCIPsolSetValExact(), and varGetObjDelta().
◆ SCIPvarGetAggrScalar()
gets aggregation scalar a of an aggregated variable x = a*y + c
- Parameters
-
var problem variable
Definition at line 23748 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::donotaggr, NULL, SCIP_Aggregate::scalar, SCIP_VARSTATUS_AGGREGATED, and SCIPvarGetStatus().
Referenced by checkSystemGF2(), SCIPNLFeeder::FeedLinearConExpr(), presolveAddKKTAggregatedVars(), SCIP_DECL_LINCONSUPGD(), SCIPgetVarCopy(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolIncVal(), SCIPsolSetVal(), and varGetObjDelta().
◆ SCIPvarGetAggrScalarExact()
| SCIP_RATIONAL * SCIPvarGetAggrScalarExact | ( | SCIP_VAR * | var | ) |
gets aggregation scalar a of an aggregated variable x = a*y + c
- Parameters
-
var problem variable
Definition at line 23760 of file var.c.
References SCIP_VarDataExact::aggregate, SCIP_Var::exactdata, NULL, SCIP_AggregateExact::scalar, SCIP_VARSTATUS_AGGREGATED, and SCIPvarGetStatusExact().
Referenced by applyFixings(), SCIPsolGetValExact(), and SCIPsolSetValExact().
◆ SCIPvarGetAggrConstant()
gets aggregation constant c of an aggregated variable x = a*y + c
- Parameters
-
var problem variable
Definition at line 23771 of file var.c.
References SCIP_Var::aggregate, SCIP_Aggregate::constant, SCIP_Var::data, SCIP_Var::donotaggr, NULL, SCIP_VARSTATUS_AGGREGATED, and SCIPvarGetStatus().
Referenced by checkSystemGF2(), SCIPNLFeeder::FeedConBounds(), markNeighborsMWISHeuristic(), presolveAddKKTAggregatedVars(), SCIP_DECL_LINCONSUPGD(), SCIPgetVarCopy(), SCIPsolGetVal(), and SCIPsolSetVal().
◆ SCIPvarGetAggrConstantExact()
| SCIP_RATIONAL * SCIPvarGetAggrConstantExact | ( | SCIP_VAR * | var | ) |
gets aggregation constant c of an aggregated variable x = a*y + c
- Parameters
-
var problem variable
Definition at line 23783 of file var.c.
References SCIP_VarDataExact::aggregate, SCIP_AggregateExact::constant, SCIP_Var::exactdata, NULL, SCIP_VARSTATUS_AGGREGATED, and SCIPvarGetStatusExact().
Referenced by applyFixings(), SCIPsolGetValExact(), and SCIPsolSetValExact().
◆ SCIPvarGetMultaggrNVars()
| int SCIPvarGetMultaggrNVars | ( | SCIP_VAR * | var | ) |
gets number n of aggregation variables of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c
- Parameters
-
var problem variable
Definition at line 23794 of file var.c.
References SCIP_Var::data, SCIP_Var::donotmultaggr, SCIP_Var::multaggr, NULL, SCIP_Multaggr::nvars, SCIP_VARSTATUS_MULTAGGR, and SCIPvarGetStatus().
Referenced by applyFixings(), conflictResolveBound(), exitPresolve(), SCIPNLFeeder::FeedLinearConExpr(), fixVariableZero(), getRandomVariable(), nlrowRemoveFixedLinearCoefPos(), presolveAddKKTAggregatedVars(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_READERWRITE(), SCIPconflictAddBound(), SCIPgetVarCopy(), SCIPnlrowAddLinearCoef(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPsolSetVal(), selectVarMultAggrBranching(), and updateBestCandidate().
◆ SCIPvarGetMultaggrVars()
gets vector of aggregation variables y of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c
- Parameters
-
var problem variable
Definition at line 23806 of file var.c.
References SCIP_Var::data, SCIP_Var::donotmultaggr, SCIP_Var::multaggr, NULL, SCIP_VARSTATUS_MULTAGGR, SCIPvarGetStatus(), and SCIP_Multaggr::vars.
Referenced by applyFixings(), exitPresolve(), SCIPNLFeeder::FeedLinearConExpr(), fixVariableZero(), getRandomVariable(), nlrowRemoveFixedLinearCoefPos(), presolveAddKKTAggregatedVars(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_READERWRITE(), SCIPconflictAddBound(), SCIPgetVarCopy(), SCIPnlrowAddLinearCoef(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPsolSetVal(), selectVarMultAggrBranching(), and updateBestCandidate().
◆ SCIPvarGetMultaggrScalars()
gets vector of aggregation scalars a of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c
- Parameters
-
var problem variable
Definition at line 23818 of file var.c.
References SCIP_Var::data, SCIP_Var::donotmultaggr, SCIP_Var::multaggr, NULL, SCIP_Multaggr::scalars, SCIP_VARSTATUS_MULTAGGR, and SCIPvarGetStatus().
Referenced by applyFixings(), SCIPNLFeeder::FeedLinearConExpr(), fixVariableZero(), nlrowRemoveFixedLinearCoefPos(), presolveAddKKTAggregatedVars(), SCIP_DECL_BRANCHEXECLP(), SCIPconflictAddBound(), SCIPgetVarCopy(), SCIPnlrowAddLinearCoef(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolSetVal(), selectVarMultAggrBranching(), and updateBestCandidate().
◆ SCIPvarGetMultaggrScalarsExact()
| SCIP_RATIONAL ** SCIPvarGetMultaggrScalarsExact | ( | SCIP_VAR * | var | ) |
gets vector of exact aggregation scalars a of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c
- Parameters
-
var problem variable
Definition at line 23830 of file var.c.
References SCIP_Var::donotmultaggr, SCIP_Var::exactdata, SCIP_VarDataExact::multaggr, NULL, SCIP_MultaggrExact::scalars, SCIP_VARSTATUS_MULTAGGR, and SCIPvarGetStatusExact().
Referenced by applyFixings(), and SCIPsolGetValExact().
◆ SCIPvarGetMultaggrConstant()
gets aggregation constant c of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c
- Parameters
-
var problem variable
Definition at line 23843 of file var.c.
References SCIP_Multaggr::constant, SCIP_Var::data, SCIP_Var::donotmultaggr, SCIP_Var::multaggr, NULL, SCIP_VARSTATUS_MULTAGGR, and SCIPvarGetStatus().
Referenced by applyFixings(), SCIPNLFeeder::FeedConBounds(), fixVariableZero(), nlrowRemoveFixedLinearCoefPos(), presolveAddKKTAggregatedVars(), SCIP_DECL_BRANCHEXECLP(), SCIPgetVarCopy(), SCIPsolGetVal(), SCIPsolSetVal(), SCIPvarGetActiveRepresentatives(), and selectVarMultAggrBranching().
◆ SCIPvarGetMultaggrConstantExact()
| SCIP_RATIONAL * SCIPvarGetMultaggrConstantExact | ( | SCIP_VAR * | var | ) |
gets exact aggregation constant c of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c
- Parameters
-
var problem variable
Definition at line 23855 of file var.c.
References SCIP_MultaggrExact::constant, SCIP_Var::donotmultaggr, SCIP_Var::exactdata, SCIP_VarDataExact::multaggr, NULL, SCIP_VARSTATUS_MULTAGGR, and SCIPvarGetStatusExact().
Referenced by applyFixings(), SCIPsolGetValExact(), and SCIPvarGetActiveRepresentativesExact().
◆ SCIPvarGetNegatedVar()
gets the negation of the given variable; may return NULL, if no negation is existing yet
- Parameters
-
var negated problem variable
Definition at line 23868 of file var.c.
References SCIP_Var::negatedvar, and NULL.
Referenced by addCliqueDataEntry(), addCliques(), addConsToOccurList(), applyFixings(), checkEqualObjective(), checkOrigPbCons(), checkParallelObjective(), checkSolution(), checkSystemGF2(), cliquePresolve(), collectCliqueData(), computeRanks(), consdataPrint(), correctLocksAndCaptures(), createCoveringProblem(), decompGetConsVarsAndLabels(), extractGates(), SCIPNLFeeder::FeedConExpression(), findAggregation(), getActiveVariables(), getLinearCoeffs(), mergeMultiples(), preprocessCliques(), preprocessConstraintPairs(), presolRoundIndicator(), printNLRow(), printRow(), printRowExact(), removeConstraintsDueToNegCliques(), removeDoubleAndSingletonsAndPerformDualpresolve(), removeRedundantNonZeros(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_CONSPARSE(), SCIP_DECL_CONSPRINT(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_READERWRITE(), SCIP_DECL_SORTPTRCOMP(), SCIPcomputeDecompVarsLabels(), SCIPcreateConsOrbitopeFull(), SCIPcreateConsOrbitopePP(), SCIPprobDelVar(), SCIPvarCompareActiveAndNegated(), SCIPwriteLp(), SCIPwriteMps(), separateIISRounding(), strengthenConss(), tcliquegraphConstructCliqueTable(), and varGetObjDelta().
◆ SCIPvarGetNegationVar()
gets the negation variable x of a negated variable x' = offset - x
- Parameters
-
var negated problem variable
Definition at line 23878 of file var.c.
References SCIP_Var::negatedvar, NULL, SCIP_VARSTATUS_NEGATED, and SCIPvarGetStatus().
Referenced by addCliques(), applyFixings(), checkForOverlapping(), checkSolution(), cliqueCleanup(), cliquePresolve(), collectCliqueData(), createBlockproblem(), createCoveringProblem(), SCIPNLFeeder::FeedLinearConExpr(), findAggregation(), getLinVarsAndAndRess(), liftCliqueVariables(), markNeighborsMWISHeuristic(), mergeMultiples(), preprocessCliques(), presolveAddKKTAggregatedVars(), removeConstraintsDueToNegCliques(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_READERWRITE(), SCIPaddPricedVar(), SCIPaddVar(), SCIPchgVarImplType(), SCIPchgVarType(), SCIPgetBinaryVarIndicatorGeneric(), SCIPgetVarCopy(), SCIPmakeIndicatorFeasible(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPsolIncVal(), SCIPsolSetVal(), SCIPsolSetValExact(), setObjective(), shortenConss(), tryUpgradingXor(), writeOpbConstraints(), writeOpbFixedVars(), writeOpbObjective(), and writeOpbRelevantAnds().
◆ SCIPvarGetNegationConstant()
gets the negation offset of a negated variable x' = offset - x
- Parameters
-
var negated problem variable
Definition at line 23889 of file var.c.
References SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::negate, NULL, SCIP_VARSTATUS_NEGATED, and SCIPvarGetStatus().
Referenced by applyFixings(), SCIPNLFeeder::FeedConBounds(), SCIPNLFeeder::FeedConExpression(), markNeighborsMWISHeuristic(), presolveAddKKTAggregatedVars(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintGlobalBound(), SCIPcertifyActivityVarBoundExact(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPsolSetVal(), and SCIPsolSetValExact().
◆ SCIPvarGetObj()
gets objective function value of variable
- Parameters
-
var problem variable
Definition at line 23900 of file var.c.
References NULL, and SCIP_Var::obj.
Referenced by addBoundViolated(), addConflictBinvar(), addConflictBounds(), addObjcut(), addObjCutoff(), addScenarioVarsToProb(), addTrustRegionConstraints(), addVariableToBendersProblem(), adjustCutoffbound(), applyAlternativeBoundsBranching(), applyCliqueFixings(), applyObbt(), applyOptcumulative(), applyOptcumulativeFixings(), applyRepair(), applyVboundsFixings(), BENDERS_CUTORACLE(), calcMaxObjPseudoactivity(), calcShiftVal(), catchObjEvent(), changeSubvariableObjective(), checkConsQuadraticProblem(), checkDivingCandidates(), checkEqualObjective(), checkExec(), checkParallelObjective(), checkSystemGF2(), chooseFracVar(), chooseGuidedVar(), chooseVeclenVar(), collectMinactImplicVar(), collectMinactImplicVars(), collectMinactVar(), compareVars(), compareVarsSignedPerm(), compensateVarLock(), componentSetupWorkingSol(), computeStandardLPOptimalityCut(), computeStandardNLPOptimalityCut(), consdataPrint(), createBlockproblem(), createCGCutDirect(), createNewSol(), createObjRow(), createSubproblem(), createSubproblems(), createSubSCIP(), dropObjEvent(), dualBoundStrengthening(), dualPresolve(), dualPresolving(), evaluateValueCand(), SCIPNLFeeder::FeedObjGradient(), findComponents(), findDominancePairs(), findDownlockAggregations(), findFixings(), findUnlockedLinearVar(), findUplockAggregations(), fixIntegerVariable(), fromCommandLine(), fullDualPresolve(), generateAndApplyBendersCuts(), generateObjectiveRay(), getConflictImplics(), getMaxactImplicObjchg(), getMaxObjPseudoactivityResidual(), getMinactImplicObjchg(), getObjectiveFactor(), getObjectiveRow(), getPotential(), getScoreOfFarkasDiving(), getVariable(), getVarObjchg(), initSolve(), isSingleLockedCand(), isVlb(), isVub(), lpGetModifiedPseudoObjvalExact(), lpUpdateVarColumn(), lpUpdateVarColumnProved(), lpUpdateVarLoose(), lpUpdateVarLooseProved(), nlpAddVars(), nlpDelVarPos(), nlpFlushObjective(), nlpFlushVarAdditions(), nlpSolve(), nlpUpdateObjCoef(), objimplicsCreate(), optimize(), performDualfix(), performRandRounding(), performSimpleRounding(), predBndStr(), presolStuffing(), propagateCons(), propagateCutoffbound(), propagateCutoffboundGlobally(), propagateLowerbound(), propagateLowerboundVar(), propdataInit(), propIndicator(), readObjective(), readOPBFile(), recomputeGlbPseudoObjectiveValue(), recomputeLooseObjectiveValue(), recomputePseudoObjectiveValue(), removeDoubleAndSingletonsAndPerformDualpresolve(), reoptSaveNewObj(), resolvePropagation(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_CONSPARSE(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPPRESOL(), SCIP_DECL_SEPAEXECLP(), SCIP_DECL_SORTPTRCOMP(), SCIPaddVarExactData(), SCIPaggrRowAddObjectiveFunction(), SCIPapplyHeurDualval(), SCIPapplyLockFixings(), SCIPapplyProximity(), SCIPbendersMergeSubproblemIntoMaster(), SCIPchgReoptObjective(), SCIPchgVarObjProbing(), SCIPcolCreate(), SCIPconflictAnalyzePseudo(), SCIPcreateConsOrbitopeFull(), SCIPcreateConsOrbitopePP(), SCIPcreateNlpiProblemFromNlRows(), SCIPgetVarStrongbranchFrac(), SCIPgetVarStrongbranchInt(), SCIPgetVarStrongbranchWithPropagation(), SCIPisObjIntegral(), SCIPlpEndDive(), SCIPlpGetModifiedPseudoObjval(), SCIPlpRecomputeLocalAndGlobalPseudoObjval(), SCIPlpStartDive(), SCIPlpUpdateAddVar(), SCIPlpUpdateDelVar(), SCIPlpUpdateVarLb(), SCIPlpUpdateVarLbGlobal(), SCIPlpUpdateVarUb(), SCIPlpUpdateVarUbGlobal(), SCIPnlpChgVarObjDive(), SCIPnlpGetPseudoObjval(), SCIPnodeAddBoundinfer(), SCIPnodeAddHoleinfer(), SCIPprintSolutionPbSolver(), SCIPprobAddVar(), SCIPprobCheckObjIntegral(), SCIPprobGetAbsMaxObjCoef(), SCIPprobGetAbsMinObjCoef(), SCIPprobGetNObjVars(), SCIPprobPerformVarDeletions(), SCIPprobScaleObj(), SCIPpropagateCutoffboundVar(), SCIPsolRetransform(), SCIPsolRetransformExact(), SCIPtreeBranchVar(), SCIPvarCopy(), SCIPvarGetAggregatedObj(), SCIPvarMarkRelaxationOnly(), SCIPwriteGms(), SCIPwriteLp(), SCIPwriteMps(), SCIPwritePip(), selectEssentialRounding(), selectRounding(), selectShifting(), setupAndSolveSubscip(), setupSubproblem(), setupSubScip(), singletonColumnStuffing(), solCutIsViolated(), solveAndEvalSubscip(), solveCoveringProblem(), solveCumulative(), solveIndependentCons(), tiebreakAggrCand(), transformColumn(), updateBestCandidate(), updateLambda(), updateVariableRounding(), varGetObjDelta(), varMayRoundDown(), varMayRoundUp(), writeExpandedSolutions(), writeFzn(), writeOpbConstraints(), and writeOpbObjective().
◆ SCIPvarGetObjExact()
| SCIP_RATIONAL * SCIPvarGetObjExact | ( | SCIP_VAR * | var | ) |
gets objective function value of variable
gets exact objective function value of variable
- Parameters
-
var problem variable
Definition at line 23910 of file var.c.
References SCIP_Var::exactdata, NULL, and SCIP_VarDataExact::obj.
Referenced by getVariable(), lpGetModifiedPseudoObjvalExact(), probCheckObjIntegralExact(), probScaleObjExact(), readObjectiveRational(), recomputeSafeLooseObjectiveValue(), recomputeSafePseudoObjectiveValue(), SCIPcertificateInit(), SCIPcertificateInitTransFile(), SCIPcertificatePrintDualboundPseudo(), SCIPcolExactCreate(), SCIPlpExactEndDive(), SCIPlpExactStartDive(), SCIPlpExactUpdateAddVar(), SCIPlpExactUpdateDelVar(), SCIPlpExactUpdateVarColumn(), SCIPlpExactUpdateVarLb(), SCIPlpExactUpdateVarLbGlobal(), SCIPlpExactUpdateVarLoose(), SCIPlpExactUpdateVarUb(), SCIPlpExactUpdateVarUbGlobal(), SCIPnodeAddBoundinferExact(), SCIPsolPrintExact(), SCIPsolRecomputeInternObjExact(), SCIPsolRetransformExact(), SCIPsolSetValExact(), SCIPwriteLp(), setObjective(), solCheckExact(), and writeOpbConstraints().
◆ SCIPvarGetObjInterval()
| SCIP_INTERVAL SCIPvarGetObjInterval | ( | SCIP_VAR * | var | ) |
gets exact objective function value of variable
- Parameters
-
var problem variable
Definition at line 23921 of file var.c.
References SCIP_Var::exactdata, NULL, and SCIP_VarDataExact::objinterval.
◆ SCIPvarGetUnchangedObj()
gets the unchanged objective function value of variable (ignoring temproray changes performed in probing mode)
gets the unchanged objective function value of a variable (ignoring temproray changes performed in probing mode)
- Parameters
-
var problem variable
Definition at line 23932 of file var.c.
References NULL, and SCIP_Var::unchangedobj.
Referenced by computeStandardLPOptimalityCut(), computeStandardNLPOptimalityCut(), SCIPcolChgObj(), SCIPcolCreate(), SCIPsolAdjustImplicitSolVals(), SCIPsolCheck(), SCIPsolIncVal(), SCIPsolLinkLPSol(), SCIPsolLinkNLPSol(), SCIPsolPrint(), SCIPsolPrintRay(), SCIPsolRecomputeObj(), SCIPsolRetransform(), SCIPsolRetransformExact(), SCIPsolRound(), SCIPsolSetVal(), and solCheckExact().
◆ SCIPvarGetLbOriginal()
gets original lower bound of original problem variable (i.e. the bound set in problem creation)
- Parameters
-
var original problem variable
Definition at line 24020 of file var.c.
References SCIP_Negate::constant, SCIP_Var::data, SCIP_Dom::lb, SCIP_Var::negate, SCIP_Var::negatedvar, NULL, SCIP_Original::origdom, SCIP_Var::original, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetStatus(), SCIPvarIsOriginal(), and SCIP_Dom::ub.
Referenced by addCut(), addScenarioVarsToProb(), checkConsQuadraticProblem(), checkSolOrig(), checkTrivialInfeas(), countKernelVariables(), deletionFilterBatch(), deletionSubproblem(), fillKernels(), getScenarioDecompVar(), parseConstantArrayAssignment(), parseValue(), printBoundSection(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSENFORELAX(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_HEUREXEC(), SCIPbendersMergeSubproblemIntoMaster(), SCIPcreateFiniteSolCopy(), SCIPiisfinderInfoMessage(), SCIPiisGenerate(), SCIPsolCheckOrig(), SCIPvarAddHoleOriginal(), SCIPvarChgUbOriginal(), SCIPvarCopy(), SCIPvarPrint(), SCIPwriteBnd(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), writeFzn(), writeOpbFixedVars(), and writeOpbRelevantAnds().
◆ SCIPvarGetLbOriginalExact()
| SCIP_RATIONAL * SCIPvarGetLbOriginalExact | ( | SCIP_VAR * | var | ) |
gets original lower bound of original problem variable (i.e. the bound set in problem creation)
gets exact original lower bound of original problem variable (i.e. the bound set in problem creation)
- Parameters
-
var original problem variable
Definition at line 24040 of file var.c.
References SCIP_Var::exactdata, SCIP_DomExact::lb, SCIP_Var::negatedvar, NULL, SCIP_VarDataExact::origdom, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPvarGetStatusExact(), and SCIPvarIsOriginal().
Referenced by checkSolOrigExact(), SCIPvarChgUbOriginalExact(), and SCIPvarPrint().
◆ SCIPvarGetUbOriginal()
gets original upper bound of original problem variable (i.e. the bound set in problem creation)
- Parameters
-
var original problem variable
Definition at line 24063 of file var.c.
References SCIP_Negate::constant, SCIP_Var::data, SCIP_Dom::lb, SCIP_Var::negate, SCIP_Var::negatedvar, NULL, SCIP_Original::origdom, SCIP_Var::original, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetStatus(), SCIPvarIsOriginal(), and SCIP_Dom::ub.
Referenced by addCut(), addScenarioVarsToProb(), checkConsQuadraticProblem(), checkSolOrig(), checkTrivialInfeas(), deletionFilterBatch(), deletionSubproblem(), getScenarioDecompVar(), parseConstantArrayAssignment(), parseValue(), printBoundSection(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSENFOLP(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSENFORELAX(), SCIP_DECL_CONSINITSOL(), SCIPbendersMergeSubproblemIntoMaster(), SCIPcreateFiniteSolCopy(), SCIPiisfinderInfoMessage(), SCIPiisGenerate(), SCIPsolCheckOrig(), SCIPvarAddHoleOriginal(), SCIPvarChgLbOriginal(), SCIPvarCopy(), SCIPvarPrint(), SCIPwriteBnd(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), writeFzn(), writeOpbFixedVars(), and writeOpbRelevantAnds().
◆ SCIPvarGetUbOriginalExact()
| SCIP_RATIONAL * SCIPvarGetUbOriginalExact | ( | SCIP_VAR * | var | ) |
gets original upper bound of original problem variable (i.e. the bound set in problem creation)
gets exact original upper bound of original problem variable (i.e. the bound set in problem creation)
- Parameters
-
var original problem variable
Definition at line 24083 of file var.c.
References SCIP_Var::exactdata, SCIP_Var::negatedvar, NULL, SCIP_VarDataExact::origdom, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPvarGetStatusExact(), SCIPvarIsOriginal(), and SCIP_DomExact::ub.
Referenced by checkSolOrigExact(), SCIPvarChgLbOriginalExact(), and SCIPvarPrint().
◆ SCIPvarGetHolelistOriginal()
| SCIP_HOLELIST * SCIPvarGetHolelistOriginal | ( | SCIP_VAR * | var | ) |
gets the original hole list of an original variable
- Parameters
-
var problem variable
Definition at line 24106 of file var.c.
References SCIP_Var::data, SCIP_Dom::holelist, NULL, SCIP_Original::origdom, SCIP_Var::original, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetStatus(), and SCIPvarIsOriginal().
Referenced by SCIPvarPrint().
◆ SCIPvarGetLbGlobal()
gets global lower bound of variable
- Parameters
-
var problem variable
Definition at line 24120 of file var.c.
References SCIP_Var::glbdom, SCIP_Dom::lb, and NULL.
Referenced by addAltLPColumn(), addCoef(), addComponent(), addConflictBinvar(), addConflictBounds(), addConflictFixedVars(), addConflictReasonVars(), addCut(), addFixedVarsConss(), addGlobalCut(), addLocalBranchingConstraint(), addLowerboundCons(), addRltTerm(), addSplitcons(), addVariableToBendersProblem(), adjustCutoffbound(), adjustOversizedJobBounds(), aggregation(), aggrRowGetMinActivitySafely(), alnsFixMoreVariables(), analyzeEnergyRequirement(), analyzeStrongbranch(), applyFixings(), applyGenVBound(), applyImplic(), applyRepair(), assignVars(), boundchgApplyGlobal(), bucketCreateSubscip(), buildMod2Matrix(), calcMaxObjPseudoactivity(), calcShiftVal(), calculateBounds(), catchEventBinvar(), checkCounters(), checkGlbfirstnonfixed(), checkIISlocal(), checkImplic(), checkImplicsApplied(), checkOverloadViaThetaTree(), checkRedundancy(), checkRedundancySide(), checkSolution(), checkSystemGF2(), chgCoeffWithBound(), chgCoeffWithBoundSafely(), chgQuadCoeffWithBound(), cliqueCleanup(), cliquePresolve(), collectBinaryCliqueData(), collectMinactImplicVar(), collectMinactImplicVars(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), collectVars(), compareVars(), compareVarsSignedPerm(), compensateVarLock(), componentSetupWorkingSol(), computeCut(), computeEnergyContribution(), computeIntegerVariableBounds(), computeIntegerVariableBoundsDins(), computeMaxEnergy(), computeOffValues(), computeRanks(), computeRltCut(), computeSlack(), computeStandardLPFeasibilityCut(), conflictAnalyze(), consdataCreate(), consdataCreateBinvars(), consdataCreateRedundant(), consdataDeletePos(), consdataFree(), consdataGetGlbActivityResiduals(), consdataGetReliableResidualActivity(), consdataLinearize(), consdataPrint(), consdataRecomputeGlbMaxactivity(), consdataRecomputeGlbMinactivity(), consdataUpdateAddCoef(), consdataUpdateDelCoef(), consdataUpdateSignatures(), constructHypergraph(), constructSNFRelaxation(), convertLongEquality(), createAuxVar(), createBlockproblem(), createConflictCons(), createCoveringProblem(), createIndicatorConstraint(), createKKTComplementarityBounds(), createKKTDualCons(), createObjRow(), createProjRow(), createSolFromSubScipSol(), createSortedEventpoints(), createSubscip(), createSubSCIP(), createVarboundCons(), cutsRoundMIR(), cutsRoundMIRSafely(), cutsRoundStrongCG(), cutTightenCoefs(), cutTightenCoefsQuad(), cutTightenCoefsSafely(), DECL_CHANGESUBSCIP(), detectHiddenProducts(), detectImplications(), detectImpliedBounds(), determineBestBounds(), determineBestBoundsSafely(), determineBound(), determineVariableFixings(), dfs(), doSolveSubMIP(), dropEventBinvar(), dualBoundStrengthening(), dualPresolve(), dualPresolving(), enfopsCons(), estimateBivariateQuotient(), estimateConvexSecant(), estimateGradient(), estimateUnivariateQuotient(), extractCliques(), extractLinearValues(), SCIPNLFeeder::FeedVarBounds(), filterExistingLP(), findAggregation(), findBestLb(), findBestLbSafely(), findDominancePairs(), findDownlockAggregations(), findMIRBestLb(), findUncapacitatedArcs(), findUplockAggregations(), fixDiscreteVars(), fixIntegerVariableUb(), fixVariables(), focusnodeCleanupVars(), forbidFixation(), freeMemory(), fullDualPresolve(), generateAndApplyBendersIntegerCuts(), generateBoundInequalityFromSOS1Nodes(), generateRowCardinality(), generateRowSOS2(), generateZerohalfCut(), getActivityResidualsLowerBound(), getActivityResidualsUpperBound(), getClosestVub(), getCorner(), getDomainCenter(), getFixVal(), getGenVBoundsMinActivity(), getMaxactImplicObjchg(), getMaxActivity(), getMaxObjPseudoactivityResidual(), getMinactImplicObjchg(), getMinActivity(), getNewSidesAfterAggregation(), getObjectiveFactor(), getObjectiveRow(), getPotential(), getPotentialContributed(), getSolutionValues(), handleNewVariableCardinality(), handleNewVariableSOS1(), identifyOrbitalSymmetriesBroken(), implBndToBigM(), initConcsolver(), isBoundchgUseless(), isCandidate(), isSingleLockedCand(), isVlb(), isVub(), LNSFixMoreVariables(), lockVariableCardinality(), lockVariableSOS1(), lockVariableSOS2(), markRowsXj(), matrixCreate(), MirReduction(), objimplicsCreate(), optimize(), performDualfix(), predBndStr(), preprocessConstraintPairs(), presolRoundIndicator(), presolRoundSOS2(), presolStuffing(), presolveAddKKTAggregatedVars(), presolveConsEffectiveHorizon(), presolveConsEst(), presolveConsLct(), presolveCumulativeCondition(), presolveSingleLockedVars(), proofsetCancelVarWithBound(), propagateBinaryBestRootRedcost(), propagateCutoffboundGlobally(), propagateCutoffboundVar(), propagateLongProof(), propagateLowerbound(), propagateLowerboundVar(), propagateRootRedcostVar(), propagateVbounds(), propdataInit(), proposeFeasibleSolution(), readBinaries(), readBounds(), readBoundsExact(), readBoundsRational(), readGenerals(), readSemicontinuous(), readSol(), reboundIntegerVariables(), recomputeGlbPseudoObjectiveValue(), relaxVar(), removeDoubleAndSingletonsAndPerformDualpresolve(), removeFixedVariables(), removeIrrelevantJobs(), removeZeros(), removeZerosQuad(), removeZerosSafely(), resolveGenVBoundPropagation(), resolvePropagationCoretimes(), rowExactCreateFromRowLimitEncodingLength(), rowFindSlackVar(), rowprepCleanupImproveCoefrange(), rowprepCleanupIntegralCoefs(), rowScale(), scaleValSafely(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_CONCSOLVERSYNCREAD(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSENABLE(), SCIP_DECL_CONSGETSIGNEDPERMSYMGRAPH(), SCIP_DECL_CONSINITPRE(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPROP(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPR_INTEVALVAR(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_NLHDLRESTIMATE(), SCIP_DECL_NLHDLRINITSEPA(), SCIP_DECL_NLHDLRSOLLINEARIZE(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPRESPROP(), SCIP_DECL_SORTINDCOMP(), SCIPaddVarImplication(), SCIPaggrRowCancelVarWithBound(), SCIPaggrRowGetMinActivity(), SCIPapplyHeurDualval(), SCIPapplyHeurSubNlp(), SCIPapplyProximity(), SCIPapplyUndercover(), SCIPbendersComputeSubproblemLowerbound(), SCIPboundchgUndo(), SCIPbranchGetBranchingPoint(), SCIPchgVarLbLazy(), SCIPclassifyConstraintTypesLinear(), SCIPcliqueDelVar(), SCIPcliquetableAdd(), SCIPcomputeVarLbGlobal(), SCIPconflictAddConflictCon(), SCIPconflictAddRelaxedBound(), SCIPconflictGetVarLb(), SCIPconsResolvePropagation(), SCIPcreateConsLinking(), SCIPcreateConsOrbitopeFull(), SCIPcreateConsOrbitopePP(), SCIPcreateFiniteSolCopy(), SCIPcutGenerationHeuristicCMIR(), SCIPcutsTightenCoefficients(), SCIPgetDualProof(), SCIPgetSymActiveVariables(), SCIPimplicsAdd(), SCIPlpRecomputeLocalAndGlobalPseudoObjval(), SCIPlpUpdateVarObj(), SCIPlpUpdateVarUbGlobal(), SCIPmatrixCreate(), SCIPmatrixPrintRow(), SCIPmergeRowprepTerms(), SCIPnodeAddBoundinfer(), SCIPpropResolvePropagation(), SCIPreoptSaveGlobalBounds(), SCIProwExactGenerateFpRows(), SCIPseparateRelaxedKnapsack(), SCIPshrinkDisjunctiveVarSet(), SCIPsolAdjustImplicitSolVals(), SCIPsolCheck(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolSetVal(), SCIPtightenVarLbGlobal(), SCIPtightenVarUbGlobal(), SCIPundoBdchgsProof(), SCIPvarAddHoleGlobal(), SCIPvarAddImplic(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarCopy(), SCIPvarGetMultaggrLbGlobal(), SCIPvarGetMultaggrUbGlobal(), SCIPvarGetNLPSol_rec(), SCIPvarGetRelaxSol(), SCIPvarPrint(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarUpdateBestRootSol(), SCIPvisualizeConsCumulative(), SCIPwriteBnd(), SCIPwriteLp(), selectShifting(), sepaImplBoundCutsSOS1(), separateCuts(), separatePerspective(), sepastoreApplyLb(), sepastoreApplyUb(), sepastoreIsBdchgApplicable(), setSymmetryData(), setupAggregationData(), setupAndSolveCumulativeSubscip(), setupAndSolveSubscip(), setupAndSolveSubscipRapidlearning(), shiftValues(), simplifyInequalities(), singletonColumnStuffing(), skipRedundantBdchginfos(), solCheckExact(), solveAndEvalSubscip(), solveClassification(), solveComponent(), solveCumulative(), solveLp(), solveMinIISC(), solveSubNLP(), sortAndMergeClique(), termIsConstant(), tightenBounds(), tightenCoefs(), tightenDualproof(), tightenSingleVar(), tightenVariables(), tightenVarLbGlobalSafe(), tightenVarUb(), tightenVarUbGlobalSafe(), transformDualredsToBounddisjunction(), transformNonIntegralRow(), treeAddPendingBdchg(), tryAdd2variableBuffer(), tryAddGadgetBilinearProductSignedPerm(), tryAddGadgetSquaredDifference(), tryFixVar(), tryUpgradingXor(), unlockVariableCardinality(), unlockVariableSOS1(), unlockVariableSOS2(), updateAuxiliaryVarLowerbound(), updateBdchgQueue(), updateFirstRow(), updateFirstRowGlobal(), updateSlacks(), updateSubproblemCutConstant(), varAddImplic(), varAddVbound(), varIncRootboundchgs(), varIsCenteredAt0(), varIsFixed(), varIsSemicontinuous(), varProcessAddHoleGlobal(), varVecAddScaledRowCoefsSafely(), weakenConflictRow(), and weakenVarConflictRow().
◆ SCIPvarGetLbGlobalExact()
| SCIP_RATIONAL * SCIPvarGetLbGlobalExact | ( | SCIP_VAR * | var | ) |
gets global lower bound of variable
gets exact global lower bound of variable
- Parameters
-
var problem variable
Definition at line 24130 of file var.c.
References SCIP_Var::exactdata, SCIP_VarDataExact::glbdom, SCIP_DomExact::lb, and NULL.
Referenced by applyFixings(), consdataCreate(), cutsRoundMIRSafely(), readBoundsExact(), rowExactCreateFromRowLimitEncodingLength(), SCIP_DECL_CONSCHECK(), SCIP_DECL_SORTINDCOMP(), SCIPboundchgUndo(), SCIPcertificateInit(), SCIPcertificateInitTransFile(), SCIPlpExactUpdateVarObj(), SCIPmatrixCreate(), SCIPnodeAddBoundinferExact(), SCIProwExactGenerateFpRows(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPsolSetValExact(), SCIPvarPrint(), solCheckExact(), and varProcessChgLbGlobal().
◆ SCIPvarGetUbGlobal()
gets global upper bound of variable
- Parameters
-
var problem variable
Definition at line 24142 of file var.c.
References SCIP_Var::glbdom, NULL, and SCIP_Dom::ub.
Referenced by addAltLPColumn(), addCoef(), addComponent(), addConflictBinvar(), addConflictBounds(), addConflictFixedVars(), addConflictReasonVars(), addCut(), addFixedVarsConss(), addGlobalCut(), addLocalBranchingConstraint(), addRltTerm(), addSplitcons(), addVariableToBendersProblem(), adjustCutoffbound(), adjustOversizedJobBounds(), aggregation(), aggrRowGetMinActivitySafely(), alnsFixMoreVariables(), analyzeEnergyRequirement(), analyzeStrongbranch(), applyFixings(), applyGenVBound(), applyImplic(), applyRepair(), applyZeroFixings(), assignVars(), boundchgApplyGlobal(), bucketCreateSubscip(), buildMod2Matrix(), calcMaxObjPseudoactivity(), calcShiftVal(), calculateBounds(), catchEventBinvar(), checkCounters(), checkGlbfirstnonfixed(), checkIISlocal(), checkImplic(), checkOverloadViaThetaTree(), checkRedundancy(), checkRedundancySide(), checkSolution(), checkSystemGF2(), chgCoeffWithBound(), chgCoeffWithBoundSafely(), chgQuadCoeffWithBound(), cliqueCleanup(), cliquePresolve(), collectActivities(), collectBinaryCliqueData(), collectBinaryVars(), collectDemands(), collectEstLst(), collectMinactImplicVar(), collectMinactImplicVars(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), collectVars(), compareVars(), compareVarsSignedPerm(), compensateVarLock(), componentSetupWorkingSol(), computeCut(), computeEnergyContribution(), computeIntegerVariableBounds(), computeIntegerVariableBoundsDins(), computeMaxEnergy(), computeOffValues(), computeRanks(), computeRltCut(), computeSlack(), computeStandardLPFeasibilityCut(), conflictAnalyze(), consdataCreate(), consdataCreateBinvars(), consdataCreateRedundant(), consdataDeletePos(), consdataGetGlbActivityResiduals(), consdataGetReliableResidualActivity(), consdataLinearize(), consdataPrint(), consdataRecomputeGlbMaxactivity(), consdataRecomputeGlbMinactivity(), consdataUpdateAddCoef(), consdataUpdateDelCoef(), consdataUpdateSignatures(), constructSNFRelaxation(), convertLongEquality(), createAuxVar(), createBlockproblem(), createCoveringProblem(), createIndicatorConstraint(), createKKTComplementarityBounds(), createKKTDualCons(), createProjRow(), createSortedEventpoints(), createSubscip(), createSubSCIP(), createVarboundCons(), createVarUbs(), cutsRoundMIR(), cutsRoundMIRSafely(), cutsRoundStrongCG(), cutTightenCoefs(), cutTightenCoefsQuad(), cutTightenCoefsSafely(), DECL_CHANGESUBSCIP(), detectHiddenProducts(), detectImplications(), detectImpliedBounds(), determineBestBounds(), determineBestBoundsSafely(), determineBound(), determineVariableFixings(), dfs(), doSolveSubMIP(), dropEventBinvar(), dualBoundStrengthening(), dualPresolve(), dualPresolving(), enfopsCons(), estimateBivariateQuotient(), estimateConvexSecant(), estimateGradient(), estimateUnivariateQuotient(), extractCliques(), extractLinearValues(), SCIPNLFeeder::FeedVarBounds(), filterExistingLP(), findAggregation(), findBestUb(), findBestUbSafely(), findDominancePairs(), findDownlockAggregations(), findFixings(), findMIRBestUb(), findUncapacitatedArcs(), findUplockAggregations(), fixDiscreteVars(), fixIntegerVariableUb(), fixTriangle(), fixVariables(), focusnodeCleanupVars(), forbidFixation(), freeMemory(), fullDualPresolve(), generateBoundInequalityFromSOS1Nodes(), generateRowCardinality(), generateRowSOS2(), generateZerohalfCut(), getActivityResidualsLowerBound(), getActivityResidualsUpperBound(), getClosestVlb(), getCorner(), getDomainCenter(), getFixVal(), getGenVBoundsMinActivity(), getMaxactImplicObjchg(), getMaxActivity(), getMaxObjPseudoactivityResidual(), getMinactImplicObjchg(), getMinActivity(), getNewSidesAfterAggregation(), getObjectiveFactor(), getObjectiveRow(), getPotential(), getPotentialContributed(), getSolutionValues(), handleNewVariableCardinality(), handleNewVariableSOS1(), identifyOrbitalSymmetriesBroken(), implBndToBigM(), initConcsolver(), isBoundchgUseless(), isCandidate(), isSingleLockedCand(), LNSFixMoreVariables(), lockVariableCardinality(), lockVariableSOS1(), lockVariableSOS2(), markRowsXj(), matrixCreate(), MirReduction(), objimplicsCreate(), optimize(), performDualfix(), predBndStr(), preprocessConstraintPairs(), presolRoundIndicator(), presolRoundSOS2(), presolStuffing(), presolveAddKKTAggregatedVars(), presolveConsEffectiveHorizon(), presolveConsEst(), presolveConsLct(), presolveCumulativeCondition(), presolveSingleLockedVars(), printIndicatorCons(), proofsetCancelVarWithBound(), propagateBinaryBestRootRedcost(), propagateCons(), propagateCutoffboundGlobally(), propagateCutoffboundVar(), propagateLongProof(), propagateLowerbound(), propagateLowerboundVar(), propagateRootRedcostVar(), propagateVbounds(), propdataInit(), proposeFeasibleSolution(), readBinaries(), readBounds(), readBoundsExact(), readBoundsRational(), readGenerals(), readSol(), reboundIntegerVariables(), recomputeGlbPseudoObjectiveValue(), relaxVar(), removeFixedVariables(), removeIrrelevantJobs(), removeZeros(), removeZerosQuad(), removeZerosSafely(), resolveGenVBoundPropagation(), resolvePropagationCoretimes(), rowFindSlackVar(), rowprepCleanupImproveCoefrange(), rowprepCleanupIntegralCoefs(), rowScale(), scaleValSafely(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_CONCSOLVERSYNCREAD(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSGETSIGNEDPERMSYMGRAPH(), SCIP_DECL_CONSINITLP(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPR_INTEVALVAR(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_NLHDLRESTIMATE(), SCIP_DECL_NLHDLRINITSEPA(), SCIP_DECL_NLHDLRSOLLINEARIZE(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPRESPROP(), SCIP_DECL_SORTINDCOMP(), SCIPaddVarImplication(), SCIPaggrRowCancelVarWithBound(), SCIPaggrRowGetMinActivity(), SCIPapplyHeurDualval(), SCIPapplyHeurSubNlp(), SCIPapplyProximity(), SCIPboundchgUndo(), SCIPbranchGetBranchingPoint(), SCIPchgVarUbLazy(), SCIPclassifyConstraintTypesLinear(), SCIPcliqueDelVar(), SCIPcliquetableAdd(), SCIPcomputeVarUbGlobal(), SCIPconflictAddConflictCon(), SCIPconflictAddRelaxedBound(), SCIPconflictGetVarUb(), SCIPconsResolvePropagation(), SCIPcreateConsCumulative(), SCIPcreateConsLinking(), SCIPcreateConsOrbitopeFull(), SCIPcreateConsOrbitopePP(), SCIPcreateFiniteSolCopy(), SCIPcutGenerationHeuristicCMIR(), SCIPcutsTightenCoefficients(), SCIPgetDualProof(), SCIPgetSymActiveVariables(), SCIPimplicsAdd(), SCIPlpRecomputeLocalAndGlobalPseudoObjval(), SCIPlpUpdateVarLbGlobal(), SCIPlpUpdateVarObj(), SCIPmatrixCreate(), SCIPmatrixPrintRow(), SCIPmergeRowprepTerms(), SCIPnodeAddBoundinfer(), SCIPpropResolvePropagation(), SCIPreoptSaveGlobalBounds(), SCIProwExactGenerateFpRows(), SCIPseparateRelaxedKnapsack(), SCIPshrinkDisjunctiveVarSet(), SCIPsolAdjustImplicitSolVals(), SCIPsolCheck(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPtightenVarLbGlobal(), SCIPtightenVarUbGlobal(), SCIPundoBdchgsProof(), SCIPvarAddHoleGlobal(), SCIPvarAddImplic(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarCopy(), SCIPvarGetMultaggrLbGlobal(), SCIPvarGetMultaggrUbGlobal(), SCIPvarGetNLPSol_rec(), SCIPvarGetProbvarBinary(), SCIPvarGetRelaxSol(), SCIPvarPrint(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarUpdateBestRootSol(), SCIPvisualizeConsCumulative(), SCIPwriteBnd(), SCIPwriteLp(), selectShifting(), sepaImplBoundCutsSOS1(), separateCuts(), separateIndicators(), separatePerspective(), sepastoreApplyLb(), sepastoreApplyUb(), sepastoreIsBdchgApplicable(), setSymmetryData(), setupAggregationData(), setupAndSolveCumulativeSubscip(), setupAndSolveSubscip(), setupAndSolveSubscipRapidlearning(), shiftValues(), simplifyInequalities(), singletonColumnStuffing(), skipRedundantBdchginfos(), solCheckExact(), solveAndEvalSubscip(), solveClassification(), solveCumulative(), solveLp(), solveMinIISC(), solveSubNLP(), sortAndMergeClique(), termIsConstant(), tightenBounds(), tightenCoefs(), tightenDualproof(), tightenSingleVar(), tightenVariables(), tightenVarLb(), tightenVarLbGlobalSafe(), tightenVarUbGlobalSafe(), transformDualredsToBounddisjunction(), transformNonIntegralRow(), treeAddPendingBdchg(), tryAdd2variableBuffer(), tryAddGadgetBilinearProductSignedPerm(), tryAddGadgetSquaredDifference(), tryFixVar(), tryUpgradingXor(), unlockVariableCardinality(), unlockVariableSOS1(), unlockVariableSOS2(), updateBdchgQueue(), updateDistances(), updateFirstRow(), updateFirstRowGlobal(), updateSlacks(), varAddImplic(), varAddVbound(), varIncRootboundchgs(), varIsCenteredAt0(), varIsFixed(), varIsSemicontinuous(), varProcessAddHoleGlobal(), varVecAddScaledRowCoefsSafely(), weakenConflictRow(), and weakenVarConflictRow().
◆ SCIPvarGetUbGlobalExact()
| SCIP_RATIONAL * SCIPvarGetUbGlobalExact | ( | SCIP_VAR * | var | ) |
gets global upper bound of variable
gets exact global upper bound of variable
- Parameters
-
var problem variable
Definition at line 24152 of file var.c.
References SCIP_Var::exactdata, SCIP_VarDataExact::glbdom, NULL, and SCIP_DomExact::ub.
Referenced by consdataCreate(), cutsRoundMIRSafely(), readBoundsExact(), rowExactCreateFromRowLimitEncodingLength(), SCIP_DECL_CONSCHECK(), SCIP_DECL_SORTINDCOMP(), SCIPboundchgUndo(), SCIPcertificateInit(), SCIPcertificateInitTransFile(), SCIPlpExactUpdateVarObj(), SCIPmatrixCreate(), SCIPnodeAddBoundinferExact(), SCIProwExactGenerateFpRows(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPvarPrint(), solCheckExact(), and varProcessChgUbGlobal().
◆ SCIPvarGetHolelistGlobal()
| SCIP_HOLELIST * SCIPvarGetHolelistGlobal | ( | SCIP_VAR * | var | ) |
gets the global hole list of an active variable
- Parameters
-
var problem variable
Definition at line 24164 of file var.c.
References SCIP_Var::glbdom, SCIP_Dom::holelist, and NULL.
Referenced by SCIPvarAggregate(), SCIPvarAggregateExact(), SCIPvarCopy(), SCIPvarMultiaggregate(), SCIPvarMultiaggregateExact(), and SCIPvarPrint().
◆ SCIPvarGetBestBoundGlobal()
gets best global bound of variable with respect to the objective function
- Parameters
-
var problem variable
Definition at line 24174 of file var.c.
References SCIP_Var::glbdom, SCIP_Dom::lb, NULL, SCIP_Var::obj, and SCIP_Dom::ub.
◆ SCIPvarGetBestBoundGlobalExact()
| SCIP_RATIONAL * SCIPvarGetBestBoundGlobalExact | ( | SCIP_VAR * | var | ) |
gets best global bound of variable with respect to the objective function
gets best exact global bound of variable with respect to the objective function
- Parameters
-
var problem variable
Definition at line 24187 of file var.c.
References SCIP_Var::exactdata, SCIP_VarDataExact::glbdom, SCIP_DomExact::lb, NULL, SCIP_VarDataExact::obj, SCIPrationalIsNegative(), and SCIP_DomExact::ub.
◆ SCIPvarGetWorstBoundGlobal()
gets worst global bound of variable with respect to the objective function
- Parameters
-
var problem variable
Definition at line 24204 of file var.c.
References SCIP_Var::glbdom, SCIP_Dom::lb, NULL, SCIP_Var::obj, and SCIP_Dom::ub.
Referenced by initSolve().
◆ SCIPvarGetWorstBoundGlobalExact()
| SCIP_RATIONAL * SCIPvarGetWorstBoundGlobalExact | ( | SCIP_VAR * | var | ) |
gets worst global bound of variable with respect to the objective function
gets worst exact global bound of variable with respect to the objective function
- Parameters
-
var problem variable
Definition at line 24217 of file var.c.
References SCIP_Var::exactdata, SCIP_VarDataExact::glbdom, SCIP_DomExact::lb, NULL, SCIP_VarDataExact::obj, SCIPrationalIsNegative(), and SCIP_DomExact::ub.
◆ SCIPvarGetLbLocal()
gets current lower bound of variable
- Parameters
-
var problem variable
Definition at line 24234 of file var.c.
References SCIP_Dom::lb, SCIP_Var::locdom, and NULL.
Referenced by addBilinearTermToCut(), addBoundViolated(), addBranchingComplementaritiesSOS1(), addCand(), addCliqueDataEntry(), addColToCut(), addConflictReasonVars(), addCut(), addExprsViolScore(), addFacetToCut(), addFixedVarsConss(), addLinearTermToCut(), addRelaxation(), addRltTerm(), addSplitcons(), addSSTConssOrbitAndUpdateSST(), addUseConstraint(), adjustKernelVars(), analyseInfeasibelCoreInsertion(), analyseOnoffBounds(), analyseVarOnoffBounds(), analyzeConflictOne(), analyzeConflictUpperbound(), analyzeConflictZero(), analyzeEnergyRequirement(), analyzeGenVBoundConflict(), analyzeViolation(), analyzeZeroResultant(), applyAlternativeBoundsBranching(), applyAlternativeBoundsFixing(), applyBdchgs(), applyBinaryConstraints(), applyBoundChgs(), applyBoundHeur(), applyCliqueFixings(), applyDomainReductions(), applyGenVBound(), applyNlobbt(), applyObbt(), applyOptcumulative(), applyOptcumulativeFixings(), applyOrbitalBranchingPropagations(), applyOrbitalReductionPart(), applyProbing(), applyProbingVar(), applyVboundsFixings(), areBoundsChanged(), assertIsOrbitopeMatrix(), bilinboundGetScore(), branch(), branchBalancedCardinality(), branchcandCalcLPCands(), branchcandCalcLPCandsExact(), branching(), branchOnVar(), branchruledataUpdateCurrentBounds(), branchUnbalancedCardinality(), buildMod2Matrix(), calcBranchScore(), calculateAlternatives(), catchEvent(), catchEventBinvar(), changeAncestorBranchings(), checkBounddisjunction(), checkCounters(), checkExec(), checkFeasible(), checkForOverlapping(), checkIISlocal(), checkImplicsApplied(), checkKnapsack(), checkLogicor(), checkOverloadViaThetaTree(), checkRikun(), checkSetupTolerances(), checkSignomialBounds(), checkSolution(), checkSwitchNonoverlappingSOS1Methods(), checkVarbound(), checkVariable(), chgCoeffWithBound(), chgCoeffWithBoundSafely(), chgProbingBound(), chgQuadCoeffWithBound(), chooseCoefVar(), chooseDoubleVar(), chooseFracVar(), chooseGuidedVar(), choosePscostVar(), chooseVeclenVar(), collectActivities(), collectBranchingCandidates(), collectBranchingCands(), collectCliqueData(), collectDataTTEF(), collectEstLst(), collectIntVars(), collectSolActivities(), collectSolution(), componentSetupWorkingSol(), computeAlternativeBounds(), computeConvexEnvelopeFacet(), computeCut(), computeEnergyContribution(), computeImpliedEst(), computeImpliedLct(), computeMinDistance(), computeRltCut(), computeStandardLPOptimalityCut(), conflictAnalyzeLP(), consCheckRedundancy(), consdataCreate(), consdataCreateRedundant(), consdataGetActivityResiduals(), consdataGetReliableResidualActivity(), consdataPrint(), consdataRecomputeMaxactivity(), consdataRecomputeMaxActivityDelta(), consdataRecomputeMinactivity(), consdataTightenCoefs(), consdataUpdateAddCoef(), consdataUpdateChgCoef(), consdataUpdateDelCoef(), consFixLinkvar(), constraintNonOverlappingGraph(), coretimesUpdateLb(), coretimesUpdateUb(), countKernelVariables(), countSparseSol(), createCoreProfile(), createCoverCuts(), createCoverCutsTimepoint(), createCoveringProblem(), createGenVBound(), createNewSol(), createProjRow(), createSelectedSortedEventpointsSol(), createSolFromNLP(), createSolFromSubScipSol(), createSortedEventpoints(), createSubscip(), CUTOFF_CONSTRAINT(), cutsRoundMIR(), cutsRoundMIRSafely(), cutsRoundStrongCG(), cutTightenCoefs(), cutTightenCoefsQuad(), cutTightenCoefsSafely(), deleteCliqueDataEntry(), deleteVarCardinality(), determineBestBounds(), determineBestBoundsSafely(), domainReductionsCreate(), doSeachEcAggr(), doSolveSubMIP(), dropEvent(), dropEventBinvar(), dryBranch(), dualBoundStrengthening(), enforceCardinality(), enforceConflictgraph(), enforceConstraint(), enforceConstraints(), enforceIndicators(), enforceSol(), estimateBivariateQuotient(), estimateVertexPolyhedral(), evalBound(), evalCorner(), execRelpscost(), executeBranching(), executeBranchingRecursive(), extractCycle(), extractGates(), fillKernels(), filterCands(), filterExistingLP(), filterRound(), findBestLb(), findBestLbSafely(), findComponents(), findMIRBestLb(), findNewBounds(), fixAndPropagate(), fixBounds(), fixIntegerVariable(), fixIntegerVariableLb(), fixInterdiction(), fixVariable(), fixVariableZero(), fixVariableZeroNode(), forbidCover(), generateAverageNBRay(), generateBoundInequalityFromSOS1Cons(), generateBoundInequalityFromSOS1Nodes(), generateCloseCutPoint(), generateRowCardinality(), generateRowSOS2(), generateZerohalfCut(), getBoundConsFromVertices(), getCliqueUnfixedVars(), getClosestVub(), getDiveBdChgsSOS1conflictgraph(), getDiveBdChgsSOS1constraints(), getFilterCoef(), getFixingValue(), getGenVBoundsMinActivity(), getGenVBoundsMinActivityConflict(), getImplVarRedcost(), getIneqViol(), getMaxactImplicObjchg(), getNLPFracVars(), getRandomVariable(), getRelDistance(), getValueScore(), getVarBounds(), getViolSplitWeight(), handle1Cycle(), handleDoubleLexOrbitope(), handleNewVariableCardinality(), handleNewVariableSOS1(), handleNewVariableSOS2(), handleOrbitope(), hasUnfixedSCIndicator(), heurdataUpdateCurrentBounds(), heurExec(), impliesVlbPrecedenceCondition(), improvePoint(), inferboundsEdgeFinding(), inferVariableZero(), initConflictgraph(), initializeSol(), initLP(), initProblem(), initSepa(), isNonstandardPerm(), isPossibleToComputeCut(), isPseudocostUpdateValid(), isViolatedAndNotFixed(), isViolatedSOS1(), liftCliqueVariables(), lpUpdateVarColumn(), lpUpdateVarColumnProved(), lpUpdateVarLoose(), lpUpdateVarLooseProved(), makeSOS1conflictgraphFeasible(), makeSOS1constraintsFeasible(), markRowsXj(), nlpCalcFracVars(), nlpFlushVarAdditions(), nlpSolve(), nlpUpdateVarBounds(), nlrowCalcActivityBounds(), nodeGetSolvalBinaryBigMSOS1(), nodeGetSolvalVarboundLbSOS1(), normalizeWeights(), notifyNlhdlrNewsol(), orbitalReductionGetSymmetryStabilizerSubgroup(), performBranchingNoSol(), performBranchingSol(), performDualfix(), performFixing(), performRandRounding(), performStrongbranchSOS1(), performStrongbranchWithPropagation(), prepareSeparation(), preprocessCliques(), presolRoundCardinality(), presolRoundConsSOS1(), presolRoundIndicator(), presolRoundSOS2(), presolRoundVarsSOS1(), presolveConsEst(), presolvePropagateCons(), presolveRedundantConss(), printBoundSection(), processBinvarFixings(), processFixings(), processRealBoundChg(), processWatchedVars(), projectVbd(), propagateCons(), propagateCutoffboundBinvars(), propagateCutoffboundVar(), propagateLbTTEF(), propagateRedcostBinvar(), propagateRedcostVar(), propagateRootRedcostBinvar(), propagateStaticOrbitope(), propagateTimetable(), propagateTTEF(), propagateUbTTEF(), propagateVariablePair(), propagateVbounds(), propCardinality(), propConsSOS1(), propIndicator(), propSOS2(), propVariableNonzero(), propVariables(), rangedRowPropagation(), recomputeLooseObjectiveValue(), recomputePseudoObjectiveValue(), recomputeSafeLooseObjectiveValue(), recomputeSafePseudoObjectiveValue(), registerBranchingCandidates(), registerBranchingCandidatesAllUnfixed(), removeZeros(), removeZerosQuad(), reoptCheckLocalRestart(), reoptSimilarity(), resolveGenVBoundPropagation(), retransformVariable(), rowCalculateGauss(), rowprepCleanupImproveCoefrange(), rowprepCleanupIntegralCoefs(), rowprepRecordModifiedVar(), sampleRandomPoints(), scaleValSafely(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSENFORELAX(), SCIP_DECL_CONSGETDIVEBDCHGS(), SCIP_DECL_CONSINITLP(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSSEPALP(), SCIP_DECL_CONSSEPASOL(), SCIP_DECL_CONSTRANS(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPR_INTEVALVAR(), SCIP_DECL_EXPR_OWNERPRINT(), SCIP_DECL_EXPRINTEVAL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_NLHDLRENFO(), SCIP_DECL_NLHDLRESTIMATE(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPEXEC(), SCIP_DECL_RELAXEXEC(), SCIP_DECL_SEPAEXECLP(), SCIPaddConflictBinvar(), SCIPaggrRowCancelVarWithBound(), SCIPanalyzeDeductionsProbing(), SCIPapplyLockFixings(), SCIPapplyProbingVar(), SCIPbendersSetupSubproblem(), SCIPbranchcandAddExternCand(), SCIPbranchcandGetPseudoCands(), SCIPbranchcandUpdateVar(), SCIPbranchExecExtern(), SCIPbranchExecLP(), SCIPbranchExecPseudo(), SCIPbranchGetBranchingPoint(), SCIPbranchVar(), SCIPbranchVarVal(), SCIPbranchVarValNary(), SCIPchgVarLb(), SCIPchgVarLbExact(), SCIPchgVarLbGlobal(), SCIPchgVarLbNode(), SCIPchgVarLbProbing(), SCIPcolCreate(), SCIPcomputeVarLbLocal(), SCIPconflictAnalyzePseudo(), SCIPconflictAnalyzeRemainingBdchgs(), SCIPconflictAnalyzeStrongbranch(), SCIPcreateNlpiProblemFromNlRows(), SCIPcreateWorstCaseProfile(), SCIPcutGenerationHeuristicCMIR(), SCIPcutsTightenCoefficients(), SCIPexprDismantle(), SCIPfixVar(), SCIPfixVarProbing(), SCIPgetVarLbAtIndex(), SCIPgetVarStrongbranchFrac(), SCIPgetVarStrongbranchInt(), SCIPgetVarStrongbranchWithPropagation(), SCIPgetVarWasFixedAtIndex(), SCIPinferBinvarCons(), SCIPinferBinvarProp(), SCIPinferVarLbCons(), SCIPinferVarLbProp(), SCIPinferVarUbCons(), SCIPinferVarUbProp(), SCIPlpEndDive(), SCIPlpRecomputeLocalAndGlobalPseudoObjval(), SCIPlpStartDive(), SCIPlpUpdateVarObj(), SCIPlpUpdateVarUb(), SCIPmakeIndicatorFeasible(), SCIPmergeRowprepTerms(), SCIPnlpEndDive(), SCIPnodeAddBoundinfer(), SCIPnodeAddHoleinfer(), SCIPnodePropagateImplics(), SCIPperformGenericDivingAlgorithm(), SCIPpricestoreAddBdviolvar(), SCIPpricestoreAddProbVars(), SCIPpricestoreAddVar(), SCIPpricestoreResetBounds(), SCIPprobUpdateBestRootSol(), SCIPreoptnodeAddCons(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), SCIPseparateRelaxedKnapsack(), SCIPsetBinaryVarIndicator(), SCIPsnprintfProbingStats(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPtightenVarLb(), SCIPtightenVarLbExact(), SCIPtightenVarLbGlobal(), SCIPtreeBranchVar(), SCIPtreeBranchVarExact(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPupdateNlpiProblem(), SCIPupgradeConsLinear(), SCIPvarAddHoleLocal(), SCIPvarChgLbGlobal(), SCIPvarChgUbGlobal(), SCIPvarCopy(), SCIPvarGetImplRedcost(), SCIPvarGetMultaggrLbLocal(), SCIPvarGetMultaggrUbLocal(), SCIPvarGetNLPSol_rec(), SCIPvarGetRelaxSol(), SCIPvarPrint(), SCIPvisualCutoffNode(), SCIPvisualNewChild(), SCIPvisualSolvedNode(), SCIPvisualUpdateChild(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), scoreBranchingCandidates(), selectBranchVar(), selectNextDiving(), selectVarRecursive(), selectVarStart(), separateCons(), separateCuts(), separateMcCormickImplicit(), separatePerspective(), sepastoreApplyLb(), sepastoreApplyUb(), sepastoreIsBdchgApplicable(), setupAggregationData(), setupAndSolveFiniteSolSubscip(), setVarToNearestBound(), solveAndEvalSubscip(), solveCumulative(), solveIndependentCons(), solveNLP(), solveNlp(), solveNode(), solveSubproblem(), sparsifyIntercut(), startProbing(), TCLIQUE_NEWSOL(), termIsConstant(), testColumnsAreSymmetricallyEquivalent(), tightenAuxVarBounds(), tightenBoundProbing(), tightenBounds(), tightenCoefs(), tightenedLinkvar(), tightenOnBounds(), tightenSingleVar(), tightenUbTTEF(), tightenVarBounds(), tightenVarBoundsEasy(), tightenVariables(), tightenVarLb(), tightenVarLbGlobalSafe(), tightenVarsBoundsSOS1(), tightenVarUb(), transformNonIntegralRow(), transformVariable(), translateSubSol(), treeApplyPendingBdchgs(), tryOneOpt(), trySolCandidate(), updateBestCandidate(), updateBilinearRelaxation(), updateColumnOrderWhenBranchingOnColumn(), updateFirstRow(), updateImplicationGraphSOS1(), updatePseudocost(), updateStatistics(), updateVariableRounding(), updateWeightsTCliquegraph(), updateWeightSums(), useBilinIneqs(), varIsFixed(), varIsFixedLocal(), varIsUnfixedLocal(), varProcessAddHoleLocal(), varProcessBoundChanges(), writeFzn(), writeOpbFixedVars(), and writeOpbRelevantAnds().
◆ SCIPvarGetLbLocalExact()
| SCIP_RATIONAL * SCIPvarGetLbLocalExact | ( | SCIP_VAR * | var | ) |
gets current lower bound of variable
gets current exact lower bound of variable
- Parameters
-
var problem variable
Definition at line 24244 of file var.c.
References SCIP_Var::exactdata, SCIP_DomExact::lb, SCIP_VarDataExact::locdom, and NULL.
Referenced by boundchgApplyExact(), certificatePrintWeakDerStart(), cutsRoundMIRSafely(), SCIP_DECL_CONSCHECK(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintDualboundExactLP(), SCIPcolExactCreate(), SCIPcomputeVarLbLocalExact(), SCIPfixVarExact(), SCIPinferVarLbConsExact(), SCIPinferVarUbConsExact(), SCIPlpExactEndDive(), SCIPlpExactStartDive(), SCIPlpExactUpdateVarColumn(), SCIPlpExactUpdateVarLoose(), SCIPlpExactUpdateVarObj(), SCIPnodeAddBoundinfer(), SCIPnodeAddBoundinferExact(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgUbGlobalExact(), SCIPvarGetMultaggrLbLocalExact(), SCIPvarGetMultaggrUbLocalExact(), and SCIPvarPrint().
◆ SCIPvarGetUbLocal()
gets current upper bound of variable
- Parameters
-
var problem variable
Definition at line 24268 of file var.c.
References SCIP_Var::locdom, NULL, and SCIP_Dom::ub.
Referenced by addBilinearTermToCut(), addBoundViolated(), addBranchingComplementaritiesSOS1(), addCand(), addCliqueDataEntry(), addColToCut(), addConflictReasonVars(), addCut(), addExprsViolScore(), addFacetToCut(), addFixedVarsConss(), addLinearTermToCut(), addRelaxation(), addRltTerm(), addSplitcons(), addSSTConssOrbitAndUpdateSST(), analyseInfeasibelCoreInsertion(), analyseOnoffBounds(), analyseVarOnoffBounds(), analyzeConflictLowerbound(), analyzeConflictOne(), analyzeConflictZero(), analyzeEnergyRequirement(), analyzeGenVBoundConflict(), analyzeViolation(), analyzeZeroResultant(), applyAlternativeBoundsBranching(), applyAlternativeBoundsFixing(), applyBdchgs(), applyBoundChgs(), applyBoundHeur(), applyCliqueFixings(), applyDomainReductions(), applyGenVBound(), applyNlobbt(), applyObbt(), applyOptcumulative(), applyOptcumulativeFixings(), applyOrbitalBranchingPropagations(), applyOrbitalReductionPart(), applyProbing(), applyProbingVar(), applyVboundsFixings(), areBoundsChanged(), assertIsOrbitopeMatrix(), bilinboundGetScore(), branch(), branchBalancedCardinality(), branchcandCalcLPCands(), branchcandCalcLPCandsExact(), branching(), branchOnVar(), branchruledataUpdateCurrentBounds(), branchUnbalancedCardinality(), buildMod2Matrix(), calcBranchScore(), calculateAlternatives(), catchEvent(), catchEventBinvar(), changeAncestorBranchings(), checkBounddisjunction(), checkCounters(), checkExec(), checkFeasible(), checkForOverlapping(), checkIISlocal(), checkImplicsApplied(), checkKnapsack(), checkOverloadViaThetaTree(), checkRikun(), checkSetupTolerances(), checkSignomialBounds(), checkSolution(), checkSwitchNonoverlappingSOS1Methods(), checkVarbound(), checkVariable(), chgCoeffWithBound(), chgCoeffWithBoundSafely(), chgProbingBound(), chgQuadCoeffWithBound(), chooseCoefVar(), chooseDoubleVar(), chooseFracVar(), chooseGuidedVar(), choosePscostVar(), chooseVeclenVar(), collectActivities(), collectBranchingCandidates(), collectBranchingCands(), collectCliqueData(), collectDataTTEF(), collectIntVars(), collectSolActivities(), collectSolution(), COLORprobPrintStableSet(), COLORprobPrintStableSets(), componentSetupWorkingSol(), computeAlternativeBounds(), computeConvexEnvelopeFacet(), computeCut(), computeEnergyContribution(), computeImpliedEst(), computeImpliedLct(), computeMinDistance(), computeRltCut(), computeStandardLPOptimalityCut(), conflictAnalyzeLP(), consCheckRedundancy(), consdataCheck(), consdataCreate(), consdataCreateRedundant(), consdataGetActivityResiduals(), consdataGetReliableResidualActivity(), consdataPrint(), consdataRecomputeMaxactivity(), consdataRecomputeMaxActivityDelta(), consdataRecomputeMinactivity(), consdataTightenCoefs(), consdataUpdateAddCoef(), consdataUpdateChgCoef(), consdataUpdateDelCoef(), consFixLinkvar(), constraintNonOverlappingGraph(), coretimesUpdateLb(), coretimesUpdateUb(), countSparseSol(), createCoreProfile(), createCoverCuts(), createCoverCutsTimepoint(), createCoveringProblem(), createGenVBound(), createNewSol(), createProjRow(), createSelectedSortedEventpointsSol(), createSolFromNLP(), createSolFromSubScipSol(), createSortedEventpoints(), createSubscip(), CUTOFF_CONSTRAINT(), cutsRoundMIR(), cutsRoundMIRSafely(), cutsRoundStrongCG(), cutTightenCoefs(), cutTightenCoefsQuad(), cutTightenCoefsSafely(), deleteCliqueDataEntry(), determineBestBounds(), determineBestBoundsSafely(), domainReductionsCreate(), doSeachEcAggr(), doSolveSubMIP(), dropEvent(), dropEventBinvar(), dryBranch(), dualBoundStrengthening(), enforceCardinality(), enforceConflictgraph(), enforceConstraints(), enforceIndicators(), enforceSol(), estimateBivariateQuotient(), estimateVertexPolyhedral(), evalBound(), evalCorner(), execRelpscost(), executeBranching(), executeBranchingRecursive(), extractCycle(), extractGates(), filterCands(), filterExistingLP(), filterRound(), findBestUb(), findBestUbSafely(), findComponents(), findMIRBestUb(), findNewBounds(), fixAndPropagate(), fixBounds(), fixIntegerVariable(), fixIntegerVariableUb(), fixInterdiction(), fixVariable(), fixVariableZero(), fixVariableZeroNode(), generateAverageNBRay(), generateBoundInequalityFromSOS1Cons(), generateBoundInequalityFromSOS1Nodes(), generateCloseCutPoint(), generateRowSOS2(), generateZerohalfCut(), getBoundConsFromVertices(), getCliqueUnfixedVars(), getClosestVlb(), getDiveBdChgsSOS1conflictgraph(), getDiveBdChgsSOS1constraints(), getFilterCoef(), getFixingValue(), getGenVBoundsMinActivity(), getGenVBoundsMinActivityConflict(), getImplVarRedcost(), getIneqViol(), getMaxactImplicObjchg(), getNLPFracVars(), getRandomVariable(), getRelDistance(), getScore(), getValueScore(), getVarBounds(), getViolSplitWeight(), handle1Cycle(), handleNewVariableSOS1(), handleNewVariableSOS2(), hasUnfixedSCIndicator(), ObjPricerVRP::have_edge(), heurdataUpdateCurrentBounds(), heurExec(), impliesVlbPrecedenceCondition(), improvePoint(), indicatorVarIsInteresting(), inferboundsEdgeFinding(), inferVariableZero(), initConflictgraph(), initLP(), initProblem(), initSepa(), isNonstandardPerm(), isPossibleToComputeCut(), isPseudocostUpdateValid(), isViolatedAndNotFixed(), isViolatedSOS1(), liftCliqueVariables(), lpUpdateVarColumn(), lpUpdateVarColumnProved(), lpUpdateVarLoose(), lpUpdateVarLooseProved(), makeSOS1conflictgraphFeasible(), makeSOS1constraintsFeasible(), markRowsXj(), nlpCalcFracVars(), nlpFlushVarAdditions(), nlpSolve(), nlpUpdateVarBounds(), nlrowCalcActivityBounds(), nodeGetSolvalBinaryBigMSOS1(), nodeGetSolvalVarboundUbSOS1(), normalizeWeights(), notifyNlhdlrNewsol(), orbitalReductionGetSymmetryStabilizerSubgroup(), performBranchingNoSol(), performBranchingSol(), performDualfix(), performFixing(), performRandRounding(), performStrongbranchSOS1(), performStrongbranchWithPropagation(), prepareSeparation(), preprocessCliques(), presolRoundCardinality(), presolRoundConsSOS1(), presolRoundIndicator(), presolRoundSOS2(), presolRoundVarsSOS1(), presolveConsLct(), presolvePropagateCons(), presolveRedundantConss(), printBoundSection(), processBinvarFixings(), processFixings(), processRealBoundChg(), processWatchedVars(), projectVbd(), propagateCons(), propagateCutoffboundBinvars(), propagateCutoffboundVar(), propagateLbTTEF(), propagateRedcostBinvar(), propagateRedcostVar(), propagateRootRedcostBinvar(), propagateStaticOrbitope(), propagateTimetable(), propagateTTEF(), propagateUbTTEF(), propagateVariablePair(), propagateVbounds(), propCardinality(), propConsSOS1(), propIndicator(), propSOS2(), propVariableNonzero(), propVariables(), rangedRowPropagation(), recomputeLooseObjectiveValue(), recomputePseudoObjectiveValue(), recomputeSafeLooseObjectiveValue(), recomputeSafePseudoObjectiveValue(), registerBranchingCandidates(), registerBranchingCandidatesAllUnfixed(), removeFixedBinvars(), removeZeros(), removeZerosQuad(), reoptCheckLocalRestart(), reoptSimilarity(), resolveGenVBoundPropagation(), retransformVariable(), rowCalculateGauss(), rowprepCleanupImproveCoefrange(), rowprepCleanupIntegralCoefs(), rowprepRecordModifiedVar(), sampleRandomPoints(), scaleValSafely(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSENFORELAX(), SCIP_DECL_CONSGETDIVEBDCHGS(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSTRANS(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPR_INTEVALVAR(), SCIP_DECL_EXPR_OWNERPRINT(), SCIP_DECL_EXPRINTEVAL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_NLHDLRENFO(), SCIP_DECL_NLHDLRESTIMATE(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PRICERFARKAS(), SCIP_DECL_PROPEXEC(), SCIP_DECL_RELAXEXEC(), SCIP_DECL_SEPAEXECLP(), SCIPaddConflictBinvar(), SCIPaggrRowCancelVarWithBound(), SCIPanalyzeDeductionsProbing(), SCIPapplyLockFixings(), SCIPapplyProbingVar(), SCIPbendersSetupSubproblem(), SCIPbranchcandAddExternCand(), SCIPbranchcandGetPseudoCands(), SCIPbranchcandUpdateVar(), SCIPbranchExecExtern(), SCIPbranchExecLP(), SCIPbranchExecPseudo(), SCIPbranchGetBranchingPoint(), SCIPbranchVar(), SCIPbranchVarVal(), SCIPbranchVarValNary(), SCIPchgVarUb(), SCIPchgVarUbExact(), SCIPchgVarUbGlobal(), SCIPchgVarUbNode(), SCIPchgVarUbProbing(), SCIPcolCreate(), SCIPcomputeVarUbLocal(), SCIPconflictAnalyzePseudo(), SCIPconflictAnalyzeRemainingBdchgs(), SCIPconflictAnalyzeStrongbranch(), SCIPcreateNlpiProblemFromNlRows(), SCIPcreateWorstCaseProfile(), SCIPcutGenerationHeuristicCMIR(), SCIPcutsTightenCoefficients(), SCIPexprDismantle(), SCIPfixVar(), SCIPfixVarProbing(), SCIPgetVarStrongbranchFrac(), SCIPgetVarStrongbranchInt(), SCIPgetVarStrongbranchWithPropagation(), SCIPgetVarUbAtIndex(), SCIPgetVarWasFixedAtIndex(), SCIPinferBinvarCons(), SCIPinferBinvarProp(), SCIPinferVarLbCons(), SCIPinferVarLbProp(), SCIPinferVarUbCons(), SCIPinferVarUbProp(), SCIPlpEndDive(), SCIPlpRecomputeLocalAndGlobalPseudoObjval(), SCIPlpStartDive(), SCIPlpUpdateVarLb(), SCIPlpUpdateVarObj(), SCIPmergeRowprepTerms(), SCIPnlpEndDive(), SCIPnodeAddBoundinfer(), SCIPnodeAddHoleinfer(), SCIPnodePropagateImplics(), SCIPperformGenericDivingAlgorithm(), SCIPpricestoreAddBdviolvar(), SCIPpricestoreAddProbVars(), SCIPpricestoreAddVar(), SCIPpricestoreResetBounds(), SCIPprobUpdateBestRootSol(), SCIPreoptnodeAddCons(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), SCIPseparateRelaxedKnapsack(), SCIPsnprintfProbingStats(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPtightenVarUb(), SCIPtightenVarUbExact(), SCIPtightenVarUbGlobal(), SCIPtreeBranchVar(), SCIPtreeBranchVarExact(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPupdateNlpiProblem(), SCIPupgradeConsLinear(), SCIPvarAddHoleLocal(), SCIPvarChgLbGlobal(), SCIPvarChgUbGlobal(), SCIPvarCopy(), SCIPvarGetImplRedcost(), SCIPvarGetMultaggrLbLocal(), SCIPvarGetMultaggrUbLocal(), SCIPvarGetNLPSol_rec(), SCIPvarGetRelaxSol(), SCIPvarPrint(), SCIPvisualCutoffNode(), SCIPvisualNewChild(), SCIPvisualSolvedNode(), SCIPvisualUpdateChild(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), scoreBranchingCandidates(), selectBranchVar(), selectNextDiving(), selectVarRecursive(), selectVarStart(), separateCons(), separateCuts(), separateIndicators(), separateMcCormickImplicit(), separatePerspective(), sepastoreApplyLb(), sepastoreApplyUb(), sepastoreIsBdchgApplicable(), setupAggregationData(), setupAndSolveFiniteSolSubscip(), setVarToNearestBound(), solveAndEvalSubscip(), solveCumulative(), solveIndependentCons(), solveNLP(), solveNlp(), solveNode(), solveSubproblem(), sparsifyIntercut(), startProbing(), TCLIQUE_NEWSOL(), termIsConstant(), testColumnsAreSymmetricallyEquivalent(), tightenAuxVarBounds(), tightenBoundProbing(), tightenBounds(), tightenCoefs(), tightenedLinkvar(), tightenLbTTEF(), tightenOnBounds(), tightenSingleVar(), tightenVarBounds(), tightenVarBoundsEasy(), tightenVariables(), tightenVarLb(), tightenVarsBoundsSOS1(), tightenVarUb(), tightenVarUbGlobalSafe(), transformNonIntegralRow(), transformVariable(), translateSubSol(), treeApplyPendingBdchgs(), tryOneOpt(), trySolCandidate(), updateBestCandidate(), updateBilinearRelaxation(), updateColumnOrderWhenBranchingOnColumn(), updateFirstRow(), updateImplicationGraphSOS1(), updatePseudocost(), updateStatistics(), updateVariableRounding(), updateWeightsTCliquegraph(), useBilinIneqs(), varIsFixed(), varIsFixedLocal(), varIsUnfixedLocal(), varProcessAddHoleLocal(), varProcessBoundChanges(), writeFzn(), writeOpbFixedVars(), and writeOpbRelevantAnds().
◆ SCIPvarGetUbLocalExact()
| SCIP_RATIONAL * SCIPvarGetUbLocalExact | ( | SCIP_VAR * | var | ) |
gets current upper bound of variable
gets current exact upper bound of variable
- Parameters
-
var problem variable
Definition at line 24278 of file var.c.
References SCIP_Var::exactdata, SCIP_VarDataExact::locdom, NULL, and SCIP_DomExact::ub.
Referenced by boundchgApplyExact(), certificatePrintWeakDerStart(), cutsRoundMIRSafely(), SCIP_DECL_CONSCHECK(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcertificatePrintDualboundExactLP(), SCIPcolExactCreate(), SCIPcomputeVarUbLocalExact(), SCIPfixVarExact(), SCIPinferVarLbConsExact(), SCIPinferVarUbConsExact(), SCIPlpExactEndDive(), SCIPlpExactStartDive(), SCIPlpExactUpdateVarColumn(), SCIPlpExactUpdateVarLoose(), SCIPlpExactUpdateVarObj(), SCIPnodeAddBoundinfer(), SCIPnodeAddBoundinferExact(), SCIPsolGetVal(), SCIPsolGetValExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgUbGlobalExact(), SCIPvarGetMultaggrLbLocalExact(), SCIPvarGetMultaggrUbLocalExact(), and SCIPvarPrint().
◆ SCIPvarGetHolelistLocal()
| SCIP_HOLELIST * SCIPvarGetHolelistLocal | ( | SCIP_VAR * | var | ) |
gets the current hole list of an active variable
- Parameters
-
var problem variable
Definition at line 24302 of file var.c.
References SCIP_Dom::holelist, SCIP_Var::locdom, and NULL.
Referenced by SCIPvarCopy(), and SCIPvarPrint().
◆ SCIPvarGetBestBoundLocal()
gets best local bound of variable with respect to the objective function
- Parameters
-
var problem variable
Definition at line 24312 of file var.c.
References SCIP_Dom::lb, SCIP_Var::locdom, NULL, SCIP_Var::obj, and SCIP_Dom::ub.
Referenced by addBoundViolated(), consdataComputePseudoActivity(), nlpAddVars(), SCIPnlpGetPseudoObjval(), SCIPnlrowRecalcPseudoActivity(), SCIPvarGetLPSol_rec(), SCIPvarGetPseudoSol(), and SCIPvarGetPseudoSol_rec().
◆ SCIPvarGetBestBoundLocalExact()
| SCIP_RATIONAL * SCIPvarGetBestBoundLocalExact | ( | SCIP_VAR * | var | ) |
gets best local bound of variable with respect to the objective function
gets best exact local bound of variable with respect to the objective function
- Parameters
-
var problem variable
Definition at line 24325 of file var.c.
References SCIP_Var::exactdata, SCIP_DomExact::lb, SCIP_VarDataExact::locdom, NULL, SCIP_VarDataExact::obj, SCIPrationalIsNegative(), and SCIP_DomExact::ub.
Referenced by consdataComputePseudoActivity(), SCIPvarGetLPSolExact_rec(), SCIPvarGetPseudoSolExact(), and SCIPvarGetPseudoSolExact_rec().
◆ SCIPvarGetWorstBoundLocal()
gets worst local bound of variable with respect to the objective function
- Parameters
-
var problem variable
Definition at line 24342 of file var.c.
References SCIP_Dom::lb, SCIP_Var::locdom, NULL, SCIP_Var::obj, and SCIP_Dom::ub.
Referenced by SCIPtreeBranchVar(), SCIPtreeBranchVarExact(), and SCIPtreeBranchVarNary().
◆ SCIPvarGetWorstBoundLocalExact()
| SCIP_RATIONAL * SCIPvarGetWorstBoundLocalExact | ( | SCIP_VAR * | var | ) |
gets worst local bound of variable with respect to the objective function
gets worst exact local bound of variable with respect to the objective function
- Parameters
-
var problem variable
Definition at line 24355 of file var.c.
References SCIP_Var::exactdata, SCIP_DomExact::lb, SCIP_VarDataExact::locdom, NULL, SCIP_VarDataExact::obj, SCIPrationalIsNegative(), and SCIP_DomExact::ub.
◆ SCIPvarGetBestBoundType()
| SCIP_BOUNDTYPE SCIPvarGetBestBoundType | ( | SCIP_VAR * | var | ) |
gets type (lower or upper) of best bound of variable with respect to the objective function
- Parameters
-
var problem variable
Definition at line 24372 of file var.c.
References NULL, SCIP_Var::obj, SCIP_BOUNDTYPE_LOWER, and SCIP_BOUNDTYPE_UPPER.
Referenced by adjustCutoffbound(), collectMinactImplicVars(), collectMinactObjchg(), collectMinactVar(), getMinactObjchg(), lpGetModifiedPseudoObjvalExact(), objimplicsCreate(), SCIP_DECL_NLHDLRINITSEPA(), SCIPgetVarStrongbranchFrac(), SCIPgetVarStrongbranchInt(), SCIPgetVarStrongbranchWithPropagation(), and SCIPlpGetModifiedPseudoObjval().
◆ SCIPvarGetBestBoundTypeExact()
| SCIP_BOUNDTYPE SCIPvarGetBestBoundTypeExact | ( | SCIP_VAR * | var | ) |
gets type (lower or upper) of best bound of variable with respect to the objective function
- Parameters
-
var problem variable
Definition at line 24385 of file var.c.
References SCIP_Var::exactdata, NULL, SCIP_VarDataExact::obj, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, and SCIPrationalIsNegative().
◆ SCIPvarGetWorstBoundType()
| SCIP_BOUNDTYPE SCIPvarGetWorstBoundType | ( | SCIP_VAR * | var | ) |
gets type (lower or upper) of worst bound of variable with respect to the objective function
- Parameters
-
var problem variable
Definition at line 24400 of file var.c.
References NULL, SCIP_Var::obj, SCIP_BOUNDTYPE_LOWER, and SCIP_BOUNDTYPE_UPPER.
Referenced by getMaxactImplicObjchg(), getMaxactObjchg(), and getMaxObjPseudoactivityResidual().
◆ SCIPvarGetWorstBoundTypeExact()
| SCIP_BOUNDTYPE SCIPvarGetWorstBoundTypeExact | ( | SCIP_VAR * | var | ) |
gets type (lower or upper) of worst bound of variable with respect to the objective function
- Parameters
-
var problem variable
Definition at line 24413 of file var.c.
References SCIP_Var::exactdata, NULL, SCIP_VarDataExact::obj, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, and SCIPrationalIsNegative().
◆ SCIPvarGetLbLazy()
gets lazy lower bound of variable
gets lazy lower bound of variable, returns -infinity if the variable has no lazy lower bound
- Parameters
-
var problem variable
Definition at line 24428 of file var.c.
References SCIP_Var::lazylb, and NULL.
Referenced by SCIPcolCreate(), and SCIPvarPrint().
◆ SCIPvarGetUbLazy()
gets lazy upper bound of variable
gets lazy upper bound of variable, returns infinity if the variable has no lazy upper bound
- Parameters
-
var problem variable
Definition at line 24438 of file var.c.
References SCIP_Var::lazyub, and NULL.
Referenced by SCIPcolCreate(), and SCIPvarPrint().
◆ SCIPvarGetBranchFactor()
gets the branch factor of the variable; this value can be used in the branching methods to scale the score values of the variables; higher factor leads to a higher probability that this variable is chosen for branching
- Parameters
-
var problem variable
Definition at line 24450 of file var.c.
References SCIP_Var::branchfactor, and NULL.
Referenced by SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), SCIPaddVarBranchFactor(), SCIPbranchExecExtern(), SCIPbranchExecLP(), SCIPbranchExecPseudo(), SCIPbranchGetScore(), SCIPcollectBranchingStatistics(), SCIPprintBranchingStatistics(), SCIPscaleVarBranchFactor(), and updateBestCandidate().
◆ SCIPvarGetBranchPriority()
| int SCIPvarGetBranchPriority | ( | SCIP_VAR * | var | ) |
gets the branch priority of the variable; variables with higher priority should always be preferred to variables with lower priority
- Parameters
-
var problem variable
Definition at line 24462 of file var.c.
References SCIP_Var::branchpriority, and NULL.
Referenced by branchcandCalcLPCands(), branchcandCalcLPCandsExact(), branchcandInsertPseudoCand(), branchcandRemovePseudoCand(), branchcandSortPseudoCands(), nlpCalcFracVars(), performBranchingNoSol(), performBranchingSol(), SCIP_DECL_DIALOGEXEC(), SCIPaddVarBranchPriority(), SCIPbranchcandAddExternCand(), SCIPbranchcandContainsExternCand(), SCIPbranchcandUpdateVarBranchPriority(), SCIPbranchExecExtern(), SCIPbranchExecLP(), SCIPbranchExecPseudo(), SCIPcollectBranchingStatistics(), SCIPprintBranchingStatistics(), SCIPtransformMinUC(), SCIPtreeBranchVar(), SCIPtreeBranchVarExact(), SCIPupdateVarBranchPriority(), and selectBestCands().
◆ SCIPvarGetBranchDirection()
| SCIP_BRANCHDIR SCIPvarGetBranchDirection | ( | SCIP_VAR * | var | ) |
gets the preferred branch direction of the variable (downwards, upwards, or auto)
- Parameters
-
var problem variable
Definition at line 24472 of file var.c.
References SCIP_Var::branchdirection, and NULL.
Referenced by SCIP_DECL_DIALOGEXEC(), and SCIPtreeCalcNodeselPriority().
◆ SCIPvarGetNVlbs()
| int SCIPvarGetNVlbs | ( | SCIP_VAR * | var | ) |
gets number of variable lower bounds x >= b_i*z_i + d_i of given variable x
- Parameters
-
var problem variable
Definition at line 24482 of file var.c.
References NULL, SCIPvboundsGetNVbds(), and SCIP_Var::vlbs.
Referenced by collectNonBinaryVBoundData(), computeImpliedEst(), constructSNFRelaxation(), cutsRoundMIR(), cutsRoundStrongCG(), detectHiddenProducts(), detectImpliedBounds(), determineBestBounds(), determineBestBoundsSafely(), dfs(), doMIRBoundSubstitution(), findMIRBestLb(), getClosestVlb(), initData(), performBoundSubstitution(), projectVbd(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVlb(), SCIPvisualizeConsCumulative(), separateCuts(), strengthenVarbounds(), and varIsSemicontinuous().
◆ SCIPvarGetVlbVars()
gets array with bounding variables z_i in variable lower bounds x >= b_i*z_i + d_i of given variable x; the variable bounds are sorted by increasing variable index of the bounding variable z_i (see SCIPvarGetIndex())
- Parameters
-
var problem variable
Definition at line 24494 of file var.c.
References NULL, SCIPvboundsGetVars(), and SCIP_Var::vlbs.
Referenced by collectNonBinaryVBoundData(), computeImpliedEst(), constructSNFRelaxation(), cutsRoundMIR(), cutsRoundStrongCG(), detectHiddenProducts(), determineBestBounds(), determineBestBoundsSafely(), determineBoundForSNF(), dfs(), doMIRBoundSubstitution(), findBestLb(), findBestLbSafely(), findMIRBestLb(), getClosestVlb(), initData(), performBoundSubstitution(), projectVbd(), SCIPcutGenerationHeuristicCMIR(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVlb(), SCIPvisualizeConsCumulative(), separateCuts(), strengthenVarbounds(), transformNonIntegralRow(), and varIsSemicontinuous().
◆ SCIPvarGetVlbCoefs()
gets array with bounding coefficients b_i in variable lower bounds x >= b_i*z_i + d_i of given variable x
- Parameters
-
var problem variable
Definition at line 24504 of file var.c.
References NULL, SCIPvboundsGetCoefs(), and SCIP_Var::vlbs.
Referenced by collectNonBinaryVBoundData(), computeImpliedEst(), constructSNFRelaxation(), cutsRoundMIR(), cutsRoundStrongCG(), detectHiddenProducts(), determineBestBounds(), determineBestBoundsSafely(), dfs(), doMIRBoundSubstitution(), findMIRBestLb(), getClosestVlb(), initData(), performBoundSubstitution(), projectVbd(), SCIPcutGenerationHeuristicCMIR(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVlb(), separateCuts(), strengthenVarbounds(), transformNonIntegralRow(), and varIsSemicontinuous().
◆ SCIPvarGetVlbConstants()
gets array with bounding constants d_i in variable lower bounds x >= b_i*z_i + d_i of given variable x
- Parameters
-
var problem variable
Definition at line 24514 of file var.c.
References NULL, SCIPvboundsGetConstants(), and SCIP_Var::vlbs.
Referenced by collectNonBinaryVBoundData(), computeImpliedEst(), constructSNFRelaxation(), cutsRoundMIR(), cutsRoundStrongCG(), detectHiddenProducts(), determineBestBounds(), determineBestBoundsSafely(), doMIRBoundSubstitution(), findMIRBestLb(), getClosestVlb(), initData(), performBoundSubstitution(), projectVbd(), SCIPcutGenerationHeuristicCMIR(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVlb(), separateCuts(), strengthenVarbounds(), transformNonIntegralRow(), and varIsSemicontinuous().
◆ SCIPvarGetNVubs()
| int SCIPvarGetNVubs | ( | SCIP_VAR * | var | ) |
gets number of variable upper bounds x <= b_i*z_i + d_i of given variable x
- Parameters
-
var problem variable
Definition at line 24524 of file var.c.
References NULL, SCIPvboundsGetNVbds(), and SCIP_Var::vubs.
Referenced by collectNonBinaryVBoundData(), computeImpliedLct(), constructSNFRelaxation(), cutsRoundMIR(), cutsRoundStrongCG(), detectHiddenProducts(), detectImpliedBounds(), determineBestBounds(), determineBestBoundsSafely(), dfs(), doMIRBoundSubstitution(), findMIRBestUb(), getClosestVub(), initData(), performBoundSubstitution(), projectVbd(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVub(), SCIPvisualizeConsCumulative(), separateCuts(), and varIsSemicontinuous().
◆ SCIPvarGetVubVars()
gets array with bounding variables z_i in variable upper bounds x <= b_i*z_i + d_i of given variable x; the variable bounds are sorted by increasing variable index of the bounding variable z_i (see SCIPvarGetIndex())
- Parameters
-
var problem variable
Definition at line 24536 of file var.c.
References NULL, SCIPvboundsGetVars(), and SCIP_Var::vubs.
Referenced by collectNonBinaryVBoundData(), computeImpliedLct(), constructSNFRelaxation(), cutsRoundMIR(), cutsRoundStrongCG(), detectHiddenProducts(), determineBestBounds(), determineBestBoundsSafely(), determineBoundForSNF(), dfs(), doMIRBoundSubstitution(), findBestUb(), findBestUbSafely(), findMIRBestUb(), getClosestVub(), initData(), performBoundSubstitution(), projectVbd(), SCIPcutGenerationHeuristicCMIR(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVub(), SCIPvisualizeConsCumulative(), separateCuts(), transformNonIntegralRow(), and varIsSemicontinuous().
◆ SCIPvarGetVubCoefs()
gets array with bounding coefficients b_i in variable upper bounds x <= b_i*z_i + d_i of given variable x
- Parameters
-
var problem variable
Definition at line 24546 of file var.c.
References NULL, SCIPvboundsGetCoefs(), and SCIP_Var::vubs.
Referenced by collectNonBinaryVBoundData(), computeImpliedLct(), constructSNFRelaxation(), cutsRoundMIR(), cutsRoundStrongCG(), detectHiddenProducts(), determineBestBounds(), determineBestBoundsSafely(), dfs(), doMIRBoundSubstitution(), findMIRBestUb(), getClosestVub(), initData(), performBoundSubstitution(), projectVbd(), SCIPcutGenerationHeuristicCMIR(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVub(), separateCuts(), transformNonIntegralRow(), and varIsSemicontinuous().
◆ SCIPvarGetVubConstants()
gets array with bounding constants d_i in variable upper bounds x <= b_i*z_i + d_i of given variable x
- Parameters
-
var problem variable
Definition at line 24556 of file var.c.
References NULL, SCIPvboundsGetConstants(), and SCIP_Var::vubs.
Referenced by collectNonBinaryVBoundData(), computeImpliedLct(), constructSNFRelaxation(), cutsRoundMIR(), cutsRoundStrongCG(), detectHiddenProducts(), determineBestBounds(), determineBestBoundsSafely(), doMIRBoundSubstitution(), findMIRBestUb(), getClosestVub(), initData(), performBoundSubstitution(), projectVbd(), SCIPcutGenerationHeuristicCMIR(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVub(), separateCuts(), transformNonIntegralRow(), and varIsSemicontinuous().
◆ SCIPvarGetNImpls()
gets number of implications y <= b or y >= b for x == 0 or x == 1 of given active problem variable x, there are no implications for nonbinary variable x
- Parameters
-
var active problem variable varfixing FALSE for implications for x == 0, TRUE for x == 1
Definition at line 24568 of file var.c.
References SCIP_Var::implics, NULL, SCIPimplicsGetNImpls(), and SCIPvarIsActive().
Referenced by catchEvents(), checkImplicsApplied(), collectNonBinaryImplicationData(), detectHiddenProducts(), dfs(), extractCycle(), getMaxactImplicObjchg(), propagateVbounds(), removeConstraintsDueToNegCliques(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRESOLEXEC(), SCIPapplyProbingVar(), SCIPcopyImplicationsCliques(), SCIPnodePropagateImplics(), SCIPvarGetAvgInferences(), SCIPvarGetAvgInferencesCurrentRun(), separateCuts(), and sortVariables().
◆ SCIPvarGetImplVars()
gets array with implication variables y of implications y <= b or y >= b for x == 0 or x == 1 of given active problem variable x, there are no implications for nonbinary variable x; the implications are sorted such that implications with binary implied variables precede the ones with non-binary implied variables, and as a second criteria, the implied variables are sorted by increasing variable index (see SCIPvarGetIndex())
- Parameters
-
var active problem variable varfixing FALSE for implications for x == 0, TRUE for x == 1
Definition at line 24585 of file var.c.
References SCIP_Var::implics, NULL, SCIPimplicsGetVars(), and SCIPvarIsActive().
Referenced by checkImplicsApplied(), collectNonBinaryImplicationData(), detectHiddenProducts(), dfs(), extractCycle(), getMaxactImplicObjchg(), propagateVbounds(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_PRESOLEXEC(), SCIPcopyImplicationsCliques(), SCIPnodePropagateImplics(), and separateCuts().
◆ SCIPvarGetImplTypes()
| SCIP_BOUNDTYPE * SCIPvarGetImplTypes | ( | SCIP_VAR * | var, |
| SCIP_Bool | varfixing | ||
| ) |
gets array with implication types of implications y <= b or y >= b for x == 0 or x == 1 of given active problem variable x (SCIP_BOUNDTYPE_UPPER if y <= b, SCIP_BOUNDTYPE_LOWER if y >= b), there are no implications for nonbinary variable x
- Parameters
-
var active problem variable varfixing FALSE for implications for x == 0, TRUE for x == 1
Definition at line 24600 of file var.c.
References SCIP_Var::implics, NULL, SCIPimplicsGetTypes(), and SCIPvarIsActive().
Referenced by checkImplicsApplied(), collectNonBinaryImplicationData(), detectHiddenProducts(), dfs(), extractCycle(), getMaxactImplicObjchg(), propagateVbounds(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_PRESOLEXEC(), SCIPcopyImplicationsCliques(), SCIPnodePropagateImplics(), and separateCuts().
◆ SCIPvarGetImplBounds()
gets array with implication bounds b of implications y <= b or y >= b for x == 0 or x == 1 of given active problem variable x, there are no implications for nonbinary variable x
- Parameters
-
var active problem variable varfixing FALSE for implications for x == 0, TRUE for x == 1
Definition at line 24614 of file var.c.
References SCIP_Var::implics, NULL, SCIPimplicsGetBounds(), and SCIPvarIsActive().
Referenced by checkImplicsApplied(), collectNonBinaryImplicationData(), detectHiddenProducts(), extractCycle(), getMaxactImplicObjchg(), propagateVbounds(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_PRESOLEXEC(), SCIPcopyImplicationsCliques(), SCIPnodePropagateImplics(), SCIPvarGetImplicVarBounds(), and separateCuts().
◆ SCIPvarGetImplIds()
Gets array with unique ids of implications y <= b or y >= b for x == 0 or x == 1 of given active problem variable x, there are no implications for nonbinary variable x. If an implication is a shortcut, i.e., it was added as part of the transitive closure of another implication, its id is negative, otherwise it is nonnegative.
- Parameters
-
var active problem variable varfixing FALSE for implications for x == 0, TRUE for x == 1
Definition at line 24630 of file var.c.
References SCIP_Var::implics, NULL, SCIPimplicsGetIds(), and SCIPvarIsActive().
Referenced by dfs(), and propagateVbounds().
◆ SCIPvarGetNCliques()
gets number of cliques, the active variable is contained in
- Parameters
-
var active problem variable varfixing FALSE for cliques containing x == 0, TRUE for x == 1
Definition at line 24642 of file var.c.
References SCIP_Var::cliquelist, NULL, and SCIPcliquelistGetNCliques().
Referenced by addLargestCliquePart(), addNextLevelCliques(), addRltTerm(), calcCliquePartitionGreedy(), catchEvents(), collectBinaryCliqueData(), collectMinactImplicVars(), collectMinactVar(), detectImpliedBounds(), dfs(), extractCycle(), getBinaryProductExpr(), getMaxactImplicObjchg(), GUBsetCalcCliquePartition(), insertSortedRootNeighbors(), isNeighbor(), propagateVbounds(), removeConstraintsDueToNegCliques(), SCIP_DECL_HEUREXEC(), SCIPapplyProbingVar(), SCIPcliquelistCheck(), SCIPcliquelistRemoveFromCliques(), SCIPhaveVarsCommonClique(), SCIPnodePropagateImplics(), SCIPvarGetAvgInferences(), SCIPvarGetAvgInferencesCurrentRun(), SCIPvarGetImplRedcost(), separateGLS(), separateHeur(), sortVariables(), tarjan(), tcliquegraphAddCliqueVars(), tcliquegraphAddNode(), and tightenWeightsLift().
◆ SCIPvarGetCliques()
| SCIP_CLIQUE ** SCIPvarGetCliques | ( | SCIP_VAR * | var, |
| SCIP_Bool | varfixing | ||
| ) |
gets array of cliques, the active variable is contained in
- Parameters
-
var active problem variable varfixing FALSE for cliques containing x == 0, TRUE for x == 1
Definition at line 24653 of file var.c.
References SCIP_Var::cliquelist, NULL, and SCIPcliquelistGetCliques().
Referenced by addGLSCliques(), addLargestCliquePart(), addNextLevelCliques(), addRltTerm(), calcCliquePartitionGreedy(), collectBinaryCliqueData(), collectMinactImplicVars(), dfs(), extractCycle(), getBinaryProductExpr(), getMaxactImplicObjchg(), insertSortedRootNeighbors(), isNeighbor(), propagateVbounds(), SCIPcliquelistCheck(), SCIPcliquelistRemoveFromCliques(), SCIPnodePropagateImplics(), SCIPvarGetImplRedcost(), tarjan(), tcliquegraphAddNode(), and tightenWeightsLift().
◆ SCIPvarGetLPSol()
gets primal LP solution value of variable
- Parameters
-
var problem variable
Definition at line 24664 of file var.c.
References SCIP_Var::col, SCIP_Var::data, NULL, SCIP_VARSTATUS_COLUMN, SCIPcolGetPrimsol(), SCIPvarGetLPSol_rec(), and SCIPvarGetStatus().
Referenced by addPathCuts(), addSubtourCuts(), applySeparation(), bilinboundGetScore(), branch(), branchOnBin(), changeSubvariableObjective(), computeFixingrate(), computeIntegerVariableBounds(), computeIntegerVariableBoundsDins(), computeRestrictionToRay(), countKernelVariables(), createCGCuts(), createGenVBound(), DECL_VARFIXINGS(), determineBestBoundsSafely(), determineFixings(), determineVariableFixings(), evalBound(), execRelpscost(), fillKernels(), filterExistingLP(), filterRound(), findNewBounds(), generateAverageNBRay(), generateCloseCutPoint(), generateDifferenceRay(), generateStartingPoint(), getBranchCands(), getFixingValue(), getVariablePscostScore(), getVariableRedcostScore(), handle1Cycle(), handleCycle(), initCurrent(), isPseudocostUpdateValid(), runVanillaStrongBranching(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_HEUREXEC(), SCIP_DECL_SEPAEXECLP(), SCIPgetDualSolVal(), SCIPgetVarSols(), SCIPgetVarStrongbranchFrac(), SCIPgetVarStrongbranchInt(), SCIPnodeAddBoundinfer(), SCIPnodeAddBoundinferExact(), SCIPselectVarPseudoStrongBranching(), SCIPvarGetClosestVlb(), SCIPvarGetClosestVub(), SCIPvarGetLPSol_rec(), SCIPvarGetSol(), selectVarMultAggrBranching(), separateDeterminant(), separatePoint(), solCutIsViolated(), solGetArrayVal(), solUnlinkVar(), solveBilinearLP(), and updatePseudocost().
◆ SCIPvarGetLPSolExact()
| void SCIPvarGetLPSolExact | ( | SCIP_VAR * | var, |
| SCIP_RATIONAL * | res | ||
| ) |
gets primal LP solution value of variable
gets exact primal LP solution value of variable
- Parameters
-
var problem variable res resulting value
Definition at line 24677 of file var.c.
References SCIP_VarDataExact::colexact, SCIP_Var::exactdata, NULL, SCIP_VARSTATUS_COLUMN, SCIPcolExactGetPrimsol(), SCIPrationalSetRational(), SCIPvarGetLPSolExact_rec(), and SCIPvarGetStatusExact().
Referenced by SCIPvarGetLPSolExact_rec(), SCIPvarGetSolExact(), solGetArrayValExact(), and solUnlinkVarExact().
◆ SCIPvarGetNLPSol()
gets primal NLP solution value of variable
- Parameters
-
var problem variable
Definition at line 24691 of file var.c.
References SCIP_Var::nlpsol, NULL, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_LOOSE, SCIPvarGetNLPSol_rec(), and SCIPvarGetStatus().
Referenced by computeFixingrate(), createSolFromNLP(), getFixingValue(), getNlpVarSol(), maximalslack(), nlpCalcFracVars(), nlpDelVarPos(), nlpUpdateVarBounds(), SCIP_DECL_HEUREXEC(), SCIPnlrowRecalcNLPActivity(), SCIProwGetNLPFeasibility(), SCIPsolLinkNLPSol(), SCIPvarGetNLPSol_rec(), separateCuts(), solGetArrayVal(), and solUnlinkVar().
◆ SCIPvarGetBdchgInfoLb()
| SCIP_BDCHGINFO * SCIPvarGetBdchgInfoLb | ( | SCIP_VAR * | var, |
| int | pos | ||
| ) |
return lower bound change info at requested position
- Parameters
-
var problem variable pos requested position
Definition at line 24704 of file var.c.
References SCIP_Var::lbchginfos.
Referenced by SCIPconflictAddRelaxedBound(), and updatePseudocost().
◆ SCIPvarGetNBdchgInfosLb()
| int SCIPvarGetNBdchgInfosLb | ( | SCIP_VAR * | var | ) |
gets the number of lower bound change info array
- Parameters
-
var problem variable
Definition at line 24716 of file var.c.
References SCIP_Var::nlbchginfos.
Referenced by updateBdchgQueue(), and updatePseudocost().
◆ SCIPvarGetBdchgInfoUb()
| SCIP_BDCHGINFO * SCIPvarGetBdchgInfoUb | ( | SCIP_VAR * | var, |
| int | pos | ||
| ) |
return upper bound change info at requested position
- Parameters
-
var problem variable pos requested position
Definition at line 24724 of file var.c.
References SCIP_Var::ubchginfos.
Referenced by SCIPconflictAddRelaxedBound(), and updatePseudocost().
◆ SCIPvarGetNBdchgInfosUb()
| int SCIPvarGetNBdchgInfosUb | ( | SCIP_VAR * | var | ) |
gets the number upper bound change info array
- Parameters
-
var problem variable
Definition at line 24736 of file var.c.
References SCIP_Var::nubchginfos, and NULL.
Referenced by updateBdchgQueue(), and updatePseudocost().
◆ SCIPvarGetValuehistory()
| SCIP_VALUEHISTORY * SCIPvarGetValuehistory | ( | SCIP_VAR * | var | ) |
returns the value based history for the variable
- Parameters
-
var problem variable
Definition at line 24746 of file var.c.
References NULL, and SCIP_Var::valuehistory.
Referenced by getValueScore().
◆ SCIPvarIsRelaxationOnly()
returns whether a variable has been introduced to define a relaxation
These variables are only valid for the current SCIP solve round, they are not contained in any (checked) constraints, but may be used in cutting planes, for example. Relaxation-only variables are not copied by SCIPcopyVars and cuts that contain these variables are not added as linear constraints when restarting or transferring information from a copied SCIP to a SCIP. Also conflicts with relaxation-only variables are not generated at the moment. Relaxation-only variables do not appear in the objective.
returns whether a variable has been introduced to define a relaxation
These variables are only valid for the current SCIP solve round, they are not contained in any (checked) constraints, but may be used in cutting planes, for example. Relaxation-only variables are not copied by SCIPcopyVars and cuts that contain these variables are not added as linear constraints when restarting or transferring information from a copied SCIP to a SCIP. Also conflicts with relaxation-only variables are not generated at the moment.
- Parameters
-
var problem variable
Definition at line 23600 of file var.c.
References NULL, and SCIP_Var::relaxationonly.
Referenced by addCoef(), conflictsetAddBound(), conflictsetAddBounds(), copyCuts(), copyVars(), createAndAddProofcons(), createCoveringProblem(), createSepaData(), determineVariableFixings(), exprIsSemicontinuous(), hasRelaxationOnlyVar(), SCIP_DECL_CONSTRANS(), SCIP_DECL_RELAXEXEC(), SCIPapplyUndercover(), SCIPcopyConsLinear(), SCIPcreateConsLinear(), SCIPgenVBoundAdd(), SCIPgetVarCopy(), SCIPprobExitSolve(), SCIPreoptInstallBounds(), and SCIPreoptSaveGlobalBounds().
◆ SCIPvarMarkRelaxationOnly()
| void SCIPvarMarkRelaxationOnly | ( | SCIP_VAR * | var | ) |
marks that this variable has only been introduced to define a relaxation
The variable must not have a coefficient in the objective and must be deletable. If it is not marked deletable, it will be marked as deletable, which is only possible before the variable is added to a problem.
- Parameters
-
var problem variable
Definition at line 23618 of file var.c.
References NULL, SCIP_Var::relaxationonly, SCIPvarGetObj(), SCIPvarIsDeletable(), SCIPvarMarkDeletable(), and TRUE.
Referenced by createAuxVar(), createDisaggrVars(), and createObjRow().
◆ SCIPvarGetLPSol_rec()
gets primal LP solution value of variable
- Parameters
-
var problem variable
Definition at line 18705 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::col, SCIP_Aggregate::constant, SCIP_Multaggr::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::donotaggr, SCIP_Var::donotmultaggr, SCIP_Var::exactdata, SCIP_Dom::lb, SCIP_DomExact::lb, SCIP_VarDataExact::locdom, SCIP_Var::locdom, SCIP_Var::multaggr, SCIP_Var::negate, SCIP_Var::negatedvar, NULL, SCIP_Multaggr::nvars, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_Multaggr::scalars, SCIP_DEFAULT_INFINITY, SCIP_INVALID, SCIP_Real, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPcolGetPrimsol(), SCIPerrorMessage, SCIPrationalIsEQ(), SCIPvarGetBestBoundLocal(), SCIPvarGetLPSol(), SCIPvarGetStatus(), SCIP_Original::transvar, SCIP_Dom::ub, SCIP_DomExact::ub, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by SCIPvarGetLPSol().
◆ SCIPvarGetLPSolExact_rec()
| void SCIPvarGetLPSolExact_rec | ( | SCIP_VAR * | var, |
| SCIP_RATIONAL * | res | ||
| ) |
gets primal LP solution value of variable
gets exact primal LP solution value of variable or value of safe dual solution
- Parameters
-
var problem variable res store the resulting value
Definition at line 18784 of file var.c.
References SCIP_VarDataExact::aggregate, SCIP_Var::aggregate, SCIP_Var::col, SCIP_VarDataExact::colexact, SCIP_AggregateExact::constant, SCIP_MultaggrExact::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::donotmultaggr, SCIP_Var::exactdata, SCIP_DomExact::lb, SCIP_VarDataExact::locdom, SCIP_VarDataExact::multaggr, SCIP_Var::multaggr, SCIP_Var::negate, SCIP_Var::negatedvar, NULL, SCIP_Multaggr::nvars, SCIP_Var::original, SCIP_AggregateExact::scalar, SCIP_Multaggr::scalars, SCIP_MultaggrExact::scalars, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPcolExactGetPrimsol(), SCIPerrorMessage, SCIPrationalAdd(), SCIPrationalAddProd(), SCIPrationalCreate(), SCIPrationalDiffReal(), SCIPrationalFree(), SCIPrationalIsEQ(), SCIPrationalMult(), SCIPrationalNegate(), SCIPrationalSetInfinity(), SCIPrationalSetRational(), SCIPvarGetBestBoundLocalExact(), SCIPvarGetLPSolExact(), SCIPvarGetStatus(), SCIPvarGetStatusExact(), SCIP_Original::transvar, SCIP_DomExact::ub, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by SCIPvarGetLPSolExact().
◆ SCIPvarGetNLPSol_rec()
gets primal NLP solution value of variable
- Parameters
-
var problem variable
Definition at line 18859 of file var.c.
References SCIP_Var::aggregate, SCIP_Aggregate::constant, SCIP_Multaggr::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::multaggr, SCIP_Var::negate, SCIP_Var::negatedvar, SCIP_Var::nlpsol, NULL, SCIP_Multaggr::nvars, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_Multaggr::scalars, SCIP_INVALID, SCIP_Real, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPvarGetLbGlobal(), SCIPvarGetLbLocal(), SCIPvarGetNLPSol(), SCIPvarGetStatus(), SCIPvarGetUbGlobal(), SCIPvarGetUbLocal(), SCIP_Original::transvar, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by SCIPvarGetNLPSol().
◆ SCIPvarGetPseudoSol()
gets pseudo solution value of variable at current node
gets pseudo solution value of variable
- Parameters
-
var problem variable
Definition at line 24756 of file var.c.
References NULL, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_LOOSE, SCIPvarGetBestBoundLocal(), SCIPvarGetPseudoSol_rec(), and SCIPvarGetStatus().
Referenced by SCIPgetVarSols(), SCIPprobPrintPseudoSol(), SCIPvarGetPseudoSol_rec(), SCIPvarGetSol(), solGetArrayVal(), and solUnlinkVar().
◆ SCIPvarGetPseudoSolExact()
| SCIP_RATIONAL * SCIPvarGetPseudoSolExact | ( | SCIP_VAR * | var | ) |
gets pseudo solution value of variable
gets exact pseudo solution value of variable
- Parameters
-
var problem variable
Definition at line 24769 of file var.c.
References NULL, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_LOOSE, SCIPvarGetBestBoundLocalExact(), SCIPvarGetPseudoSolExact_rec(), and SCIPvarGetStatusExact().
Referenced by SCIPvarGetPseudoSolExact_rec(), SCIPvarGetSolExact(), solGetArrayValExact(), and solUnlinkVarExact().
◆ SCIPvarGetSol()
gets current LP or pseudo solution value of variable
- Parameters
-
var problem variable getlpval should the LP solution value be returned?
Definition at line 19007 of file var.c.
References SCIPvarGetLPSol(), and SCIPvarGetPseudoSol().
Referenced by computeStandardLPOptimalityCut(), SCIP_DECL_BRANCHEXECLP(), SCIPbranchGetBranchingPoint(), SCIPgetSolVal(), SCIPgetVarSol(), SCIPprobUpdateBestRootSol(), SCIPtreeBranchVar(), SCIPtreeBranchVarExact(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPtreeCalcChildEstimate(), SCIPtreeCalcNodeselPriority(), and SCIPvarStoreRootSol().
◆ SCIPvarGetSolExact()
| void SCIPvarGetSolExact | ( | SCIP_VAR * | var, |
| SCIP_RATIONAL * | res, | ||
| SCIP_Bool | getlpval | ||
| ) |
gets current LP or pseudo solution value of variable
gets current exact LP or pseudo solution value of variable
- Parameters
-
var problem variable res the resulting value getlpval should the LP solution value be returned?
Definition at line 19019 of file var.c.
References NULL, SCIPrationalSetRational(), SCIPvarGetLPSolExact(), and SCIPvarGetPseudoSolExact().
Referenced by SCIPgetSolValExact().
◆ SCIPvarGetRootSol()
returns the solution of the variable in the last root node's relaxation, if the root relaxation is not yet completely solved, zero is returned
- Parameters
-
var problem variable
Definition at line 19115 of file var.c.
References SCIP_Var::aggregate, SCIP_Aggregate::constant, SCIP_Multaggr::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::donotaggr, SCIP_Var::donotmultaggr, SCIP_Dom::lb, SCIP_Var::locdom, SCIP_Var::multaggr, SCIP_Var::negate, SCIP_Var::negatedvar, NULL, SCIP_Multaggr::nvars, SCIP_Var::original, SCIP_Var::rootsol, SCIP_Aggregate::scalar, SCIP_Multaggr::scalars, SCIP_DEFAULT_INFINITY, SCIP_INVALID, SCIP_Real, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPvarGetRootSol(), SCIPvarGetStatus(), SCIP_Original::transvar, SCIP_Dom::ub, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by calcPscostQuot(), changeSubvariableObjective(), DECL_VARFIXINGS(), determineVariableFixings(), generateDifferenceRay(), getPotential(), getVariablePscostScore(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_HEUREXEC(), SCIPstatComputeRootLPBestEstimate(), SCIPstatUpdateVarRootLPBestEstimate(), SCIPtreeBranchVar(), SCIPtreeBranchVarExact(), SCIPtreeCalcNodeselPriority(), SCIPvarGetRootSol(), and SCIPvarUpdatePseudocost().
◆ SCIPvarGetBestRootSol()
returns the best solution (w.r.t. root reduced cost propagation) of the variable in the root node's relaxation, if the root relaxation is not yet completely solved, zero is returned
- Parameters
-
var problem variable
Definition at line 19480 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::bestrootsol, SCIP_Aggregate::constant, SCIP_Multaggr::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::donotaggr, SCIP_Var::donotmultaggr, SCIP_Dom::lb, SCIP_Var::locdom, SCIP_Var::multaggr, SCIP_Var::negate, SCIP_Var::negatedvar, NULL, SCIP_Multaggr::nvars, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_Multaggr::scalars, SCIP_DEFAULT_INFINITY, SCIP_Real, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPvarGetBestRootSol(), SCIPvarGetStatus(), SCIP_Original::transvar, SCIP_Dom::ub, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by getVariableRedcostScore(), propagateBinaryBestRootRedcost(), propagateRootRedcostBinvar(), propagateRootRedcostVar(), and SCIPvarGetBestRootSol().
◆ SCIPvarGetBestRootRedcost()
returns the best reduced costs (w.r.t. root reduced cost propagation) of the variable in the root node's relaxation, if the root relaxation is not yet completely solved, or the variable was no column of the root LP, SCIP_INVALID is returned
- Parameters
-
var problem variable
Definition at line 19547 of file var.c.
References SCIP_Var::bestrootredcost, SCIP_Var::data, NULL, SCIP_Var::original, SCIP_INVALID, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPvarGetBestRootRedcost(), SCIPvarGetStatus(), and SCIP_Original::transvar.
Referenced by countNonZeroRootRedcostVars(), getVariableRedcostScore(), propagateBinaryBestRootRedcost(), propagateRootRedcostBinvar(), propagateRootRedcostVar(), propdataInit(), SCIP_DECL_SORTPTRCOMP(), and SCIPvarGetBestRootRedcost().
◆ SCIPvarGetBestRootLPObjval()
returns the best objective value (w.r.t. root reduced cost propagation) of the root LP which belongs the root reduced cost which is accessible via SCIPvarGetRootRedcost() or the variable was no column of the root LP, SCIP_INVALID is returned
- Parameters
-
var problem variable
Definition at line 19581 of file var.c.
References SCIP_Var::bestrootlpobjval, SCIP_Var::data, NULL, SCIP_Var::original, SCIP_INVALID, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPvarGetBestRootLPObjval(), SCIPvarGetStatus(), and SCIP_Original::transvar.
Referenced by propagateBinaryBestRootRedcost(), propagateRootRedcostBinvar(), propagateRootRedcostVar(), SCIP_DECL_SORTPTRCOMP(), and SCIPvarGetBestRootLPObjval().
◆ SCIPvarSetBestRootSol()
| void SCIPvarSetBestRootSol | ( | SCIP_VAR * | var, |
| SCIP_Real | rootsol, | ||
| SCIP_Real | rootredcost, | ||
| SCIP_Real | rootlpobjval | ||
| ) |
set the given solution as the best root solution w.r.t. root reduced cost propagation in the variables
- Parameters
-
var problem variable rootsol root solution value rootredcost root reduced cost rootlpobjval objective value of the root LP
Definition at line 19612 of file var.c.
References SCIP_Var::bestrootlpobjval, SCIP_Var::bestrootredcost, SCIP_Var::bestrootsol, and NULL.
Referenced by SCIPprobExitSolve().
◆ SCIPvarGetAvgSol()
returns a weighted average solution value of the variable in all feasible primal solutions found so far
- Parameters
-
var problem variable
Definition at line 19827 of file var.c.
References SCIP_Var::aggregate, SCIP_Aggregate::constant, SCIP_Multaggr::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::donotaggr, SCIP_Var::donotmultaggr, SCIP_Var::glbdom, SCIP_Dom::lb, SCIP_Var::locdom, MAX, MIN, SCIP_Var::multaggr, SCIP_Var::negate, SCIP_Var::negatedvar, NULL, SCIP_Multaggr::nvars, SCIP_Var::original, SCIP_Var::primsolavg, SCIP_Aggregate::scalar, SCIP_Multaggr::scalars, SCIP_Real, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPvarGetAvgSol(), SCIPvarGetStatus(), SCIP_Original::transvar, SCIP_Dom::ub, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by SCIPvarGetAvgSol(), and separateAlternativeProofs().
◆ SCIPvarGetLbchgInfo()
| SCIP_BDCHGINFO * SCIPvarGetLbchgInfo | ( | SCIP_VAR * | var, |
| SCIP_BDCHGIDX * | bdchgidx, | ||
| SCIP_Bool | after | ||
| ) |
returns the bound change information for the last lower bound change on given active problem variable before or after the bound change with the given index was applied; returns NULL, if no change to the lower bound was applied up to this point of time
- Parameters
-
var active problem variable bdchgidx bound change index representing time on path to current node after should the bound change with given index be included?
Definition at line 22629 of file var.c.
References SCIP_BdChgInfo::bdchgidx, SCIP_BdChgInfo::boundtype, SCIP_Var::lbchginfos, SCIP_BdChgInfo::newbound, SCIP_Var::nlbchginfos, NULL, SCIP_BdChgInfo::oldbound, SCIP_BdChgInfo::pos, SCIP_BdChgInfo::redundant, SCIP_BOUNDTYPE_LOWER, SCIPbdchgidxIsEarlier(), SCIPvarIsActive(), and SCIP_BdChgInfo::var.
Referenced by SCIPgetVarLbAtIndex(), SCIPvarGetBdchgInfo(), and slackReducingContinuousBdchgQueue().
◆ SCIPvarGetUbchgInfo()
| SCIP_BDCHGINFO * SCIPvarGetUbchgInfo | ( | SCIP_VAR * | var, |
| SCIP_BDCHGIDX * | bdchgidx, | ||
| SCIP_Bool | after | ||
| ) |
returns the bound change information for the last upper bound change on given active problem variable before or after the bound change with the given index was applied; returns NULL, if no change to the upper bound was applied up to this point of time
- Parameters
-
var active problem variable bdchgidx bound change index representing time on path to current node after should the bound change with given index be included?
Definition at line 22685 of file var.c.
References SCIP_BdChgInfo::bdchgidx, SCIP_BdChgInfo::boundtype, SCIP_BdChgInfo::newbound, SCIP_Var::nubchginfos, NULL, SCIP_BdChgInfo::oldbound, SCIP_BdChgInfo::pos, SCIP_BdChgInfo::redundant, SCIP_BOUNDTYPE_UPPER, SCIPbdchgidxIsEarlier(), SCIPvarIsActive(), SCIP_Var::ubchginfos, and SCIP_BdChgInfo::var.
Referenced by SCIPgetVarUbAtIndex(), SCIPvarGetBdchgInfo(), and slackReducingContinuousBdchgQueue().
◆ SCIPvarGetBdchgInfo()
| SCIP_BDCHGINFO * SCIPvarGetBdchgInfo | ( | SCIP_VAR * | var, |
| SCIP_BOUNDTYPE | boundtype, | ||
| SCIP_BDCHGIDX * | bdchgidx, | ||
| SCIP_Bool | after | ||
| ) |
returns the bound change information for the last lower or upper bound change on given active problem variable before or after the bound change with the given index was applied; returns NULL, if no change to the lower/upper bound was applied up to this point of time
- Parameters
-
var active problem variable boundtype type of bound: lower or upper bound bdchgidx bound change index representing time on path to current node after should the bound change with given index be included?
Definition at line 22741 of file var.c.
References SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIPvarGetLbchgInfo(), and SCIPvarGetUbchgInfo().
Referenced by SCIPconflictAddBound(), and SCIPconflictAddRelaxedBound().
◆ SCIPvarGetLastBdchgIndex()
| SCIP_BDCHGIDX * SCIPvarGetLastBdchgIndex | ( | SCIP_VAR * | var | ) |
returns the last bound change index, at which the bounds of the given variable were tightened
- Parameters
-
var problem variable
Definition at line 22764 of file var.c.
References SCIP_BdChgInfo::bdchgidx, initbdchgidx, SCIP_Var::lbchginfos, SCIP_Var::nlbchginfos, SCIP_Var::nubchginfos, NULL, presolvebdchgidx, SCIP_BdChgInfo::redundant, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_LOOSE, SCIPbdchgidxIsEarlierNonNull(), SCIPvarGetProbvar(), SCIPvarGetStatus(), SCIPvarIsActive(), and SCIP_Var::ubchginfos.
Referenced by SCIPvarGetLastBdchgDepth().
◆ SCIPvarGetLastBdchgDepth()
| int SCIPvarGetLastBdchgDepth | ( | SCIP_VAR * | var | ) |
returns the last depth level, at which the bounds of the given variable were tightened; returns -2, if the variable's bounds are still the global bounds returns -1, if the variable was fixed in presolving
- Parameters
-
var problem variable
Definition at line 22801 of file var.c.
References SCIP_BdChgIdx::depth, NULL, and SCIPvarGetLastBdchgIndex().
◆ SCIPvarWasFixedEarlier()
returns whether the first binary variable was fixed earlier than the second one; returns FALSE, if the first variable is not fixed, and returns TRUE, if the first variable is fixed, but the second one is not fixed
- Parameters
-
var1 first binary variable var2 second binary variable
Definition at line 22889 of file var.c.
References SCIP_BdChgInfo::bdchgidx, FALSE, SCIP_Var::glbdom, SCIP_Dom::lb, SCIP_Var::lbchginfos, SCIP_Var::nlbchginfos, SCIP_Var::nubchginfos, NULL, SCIP_BdChgInfo::redundant, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_LOOSE, SCIPbdchgidxIsEarlier(), SCIPvarGetProbvar(), SCIPvarGetStatus(), SCIPvarIsActive(), SCIPvarIsBinary(), TRUE, SCIP_Dom::ub, and SCIP_Var::ubchginfos.
◆ SCIPvarsCountTypes()
| void SCIPvarsCountTypes | ( | SCIP_VAR ** | vars, |
| int | nvars, | ||
| int * | nbinvars, | ||
| int * | nintvars, | ||
| int * | nbinimplvars, | ||
| int * | nintimplvars, | ||
| int * | ncontimplvars, | ||
| int * | ncontvars | ||
| ) |
for a given array of variables, this function counts the numbers of variables for each variable and implied type combination
- Parameters
-
vars array of variables to count the types for nvars number of variables in the array nbinvars pointer to store number of binary variables or NULL if not needed nintvars pointer to store number of integer variables or NULL if not needed nbinimplvars pointer to store number of binary implied integral vars or NULL if not needed nintimplvars pointer to store number of integer implied integral vars or NULL if not needed ncontimplvars pointer to store number of continuous implied integral vars or NULL if not needed ncontvars pointer to store number of continuous variables or NULL if not needed
Definition at line 22942 of file var.c.
References NULL, SCIP_Bool, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_CONTINUOUS, SCIP_VARTYPE_INTEGER, SCIPABORT, SCIPerrorMessage, SCIPvarGetType(), and SCIPvarIsImpliedIntegral().
Referenced by copyVars().
◆ SCIPbdchgidxIsEarlier()
| SCIP_Bool SCIPbdchgidxIsEarlier | ( | SCIP_BDCHGIDX * | bdchgidx1, |
| SCIP_BDCHGIDX * | bdchgidx2 | ||
| ) |
returns whether first bound change index belongs to an earlier applied bound change than second one; if a bound change index is NULL, the bound change index represents the current time, i.e. the time after the last bound change was applied to the current node
- Parameters
-
bdchgidx1 first bound change index, or NULL bdchgidx2 second bound change index, or NULL
Definition at line 24889 of file var.c.
References SCIP_BdChgIdx::depth, FALSE, NULL, SCIP_BdChgIdx::pos, and TRUE.
Referenced by SCIPconflictAddBound(), SCIPconflictAddRelaxedBound(), SCIPvarGetLbchgInfo(), SCIPvarGetUbchgInfo(), SCIPvarWasFixedEarlier(), varAddLbchginfo(), and varAddUbchginfo().
◆ SCIPbdchgidxIsEarlierNonNull()
| SCIP_Bool SCIPbdchgidxIsEarlierNonNull | ( | SCIP_BDCHGIDX * | bdchgidx1, |
| SCIP_BDCHGIDX * | bdchgidx2 | ||
| ) |
returns whether first bound change index belongs to an earlier applied bound change than second one
- Parameters
-
bdchgidx1 first bound change index bdchgidx2 second bound change index
Definition at line 24869 of file var.c.
References SCIP_BdChgIdx::depth, NULL, and SCIP_BdChgIdx::pos.
Referenced by SCIP_DECL_SORTPTRCOMP(), and SCIPvarGetLastBdchgIndex().
◆ SCIPbdchginfoGetOldbound()
| SCIP_Real SCIPbdchginfoGetOldbound | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns old bound that was overwritten for given bound change information
- Parameters
-
bdchginfo bound change information
Definition at line 24909 of file var.c.
References NULL, and SCIP_BdChgInfo::oldbound.
Referenced by conflictAddBound(), getReasonRow(), and SCIPconflictAddRelaxedBound().
◆ SCIPbdchginfoGetNewbound()
| SCIP_Real SCIPbdchginfoGetNewbound | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns new bound installed for given bound change information
- Parameters
-
bdchginfo bound change information
Definition at line 24919 of file var.c.
References SCIP_BdChgInfo::newbound, and NULL.
Referenced by bdchginfoIsInvalid(), betterBoundInResolutionQueue(), checkRedundancy(), conflictAddBound(), conflictAddConflictBound(), conflictAnalyze(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictMarkBoundCheckPresence(), conflictQueueBound(), conflictResolveBound(), conflictsetAddBounds(), detectImpliedBounds(), isBoundchgUseless(), markBdchgAsFixed(), SCIP_DECL_CONFLICTEXEC(), SCIPconflictAddBound(), SCIPconflictAddRelaxedBound(), SCIPconflictAnalyzeRemainingBdchgs(), SCIPgetVarLbAtIndex(), and SCIPgetVarUbAtIndex().
◆ SCIPbdchginfoGetVar()
| SCIP_VAR * SCIPbdchginfoGetVar | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns variable that belongs to the given bound change information
- Parameters
-
bdchginfo bound change information
Definition at line 24929 of file var.c.
References NULL, and SCIP_BdChgInfo::var.
Referenced by bdchginfoIsInvalid(), betterBoundInResolutionQueue(), checkRedundancy(), conflictAddBound(), conflictAddConflictBound(), conflictAnalyze(), conflictAnalyzeResolution(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictMarkBoundCheckPresence(), conflictQueueBound(), conflictRemoveCand(), conflictResolveBound(), conflictRowFromLpRow(), conflictsetAddBound(), conflictsetAddBounds(), detectImpliedBounds(), executeResolutionStep(), getReasonRow(), isBdchgConflictRelevant(), isBoundchgUseless(), markBdchgAsFixed(), reasonRowFromLpRow(), and SCIP_DECL_CONFLICTEXEC().
◆ SCIPbdchginfoGetChgtype()
| SCIP_BOUNDCHGTYPE SCIPbdchginfoGetChgtype | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns whether the bound change information belongs to a branching decision or a deduction
- Parameters
-
bdchginfo bound change information
Definition at line 24939 of file var.c.
References SCIP_BdChgInfo::boundchgtype, and NULL.
Referenced by bdchginfoIsResolvable(), conflictAddBound(), conflictResolveBound(), getReasonRow(), isResolvableBdchg(), and markBdchgAsFixed().
◆ SCIPbdchginfoGetBoundtype()
| SCIP_BOUNDTYPE SCIPbdchginfoGetBoundtype | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns whether the bound change information belongs to a lower or upper bound change
- Parameters
-
bdchginfo bound change information
Definition at line 24949 of file var.c.
References SCIP_BdChgInfo::boundtype, and NULL.
Referenced by bdchginfoIsInvalid(), betterBoundInResolutionQueue(), checkRedundancy(), conflictAddBound(), conflictAddConflictBound(), conflictAnalyze(), conflictAnalyzeResolution(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictMarkBoundCheckPresence(), conflictQueueBound(), conflictRemoveCand(), conflictResolveBound(), conflictRowFromLpRow(), conflictsetAddBound(), conflictsetAddBounds(), detectImpliedBounds(), isBdchgConflictRelevant(), isBoundchgUseless(), markBdchgAsFixed(), reasonRowFromLpRow(), SCIP_DECL_CONFLICTEXEC(), SCIPbdchginfoIsTighter(), SCIPconflictAnalyzeRemainingBdchgs(), and updateStatistics().
◆ SCIPbdchginfoGetDepth()
| int SCIPbdchginfoGetDepth | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns depth level of given bound change information
- Parameters
-
bdchginfo bound change information
Definition at line 24959 of file var.c.
References SCIP_BdChgInfo::bdchgidx, SCIP_BdChgIdx::depth, and NULL.
Referenced by computeSlack(), conflictAddBound(), conflictAddConflictBound(), conflictAnalyze(), conflictAnalyzeResolution(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictResolveBound(), conflictsetAddBounds(), conflictsetCalcConflictDepth(), conflictsetCalcInsertDepth(), markBdchgAsFixed(), SCIPconflictAddRelaxedBound(), and slackReducingContinuousBdchgQueue().
◆ SCIPbdchginfoGetPos()
| int SCIPbdchginfoGetPos | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns bound change position in its depth level of given bound change information
- Parameters
-
bdchginfo bound change information
Definition at line 24969 of file var.c.
References SCIP_BdChgInfo::bdchgidx, NULL, and SCIP_BdChgIdx::pos.
Referenced by computeSlack(), conflictAddBound(), conflictAnalyze(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictResolveBound(), SCIPconflictAddRelaxedBound(), and slackReducingContinuousBdchgQueue().
◆ SCIPbdchginfoGetIdx()
| SCIP_BDCHGIDX * SCIPbdchginfoGetIdx | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns bound change index of given bound change information
- Parameters
-
bdchginfo bound change information
Definition at line 24979 of file var.c.
References SCIP_BdChgInfo::bdchgidx, and NULL.
Referenced by computeSlack(), conflictAnalyzeResolution(), conflictResolveBound(), executeResolutionStep(), getConflictRow(), getReasonRow(), markBdchgAsFixed(), MirReduction(), reduceReason(), SCIP_DECL_SORTPTRCOMP(), SCIPconflictAddBound(), and SCIPconflictAddRelaxedBound().
◆ SCIPbdchginfoGetInferVar()
| SCIP_VAR * SCIPbdchginfoGetInferVar | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns inference variable of given bound change information
- Parameters
-
bdchginfo bound change information
Definition at line 24989 of file var.c.
References SCIP_BdChgInfo::boundchgtype, SCIP_BdChgInfo::inferencedata, NULL, SCIP_BOUNDCHGTYPE_CONSINFER, and SCIP_BOUNDCHGTYPE_PROPINFER.
Referenced by conflictResolveBound().
◆ SCIPbdchginfoGetInferCons()
| SCIP_CONS * SCIPbdchginfoGetInferCons | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns inference constraint of given bound change information
- Parameters
-
bdchginfo bound change information
Definition at line 25001 of file var.c.
References SCIP_BdChgInfo::boundchgtype, SCIP_BdChgInfo::inferencedata, NULL, and SCIP_BOUNDCHGTYPE_CONSINFER.
Referenced by conflictAddBound(), conflictResolveBound(), getReasonRow(), isResolvableBdchg(), and markBdchgAsFixed().
◆ SCIPbdchginfoGetInferProp()
| SCIP_PROP * SCIPbdchginfoGetInferProp | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns inference propagator of given bound change information, or NULL if no propagator was responsible
- Parameters
-
bdchginfo bound change information
Definition at line 25013 of file var.c.
References SCIP_BdChgInfo::boundchgtype, SCIP_BdChgInfo::inferencedata, NULL, and SCIP_BOUNDCHGTYPE_PROPINFER.
Referenced by bdchginfoIsResolvable(), conflictAddBound(), and conflictResolveBound().
◆ SCIPbdchginfoGetInferInfo()
| int SCIPbdchginfoGetInferInfo | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns inference user information of given bound change information
- Parameters
-
bdchginfo bound change information
Definition at line 25024 of file var.c.
References SCIP_BdChgInfo::boundchgtype, SCIP_BdChgInfo::inferencedata, NULL, SCIP_BOUNDCHGTYPE_CONSINFER, and SCIP_BOUNDCHGTYPE_PROPINFER.
Referenced by conflictAddBound(), and conflictResolveBound().
◆ SCIPbdchginfoGetInferBoundtype()
| SCIP_BOUNDTYPE SCIPbdchginfoGetInferBoundtype | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns inference bound of inference variable of given bound change information
- Parameters
-
bdchginfo bound change information
Definition at line 25036 of file var.c.
References SCIP_BdChgInfo::boundchgtype, SCIP_BdChgInfo::inferboundtype, NULL, SCIP_BOUNDCHGTYPE_CONSINFER, and SCIP_BOUNDCHGTYPE_PROPINFER.
Referenced by conflictResolveBound().
◆ SCIPbdchginfoIsRedundant()
| SCIP_Bool SCIPbdchginfoIsRedundant | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns whether the bound change information belongs to a redundant bound change
- Parameters
-
bdchginfo bound change information
Definition at line 25057 of file var.c.
References SCIP_BdChgInfo::newbound, NULL, SCIP_BdChgInfo::oldbound, and SCIP_BdChgInfo::redundant.
Referenced by bdchginfoIsResolvable(), conflictAddBound(), conflictAddConflictBound(), conflictAnalyze(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictQueueBound(), conflictRemoveCand(), conflictResolveBound(), SCIP_DECL_SORTPTRCOMP(), SCIPconflictAddRelaxedBound(), and SCIPconflictAnalyzeRemainingBdchgs().
◆ SCIPbdchginfoHasInferenceReason()
| SCIP_Bool SCIPbdchginfoHasInferenceReason | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns whether the bound change has an inference reason (constraint or propagator), that can be resolved
- Parameters
-
bdchginfo bound change information
Definition at line 25068 of file var.c.
References SCIP_BdChgInfo::boundchgtype, SCIP_BdChgInfo::inferencedata, NULL, SCIP_BOUNDCHGTYPE_CONSINFER, and SCIP_BOUNDCHGTYPE_PROPINFER.
Referenced by conflictAnalyze().
◆ SCIPbdchginfoIsTighter()
| SCIP_Bool SCIPbdchginfoIsTighter | ( | SCIP_BDCHGINFO * | bdchginfo1, |
| SCIP_BDCHGINFO * | bdchginfo2 | ||
| ) |
for two bound change informations belonging to the same variable and bound, returns whether the first bound change has a tighter new bound as the second bound change
- Parameters
-
bdchginfo1 first bound change information bdchginfo2 second bound change information
Definition at line 25082 of file var.c.
References SCIP_BdChgInfo::boundtype, SCIP_BdChgInfo::newbound, NULL, SCIP_BOUNDTYPE_LOWER, SCIPbdchginfoGetBoundtype(), and SCIP_BdChgInfo::var.
Referenced by conflictsetAddBound(), conflictsetAddBounds(), and conflictsetIsRedundant().
◆ SCIPboundchgGetNewbound()
| SCIP_Real SCIPboundchgGetNewbound | ( | SCIP_BOUNDCHG * | boundchg | ) |
returns the new value of the bound in the bound change data
- Parameters
-
boundchg bound change data
Definition at line 23154 of file var.c.
References SCIP_BoundChg::newbound, and NULL.
Referenced by boundchgApplyGlobal(), SCIP_DECL_EVENTEXEC(), SCIPendStrongbranch(), and SCIPupdateVarPseudocostSymmetric().
◆ SCIPboundchgGetLPSolVal()
| SCIP_Real SCIPboundchgGetLPSolVal | ( | SCIP_BOUNDCHG * | boundchg | ) |
returns the lp solution value in the branching data of the bound change data
- Parameters
-
boundchg bound change data
Definition at line 23164 of file var.c.
References SCIP_BoundChg::branchingdata, SCIP_BoundChg::data, and NULL.
Referenced by SCIPupdateVarPseudocostSymmetric().
◆ SCIPboundchgGetVar()
| SCIP_VAR * SCIPboundchgGetVar | ( | SCIP_BOUNDCHG * | boundchg | ) |
returns the variable of the bound change in the bound change data
- Parameters
-
boundchg bound change data
Definition at line 23174 of file var.c.
References NULL, and SCIP_BoundChg::var.
Referenced by boundchgApplyGlobal(), SCIP_DECL_EVENTEXEC(), SCIPendStrongbranch(), SCIPnodePropagateImplics(), and SCIPupdateVarPseudocostSymmetric().
◆ SCIPboundchgGetBoundchgtype()
| SCIP_BOUNDCHGTYPE SCIPboundchgGetBoundchgtype | ( | SCIP_BOUNDCHG * | boundchg | ) |
returns the bound change type of the bound change in the bound change data
- Parameters
-
boundchg bound change data
Definition at line 23184 of file var.c.
References SCIP_BoundChg::boundchgtype, and NULL.
Referenced by SCIP_DECL_EVENTEXEC(), and SCIPupdateVarPseudocostSymmetric().
◆ SCIPboundchgGetBoundtype()
| SCIP_BOUNDTYPE SCIPboundchgGetBoundtype | ( | SCIP_BOUNDCHG * | boundchg | ) |
returns the bound type of the bound change in the bound change data
- Parameters
-
boundchg bound change data
Definition at line 23194 of file var.c.
References SCIP_BoundChg::boundtype, and NULL.
Referenced by boundchgApplyGlobal(), SCIP_DECL_EVENTEXEC(), SCIPendStrongbranch(), and SCIPnodePropagateImplics().
◆ SCIPboundchgIsRedundant()
| SCIP_Bool SCIPboundchgIsRedundant | ( | SCIP_BOUNDCHG * | boundchg | ) |
returns whether the bound change is redundant due to a more global bound that is at least as strong
- Parameters
-
boundchg bound change data
Definition at line 23204 of file var.c.
References NULL, and SCIP_BoundChg::redundant.
Referenced by SCIPendStrongbranch(), and SCIPnodePropagateImplics().
◆ SCIPdomchgGetNBoundchgs()
| int SCIPdomchgGetNBoundchgs | ( | SCIP_DOMCHG * | domchg | ) |
returns the number of bound changes in the domain change data
- Parameters
-
domchg domain change data
Definition at line 23214 of file var.c.
References SCIP_DomChg::domchgbound, SCIP_DomChgBound::nboundchgs, and NULL.
Referenced by SCIP_DECL_EVENTEXEC(), SCIPendStrongbranch(), SCIPnodePropagateImplics(), and SCIPupdateVarPseudocostSymmetric().
◆ SCIPdomchgGetBoundchg()
| SCIP_BOUNDCHG * SCIPdomchgGetBoundchg | ( | SCIP_DOMCHG * | domchg, |
| int | pos | ||
| ) |
returns a particular bound change in the domain change data
- Parameters
-
domchg domain change data pos position of the bound change in the domain change data
Definition at line 23222 of file var.c.
References SCIP_DomChgBound::boundchgs, SCIP_DomChg::domchgbound, SCIP_DomChgBound::nboundchgs, and NULL.
Referenced by SCIP_DECL_EVENTEXEC(), SCIPendStrongbranch(), SCIPnodePropagateImplics(), and SCIPupdateVarPseudocostSymmetric().
◆ SCIPholelistGetLeft()
| SCIP_Real SCIPholelistGetLeft | ( | SCIP_HOLELIST * | holelist | ) |
returns left bound of open interval in hole
- Parameters
-
holelist hole list pointer to hole of interest
Definition at line 23234 of file var.c.
References SCIP_Holelist::hole, SCIP_Hole::left, and NULL.
Referenced by printHolelist().
◆ SCIPholelistGetRight()
| SCIP_Real SCIPholelistGetRight | ( | SCIP_HOLELIST * | holelist | ) |
returns right bound of open interval in hole
- Parameters
-
holelist hole list pointer to hole of interest
Definition at line 23244 of file var.c.
References SCIP_Holelist::hole, NULL, and SCIP_Hole::right.
Referenced by printHolelist().
◆ SCIPholelistGetNext()
| SCIP_HOLELIST * SCIPholelistGetNext | ( | SCIP_HOLELIST * | holelist | ) |
returns next hole in list or NULL
returns next hole in list
- Parameters
-
holelist hole list pointer to hole of interest
Definition at line 23254 of file var.c.
References SCIP_Holelist::next, and NULL.
Referenced by printHolelist().
◆ SCIPcreateVar()
| SCIP_RETCODE SCIPcreateVar | ( | SCIP * | scip, |
| SCIP_VAR ** | var, | ||
| const char * | name, | ||
| SCIP_Real | lb, | ||
| SCIP_Real | ub, | ||
| SCIP_Real | obj, | ||
| SCIP_VARTYPE | vartype, | ||
| SCIP_Bool | initial, | ||
| SCIP_Bool | removable, | ||
| SCIP_DECL_VARDELORIG((*vardelorig)) | , | ||
| SCIP_DECL_VARTRANS((*vartrans)) | , | ||
| SCIP_DECL_VARDELTRANS((*vardeltrans)) | , | ||
| SCIP_DECL_VARCOPY((*varcopy)) | , | ||
| SCIP_VARDATA * | vardata | ||
| ) |
creates and captures problem variable
If variable is of integral type, fractional bounds are automatically rounded. An integer variable with bounds zero and one is automatically converted into a binary variable.
- Warning
- When doing column generation and the original problem is a maximization problem, notice that SCIP will transform the problem into a minimization problem by multiplying the objective function by -1. Thus, the original objective function value of variables created during the solving process has to be multiplied by -1, too.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- the variable gets captured, hence at one point you have to release it using the method SCIPreleaseVar()
- Parameters
-
scip SCIP data structure var pointer to variable object name name of variable, or NULL for automatic name creation lb lower bound of variable ub upper bound of variable obj objective function value vartype type of variable initial should var's column be present in the initial root LP? removable is var's column removable from the LP (due to aging or cleanup)? vardata user data for this specific variable, or NULL
Definition at line 120 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_DEPRECATED_VARTYPE_IMPLINT, SCIP_IMPLINTTYPE_NONE, SCIP_IMPLINTTYPE_WEAK, SCIP_OKAY, SCIP_VARTYPE_CONTINUOUS, SCIPcheckStage, SCIPcreateVarImpl(), and TRUE.
Referenced by ObjPricerVRP::add_tour_variable(), addVarCardinality(), appendVarCardinality(), consdataCreateBinvars(), createConstraint(), createCoveringProblem(), createMipCpFormulation(), createRelaxation(), createSubscip(), createSubSCIP(), createVariable(), execmain(), getVariable(), scipexamples::QueensSolver::QueensSolver(), readBounds(), readBoundsExact(), readCnf(), readCols(), readColsExact(), readLIBSVM(), readObjective(), readQMatrix(), readVariables(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PRICERFARKAS(), SCIP_DECL_PRICERREDCOST(), SCIP_DECL_READERREAD(), SCIPcreateConsCardinality(), SCIPcreateObjVar(), SCIPcreateSchedulingProblem(), SCIPcreateVarBasic(), SCIPtransformMinUC(), setupAndSolveFiniteSolSubscip(), solveClassification(), and solveMinIISC().
◆ SCIPcreateVarBasic()
| SCIP_RETCODE SCIPcreateVarBasic | ( | SCIP * | scip, |
| SCIP_VAR ** | var, | ||
| const char * | name, | ||
| SCIP_Real | lb, | ||
| SCIP_Real | ub, | ||
| SCIP_Real | obj, | ||
| SCIP_VARTYPE | vartype | ||
| ) |
creates and captures problem variable without setting optional callbacks and variable data.
Callbacks and variable data can be set in the following using SCIPvarSetDelorigData(), SCIPvarSetTransData(), SCIPvarSetDeltransData(), SCIPvarSetCopy(), and SCIPvarSetData().
Variable flags are set as initial = TRUE and removable = FALSE, and can be adjusted by using SCIPvarSetInitial() and SCIPvarSetRemovable(), resp.
If variable is of integral type, fractional bounds are automatically rounded. An integer variable with bounds zero and one is automatically converted into a binary variable.
- Warning
- When doing column generation and the original problem is a maximization problem, notice that SCIP will transform the problem into a minimization problem by multiplying the objective function by -1. Thus, the original objective function value of variables created during the solving process has to be multiplied by -1, too.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- the variable gets captured, hence at one point you have to release it using the method SCIPreleaseVar()
- Parameters
-
scip SCIP data structure var pointer to variable object name name of variable, or NULL for automatic name creation lb lower bound of variable ub upper bound of variable obj objective function value vartype type of variable
Definition at line 184 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPcreateVar(), and TRUE.
Referenced by addAuxiliaryVariablesToMaster(), addSlackVars(), addVariable(), applyRepair(), createBlockproblem(), createCipFormulation(), createConstraints(), createDisaggrVars(), createKKTComplementarityBinary(), createKKTComplementarityBounds(), createKKTComplementarityLinear(), createKKTDualCons(), createMasterproblem(), createMIP(), createMipFormulation(), createOriginalproblem(), createPatternVars(), createProbQP(), createSubproblem(), createSubproblems(), createVariables(), AMPLProblemHandler::EndInput(), initPricing(), main(), AMPLProblemHandler::OnBinaryLogical(), AMPLProblemHandler::OnHeader(), AMPLProblemHandler::OnObj(), AMPLProblemHandler::OnRelational(), presolveAddKKTLinearCons(), readObjective(), SCIP_DECL_HEUREXEC(), SCIPaddTrustregionNeighborhoodConstraint(), SCIPbendersMergeSubproblemIntoMaster(), SCIPcreateVarBinpacking(), SCIPverifyCircularPatternNLP(), setupAndSolveCumulativeSubscip(), setupProblem(), and solvePricingMINLP().
◆ SCIPcreateVarImpl()
| SCIP_RETCODE SCIPcreateVarImpl | ( | SCIP * | scip, |
| SCIP_VAR ** | var, | ||
| const char * | name, | ||
| SCIP_Real | lb, | ||
| SCIP_Real | ub, | ||
| SCIP_Real | obj, | ||
| SCIP_VARTYPE | vartype, | ||
| SCIP_IMPLINTTYPE | impltype, | ||
| SCIP_Bool | initial, | ||
| SCIP_Bool | removable, | ||
| SCIP_DECL_VARDELORIG((*vardelorig)) | , | ||
| SCIP_DECL_VARTRANS((*vartrans)) | , | ||
| SCIP_DECL_VARDELTRANS((*vardeltrans)) | , | ||
| SCIP_DECL_VARCOPY((*varcopy)) | , | ||
| SCIP_VARDATA * | vardata | ||
| ) |
creates and captures problem variable that may be implied integral
If variable is of integral type, fractional bounds are automatically rounded. An integer variable with bounds zero and one is automatically converted into a binary variable.
- Warning
- When doing column generation and the original problem is a maximization problem, notice that SCIP will transform the problem into a minimization problem by multiplying the objective function by -1. Thus, the original objective function value of variables created during the solving process has to be multiplied by -1, too.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- the variable gets captured, hence at one point you have to release it using the method SCIPreleaseVar()
- Parameters
-
scip SCIP data structure var pointer to variable object name name of variable, or NULL for automatic name creation lb lower bound of variable ub upper bound of variable obj objective function value vartype type of variable impltype implied integral type of the variable initial should var's column be present in the initial root LP? removable is var's column removable from the LP (due to aging or cleanup)? vardata user data for this specific variable
Definition at line 225 of file scip_var.c.
References FALSE, NULL, REALABS, SCIP_CALL, SCIP_DEPRECATED_VARTYPE_IMPLINT, SCIP_INVALIDCALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMING, SCIPcheckStage, SCIPerrorMessage, SCIPisInfinity(), SCIPvarCreateOriginal(), SCIPvarCreateTransformed(), and TRUE.
Referenced by addAuxiliaryVariablesToMaster(), addExtendedAsymmetricFormulation(), addExtendedFlowFormulation(), addScenarioVarsToProb(), addVariableToBendersProblem(), aggregation(), applyFixings(), convertLongEquality(), createAndAddAndCons(), createAuxVar(), createMipCpFormulation(), createObjRow(), getBinaryProductExprDo(), getScenarioDecompVar(), reformulateFactorizedBinaryQuadratic(), SCIP_DECL_PRESOLEXEC(), SCIPcreateConsIndicatorGeneric(), SCIPcreateConsIndicatorGenericLinConsPure(), SCIPcreateObjVarImpl(), SCIPcreateVar(), and setObjective().
◆ SCIPaddVarExactData()
| SCIP_RETCODE SCIPaddVarExactData | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | lb, | ||
| SCIP_RATIONAL * | ub, | ||
| SCIP_RATIONAL * | obj | ||
| ) |
adds exact data to variable
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var pointer to variable lb lower bound of variable ub upper bound of variable obj objective function value
Definition at line 299 of file scip_var.c.
References FALSE, NULL, REALABS, SCIP_CALL, SCIP_INVALIDCALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMING, SCIPcheckStage, SCIPerrorMessage, SCIPisInfinity(), SCIPrationalIsAbsInfinity(), SCIPrationalIsLE(), SCIPvarAddExactData(), SCIPvarGetObj(), and TRUE.
Referenced by createVariable(), getVariable(), readBoundsExact(), and readColsExact().
◆ SCIPwriteVarName()
| SCIP_RETCODE SCIPwriteVarName | ( | SCIP * | scip, |
| FILE * | file, | ||
| SCIP_VAR * | var, | ||
| SCIP_Bool | type | ||
| ) |
outputs the variable name to the file stream
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure file output file, or NULL for stdout var variable to output type should the variable type be also posted
Definition at line 361 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_DEPRECATED_VARTYPE_IMPLINT_CHAR, SCIP_OKAY, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_BINARY_CHAR, SCIP_VARTYPE_CONTINUOUS_CHAR, SCIP_VARTYPE_INTEGER, SCIP_VARTYPE_INTEGER_CHAR, SCIPcheckStage, SCIPgetNegatedVar(), SCIPinfoMessage(), SCIPvarGetName(), SCIPvarGetType(), SCIPvarIsImpliedIntegral(), SCIPvarIsNegated(), and TRUE.
Referenced by consdataPrint(), consPrintConsSol(), SCIP_DECL_CONSPRINT(), SCIPwriteVarsLinearsum(), SCIPwriteVarsLinearsumExact(), SCIPwriteVarsList(), and SCIPwriteVarsPolynomial().
◆ SCIPwriteVarsList()
| SCIP_RETCODE SCIPwriteVarsList | ( | SCIP * | scip, |
| FILE * | file, | ||
| SCIP_VAR ** | vars, | ||
| int | nvars, | ||
| SCIP_Bool | type, | ||
| char | delimiter | ||
| ) |
print the given list of variables to output stream separated by the given delimiter character;
i. e. the variables x1, x2, ..., xn with given delimiter ',' are written as: <x1>, <x2>, ..., <xn>;
the method SCIPparseVarsList() can parse such a string
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- The printing process is done via the message handler system.
- Parameters
-
scip SCIP data structure file output file, or NULL for stdout vars variable array to output nvars number of variables type should the variable type be also posted delimiter character which is used for delimitation
Definition at line 423 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPinfoMessage(), SCIPwriteVarName(), and TRUE.
Referenced by consdataPrint().
◆ SCIPwriteVarsLinearsum()
| SCIP_RETCODE SCIPwriteVarsLinearsum | ( | SCIP * | scip, |
| FILE * | file, | ||
| SCIP_VAR ** | vars, | ||
| SCIP_Real * | vals, | ||
| int | nvars, | ||
| SCIP_Bool | type | ||
| ) |
print the given variables and coefficients as linear sum in the following form c1 <x1> + c2 <x2> ... + cn <xn>
This string can be parsed by the method SCIPparseVarsLinearsum().
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- The printing process is done via the message handler system.
- Parameters
-
scip SCIP data structure file output file, or NULL for stdout vars variable array to output vals array of coefficients or NULL if all coefficients are 1.0 nvars number of variables type should the variable type be also posted
Definition at line 474 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPinfoMessage(), SCIPwriteVarName(), and TRUE.
Referenced by consdataPrint().
◆ SCIPwriteVarsPolynomial()
| SCIP_RETCODE SCIPwriteVarsPolynomial | ( | SCIP * | scip, |
| FILE * | file, | ||
| SCIP_VAR *** | monomialvars, | ||
| SCIP_Real ** | monomialexps, | ||
| SCIP_Real * | monomialcoefs, | ||
| int * | monomialnvars, | ||
| int | nmonomials, | ||
| SCIP_Bool | type | ||
| ) |
print the given monomials as polynomial in the following form c1 <x11>^e11 <x12>^e12 ... <x1n>^e1n + c2 <x21>^e21 <x22>^e22 ... + ... + cn <xn1>^en1 ...
This string can be parsed by the method SCIPparseVarsPolynomial().
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- The printing process is done via the message handler system.
- Parameters
-
scip SCIP data structure file output file, or NULL for stdout monomialvars arrays with variables for each monomial monomialexps arrays with variable exponents, or NULL if always 1.0 monomialcoefs array with monomial coefficients monomialnvars array with number of variables for each monomial nmonomials number of monomials type should the variable type be also posted
Definition at line 599 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPinfoMessage(), SCIPwriteVarName(), and TRUE.
Referenced by consdataPrint().
◆ SCIPparseVar()
| SCIP_RETCODE SCIPparseVar | ( | SCIP * | scip, |
| SCIP_VAR ** | var, | ||
| const char * | str, | ||
| SCIP_Bool | initial, | ||
| SCIP_Bool | removable, | ||
| SCIP_DECL_VARCOPY((*varcopy)) | , | ||
| SCIP_DECL_VARDELORIG((*vardelorig)) | , | ||
| SCIP_DECL_VARTRANS((*vartrans)) | , | ||
| SCIP_DECL_VARDELTRANS((*vardeltrans)) | , | ||
| SCIP_VARDATA * | vardata, | ||
| char ** | endptr, | ||
| SCIP_Bool * | success | ||
| ) |
parses variable information (in cip format) out of a string; if the parsing process was successful a variable is created and captured; if variable is of integral type, fractional bounds are automatically rounded; an integer variable with bounds zero and one is automatically converted into a binary variable
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var pointer to store the problem variable str string to parse initial should var's column be present in the initial root LP? removable is var's column removable from the LP (due to aging or cleanup)? vardata user data for this specific variable endptr pointer to store the final string position if successful success pointer store if the paring process was successful
Definition at line 669 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMING, SCIPcheckStage, SCIPerrorMessage, SCIPvarParseOriginal(), SCIPvarParseTransformed(), and TRUE.
Referenced by getFixedVariable(), and getVariable().
◆ SCIPparseVarName()
| SCIP_RETCODE SCIPparseVarName | ( | SCIP * | scip, |
| const char * | str, | ||
| SCIP_VAR ** | var, | ||
| char ** | endptr | ||
| ) |
parses the given string for a variable name and stores the variable in the corresponding pointer if such a variable exits and returns the position where the parsing stopped
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure str string to parse var pointer to store the problem variable, or NULL if it does not exit endptr pointer to store the final string position if successful
Definition at line 728 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_DEPRECATED_VARTYPE_IMPLINT_CHAR, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_VARTYPE_BINARY_CHAR, SCIP_VARTYPE_CONTINUOUS_CHAR, SCIP_VARTYPE_INTEGER_CHAR, SCIPcheckStage, SCIPdebugMsg, SCIPfindVar(), SCIPgetNegatedVar(), SCIPstrCopySection(), and TRUE.
Referenced by getFixedVariable(), parseBase(), readBounds(), SCIP_DECL_CONSPARSE(), SCIPparseVarsList(), SCIPparseVarsPolynomial(), and SCIPparseVarsPolynomialExact().
◆ SCIPparseVarsList()
| SCIP_RETCODE SCIPparseVarsList | ( | SCIP * | scip, |
| const char * | str, | ||
| SCIP_VAR ** | vars, | ||
| int * | nvars, | ||
| int | varssize, | ||
| int * | requiredsize, | ||
| char ** | endptr, | ||
| char | delimiter, | ||
| SCIP_Bool * | success | ||
| ) |
parse the given string as variable list (here ',' is the delimiter)) (<x1>, <x2>, ..., <xn>) (see SCIPwriteVarsList() ); if it was successful, the pointer success is set to TRUE
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- The pointer success in only set to FALSE in the case that a variable with a parsed variable name does not exist.
- If the number of (parsed) variables is greater than the available slots in the variable array, nothing happens except that the required size is stored in the corresponding integer; the reason for this approach is that we cannot reallocate memory, since we do not know how the memory has been allocated (e.g., by a C++ 'new' or SCIP memory functions).
- Parameters
-
scip SCIP data structure str string to parse vars array to store the parsed variable nvars pointer to store number of parsed variables varssize size of the variable array requiredsize pointer to store the required array size for the active variables endptr pointer to store the final string position if successful delimiter character which is used for delimitation success pointer to store the whether the parsing was successful or not
Definition at line 805 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPallocBufferArray, SCIPcheckStage, SCIPfreeBufferArray, SCIPparseVarName(), SCIPskipSpace(), and TRUE.
Referenced by SCIP_DECL_CONSPARSE().
◆ SCIPparseVarsLinearsum()
| SCIP_RETCODE SCIPparseVarsLinearsum | ( | SCIP * | scip, |
| const char * | str, | ||
| SCIP_VAR ** | vars, | ||
| SCIP_Real * | vals, | ||
| int * | nvars, | ||
| int | varssize, | ||
| int * | requiredsize, | ||
| char ** | endptr, | ||
| SCIP_Bool * | success | ||
| ) |
parse the given string as linear sum of variables and coefficients (c1 <x1> + c2 <x2> + ... + cn <xn>) (see SCIPwriteVarsLinearsum() ); if it was successful, the pointer success is set to TRUE
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- The pointer success in only set to FALSE in the case that a variable with a parsed variable name does not exist.
- If the number of (parsed) variables is greater than the available slots in the variable array, nothing happens except that the required size is stored in the corresponding integer; the reason for this approach is that we cannot reallocate memory, since we do not know how the memory has been allocated (e.g., by a C++ 'new' or SCIP memory functions).
- Parameters
-
scip SCIP data structure str string to parse vars array to store the parsed variables vals array to store the parsed coefficients nvars pointer to store number of parsed variables varssize size of the variable array requiredsize pointer to store the required array size for the active variables endptr pointer to store the final string position if successful success pointer to store the whether the parsing was successful or not
Definition at line 899 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPcheckStage, SCIPerrorMessage, SCIPfreeParseVarsPolynomialData(), SCIPparseVarsPolynomial(), and TRUE.
Referenced by getFixedVariable(), and SCIP_DECL_CONSPARSE().
◆ SCIPparseVarsLinearsumExact()
| SCIP_RETCODE SCIPparseVarsLinearsumExact | ( | SCIP * | scip, |
| char * | str, | ||
| SCIP_VAR ** | vars, | ||
| SCIP_RATIONAL ** | vals, | ||
| int * | nvars, | ||
| int | varssize, | ||
| int * | requiredsize, | ||
| char ** | endptr, | ||
| SCIP_Bool * | success | ||
| ) |
parse the given string as linear sum of variables and coefficients (c1 <x1> + c2 <x2> + ... + cn <xn>) (see SCIPwriteVarsLinearsum() ); if it was successful, the pointer success is set to TRUE
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- The pointer success in only set to FALSE in the case that a variable with a parsed variable name does not exist.
- If the number of (parsed) variables is greater than the available slots in the variable array, nothing happens except that the required size is stored in the corresponding integer; the reason for this approach is that we cannot reallocate memory, since we do not know how the memory has been allocated (e.g., by a C++ 'new' or SCIP memory functions).
- Parameters
-
scip SCIP data structure str string to parse vars array to store the parsed variables vals array to store the parsed coefficients nvars pointer to store number of parsed variables varssize size of the variable array requiredsize pointer to store the required array size for the active variables endptr pointer to store the final string position if successful success pointer to store the whether the parsing was successful or not
Definition at line 1007 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPfreeParseVarsPolynomialDataExact(), SCIPparseVarsPolynomialExact(), SCIPrationalIsZero(), SCIPrationalSetRational(), and TRUE.
Referenced by getFixedVariable(), and SCIP_DECL_CONSPARSE().
◆ SCIPparseVarsPolynomial()
| SCIP_RETCODE SCIPparseVarsPolynomial | ( | SCIP * | scip, |
| const char * | str, | ||
| SCIP_VAR **** | monomialvars, | ||
| SCIP_Real *** | monomialexps, | ||
| SCIP_Real ** | monomialcoefs, | ||
| int ** | monomialnvars, | ||
| int * | nmonomials, | ||
| char ** | endptr, | ||
| SCIP_Bool * | success | ||
| ) |
parse the given string as signomial of variables and coefficients (c1 <x11>^e11 <x12>^e12 ... <x1n>^e1n + c2 <x21>^e21 <x22>^e22 ... + ... + cn <xn1>^en1 ...) (see SCIPwriteVarsPolynomial()); if it was successful, the pointer success is set to TRUE
The user has to call SCIPfreeParseVarsPolynomialData(scip, monomialvars, monomialexps, monomialcoefs, monomialnvars, *nmonomials) short after SCIPparseVarsPolynomial to free all the allocated memory again. Do not keep the arrays created by SCIPparseVarsPolynomial around, since they use buffer memory that is intended for short term use only.
Parsing is stopped at the end of string (indicated by the \0-character) or when no more monomials are recognized.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
parse the given string as signomial of variables and coefficients (c1 <x11>^e11 <x12>^e12 ... <x1n>^e1n + c2 <x21>^e21 <x22>^e22 ... + ... + cn <xn1>^en1 ...) (see SCIPwriteVarsPolynomial()); if it was successful, the pointer success is set to TRUE
The user has to call SCIPfreeParseVarsPolynomialData(scip, monomialvars, monomialexps, monomialcoefs, monomialnvars, *nmonomials) short after SCIPparseVarsPolynomial to free all the allocated memory again.
Parsing is stopped at the end of string (indicated by the \0-character) or when no more monomials are recognized.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure str string to parse monomialvars pointer to store arrays with variables for each monomial monomialexps pointer to store arrays with variable exponents monomialcoefs pointer to store array with monomial coefficients monomialnvars pointer to store array with number of variables for each monomial nmonomials pointer to store number of parsed monomials endptr pointer to store the final string position if successful success pointer to store the whether the parsing was successful or not
Definition at line 1100 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_READERROR, SCIP_Real, SCIPcalcMemGrowSize(), SCIPcheckStage, SCIPdebugMsg, SCIPduplicateBlockMemoryArray, SCIPerrorMessage, SCIPfreeBlockMemoryArrayNull, SCIPfreeParseVarsPolynomialData(), SCIPparseVarName(), SCIPreallocBlockMemoryArray, SCIPskipSpace(), SCIPstrToRealValue(), and TRUE.
Referenced by SCIP_DECL_CONSPARSE(), and SCIPparseVarsLinearsum().
◆ SCIPfreeParseVarsPolynomialDataExact()
| void SCIPfreeParseVarsPolynomialDataExact | ( | SCIP * | scip, |
| SCIP_VAR **** | monomialvars, | ||
| SCIP_RATIONAL *** | monomialcoefs, | ||
| int | nmonomials | ||
| ) |
frees memory allocated when parsing a signomial from a string
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure monomialvars pointer to store arrays with variables for each monomial monomialcoefs pointer to store array with monomial coefficients nmonomials pointer to store number of parsed monomials
Definition at line 1806 of file scip_var.c.
References FALSE, NULL, SCIP_CALL_ABORT, SCIPblkmem(), SCIPcheckStage, SCIPfreeBlockMemoryArray, SCIPfreeBlockMemoryArrayNull, SCIPrationalFreeBlockArray(), and TRUE.
Referenced by SCIPparseVarsLinearsumExact(), and SCIPparseVarsPolynomialExact().
◆ SCIPparseVarsPolynomialExact()
| SCIP_RETCODE SCIPparseVarsPolynomialExact | ( | SCIP * | scip, |
| char * | str, | ||
| SCIP_VAR **** | monomialvars, | ||
| SCIP_RATIONAL *** | monomialcoefs, | ||
| int * | nmonomials, | ||
| char ** | endptr, | ||
| SCIP_Bool * | success | ||
| ) |
parse the given string as signomial of variables and coefficients (c1 <x11>^e11 <x12>^e12 ... <x1n>^e1n + c2 <x21>^e21 <x22>^e22 ... + ... + cn <xn1>^en1 ...) (see SCIPwriteVarsPolynomial()); if it was successful, the pointer success is set to TRUE
The user has to call SCIPfreeParseVarsPolynomialData(scip, monomialvars, monomialexps, monomialcoefs, monomialnvars, *nmonomials) short after SCIPparseVarsPolynomial to free all the allocated memory again.
Parsing is stopped at the end of string (indicated by the \0-character) or when no more monomials are recognized.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
parse the given string as signomial of variables and coefficients (c1 <x11>^e11 <x12>^e12 ... <x1n>^e1n + c2 <x21>^e21 <x22>^e22 ... + ... + cn <xn1>^en1 ...) (see SCIPwriteVarsPolynomial()); if it was successful, the pointer success is set to TRUE
The user has to call SCIPfreeParseVarsPolynomialData(scip, monomialvars, monomialexps, monomialcoefs, monomialnvars, *nmonomials) short after SCIPparseVarsPolynomial to free all the allocated memory again.
Parsing is stopped at the end of string (indicated by the \0-character) or when no more monomials are recognized.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure str string to parse monomialvars pointer to store arrays with variables for each monomial monomialcoefs pointer to store array with monomial coefficients nmonomials pointer to store number of parsed monomials endptr pointer to store the final string position if successful success pointer to store the whether the parsing was successful or not
Definition at line 1453 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_READERROR, SCIPblkmem(), SCIPbuffer(), SCIPcalcMemGrowSize(), SCIPcheckStage, SCIPdebugMsg, SCIPduplicateBlockMemoryArray, SCIPerrorMessage, SCIPfreeBlockMemoryArrayNull, SCIPfreeParseVarsPolynomialDataExact(), SCIPparseVarName(), SCIPrationalCreateBuffer(), SCIPrationalFreeBuffer(), SCIPrationalGetReal(), SCIPrationalIsZero(), SCIPrationalReallocBlockArray(), SCIPrationalSetRational(), SCIPrationalSetReal(), SCIPrationalSetString(), SCIPreallocBlockMemoryArray, SCIPskipSpace(), SCIPstrToRationalValue(), and TRUE.
Referenced by SCIPparseVarsLinearsumExact().
◆ SCIPfreeParseVarsPolynomialData()
| void SCIPfreeParseVarsPolynomialData | ( | SCIP * | scip, |
| SCIP_VAR **** | monomialvars, | ||
| SCIP_Real *** | monomialexps, | ||
| SCIP_Real ** | monomialcoefs, | ||
| int ** | monomialnvars, | ||
| int | nmonomials | ||
| ) |
frees memory allocated when parsing a signomial from a string
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure monomialvars pointer to store arrays with variables for each monomial monomialexps pointer to store arrays with variable exponents monomialcoefs pointer to store array with monomial coefficients monomialnvars pointer to store array with number of variables for each monomial nmonomials pointer to store number of parsed monomials
Definition at line 1755 of file scip_var.c.
References FALSE, NULL, SCIP_CALL_ABORT, SCIPcheckStage, SCIPfreeBlockMemoryArray, SCIPfreeBlockMemoryArrayNull, and TRUE.
Referenced by SCIP_DECL_CONSPARSE(), SCIPparseVarsLinearsum(), and SCIPparseVarsPolynomial().
◆ SCIPcaptureVar()
| SCIP_RETCODE SCIPcaptureVar | ( | SCIP * | scip, |
| SCIP_VAR * | var | ||
| ) |
increases usage counter of variable
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to capture
Definition at line 1853 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarCapture(), and TRUE.
Referenced by addAuxiliaryVariablesToMaster(), addAuxVar(), addCoef(), addComponent(), addOrbitope(), applyFixings(), applyProbing(), assignAuxiliaryVariables(), bilinearTermsInsertEntry(), computeConsAndDataChanges(), consdataCreate(), correctPresoldata(), createAndAddAndCons(), createMasterVarMapping(), createPresoldata(), createSepaData(), createSubSCIP(), createVariableMappings(), determineSymmetry(), exprIsSemicontinuous(), initializeCandsLists(), lexdataCreate(), objimplicsCreate(), presolRoundIndicator(), propdataInit(), replaceAggregatedVarsOrbisack(), replaceAggregatedVarsOrbitopeFull(), replaceAggregatedVarsOrbitopePP(), replaceAggregatedVarsSymresack(), tsp::ProbDataTSP::scip_copy(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_CONSTRANS(), SCIP_DECL_EXPRCOPYDATA(), SCIP_DECL_NLHDLRDETECT(), SCIP_DECL_PROBCOPY(), SCIP_DECL_PROPEXITPRE(), SCIP_DECL_PROPPRESOL(), tsp::ProbDataTSP::scip_trans(), SCIPcreateConsIndicatorGeneric(), SCIPcreateConsIndicatorGenericLinCons(), SCIPcreateConsIndicatorGenericLinConsPure(), SCIPcreateConsPseudobooleanWithConss(), SCIPcreateExprVar(), SCIPgenVBoundAdd(), SCIPinsertBilinearTermExistingNonlinear(), SCIPinsertBilinearTermImplicitNonlinear(), SCIPprobdataAddVar(), sepadataAddMinor(), setIntvar(), storeCaptureVars(), and tcliquegraphAddNode().
◆ SCIPreleaseVar()
| SCIP_RETCODE SCIPreleaseVar | ( | SCIP * | scip, |
| SCIP_VAR ** | var | ||
| ) |
decreases usage counter of variable, if the usage pointer reaches zero the variable gets freed
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- the pointer of the variable will be NULLed
- Parameters
-
scip SCIP data structure var pointer to variable
Definition at line 1887 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPcheckStage, SCIPerrorMessage, SCIPvarIsTransformed(), SCIPvarRelease(), and TRUE.
Referenced by ObjPricerVRP::add_tour_variable(), addScenarioConsToProb(), addScenarioVarsToProb(), addSlackVars(), addVarCardinality(), addVariable(), addVariableToBendersProblem(), aggregation(), appendVarCardinality(), applyFixings(), applyProbing(), applyRepair(), bilinearTermsFree(), cleanupHashDatas(), computeCoverUndercover(), consdataFree(), convertLongEquality(), correctConshdlrdata(), createAndAddAndCons(), createBlockproblem(), createCipFormulation(), createConstraint(), createInitialColumns(), createKKTComplementarityBinary(), createKKTComplementarityBounds(), createKKTComplementarityLinear(), createKKTDualCons(), createMipCpFormulation(), createMipFormulation(), createOriginalproblem(), createProbQP(), createSubproblem(), createSubproblems(), createSubSCIP(), createVariable(), delCoefPos(), doPricing(), doSeachEcAggr(), dropVarEvents(), AMPLProblemHandler::EndInput(), execmain(), freeAuxVar(), freeComponent(), freeDisaggrVars(), freeGenVBound(), freeGenVBounds(), freeNlhdlrExprData(), freeOrbitope(), freeSepaData(), freeSortedvars(), freeSubSCIP(), freeSubscip(), freeSymmetryData(), getBinaryProductExprDo(), getFixedVariable(), getVariable(), initPricing(), lexdataFree(), main(), objimplicsDelPos(), objimplicsFree(), AMPLProblemHandler::OnBinaryLogical(), AMPLProblemHandler::OnObj(), AMPLProblemHandler::OnRelational(), presolRoundIndicator(), presolveAddKKTLinearCons(), probdataFree(), propdataExit(), readBounds(), readBoundsExact(), readCnf(), readCols(), readColsExact(), readLIBSVM(), readObjective(), readQMatrix(), reformulateFactorizedBinaryQuadratic(), releaseHashmapEntries(), releaseVarMappingHashmapVars(), removeIndicator(), replaceAggregatedVarsOrbisack(), replaceAggregatedVarsOrbitopeFull(), replaceAggregatedVarsOrbitopePP(), replaceAggregatedVarsSymresack(), runBrachistochrone(), runPacking(), SCIP_DECL_BENDERSEXIT(), SCIP_DECL_CONSDELETE(), SCIP_DECL_CONSEXIT(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPRFREEDATA(), SCIP_DECL_HEUREXEC(), SCIP_DECL_HEUREXITSOL(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_NLHDLRFREEEXPRDATA(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PRESOLEXIT(), SCIP_DECL_PROBDELORIG(), SCIP_DECL_PROBDELTRANS(), SCIP_DECL_PROPEXITPRE(), SCIP_DECL_READERREAD(), SCIP_DECL_SEPAEXITSOL(), tsp::ProbDataTSP::scip_delorig(), tsp::ProbDataTSP::scip_deltrans(), SCIPaddTrustregionNeighborhoodConstraint(), SCIPapplyUndercover(), SCIPbendersExit(), SCIPbendersMergeSubproblemIntoMaster(), SCIPcreateConsCardinality(), SCIPcreateSchedulingProblem(), SCIPgenVBoundAdd(), SCIPgetVarCopy(), SCIPtransformMinUC(), SCIPverifyCircularPatternNLP(), sepadataClear(), setIntvar(), setObjective(), setupAndSolveCumulativeSubscip(), setupAndSolveFiniteSolSubscip(), setupProblem(), solveClassification(), solveMinIISC(), solvePricingMINLP(), tcliquegraphFree(), transformToOrig(), and scipexamples::QueensSolver::~QueensSolver().
◆ SCIPchgVarName()
| SCIP_RETCODE SCIPchgVarName | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| const char * | name | ||
| ) |
changes the name of a variable
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_PROBLEM
- Note
- to get the current name of a variable, use SCIPvarGetName() from pub_var.h
- Parameters
-
scip SCIP data structure var variable name new name of constraint
Definition at line 1938 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PROBLEM, SCIPABORT, SCIPblkmem(), SCIPcheckStage, SCIPerrorMessage, SCIPgetStage(), SCIPprobAddVarName(), SCIPprobRemoveVarName(), SCIPvarChgName(), SCIPvarGetProbindex(), and TRUE.
◆ SCIPtransformVar()
| SCIP_RETCODE SCIPtransformVar | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_VAR ** | transvar | ||
| ) |
gets and captures transformed variable of a given variable; if the variable is not yet transformed, a new transformed variable for this variable is created
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to get/create transformed variable for transvar pointer to store the transformed variable
Definition at line 1988 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarCapture(), SCIPvarIsTransformed(), SCIPvarTransform(), and TRUE.
Referenced by SCIP_DECL_PROBTRANS().
◆ SCIPtransformVars()
| SCIP_RETCODE SCIPtransformVars | ( | SCIP * | scip, |
| int | nvars, | ||
| SCIP_VAR ** | vars, | ||
| SCIP_VAR ** | transvars | ||
| ) |
gets and captures transformed variables for an array of variables; if a variable of the array is not yet transformed, a new transformed variable for this variable is created; it is possible to call this method with vars == transvars
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure nvars number of variables to get/create transformed variables for vars array with variables to get/create transformed variables for transvars array to store the transformed variables
Definition at line 2028 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarCapture(), SCIPvarIsTransformed(), SCIPvarTransform(), and TRUE.
Referenced by SCIP_DECL_PROBTRANS().
◆ SCIPgetTransformedVar()
| SCIP_RETCODE SCIPgetTransformedVar | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_VAR ** | transvar | ||
| ) |
gets corresponding transformed variable of a given variable; returns NULL as transvar, if transformed variable is not yet existing
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to get transformed variable for transvar pointer to store the transformed variable
Definition at line 2078 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarGetTransformed(), SCIPvarIsTransformed(), and TRUE.
Referenced by addCoef(), addVarCardinality(), addVarSOS1(), addVarSOS2(), appendVarCardinality(), appendVarSOS1(), appendVarSOS2(), consdataCreate(), consdataCreateSuperindicator(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_CONSTRANS(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EXPR_MAPEXPR(), SCIP_DECL_PRICERINIT(), SCIP_DECL_PROBCOPY(), tsp::ProbDataTSP::scip_trans(), SCIPchgVarImplType(), SCIPchgVarType(), SCIPcreateConsSOS1(), SCIPsetBinaryVarIndicator(), and setIntvar().
◆ SCIPgetTransformedVars()
| SCIP_RETCODE SCIPgetTransformedVars | ( | SCIP * | scip, |
| int | nvars, | ||
| SCIP_VAR ** | vars, | ||
| SCIP_VAR ** | transvars | ||
| ) |
gets corresponding transformed variables for an array of variables; stores NULL in a transvars slot, if the transformed variable is not yet existing; it is possible to call this method with vars == transvars, but remember that variables that are not yet transformed will be replaced with NULL
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure nvars number of variables to get transformed variables for vars array with variables to get transformed variables for transvars array to store the transformed variables
Definition at line 2119 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarGetTransformed(), SCIPvarIsTransformed(), and TRUE.
Referenced by consdataCreate(), consdataCreateRedundant(), consdataCreateTransformed(), and SCIP_DECL_CONSTRANS().
◆ SCIPgetNegatedVar()
| SCIP_RETCODE SCIPgetNegatedVar | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_VAR ** | negvar | ||
| ) |
gets negated variable x' = lb + ub - x of variable x; negated variable is created, if not yet existing
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
gets negated variable x' = lb + ub - x of variable x; negated variable is created, if not yet existing; in difference to SCIPcreateVar, the negated variable must not be released (unless captured explicitly)
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to get negated variable for negvar pointer to store the negated variable
Definition at line 2166 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarNegate(), and TRUE.
Referenced by addBinaryConstraint(), addFixedVarsConss(), addNegatedCliques(), applyCliqueFixings(), applyFixings(), checkForOverlapping(), cliquePresolve(), consdataCreate(), consdataLinearize(), createAndAddLinearCons(), createBlockproblem(), createConflict(), createConflictCons(), createCoveringProblem(), createIndicatorConstraint(), createMipCpFormulation(), createNormalizedKnapsack(), createNormalizedLogicor(), createNormalizedSetppc(), createSubSCIP(), CUTOFF_CONSTRAINT(), executeBranchingRecursive(), extendToCover(), extractGates(), fixDeleteOrUpgradeCons(), forbidCover(), forbidFixation(), getBinVarsRepresentatives(), getVariableOrTerm(), AMPLProblemHandler::OnBinaryLogical(), AMPLProblemHandler::OnNot(), AMPLProblemHandler::OnRelational(), printIndicatorCons(), readCnf(), readIndicators(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSINITPRE(), SCIP_DECL_CONSPARSE(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_NONLINCONSUPGD(), SCIPcalcNegatedCliquePartition(), SCIPcreateConsIndicatorGeneric(), SCIPcreateConsIndicatorGenericLinCons(), SCIPcreateConsIndicatorGenericLinConsPure(), SCIPgetBinvarRepresentative(), SCIPgetBinvarRepresentatives(), SCIPgetVarCopy(), SCIPparseVarName(), SCIPseparateRelaxedKnapsack(), SCIPsetBinaryVarIndicator(), SCIPtransformMinUC(), SCIPwriteVarName(), tcliquegraphAddNode(), tightenWeightsLift(), upgradeCons(), and upgradeConss().
◆ SCIPgetNegatedVars()
| SCIP_RETCODE SCIPgetNegatedVars | ( | SCIP * | scip, |
| int | nvars, | ||
| SCIP_VAR ** | vars, | ||
| SCIP_VAR ** | negvars | ||
| ) |
gets negated variables x' = lb + ub - x of variables x; negated variables are created, if not yet existing; in difference to SCIPcreateVar, the negated variable must not be released (unless captured explicitly)
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
gets negated variables x' = lb + ub - x of variables x; negated variables are created, if not yet existing
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure nvars number of variables to get negated variables for vars array of variables to get negated variables for negvars array to store the negated variables
Definition at line 2199 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarNegate(), and TRUE.
Referenced by upgradeCons().
◆ SCIPgetBinvarRepresentative()
| SCIP_RETCODE SCIPgetBinvarRepresentative | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_VAR ** | repvar, | ||
| SCIP_Bool * | negated | ||
| ) |
gets a binary variable that is equal to the given binary variable, and that is either active, fixed, or multi-aggregated, or the negated variable of an active, fixed, or multi-aggregated variable
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var binary variable to get binary representative for repvar pointer to store the binary representative negated pointer to store whether the negation of an active variable was returned
Definition at line 2236 of file scip_var.c.
References FALSE, NULL, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPgetNegatedVar(), SCIPvarGetProbvarBinary(), and TRUE.
Referenced by addCoef(), applyFixings(), cleanupHashDatas(), correctPresoldata(), createCoveringProblem(), createPresoldata(), extractGates(), getBinVarsRepresentatives(), replaceAggregatedVarsOrbisack(), replaceAggregatedVarsOrbitopeFull(), replaceAggregatedVarsOrbitopePP(), replaceAggregatedVarsSymresack(), SCIP_DECL_PRESOLEXEC(), writeOpbFixedVars(), and writeOpbRelevantAnds().
◆ SCIPgetBinvarRepresentatives()
| SCIP_RETCODE SCIPgetBinvarRepresentatives | ( | SCIP * | scip, |
| int | nvars, | ||
| SCIP_VAR ** | vars, | ||
| SCIP_VAR ** | repvars, | ||
| SCIP_Bool * | negated | ||
| ) |
gets binary variables that are equal to the given binary variables, and which are either active, fixed, or multi-aggregated, or the negated variables of active, fixed, or multi-aggregated variables
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure nvars number of binary variables to get representatives for vars binary variables to get binary representatives for repvars array to store the binary representatives negated array to store whether the negation of an active variable was returned
Definition at line 2283 of file scip_var.c.
References BMSclearMemoryArray, BMScopyMemoryArray, FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPgetNegatedVar(), SCIPvarsGetProbvarBinary(), and TRUE.
Referenced by applyFixings(), checkSolution(), consdataLinearize(), findAggregation(), and tryUpgradingXor().
◆ SCIPflattenVarAggregationGraph()
| SCIP_RETCODE SCIPflattenVarAggregationGraph | ( | SCIP * | scip, |
| SCIP_VAR * | var | ||
| ) |
flattens aggregation graph of multi-aggregated variable in order to avoid exponential recursion later on
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable
Definition at line 2332 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarFlattenAggregationGraph(), and TRUE.
Referenced by applyFixings(), fixVariableZero(), presolve(), SCIP_DECL_READERWRITE(), and SCIPgetVarCopy().
◆ SCIPgetProbvarLinearSum()
| SCIP_RETCODE SCIPgetProbvarLinearSum | ( | SCIP * | scip, |
| SCIP_VAR ** | vars, | ||
| SCIP_Real * | scalars, | ||
| int * | nvars, | ||
| int | varssize, | ||
| SCIP_Real * | constant, | ||
| int * | requiredsize | ||
| ) |
Transforms a given linear sum of variables, that is a_1*x_1 + ... + a_n*x_n + c into a corresponding linear sum of active variables, that is b_1*y_1 + ... + b_m*y_m + d.
If the number of needed active variables is greater than the available slots in the variable array, nothing happens except that an upper bound on the required size is stored in the variable requiredsize; otherwise, the active variable representation is stored in the arrays.
The reason for this approach is that we cannot reallocate memory, since we do not know how the memory has been allocated (e.g., by a C++ 'new' or SCIP functions). Note that requiredsize is an upper bound due to possible cancelations.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- The resulting linear sum is stored into the given variable array, scalar array, and constant. That means the given entries are overwritten.
- That method can be used to convert a single variables into variable space of active variables. Therefore call the method with the linear sum 1.0*x + 0.0.
- Parameters
-
scip SCIP data structure vars variable array x_1, ..., x_n in the linear sum which will be overwritten by the variable array y_1, ..., y_m in the linear sum w.r.t. active variables scalars scalars a_1, ..., a_n in linear sum which will be overwritten to the scalars b_1, ..., b_m in the linear sum of the active variables nvars pointer to number of variables in the linear sum which will be overwritten by the number of variables in the linear sum corresponding to the active variables varssize available slots in vars and scalars array which is needed to check if the array are large enough for the linear sum w.r.t. active variables constant pointer to constant c in linear sum a_1*x_1 + ... + a_n*x_n + c which will chnage to constant d in the linear sum b_1*y_1 + ... + b_m*y_m + d w.r.t. the active variables requiredsize pointer to store an upper bound on the required size for the linear sum w.r.t. the active variables
Definition at line 2378 of file scip_var.c.
References FALSE, NULL, scalars, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarGetActiveRepresentatives(), and TRUE.
Referenced by applyFixings(), correctConshdlrdata(), getActiveVariables(), getLinearCoeffs(), propagateCons(), SCIP_DECL_EXPRSIMPLIFY(), SCIP_DECL_PROPEXITPRE(), SCIPaddCoefLinear(), SCIPcopyConsExactLinear(), SCIPcopyConsLinear(), SCIPcreateConsLinear(), SCIPgetSymActiveVariables(), tightenVarsBoundsSOS1(), tryUpgradingXor(), and writeExpandedSolutions().
◆ SCIPgetProbvarSum()
| SCIP_RETCODE SCIPgetProbvarSum | ( | SCIP * | scip, |
| SCIP_VAR ** | var, | ||
| SCIP_Real * | scalar, | ||
| SCIP_Real * | constant | ||
| ) |
transforms given variable, scalar and constant to the corresponding active, fixed, or multi-aggregated variable, scalar and constant; if the variable resolves to a fixed variable, "scalar" will be 0.0 and the value of the sum will be stored in "constant"; a multi-aggregation with only one active variable (this can happen due to fixings after the multi-aggregation), is treated like an aggregation; if the multi-aggregation constant is infinite, "scalar" will be 0.0
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var pointer to problem variable x in sum a*x + c scalar pointer to scalar a in sum a*x + c constant pointer to constant c in sum a*x + c
Definition at line 2499 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarGetProbvarSum(), and TRUE.
Referenced by addAltLPConstraint(), applyFixings(), createSolFromSubScipSol(), getActiveVar(), initData(), presolRoundCardinality(), presolRoundConsSOS1(), and presolRoundSOS2().
◆ SCIPgetProbvarSumExact()
| SCIP_RETCODE SCIPgetProbvarSumExact | ( | SCIP * | scip, |
| SCIP_VAR ** | var, | ||
| SCIP_RATIONAL * | scalar, | ||
| SCIP_RATIONAL * | constant | ||
| ) |
transforms given variable, scalar and constant to the corresponding active, fixed, or multi-aggregated variable, scalar and constant; if the variable resolves to a fixed variable, "scalar" will be 0.0 and the value of the sum will be stored in "constant"; a multi-aggregation with only one active variable (this can happen due to fixings after the multi-aggregation), is treated like an aggregation; if the multi-aggregation constant is infinite, "scalar" will be 0.0
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var pointer to problem variable x in sum a*x + c scalar pointer to scalar a in sum a*x + c constant pointer to constant c in sum a*x + c
Definition at line 2538 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarGetProbvarSumExact(), and TRUE.
Referenced by applyFixings().
◆ SCIPgetActiveVars()
| SCIP_RETCODE SCIPgetActiveVars | ( | SCIP * | scip, |
| SCIP_VAR ** | vars, | ||
| int * | nvars, | ||
| int | varssize, | ||
| int * | requiredsize | ||
| ) |
return for given variables all their active counterparts; all active variables will be pairwise different
- Note
- It does not hold that the first output variable is the active variable for the first input variable.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure vars variable array with given variables and as output all active variables, if enough slots exist nvars number of given variables, and as output number of active variables, if enough slots exist varssize available slots in vars array requiredsize pointer to store the required array size for the active variables
Definition at line 2574 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarsGetActiveVars(), and TRUE.
Referenced by decompGetConsVarsAndLabels(), fillDigraph(), getActiveVariables2(), and SCIPhasConsOnlyLinkVars().
◆ SCIPgetVarRedcost()
returns the reduced costs of the variable in the current node's LP relaxation; the current node has to have a feasible LP.
returns SCIP_INVALID if the variable is active but not in the current LP; returns 0 if the variable has been aggregated out or fixed in presolving.
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_SOLVING
- Note
- The return value of this method should be used carefully if the dual feasibility check was explictely disabled.
- Parameters
-
scip SCIP data structure var variable to get reduced costs, should be a column in current node LP
Definition at line 2608 of file scip_var.c.
References SCIP_Var::data, NULL, SCIP_Var::original, SCIP_Var::scip, SCIP_INVALID, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPgetColRedcost(), SCIPgetVarRedcost(), SCIPvarGetCol(), SCIPvarGetStatus(), and SCIP_Original::transvar.
Referenced by computeStandardLPOptimalityCut(), createGenVBound(), getVariableRedcostScore(), includeVarGenVBound(), propagateRedcostBinvar(), propagateRootRedcostBinvar(), reducedCostSort(), SCIP_DECL_BRANCHEXECLP(), SCIPgetDualSolVal(), and SCIPgetVarRedcost().
◆ SCIPgetVarImplRedcost()
returns the implied reduced costs of the variable in the current node's LP relaxation; the current node has to have a feasible LP.
returns SCIP_INVALID if the variable is active but not in the current LP; returns 0 if the variable has been aggregated out or fixed in presolving.
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_SOLVING
- Note
- The return value of this method should be used carefully if the dual feasibility check was explictely disabled.
- Parameters
-
scip SCIP data structure var variable to get reduced costs, should be a column in current node LP varfixing FALSE if for x == 0, TRUE for x == 1
Definition at line 2653 of file scip_var.c.
References SCIP_Var::data, NULL, SCIP_Var::original, SCIP_Var::scip, SCIP_INVALID, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPgetVarImplRedcost(), SCIPvarGetImplRedcost(), SCIPvarGetStatus(), and SCIP_Original::transvar.
Referenced by propagateRedcostBinvar(), propagateRootRedcostBinvar(), and SCIPgetVarImplRedcost().
◆ SCIPgetVarFarkasCoef()
returns the Farkas coefficient of the variable in the current node's LP relaxation; the current node has to have an infeasible LP.
returns SCIP_INVALID if the variable is active but not in the current LP; returns 0 if the variable has been aggregated out or fixed in presolving.
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_SOLVING
- Parameters
-
scip SCIP data structure var variable to get reduced costs, should be a column in current node LP
Definition at line 2698 of file scip_var.c.
References SCIP_Var::data, NULL, SCIP_Var::original, SCIP_Var::scip, SCIP_INVALID, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPgetColFarkasCoef(), SCIPgetVarFarkasCoef(), SCIPvarGetCol(), SCIPvarGetStatus(), and SCIP_Original::transvar.
Referenced by computeStandardLPFeasibilityCut(), and SCIPgetVarFarkasCoef().
◆ SCIPgetVarLbAtIndex()
| SCIP_Real SCIPgetVarLbAtIndex | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BDCHGIDX * | bdchgidx, | ||
| SCIP_Bool | after | ||
| ) |
returns lower bound of variable directly before or after the bound change given by the bound change index was applied
- Parameters
-
scip SCIP data structure var problem variable bdchgidx bound change index representing time on path to current node after should the bound change with given index be included?
Definition at line 2736 of file scip_var.c.
References SCIP_Var::aggregate, SCIP_Aggregate::constant, SCIP_Multaggr::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::glbdom, SCIP_Dom::lb, SCIP_Var::multaggr, SCIP_Var::negate, SCIP_Var::negatedvar, NULL, SCIP_Multaggr::nvars, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_Multaggr::scalars, SCIP_INVALID, SCIP_Real, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPbdchginfoGetNewbound(), SCIPerrorMessage, SCIPgetVarLbAtIndex(), SCIPgetVarUbAtIndex(), SCIPinfinity(), SCIPisInfinity(), SCIPvarGetLbchgInfo(), SCIPvarGetLbLocal(), SCIPvarGetStatus(), SCIP_Original::transvar, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by addConflictBinvar(), addConflictBounds(), addConflictFixedVars(), adjustCutoffbound(), analyzeConflictUpperbound(), analyzeEnergyRequirement(), ComplementedMirLhs(), computeSlack(), getConflictImplics(), getGenVBoundsMinActivityConflict(), getMinactImplicObjchg(), getReasonRow(), MirReduction(), resolveGenVBoundPropagation(), resolvePropagation(), resolvePropagationCoretimes(), resolvePropagationFullOrbitope(), respropCumulativeCondition(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_PROPRESPROP(), SCIPconflictIsVarUsed(), SCIPconsResolvePropagation(), SCIPgetVarBdAtIndex(), SCIPgetVarLbAtIndex(), SCIPgetVarUbAtIndex(), SCIPgetVarWasFixedAtIndex(), SCIPpropResolvePropagation(), updateBdchgQueue(), and weakenConflictRow().
◆ SCIPgetVarUbAtIndex()
| SCIP_Real SCIPgetVarUbAtIndex | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BDCHGIDX * | bdchgidx, | ||
| SCIP_Bool | after | ||
| ) |
returns upper bound of variable directly before or after the bound change given by the bound change index was applied
- Parameters
-
scip SCIP data structure var problem variable bdchgidx bound change index representing time on path to current node after should the bound change with given index be included?
Definition at line 2872 of file scip_var.c.
References SCIP_Var::aggregate, SCIP_Aggregate::constant, SCIP_Multaggr::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::glbdom, SCIP_Var::multaggr, SCIP_Var::negate, SCIP_Var::negatedvar, NULL, SCIP_Multaggr::nvars, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_Multaggr::scalars, SCIP_INVALID, SCIP_Real, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPbdchginfoGetNewbound(), SCIPerrorMessage, SCIPgetVarLbAtIndex(), SCIPgetVarUbAtIndex(), SCIPinfinity(), SCIPisInfinity(), SCIPvarGetStatus(), SCIPvarGetUbchgInfo(), SCIPvarGetUbLocal(), SCIP_Original::transvar, SCIP_Dom::ub, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by addConflictBinvar(), addConflictBounds(), addConflictFixedVars(), adjustCutoffbound(), analyzeConflictLowerbound(), analyzeEnergyRequirement(), ComplementedMirLhs(), computeSlack(), getConflictImplics(), getGenVBoundsMinActivityConflict(), getMinactImplicObjchg(), getReasonRow(), MirReduction(), resolveGenVBoundPropagation(), resolvePropagation(), resolvePropagationCoretimes(), resolvePropagationFullOrbitope(), respropCumulativeCondition(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_PROPRESPROP(), SCIPconflictIsVarUsed(), SCIPconsResolvePropagation(), SCIPgetVarBdAtIndex(), SCIPgetVarLbAtIndex(), SCIPgetVarUbAtIndex(), SCIPgetVarWasFixedAtIndex(), SCIPpropResolvePropagation(), updateBdchgQueue(), and weakenConflictRow().
◆ SCIPgetVarBdAtIndex()
| SCIP_Real SCIPgetVarBdAtIndex | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BOUNDTYPE | boundtype, | ||
| SCIP_BDCHGIDX * | bdchgidx, | ||
| SCIP_Bool | after | ||
| ) |
returns lower or upper bound of variable directly before or after the bound change given by the bound change index was applied
- Parameters
-
scip SCIP data structure var problem variable boundtype type of bound: lower or upper bound bdchgidx bound change index representing time on path to current node after should the bound change with given index be included?
Definition at line 3008 of file scip_var.c.
References SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIPgetVarLbAtIndex(), and SCIPgetVarUbAtIndex().
Referenced by conflictResolveBound().
◆ SCIPgetVarWasFixedAtIndex()
| SCIP_Bool SCIPgetVarWasFixedAtIndex | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BDCHGIDX * | bdchgidx, | ||
| SCIP_Bool | after | ||
| ) |
returns whether the binary variable was fixed at the time given by the bound change index
- Parameters
-
scip SCIP data structure var problem variable bdchgidx bound change index representing time on path to current node after should the bound change with given index be included?
Definition at line 3026 of file scip_var.c.
References NULL, SCIPgetVarLbAtIndex(), SCIPgetVarUbAtIndex(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), and SCIPvarIsBinary().
◆ SCIPgetVarSol()
gets solution value for variable in current node
- Returns
- solution value for variable in current node
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to get solution value for
Definition at line 3051 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage, SCIPtreeHasCurrentNodeLP(), SCIPvarGetSol(), and TRUE.
Referenced by createCGMIPprimalsols(), createSubscip(), fixVariable(), performBranchingNoSol(), performBranchingSol(), SCIP_DECL_SEPAEXECLP(), selectBestCands(), and separateIISRounding().
◆ SCIPgetVarSols()
| SCIP_RETCODE SCIPgetVarSols | ( | SCIP * | scip, |
| int | nvars, | ||
| SCIP_VAR ** | vars, | ||
| SCIP_Real * | vals | ||
| ) |
gets solution values of multiple variables in current node
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure nvars number of variables to get solution value for vars array with variables to get value for vals array to store solution values of variables
Definition at line 3071 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPtreeHasCurrentNodeLP(), SCIPvarGetLPSol(), SCIPvarGetPseudoSol(), and TRUE.
Referenced by SCIP_DECL_SEPAEXECLP(), and SCIPgetSolVals().
◆ SCIPclearRelaxSolVals()
| SCIP_RETCODE SCIPclearRelaxSolVals | ( | SCIP * | scip, |
| SCIP_RELAX * | relax | ||
| ) |
sets the solution value of all variables in the global relaxation solution to zero
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure relax relaxator data structure
Definition at line 3108 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPgetVarsData(), SCIPrelaxationIsSolZero(), SCIPrelaxationSetSolObj(), SCIPrelaxationSetSolRelax(), SCIPrelaxationSetSolZero(), SCIPvarSetRelaxSol(), and TRUE.
Referenced by SCIP_DECL_RELAXEXEC(), SCIPsetRelaxSolVals(), SCIPsetRelaxSolValsSol(), and SCIPsolve().
◆ SCIPsetRelaxSolVal()
| SCIP_RETCODE SCIPsetRelaxSolVal | ( | SCIP * | scip, |
| SCIP_RELAX * | relax, | ||
| SCIP_VAR * | var, | ||
| SCIP_Real | val | ||
| ) |
sets the value of the given variable in the global relaxation solution; this solution can be filled by the relaxation handlers and can be used by heuristics and for separation; You can use SCIPclearRelaxSolVals() to set all values to zero, initially; after setting all solution values, you have to call SCIPmarkRelaxSolValid() to inform SCIP that the stored solution is valid
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- This method incrementally updates the objective value of the relaxation solution. If the whole solution should be updated, using SCIPsetRelaxSolVals() instead or calling SCIPclearRelaxSolVals() before setting the first value to reset the solution and the objective value to 0 may help the numerics.
- Parameters
-
scip SCIP data structure relax relaxator data structure var variable to set value for val solution value of variable
Definition at line 3158 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPrelaxationSetSolRelax(), SCIPrelaxationSetSolValid(), SCIPrelaxationSetSolZero(), SCIPvarSetRelaxSol(), and TRUE.
Referenced by SCIP_DECL_RELAXEXEC().
◆ SCIPsetRelaxSolVals()
| SCIP_RETCODE SCIPsetRelaxSolVals | ( | SCIP * | scip, |
| SCIP_RELAX * | relax, | ||
| int | nvars, | ||
| SCIP_VAR ** | vars, | ||
| SCIP_Real * | vals, | ||
| SCIP_Bool | includeslp | ||
| ) |
sets the values of the given variables in the global relaxation solution and informs SCIP about the validity and whether the solution can be enforced via linear cuts; this solution can be filled by the relaxation handlers and can be used by heuristics and for separation; the solution is automatically cleared, s.t. all other variables get value 0.0
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure relax relaxator data structure nvars number of variables to set relaxation solution value for vars array with variables to set value for vals array with solution values of variables includeslp does the relaxator contain all cuts in the LP?
Definition at line 3191 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPclearRelaxSolVals(), SCIPrelaxationSetSolRelax(), SCIPrelaxationSetSolValid(), SCIPrelaxationSetSolZero(), SCIPvarSetRelaxSol(), and TRUE.
◆ SCIPsetRelaxSolValsSol()
| SCIP_RETCODE SCIPsetRelaxSolValsSol | ( | SCIP * | scip, |
| SCIP_RELAX * | relax, | ||
| SCIP_SOL * | sol, | ||
| SCIP_Bool | includeslp | ||
| ) |
sets the values of the variables in the global relaxation solution to the values in the given primal solution and informs SCIP about the validity and whether the solution can be enforced via linear cuts; the relaxation solution can be filled by the relaxation handlers and might be used by heuristics and for separation
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure relax relaxator data structure sol primal relaxation solution includeslp does the relaxator contain all cuts in the LP?
Definition at line 3233 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPcheckStage, SCIPclearRelaxSolVals(), SCIPfreeBufferArray, SCIPgetSolVals(), SCIPgetVarsData(), SCIPrelaxationSetSolObj(), SCIPrelaxationSetSolRelax(), SCIPrelaxationSetSolValid(), SCIPrelaxationSetSolZero(), SCIPsolGetObj(), SCIPvarSetRelaxSol(), and TRUE.
◆ SCIPisRelaxSolValid()
returns whether the relaxation solution is valid
- Returns
- TRUE, if the relaxation solution is valid; FALSE, otherwise
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure
Definition at line 3281 of file scip_var.c.
References FALSE, NULL, SCIP_CALL_ABORT, SCIPcheckStage, SCIPrelaxationIsSolValid(), and TRUE.
Referenced by performRelaxSimpleRounding(), SCIP_DECL_HEUREXEC(), SCIP_DECL_RELAXEXEC(), and SCIPstartDive().
◆ SCIPmarkRelaxSolValid()
| SCIP_RETCODE SCIPmarkRelaxSolValid | ( | SCIP * | scip, |
| SCIP_RELAX * | relax, | ||
| SCIP_Bool | includeslp | ||
| ) |
informs SCIP that the relaxation solution is valid and whether the relaxation can be enforced through linear cuts
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure relax relaxator data structure that set the current relaxation solution includeslp does the relaxator contain all cuts in the LP?
Definition at line 3301 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPrelaxationSetSolRelax(), SCIPrelaxationSetSolValid(), and TRUE.
Referenced by SCIP_DECL_RELAXEXEC().
◆ SCIPmarkRelaxSolInvalid()
| SCIP_RETCODE SCIPmarkRelaxSolInvalid | ( | SCIP * | scip | ) |
informs SCIP, that the relaxation solution is invalid
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure
Definition at line 3326 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPrelaxationSetSolValid(), and TRUE.
◆ SCIPgetRelaxSolVal()
gets the relaxation solution value of the given variable
- Returns
- the relaxation solution value of the given variable
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to get value for
Definition at line 3347 of file scip_var.c.
References FALSE, NULL, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_INVALID, SCIPABORT, SCIPcheckStage, SCIPerrorMessage, SCIPrelaxationIsSolValid(), SCIPvarGetRelaxSol(), and TRUE.
Referenced by performRelaxSimpleRounding().
◆ SCIPgetRelaxSolObj()
gets the relaxation solution objective value
- Returns
- the objective value of the relaxation solution
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure
Definition at line 3376 of file scip_var.c.
References FALSE, NULL, SCIP_CALL_ABORT, SCIP_INVALID, SCIPABORT, SCIPcheckStage, SCIPerrorMessage, SCIPrelaxationGetSolObj(), SCIPrelaxationIsSolValid(), and TRUE.
Referenced by SCIP_DECL_RELAXEXEC().
◆ SCIPisStrongbranchDownFirst()
determine which branching direction should be evaluated first by strong branching
- Returns
- TRUE iff strong branching should first evaluate the down child
- Parameters
-
scip SCIP data structure var variable to determine the branching direction on
Definition at line 3399 of file scip_var.c.
References FALSE, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIPgetVarAvgCutoffs(), SCIPvarGetNLocksDown(), SCIPvarGetNLocksUp(), and TRUE.
Referenced by SCIPgetVarStrongbranchWithPropagation(), and selectVarRecursive().
◆ SCIPstartStrongbranch()
| SCIP_RETCODE SCIPstartStrongbranch | ( | SCIP * | scip, |
| SCIP_Bool | enablepropagation | ||
| ) |
start strong branching - call before any strong branching
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- if propagation is enabled, strong branching is not done directly on the LP, but probing nodes are created which allow to perform propagation but also creates some overhead
- Parameters
-
scip SCIP data structure enablepropagation should propagation be done before solving the strong branching LP?
Definition at line 3430 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_LONGINT_FORMAT, SCIP_LPSOLSTAT_NOTSOLVED, SCIP_OKAY, SCIPcheckStage, SCIPdebugMsg, SCIPerrorMessage, SCIPinProbing(), SCIPlpDiving(), SCIPlpStartStrongbranch(), SCIPlpStartStrongbranchProbing(), SCIPtreeProbing(), SCIPtreeStartProbing(), and TRUE.
Referenced by execRelpscost(), runVanillaStrongBranching(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), and selectVarStart().
◆ SCIPendStrongbranch()
| SCIP_RETCODE SCIPendStrongbranch | ( | SCIP * | scip | ) |
end strong branching - call after any strong branching
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure
Definition at line 3488 of file scip_var.c.
References FALSE, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_NODETYPE_PROBINGNODE, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPboundchgGetBoundtype(), SCIPboundchgGetNewbound(), SCIPboundchgGetVar(), SCIPboundchgIsRedundant(), SCIPcheckStage, SCIPchgVarLb(), SCIPchgVarUb(), SCIPdebugMsg, SCIPdomchgGetBoundchg(), SCIPdomchgGetNBoundchgs(), SCIPfreeBufferArray, SCIPgetCurrentNode(), SCIPgetProbingDepth(), SCIPlpEndStrongbranch(), SCIPlpEndStrongbranchProbing(), SCIPnodeGetDomchg(), SCIPnodeGetType(), SCIPtreeEndProbing(), SCIPtreeProbing(), SCIPvarGetName(), and TRUE.
Referenced by execRelpscost(), runVanillaStrongBranching(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), and selectVarStart().
◆ SCIPgetVarStrongbranchFrac()
| SCIP_RETCODE SCIPgetVarStrongbranchFrac | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| int | itlim, | ||
| SCIP_Bool | idempotent, | ||
| SCIP_Real * | down, | ||
| SCIP_Real * | up, | ||
| SCIP_Bool * | downvalid, | ||
| SCIP_Bool * | upvalid, | ||
| SCIP_Bool * | downinf, | ||
| SCIP_Bool * | upinf, | ||
| SCIP_Bool * | downconflict, | ||
| SCIP_Bool * | upconflict, | ||
| SCIP_Bool * | lperror | ||
| ) |
gets strong branching information on column variable with fractional value
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
gets strong branching information on column variable with fractional value
Before calling this method, the strong branching mode must have been activated by calling SCIPstartStrongbranch(); after strong branching was done for all candidate variables, the strong branching mode must be ended by SCIPendStrongbranch(). Since this method does not apply domain propagation before strongbranching, propagation should not be enabled in the SCIPstartStrongbranch() call.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to get strong branching values for itlim iteration limit for strong branchings idempotent should scip's state remain the same after the call (statistics, column states...), or should it be updated ? down stores dual bound after branching column down up stores dual bound after branching column up downvalid stores whether the returned down value is a valid dual bound, or NULL; otherwise, it can only be used as an estimate value upvalid stores whether the returned up value is a valid dual bound, or NULL; otherwise, it can only be used as an estimate value downinf pointer to store whether the downwards branch is infeasible, or NULL upinf pointer to store whether the upwards branch is infeasible, or NULL downconflict pointer to store whether a conflict constraint was created for an infeasible downwards branch, or NULL upconflict pointer to store whether a conflict constraint was created for an infeasible upwards branch, or NULL lperror pointer to store whether an unresolved LP error occurred or the solving process should be stopped (e.g., due to a time limit)
Definition at line 3664 of file scip_var.c.
References analyzeStrongbranch(), FALSE, NULL, SCIP_Var::scip, SCIP_Bool, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_COLUMN, SCIPcheckStage, SCIPcolGetStrongbranch(), SCIPcolIsInLP(), SCIPerrorMessage, SCIPfeasCeil(), SCIPfeasFloor(), SCIPgetLPObjval(), SCIPinProbing(), SCIPisZero(), SCIPlpGetModifiedPseudoObjval(), SCIPprobAllColsInLP(), SCIPsetIsGE(), SCIPsolveIsStopped(), SCIPvarGetBestBoundType(), SCIPvarGetCol(), SCIPvarGetLbLocal(), SCIPvarGetLPSol(), SCIPvarGetName(), SCIPvarGetObj(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), and TRUE.
Referenced by execRelpscost(), runVanillaStrongBranching(), SCIPselectVarPseudoStrongBranching(), and SCIPselectVarStrongBranching().
◆ SCIPgetVarStrongbranchWithPropagation()
| SCIP_RETCODE SCIPgetVarStrongbranchWithPropagation | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | solval, | ||
| SCIP_Real | lpobjval, | ||
| int | itlim, | ||
| int | maxproprounds, | ||
| SCIP_Real * | down, | ||
| SCIP_Real * | up, | ||
| SCIP_Bool * | downvalid, | ||
| SCIP_Bool * | upvalid, | ||
| SCIP_Longint * | ndomredsdown, | ||
| SCIP_Longint * | ndomredsup, | ||
| SCIP_Bool * | downinf, | ||
| SCIP_Bool * | upinf, | ||
| SCIP_Bool * | downconflict, | ||
| SCIP_Bool * | upconflict, | ||
| SCIP_Bool * | lperror, | ||
| SCIP_Real * | newlbs, | ||
| SCIP_Real * | newubs | ||
| ) |
gets strong branching information with previous domain propagation on column variable
Before calling this method, the strong branching mode must have been activated by calling SCIPstartStrongbranch(); after strong branching was done for all candidate variables, the strong branching mode must be ended by SCIPendStrongbranch(). Since this method applies domain propagation before strongbranching, propagation has to be be enabled in the SCIPstartStrongbranch() call.
Before solving the strong branching LP, domain propagation can be performed. The number of propagation rounds can be specified by the parameter maxproprounds.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Warning
- When using this method, LP banching candidates and solution values must be copied beforehand, because they are updated w.r.t. the strong branching LP solution.
- Parameters
-
scip SCIP data structure var variable to get strong branching values for solval value of the variable in the current LP solution lpobjval LP objective value of the current LP solution itlim iteration limit for strong branchings maxproprounds maximum number of propagation rounds (-1: no limit, -2: parameter settings) down stores dual bound after branching column down up stores dual bound after branching column up downvalid stores whether the returned down value is a valid dual bound, or NULL; otherwise, it can only be used as an estimate value upvalid stores whether the returned up value is a valid dual bound, or NULL; otherwise, it can only be used as an estimate value ndomredsdown pointer to store the number of domain reductions down, or NULL ndomredsup pointer to store the number of domain reductions up, or NULL downinf pointer to store whether the downwards branch is infeasible, or NULL upinf pointer to store whether the upwards branch is infeasible, or NULL downconflict pointer to store whether a conflict constraint was created for an infeasible downwards branch, or NULL upconflict pointer to store whether a conflict constraint was created for an infeasible upwards branch, or NULL lperror pointer to store whether an unresolved LP error occurred or the solving process should be stopped (e.g., due to a time limit) newlbs array to store valid lower bounds for all active variables, or NULL newubs array to store valid upper bounds for all active variables, or NULL
Definition at line 4138 of file scip_var.c.
References FALSE, NULL, performStrongbranchWithPropagation(), SCIP_Var::scip, SCIP_Bool, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDDATA, SCIP_Longint, SCIP_LPSOLSTAT_NOTSOLVED, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_COLUMN, SCIPallColsInLP(), SCIPcheckStage, SCIPcolInvalidateStrongbranchData(), SCIPcolIsInLP(), SCIPcolSetStrongbranchData(), SCIPconflictGetNConflicts(), SCIPdebugMsg, SCIPerrorMessage, SCIPfeasCeil(), SCIPfeasFloor(), SCIPgetCutoffbound(), SCIPgetNVars(), SCIPgetVars(), SCIPinfinity(), SCIPinProbing(), SCIPisGE(), SCIPisStrongbranchDownFirst(), SCIPisZero(), SCIPlpGetModifiedPseudoObjval(), SCIPsolveIsStopped(), SCIPvarGetBestBoundType(), SCIPvarGetCol(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetObj(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), SCIPvarIsIntegral(), and TRUE.
Referenced by execRelpscost(), and SCIPselectVarStrongBranching().
◆ SCIPgetVarStrongbranchInt()
| SCIP_RETCODE SCIPgetVarStrongbranchInt | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| int | itlim, | ||
| SCIP_Bool | idempotent, | ||
| SCIP_Real * | down, | ||
| SCIP_Real * | up, | ||
| SCIP_Bool * | downvalid, | ||
| SCIP_Bool * | upvalid, | ||
| SCIP_Bool * | downinf, | ||
| SCIP_Bool * | upinf, | ||
| SCIP_Bool * | downconflict, | ||
| SCIP_Bool * | upconflict, | ||
| SCIP_Bool * | lperror | ||
| ) |
gets strong branching information on column variable x with integral LP solution value (val); that is, the down branch is (val -1.0) and the up brach ins (val +1.0)
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- If the integral LP solution value is the lower or upper bound of the variable, the corresponding branch will be marked as infeasible. That is, the valid pointer and the infeasible pointer are set to TRUE.
- Parameters
-
scip SCIP data structure var variable to get strong branching values for itlim iteration limit for strong branchings idempotent should scip's state remain the same after the call (statistics, column states...), or should it be updated ? down stores dual bound after branching column down up stores dual bound after branching column up downvalid stores whether the returned down value is a valid dual bound, or NULL; otherwise, it can only be used as an estimate value upvalid stores whether the returned up value is a valid dual bound, or NULL; otherwise, it can only be used as an estimate value downinf pointer to store whether the downwards branch is infeasible, or NULL upinf pointer to store whether the upwards branch is infeasible, or NULL downconflict pointer to store whether a conflict constraint was created for an infeasible downwards branch, or NULL upconflict pointer to store whether a conflict constraint was created for an infeasible upwards branch, or NULL lperror pointer to store whether an unresolved LP error occurred or the solving process should be stopped (e.g., due to a time limit)
Definition at line 4478 of file scip_var.c.
References analyzeStrongbranch(), FALSE, NULL, SCIP_Var::scip, SCIP_Bool, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_COLUMN, SCIPcheckStage, SCIPcolGetStrongbranch(), SCIPcolIsInLP(), SCIPerrorMessage, SCIPfeasCeil(), SCIPfeasFloor(), SCIPgetLPObjval(), SCIPisZero(), SCIPlpGetModifiedPseudoObjval(), SCIPprobAllColsInLP(), SCIPsetIsGE(), SCIPsolveIsStopped(), SCIPvarGetBestBoundType(), SCIPvarGetCol(), SCIPvarGetLbLocal(), SCIPvarGetLPSol(), SCIPvarGetName(), SCIPvarGetObj(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), and TRUE.
Referenced by runVanillaStrongBranching(), and SCIPselectVarPseudoStrongBranching().
◆ SCIPgetVarsStrongbranchesFrac()
| SCIP_RETCODE SCIPgetVarsStrongbranchesFrac | ( | SCIP * | scip, |
| SCIP_VAR ** | vars, | ||
| int | nvars, | ||
| int | itlim, | ||
| SCIP_Real * | down, | ||
| SCIP_Real * | up, | ||
| SCIP_Bool * | downvalid, | ||
| SCIP_Bool * | upvalid, | ||
| SCIP_Bool * | downinf, | ||
| SCIP_Bool * | upinf, | ||
| SCIP_Bool * | downconflict, | ||
| SCIP_Bool * | upconflict, | ||
| SCIP_Bool * | lperror | ||
| ) |
gets strong branching information on column variables with fractional values
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure vars variables to get strong branching values for nvars number of variables itlim iteration limit for strong branchings down stores dual bounds after branching variables down up stores dual bounds after branching variables up downvalid stores whether the returned down values are valid dual bounds, or NULL; otherwise, they can only be used as an estimate value upvalid stores whether the returned up values are valid dual bounds, or NULL; otherwise, they can only be used as an estimate value downinf array to store whether the downward branches are infeasible, or NULL upinf array to store whether the upward branches are infeasible, or NULL downconflict array to store whether conflict constraints were created for infeasible downward branches, or NULL upconflict array to store whether conflict constraints were created for infeasible upward branches, or NULL lperror pointer to store whether an unresolved LP error occurred or the solving process should be stopped (e.g., due to a time limit)
Definition at line 4632 of file scip_var.c.
References analyzeStrongbranch(), FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_COLUMN, SCIPallocBufferArray, SCIPcheckStage, SCIPcolGetStrongbranches(), SCIPcolIsInLP(), SCIPerrorMessage, SCIPfreeBufferArray, SCIPprobAllColsInLP(), SCIPsolveIsStopped(), SCIPvarGetCol(), SCIPvarGetName(), SCIPvarGetStatus(), and TRUE.
◆ SCIPgetVarsStrongbranchesInt()
| SCIP_RETCODE SCIPgetVarsStrongbranchesInt | ( | SCIP * | scip, |
| SCIP_VAR ** | vars, | ||
| int | nvars, | ||
| int | itlim, | ||
| SCIP_Real * | down, | ||
| SCIP_Real * | up, | ||
| SCIP_Bool * | downvalid, | ||
| SCIP_Bool * | upvalid, | ||
| SCIP_Bool * | downinf, | ||
| SCIP_Bool * | upinf, | ||
| SCIP_Bool * | downconflict, | ||
| SCIP_Bool * | upconflict, | ||
| SCIP_Bool * | lperror | ||
| ) |
gets strong branching information on column variables with integral values
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure vars variables to get strong branching values for nvars number of variables itlim iteration limit for strong branchings down stores dual bounds after branching variables down up stores dual bounds after branching variables up downvalid stores whether the returned down values are valid dual bounds, or NULL; otherwise, they can only be used as an estimate value upvalid stores whether the returned up values are valid dual bounds, or NULL; otherwise, they can only be used as an estimate value downinf array to store whether the downward branches are infeasible, or NULL upinf array to store whether the upward branches are infeasible, or NULL downconflict array to store whether conflict constraints were created for infeasible downward branches, or NULL upconflict array to store whether conflict constraints were created for infeasible upward branches, or NULL lperror pointer to store whether an unresolved LP error occurred or the solving process should be stopped (e.g., due to a time limit)
Definition at line 4743 of file scip_var.c.
References analyzeStrongbranch(), FALSE, NULL, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_COLUMN, SCIPallocBufferArray, SCIPcheckStage, SCIPcolGetStrongbranches(), SCIPcolIsInLP(), SCIPerrorMessage, SCIPfreeBufferArray, SCIPprobAllColsInLP(), SCIPsolveIsStopped(), SCIPvarGetCol(), SCIPvarGetName(), SCIPvarGetStatus(), and TRUE.
◆ SCIPgetLastStrongbranchLPSolStat()
| SCIP_LPSOLSTAT SCIPgetLastStrongbranchLPSolStat | ( | SCIP * | scip, |
| SCIP_BRANCHDIR | branchdir | ||
| ) |
get LP solution status of last strong branching call (currently only works for strong branching with propagation)
- Parameters
-
scip SCIP data structure branchdir branching direction for which LP solution status is requested
Definition at line 4847 of file scip_var.c.
References NULL, SCIP_BRANCHDIR_DOWNWARDS, and SCIP_BRANCHDIR_UPWARDS.
Referenced by execRelpscost().
◆ SCIPgetVarStrongbranchLast()
| SCIP_RETCODE SCIPgetVarStrongbranchLast | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real * | down, | ||
| SCIP_Real * | up, | ||
| SCIP_Bool * | downvalid, | ||
| SCIP_Bool * | upvalid, | ||
| SCIP_Real * | solval, | ||
| SCIP_Real * | lpobjval | ||
| ) |
gets strong branching information on COLUMN variable of the last SCIPgetVarStrongbranch() call; returns values of SCIP_INVALID, if strong branching was not yet called on the given variable; keep in mind, that the returned old values may have nothing to do with the current LP solution
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to get last strong branching values for down stores dual bound after branching column down up stores dual bound after branching column up downvalid stores whether the returned down value is a valid dual bound, or NULL; otherwise, it can only be used as an estimate value upvalid stores whether the returned up value is a valid dual bound, or NULL; otherwise, it can only be used as an estimate value solval stores LP solution value of variable at the last strong branching call, or NULL lpobjval stores LP objective value at last strong branching call, or NULL
Definition at line 4869 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_COLUMN, SCIPcheckStage, SCIPcolGetStrongbranchLast(), SCIPerrorMessage, SCIPvarGetCol(), SCIPvarGetStatus(), and TRUE.
Referenced by execRelpscost(), getOldBranching(), and SCIPselectVarStrongBranching().
◆ SCIPsetVarStrongbranchData()
| SCIP_RETCODE SCIPsetVarStrongbranchData | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | lpobjval, | ||
| SCIP_Real | primsol, | ||
| SCIP_Real | down, | ||
| SCIP_Real | up, | ||
| SCIP_Bool | downvalid, | ||
| SCIP_Bool | upvalid, | ||
| SCIP_Longint | iter, | ||
| int | itlim | ||
| ) |
sets strong branching information for a column variable
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to set last strong branching values for lpobjval objective value of the current LP primsol primal solution value of the column in the current LP down dual bound after branching column down up dual bound after branching column up downvalid is the returned down value a valid dual bound? upvalid is the returned up value a valid dual bound? iter total number of strong branching iterations itlim iteration limit applied to the strong branching call
Definition at line 4903 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_COLUMN, SCIPcheckStage, SCIPcolSetStrongbranchData(), SCIPerrorMessage, SCIPvarGetCol(), SCIPvarGetStatus(), and TRUE.
Referenced by updateOldBranching().
◆ SCIPtryStrongbranchLPSol()
| SCIP_RETCODE SCIPtryStrongbranchLPSol | ( | SCIP * | scip, |
| SCIP_Bool * | foundsol, | ||
| SCIP_Bool * | cutoff | ||
| ) |
rounds the current solution and tries it afterwards; if feasible, adds it to storage
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure foundsol stores whether solution was feasible and good enough to keep cutoff stores whether solution was cutoff due to exceeding the cutoffbound
Definition at line 4938 of file scip_var.c.
References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIPcheckStage, SCIPclockStart(), SCIPclockStop(), SCIPcreateLPSol(), SCIPdebugMsg, SCIPfreeSol(), SCIPgetCutoffbound(), SCIPgetLPObjval(), SCIPisGE(), SCIProundSol(), SCIPsolSetStrongbranching(), SCIPtrySolFree(), and TRUE.
Referenced by executeBranching(), and performStrongbranchWithPropagation().
◆ SCIPgetVarStrongbranchNode()
| SCIP_Longint SCIPgetVarStrongbranchNode | ( | SCIP * | scip, |
| SCIP_VAR * | var | ||
| ) |
gets node number of the last node in current branch and bound run, where strong branching was used on the given variable, or -1 if strong branching was never applied to the variable in current run
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to get last strong branching node for
Definition at line 5019 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_VARSTATUS_COLUMN, SCIPcheckStage, SCIPcolGetStrongbranchNode(), SCIPvarGetCol(), SCIPvarGetStatus(), and TRUE.
Referenced by execRelpscost(), isUseOldBranching(), and SCIPselectVarStrongBranching().
◆ SCIPgetVarStrongbranchLPAge()
| SCIP_Longint SCIPgetVarStrongbranchLPAge | ( | SCIP * | scip, |
| SCIP_VAR * | var | ||
| ) |
if strong branching was already applied on the variable at the current node, returns the number of LPs solved after the LP where the strong branching on this variable was applied; if strong branching was not yet applied on the variable at the current node, returns INT_MAX
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to get strong branching LP age for
Definition at line 5053 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_LONGINT_MAX, SCIP_VARSTATUS_COLUMN, SCIPcheckStage, SCIPcolGetStrongbranchLPAge(), SCIPvarGetCol(), SCIPvarGetStatus(), and TRUE.
Referenced by isUseOldBranching(), SCIP_DECL_BRANCHEXECLP(), and SCIPselectVarStrongBranching().
◆ SCIPgetVarNStrongbranchs()
gets number of times, strong branching was applied in current run on the given variable
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to get last strong branching node for
Definition at line 5085 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_VARSTATUS_COLUMN, SCIPcheckStage, SCIPcolGetNStrongbranchs(), SCIPvarGetCol(), SCIPvarGetStatus(), and TRUE.
Referenced by SCIPcollectBranchingStatistics(), and SCIPprintBranchingStatistics().
◆ SCIPaddVarLocksType()
| SCIP_RETCODE SCIPaddVarLocksType | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_LOCKTYPE | locktype, | ||
| int | nlocksdown, | ||
| int | nlocksup | ||
| ) |
adds given values to lock numbers of type locktype of variable for rounding
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable locktype type of the variable locks nlocksdown modification in number of rounding down locks nlocksup modification in number of rounding up locks
Definition at line 5118 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPcheckStage, SCIPerrorMessage, SCIPvarAddLocks(), SCIPvarIsTransformed(), and TRUE.
Referenced by addAuxiliaryVariablesToMaster(), createCipFormulation(), createConstraints(), createDisaggrVars(), createObjRow(), freeDisaggrVars(), freeGenVBounds(), presolRoundIndicator(), SCIP_DECL_CONSEXIT(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSLOCK(), SCIP_DECL_PROPINITPRE(), SCIP_DECL_SEPAEXITSOL(), SCIPaddVarLocks(), and SCIPbendersExit().
◆ SCIPaddVarLocks()
| SCIP_RETCODE SCIPaddVarLocks | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| int | nlocksdown, | ||
| int | nlocksup | ||
| ) |
adds given values to lock numbers of variable for rounding
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- This method will always add variable locks of type model
adds given values to lock numbers of variable for rounding
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- This method will always add variable locks of type model
- It is recommented to use SCIPaddVarLocksType()
- Parameters
-
scip SCIP data structure var problem variable nlocksdown modification in number of rounding down locks nlocksup modification in number of rounding up locks
Definition at line 5176 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_LOCKTYPE_MODEL, SCIP_OKAY, SCIPaddVarLocksType(), SCIPcheckStage, and TRUE.
Referenced by createAuxVar(), freeAuxVar(), and propagateLocks().
◆ SCIPlockVarCons()
| SCIP_RETCODE SCIPlockVarCons | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_CONS * | cons, | ||
| SCIP_Bool | lockdown, | ||
| SCIP_Bool | lockup | ||
| ) |
add locks of type locktype of variable with respect to the lock status of the constraint and its negation; this method should be called whenever the lock status of a variable in a constraint changes, for example if the coefficient of the variable changed its sign or if the left or right hand sides of the constraint were added or removed
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
add locks of variable with respect to the lock status of the constraint and its negation; this method should be called whenever the lock status of a variable in a constraint changes, for example if the coefficient of the variable changed its sign or if the left or right hand sides of the constraint were added or removed
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable cons constraint lockdown should the rounding be locked in downwards direction? lockup should the rounding be locked in upwards direction?
Definition at line 5210 of file scip_var.c.
References FALSE, NLOCKTYPES, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPcheckStage, SCIPconsIsLockedTypeNeg(), SCIPconsIsLockedTypePos(), SCIPerrorMessage, SCIPvarAddLocks(), SCIPvarIsTransformed(), and TRUE.
Referenced by addExtendedAsymmetricFormulation(), addExtendedFlowFormulation(), applyFixings(), chgLhs(), chgRhs(), lockRounding(), lockRoundingAndCons(), lockVariableCardinality(), lockVariableSOS1(), lockVariableSOS2(), preprocessConstraintPairs(), presolRoundIndicator(), and SCIP_DECL_EVENTEXEC().
◆ SCIPunlockVarCons()
| SCIP_RETCODE SCIPunlockVarCons | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_CONS * | cons, | ||
| SCIP_Bool | lockdown, | ||
| SCIP_Bool | lockup | ||
| ) |
remove locks of type locktype of variable with respect to the lock status of the constraint and its negation; this method should be called whenever the lock status of a variable in a constraint changes, for example if the coefficient of the variable changed its sign or if the left or right hand sides of the constraint were added or removed
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
remove locks of type locktype of variable with respect to the lock status of the constraint and its negation; this method should be called whenever the lock status of a variable in a constraint changes, for example if the coefficient of the variable changed its sign or if the left or right hand sides of the constraint were added or removed
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable cons constraint lockdown should the rounding be unlocked in downwards direction? lockup should the rounding be unlocked in upwards direction?
Definition at line 5296 of file scip_var.c.
References FALSE, NLOCKTYPES, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_EXITSOLVE, SCIP_STAGE_FREETRANS, SCIP_STAGE_INITPRESOLVE, SCIP_STAGE_INITSOLVE, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPcheckStage, SCIPconsIsLockedTypeNeg(), SCIPconsIsLockedTypePos(), SCIPerrorMessage, SCIPvarAddLocks(), SCIPvarIsTransformed(), and TRUE.
Referenced by applyFixings(), chgLhs(), chgRhs(), consdataDeletePos(), delCoefPos(), preprocessConstraintPairs(), presolRoundIndicator(), presolveConsEst(), presolveConsLct(), SCIP_DECL_EVENTEXEC(), unlockRounding(), unlockRoundingAndCons(), unlockVariableCardinality(), unlockVariableSOS1(), and unlockVariableSOS2().
◆ SCIPchgVarObj()
| SCIP_RETCODE SCIPchgVarObj | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newobj | ||
| ) |
changes variable's objective value
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
changes variable's objective value
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to change the objective value for newobj new objective value
Definition at line 5372 of file scip_var.c.
References FALSE, REALABS, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPcheckStage, SCIPerrorMessage, SCIPisInfinity(), SCIPvarChgObj(), SCIPvarIsTransformed(), and TRUE.
Referenced by addLocalBranchingConstraint(), addScenarioVarsAndConsToProb(), AMPLProblemHandler::LinearPartHandler::AddTerm(), changeSubvariableObjective(), checkPartialObjective(), createBlockproblem(), createCoveringProblem(), createProbOnlyEdge(), createProbSimplified(), createProbSimplifiedTest(), createSubproblem(), createSubproblems(), createSubSCIP(), createSubscipIIS(), DECL_CHANGESUBSCIP(), fromCommandLine(), getVariable(), parseSolveItem(), readCnf(), readCols(), readConstraints(), readObjective(), reoptimize(), SCIP_DECL_HEUREXEC(), SCIPapplyProximity(), SCIPchgReoptObjective(), SCIPtransformMinUC(), setupAndSolveFiniteSolSubscip(), setupAndSolveSubscip(), and updateLambda().
◆ SCIPaddVarObj()
| SCIP_RETCODE SCIPaddVarObj | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | addobj | ||
| ) |
adds value to variable's objective value
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to change the objective value for addobj additional objective value
Definition at line 5519 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_TRANSFORMING, SCIPcheckStage, SCIPerrorMessage, SCIPvarAddObj(), SCIPvarIsTransformed(), and TRUE.
Referenced by SCIPchgReoptObjective(), and setObjective().
◆ SCIPadjustedVarLb()
returns the adjusted (i.e. rounded, if the given variable is of integral type) lower bound value; does not change the bounds of the variable
- Returns
- adjusted lower bound for the given variable; the bound of the variable is not changed
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to adjust the bound for lb lower bound value to adjust
Definition at line 5570 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarAdjustLb(), and TRUE.
Referenced by addLowerBound(), analyzeConflict(), analyzeConflictLowerbound(), computeRelaxedLowerbound(), preprocessConstraintPairs(), propagateCons(), propagateRedcostVar(), resolvePropagation(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_PRESOLEXEC(), scoreBranchingCandidates(), tightenVarLb(), and updateBestCandidate().
◆ SCIPadjustedVarLbExactFloat()
returns the adjusted (i.e. rounded, if the given variable is of integral type) lower bound value; does not change the bounds of the variable
- Returns
- adjusted lower bound for the given variable; the bound of the variable is not changed
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to adjust the bound for lb lower bound value to adjust
Definition at line 5602 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarAdjustLbExactFloat(), and TRUE.
Referenced by tightenVarBounds().
◆ SCIPadjustedVarUb()
returns the adjusted (i.e. rounded, if the given variable is of integral type) upper bound value; does not change the bounds of the variable
- Returns
- adjusted upper bound for the given variable; the bound of the variable is not changed
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to adjust the bound for ub upper bound value to adjust
Definition at line 5634 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarAdjustUb(), and TRUE.
Referenced by addUpperBound(), analyzeConflict(), analyzeConflictUpperbound(), computeRelaxedUpperbound(), preprocessConstraintPairs(), propagateCons(), propagateRedcostVar(), propIndicator(), resolvePropagation(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_PRESOLEXEC(), scoreBranchingCandidates(), tightenVarUb(), and updateBestCandidate().
◆ SCIPadjustedVarUbExactFloat()
returns the adjusted (i.e. rounded, if the given variable is of integral type) upper bound value; does not change the bounds of the variable
- Returns
- adjusted upper bound for the given variable; the bound of the variable is not changed
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to adjust the bound for ub upper bound value to adjust
Definition at line 5666 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarAdjustUbExactFloat(), and TRUE.
Referenced by tightenVarBounds().
◆ SCIPchgVarLb()
| SCIP_RETCODE SCIPchgVarLb | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound | ||
| ) |
depending on SCIP's stage, changes lower bound of variable in the problem, in preprocessing, or in current node; if possible, adjusts bound to integral value; doesn't store any inference information in the bound change, such that in conflict analysis, this change is treated like a branching decision
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets re-sorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound
Definition at line 5697 of file scip_var.c.
References FALSE, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLb(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), TRUE, and SCIP_Var::vartype.
Referenced by createCoveringProblem(), createIndicatorConstraint(), deletionSubproblem(), generateOddCycleCut(), handleDoubleLexOrbitope(), handleOrbitope(), predBndStr(), propagateCons(), propagateRedcostBinvar(), propagateRedcostVar(), propagateRootRedcostBinvar(), propCardinality(), readBinaries(), readBounds(), readSemicontinuous(), reoptimize(), revertBndChgs(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_PRESOLEXEC(), SCIPbendersSetupSubproblem(), SCIPchgVarLbNode(), SCIPendStrongbranch(), SCIPfixVar(), SCIPfixVarExact(), SCIPinferBinvarCons(), SCIPinferBinvarProp(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), setupProblem(), and updateAuxiliaryVarLowerbound().
◆ SCIPchgVarLbExact()
| SCIP_RETCODE SCIPchgVarLbExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | newbound | ||
| ) |
depending on SCIP's stage, changes exact lower bound of variable in the problem, in preprocessing, or in current node; if possible, adjusts bound to integral value; doesn't store any inference information in the bound change, such that in conflict analysis, this change is treated like a branching decision
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets resorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound
Definition at line 5786 of file scip_var.c.
References FALSE, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPnodeAddBoundchgExact(), SCIPrationalIsInfinity(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLbExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgLbOriginalExact(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), TRUE, and SCIP_Var::vartype.
Referenced by readBinaries(), readBoundsExact(), and readBoundsRational().
◆ SCIPchgVarUb()
| SCIP_RETCODE SCIPchgVarUb | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound | ||
| ) |
depending on SCIP's stage, changes upper bound of variable in the problem, in preprocessing, or in current node; if possible, adjusts bound to integral value; doesn't store any inference information in the bound change, such that in conflict analysis, this change is treated like a branching decision
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets re-sorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound
Definition at line 5875 of file scip_var.c.
References FALSE, SCIP_Bool, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUb(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), TRUE, and SCIP_Var::vartype.
Referenced by addSSTConssOrbitAndUpdateSST(), createIndicatorConstraint(), deletionSubproblem(), generateOddCycleCut(), predBndStr(), propagateCons(), propagateRedcostBinvar(), propagateRedcostVar(), propagateRootRedcostBinvar(), readBinaries(), readBounds(), reoptimize(), revertBndChgs(), SCIP_DECL_CONSPROP(), SCIP_DECL_PRESOLEXEC(), SCIPbendersSetupSubproblem(), SCIPchgVarUbNode(), SCIPendStrongbranch(), SCIPfixVar(), SCIPfixVarExact(), SCIPinferBinvarCons(), SCIPinferBinvarProp(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), SCIPsetSlackVarUb(), setupProblem(), and updateMIP().
◆ SCIPchgVarUbExact()
| SCIP_RETCODE SCIPchgVarUbExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | newbound | ||
| ) |
depending on SCIP's stage, changes exact upper bound of variable in the problem, in preprocessing, or in current node; if possible, adjusts bound to integral value; doesn't store any inference information in the bound change, such that in conflict analysis, this change is treated like a branching decision
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets resorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound
Definition at line 5964 of file scip_var.c.
References FALSE, SCIP_Bool, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPnodeAddBoundchgExact(), SCIPrationalIsNegInfinity(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUbExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarChgUbOriginalExact(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), TRUE, and SCIP_Var::vartype.
Referenced by readBinaries(), readBoundsExact(), and readBoundsRational().
◆ SCIPchgVarLbNode()
| SCIP_RETCODE SCIPchgVarLbNode | ( | SCIP * | scip, |
| SCIP_NODE * | node, | ||
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound | ||
| ) |
changes lower bound of variable in the given node; if possible, adjust bound to integral value; doesn't store any inference information in the bound change, such that in conflict analysis, this change is treated like a branching decision
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_SOLVING
- Parameters
-
scip SCIP data structure node node to change bound at, or NULL for current node var variable to change the bound for newbound new value for bound
Definition at line 6044 of file scip_var.c.
References FALSE, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPcheckStage, SCIPchgVarLb(), SCIPgetStage(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPvarAdjustLb(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPwarningMessage(), and TRUE.
Referenced by branchOnBin(), branchOnVar(), branchUnbalancedCardinality(), createNAryBranch(), enforceConflictgraph(), enforceIndicators(), fixVariableZeroNode(), and performBranchingNoSol().
◆ SCIPchgVarUbNode()
| SCIP_RETCODE SCIPchgVarUbNode | ( | SCIP * | scip, |
| SCIP_NODE * | node, | ||
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound | ||
| ) |
changes upper bound of variable in the given node; if possible, adjust bound to integral value; doesn't store any inference information in the bound change, such that in conflict analysis, this change is treated like a branching decision
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_SOLVING
- Parameters
-
scip SCIP data structure node node to change bound at, or NULL for current node var variable to change the bound for newbound new value for bound
Definition at line 6088 of file scip_var.c.
References FALSE, NULL, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPcheckStage, SCIPchgVarUb(), SCIPgetStage(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPvarAdjustUb(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPwarningMessage(), and TRUE.
Referenced by branchOnBin(), branchOnVar(), createNAryBranch(), enforceConflictgraph(), enforceIndicators(), fixVariableZeroNode(), and performBranchingNoSol().
◆ SCIPchgVarLbGlobal()
| SCIP_RETCODE SCIPchgVarLbGlobal | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound | ||
| ) |
changes global lower bound of variable; if possible, adjust bound to integral value; also tightens the local bound, if the global bound is better than the local bound
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets re-sorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound
Definition at line 6141 of file scip_var.c.
References FALSE, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLb(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), TRUE, and SCIP_Var::vartype.
Referenced by applyDomainChanges(), checkRedundancy(), createSubSCIP(), DECL_CHANGESUBSCIP(), fixDiscreteVars(), freeMemory(), AMPLProblemHandler::OnVarBounds(), reboundIntegerVariables(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIPapplyHeurDualval(), SCIPapplyProximity(), SCIPchgVarLbLazy(), and setupAndSolveSubscip().
◆ SCIPchgVarUbGlobal()
| SCIP_RETCODE SCIPchgVarUbGlobal | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound | ||
| ) |
changes global upper bound of variable; if possible, adjust bound to integral value; also tightens the local bound, if the global bound is better than the local bound
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets re-sorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound
Definition at line 6230 of file scip_var.c.
References FALSE, SCIP_Bool, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUb(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), TRUE, and SCIP_Var::vartype.
Referenced by applyDomainChanges(), checkRedundancy(), createSubSCIP(), DECL_CHANGESUBSCIP(), fixDiscreteVars(), freeMemory(), AMPLProblemHandler::OnVarBounds(), reboundIntegerVariables(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIPapplyHeurDualval(), SCIPapplyProximity(), SCIPchgVarUbLazy(), and setupAndSolveSubscip().
◆ SCIPchgVarLbLazy()
| SCIP_RETCODE SCIPchgVarLbLazy | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | lazylb | ||
| ) |
changes lazy lower bound of the variable, this is only possible if the variable is not in the LP yet
Lazy bounds are bounds that are already enforced by constraints and the objective function. Setting a lazy lower bound has the consequence that for variables which lower bound equals the lazy lower bound, the lower bound does not need to be passed on to the LP solver. This is especially useful in a column generation (branch-and-price) setting.
- Attention
- If the variable has a global lower bound below lazylb, then the global lower bound is tightened to lazylb by a call to SCIPchgVarLbGlobal().
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable lazylb the lazy lower bound to be set
Definition at line 6321 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPchgVarLbGlobal(), SCIPisGT(), SCIPvarChgLbLazy(), SCIPvarGetLbGlobal(), and TRUE.
◆ SCIPchgVarUbLazy()
| SCIP_RETCODE SCIPchgVarUbLazy | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | lazyub | ||
| ) |
changes lazy upper bound of the variable, this is only possible if the variable is not in the LP yet
Lazy bounds are bounds that are already enforced by constraints and the objective function. Setting a lazy upper bound has the consequence that for variables which upper bound equals the lazy upper bound, the upper bound does not need to be passed on to the LP solver. This is especially useful in a column generation (branch-and-price) setting.
- Attention
- If the variable has a global upper bound above lazyub, then the global upper bound is tightened to lazyub by a call to SCIPchgVarUbGlobal().
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable lazyub the lazy lower bound to be set
Definition at line 6362 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPchgVarUbGlobal(), SCIPisLT(), SCIPvarChgUbLazy(), SCIPvarGetUbGlobal(), and TRUE.
Referenced by createInitialColumns(), doPricing(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRICERFARKAS(), SCIP_DECL_PRICERREDCOST(), and SCIP_DECL_READERREAD().
◆ SCIPtightenVarLb()
| SCIP_RETCODE SCIPtightenVarLb | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound, | ||
| SCIP_Bool | force, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
changes lower bound of variable in preprocessing or in the current node, if the new bound is tighter (w.r.t. bound strengthening epsilon) than the current bound; if possible, adjusts bound to integral value; doesn't store any inference information in the bound change, such that in conflict analysis, this change is treated like a branching decision
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets re-sorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound force force tightening even if below bound strengthening tolerance infeasible pointer to store whether the new domain is empty tightened pointer to store whether the bound was tightened, or NULL
Definition at line 6401 of file scip_var.c.
References FALSE, MIN, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPcomputeVarLbLocal(), SCIPcomputeVarUbLocal(), SCIPerrorMessage, SCIPgetStage(), SCIPinDive(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPsetIsFeasGT(), SCIPsetIsLbBetter(), SCIPsetIsLE(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLb(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), TRUE, and SCIP_Var::vartype.
Referenced by adjustOversizedJobBounds(), analyseVarOnoffBounds(), applyBdchgs(), applyBoundChgs(), applyDomainReductions(), applyFixings(), applyOrbitalReductionPart(), applyProbing(), applyProbingVar(), checkSystemGF2(), coretimesUpdateLb(), dualPresolving(), extractCycle(), fullDualPresolve(), inferboundsEdgeFinding(), initSepa(), preprocessConstraintPairs(), presolStuffing(), presolveRedundantConss(), propagateCons(), propagateLowerBoundVar(), propagateSelfReflectionVar(), propagateStaticLexred(), propagateStaticOrbitope(), propagateTTEF(), propagateUpperBoundSymVar(), readBounds(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_PRESOLEXEC(), SCIPanalyzeDeductionsProbing(), SCIPapplyHeurSubNlp(), SCIPselectVarStrongBranching(), separateCuts(), setupAndSolveSubscipRapidlearning(), solveAndEvalSubscip(), solveIndependentCons(), solveNlp(), solveSubproblem(), tightenAuxVarBounds(), tightenVarsBoundsSOS1(), and updateArcData().
◆ SCIPtightenVarLbExact()
| SCIP_RETCODE SCIPtightenVarLbExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | newbound, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
changes exact lower bound of variable in preprocessing or in the current node, if the new bound is tighter (w.r.t. bound strengthening epsilon) than the current bound; if possible, adjusts bound to integral value; doesn't store any inference information in the bound change, such that in conflict analysis, this change is treated like a branching decision
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets resorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound infeasible pointer to store whether the new domain is empty tightened pointer to store whether the bound was tightened, or NULL
Definition at line 6518 of file scip_var.c.
References FALSE, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPbuffer(), SCIPcheckStage, SCIPchgVarType(), SCIPcomputeVarLbLocalExact(), SCIPcomputeVarUbLocalExact(), SCIPerrorMessage, SCIPgetStage(), SCIPinDive(), SCIPinProbing(), SCIPisExact(), SCIPnodeAddBoundchgExact(), SCIPrationalCreateBuffer(), SCIPrationalFreeBuffer(), SCIPrationalIsGT(), SCIPrationalIsInfinity(), SCIPrationalIsLE(), SCIPrationalIsLT(), SCIPrationalMin(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLbExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgLbOriginalExact(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), TRUE, and SCIP_Var::vartype.
Referenced by readBoundsExact().
◆ SCIPtightenVarUb()
| SCIP_RETCODE SCIPtightenVarUb | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound, | ||
| SCIP_Bool | force, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
changes upper bound of variable in preprocessing or in the current node, if the new bound is tighter (w.r.t. bound strengthening epsilon) than the current bound; if possible, adjusts bound to integral value; doesn't store any inference information in the bound change, such that in conflict analysis, this change is treated like a branching decision
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets re-sorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound force force tightening even if below bound strengthening tolerance infeasible pointer to store whether the new domain is empty tightened pointer to store whether the bound was tightened, or NULL
Definition at line 6651 of file scip_var.c.
References FALSE, MAX, NULL, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPcomputeVarLbLocal(), SCIPcomputeVarUbLocal(), SCIPerrorMessage, SCIPgetStage(), SCIPinDive(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPsetIsFeasLT(), SCIPsetIsGE(), SCIPsetIsLE(), SCIPsetIsUbBetter(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUb(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), TRUE, and SCIP_Var::vartype.
Referenced by adjustOversizedJobBounds(), analyseVarOnoffBounds(), applyBdchgs(), applyBoundChgs(), applyDomainReductions(), applyFixings(), applyOrbitalBranchingPropagations(), applyOrbitalReductionPart(), applyProbing(), applyProbingVar(), checkSystemGF2(), coretimesUpdateUb(), dualPresolving(), extractCycle(), fullDualPresolve(), getCover(), inferboundsEdgeFinding(), initSepa(), preprocessConstraintPairs(), presolStuffing(), presolveRedundantConss(), propagateCons(), propagateStaticLexred(), propagateStaticOrbitope(), propagateTTEF(), propagateUpperBoundSymVar(), readBounds(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_PRESOLEXEC(), SCIPanalyzeDeductionsProbing(), SCIPapplyHeurSubNlp(), SCIPselectVarStrongBranching(), setupAndSolveSubscipRapidlearning(), solveAndEvalSubscip(), solveIndependentCons(), solveNlp(), solveSubproblem(), tightenAuxVarBounds(), tightenVarsBoundsSOS1(), and updateArcData().
◆ SCIPtightenVarUbExact()
| SCIP_RETCODE SCIPtightenVarUbExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | newbound, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
changes exact upper bound of variable in preprocessing or in the current node, if the new bound is tighter (w.r.t. bound strengthening epsilon) than the current bound; if possible, adjusts bound to integral value; doesn't store any inference information in the bound change, such that in conflict analysis, this change is treated like a branching decision
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets resorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound infeasible pointer to store whether the new domain is empty tightened pointer to store whether the bound was tightened, or NULL
Definition at line 6768 of file scip_var.c.
References FALSE, NULL, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMED, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPbuffer(), SCIPcheckStage, SCIPchgVarType(), SCIPcomputeVarLbLocalExact(), SCIPcomputeVarUbLocalExact(), SCIPerrorMessage, SCIPgetStage(), SCIPinDive(), SCIPinProbing(), SCIPisExact(), SCIPnodeAddBoundchgExact(), SCIPrationalCreateBuffer(), SCIPrationalFreeBuffer(), SCIPrationalIsGE(), SCIPrationalIsGT(), SCIPrationalIsLE(), SCIPrationalIsLT(), SCIPrationalIsNegInfinity(), SCIPrationalMax(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUbExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarChgUbOriginalExact(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), TRUE, and SCIP_Var::vartype.
Referenced by readBoundsExact().
◆ SCIPinferVarFixCons()
| SCIP_RETCODE SCIPinferVarFixCons | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | fixedval, | ||
| SCIP_CONS * | infercons, | ||
| int | inferinfo, | ||
| SCIP_Bool | force, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
fixes variable in preprocessing or in the current node, if the new bound is tighter (w.r.t. bound strengthening epsilon) than the current bound; if possible, adjusts bound to integral value; the given inference constraint is stored, such that the conflict analysis is able to find out the reason for the deduction of the bound change
- Note
- In presolving stage when not in probing mode the variable will be fixed directly, otherwise this method changes first the lowerbound by calling SCIPinferVarLbCons and second the upperbound by calling SCIPinferVarUbCons
- If SCIP is in presolving stage, it can happen that the internal variable array (which get be accessed via SCIPgetVars()) gets re-sorted.
- During presolving, an integer variable which bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for fixedval new value for fixation infercons constraint that deduced the bound change inferinfo user information for inference to help resolving the conflict force force tightening even if below bound strengthening tolerance infeasible pointer to store whether the bound change is infeasible tightened pointer to store whether the bound was tightened, or NULL
Definition at line 6895 of file scip_var.c.
References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIPcheckStage, SCIPgetStage(), SCIPinferVarLbCons(), SCIPinferVarUbCons(), SCIPtreeGetCurrentDepth(), SCIPvarFix(), and TRUE.
Referenced by rangedRowPropagation().
◆ SCIPinferVarLbCons()
| SCIP_RETCODE SCIPinferVarLbCons | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound, | ||
| SCIP_CONS * | infercons, | ||
| int | inferinfo, | ||
| SCIP_Bool | force, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
changes lower bound of variable in preprocessing or in the current node, if the new bound is tighter (w.r.t. bound strengthening epsilon) than the current bound; if possible, adjusts bound to integral value; the given inference constraint is stored, such that the conflict analysis is able to find out the reason for the deduction of the bound change
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets re-sorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound infercons constraint that deduced the bound change inferinfo user information for inference to help resolving the conflict force force tightening even if below bound strengthening tolerance infeasible pointer to store whether the bound change is infeasible tightened pointer to store whether the bound was tightened, or NULL
Definition at line 6964 of file scip_var.c.
References FALSE, MIN, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPcomputeVarLbLocal(), SCIPerrorMessage, SCIPinProbing(), SCIPisFeasGT(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPnodeAddBoundinfer(), SCIPsetIsLbBetter(), SCIPsetIsLE(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLb(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), TRUE, and SCIP_Var::vartype.
Referenced by consFixLinkvar(), coretimesUpdateLb(), inferboundsEdgeFinding(), inferVariableZero(), processWatchedVars(), propagateCons(), propagateTTEF(), propIndicator(), propVariableNonzero(), propVariables(), rangedRowPropagation(), SCIPinferVarFixCons(), separateCons(), tightenedLinkvar(), tightenVarBounds(), and tightenVarLb().
◆ SCIPinferVarUbCons()
| SCIP_RETCODE SCIPinferVarUbCons | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound, | ||
| SCIP_CONS * | infercons, | ||
| int | inferinfo, | ||
| SCIP_Bool | force, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
changes upper bound of variable in preprocessing or in the current node, if the new bound is tighter (w.r.t. bound strengthening epsilon) than the current bound; if possible, adjusts bound to integral value; the given inference constraint is stored, such that the conflict analysis is able to find out the reason for the deduction of the bound change
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets re-sorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound infercons constraint that deduced the bound change inferinfo user information for inference to help resolving the conflict force force tightening even if below bound strengthening tolerance infeasible pointer to store whether the bound change is infeasible tightened pointer to store whether the bound was tightened, or NULL
Definition at line 7069 of file scip_var.c.
References FALSE, MAX, NULL, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPcomputeVarUbLocal(), SCIPerrorMessage, SCIPinProbing(), SCIPisFeasLT(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPnodeAddBoundinfer(), SCIPsetIsGE(), SCIPsetIsLE(), SCIPsetIsUbBetter(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUb(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), TRUE, and SCIP_Var::vartype.
Referenced by consFixLinkvar(), coretimesUpdateUb(), inferboundsEdgeFinding(), inferVariableZero(), processWatchedVars(), propagateCons(), propagateTTEF(), propIndicator(), propVariableNonzero(), propVariables(), rangedRowPropagation(), SCIPinferVarFixCons(), separateCons(), tightenedLinkvar(), tightenVarBounds(), and tightenVarUb().
◆ SCIPinferBinvarCons()
| SCIP_RETCODE SCIPinferBinvarCons | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Bool | fixedval, | ||
| SCIP_CONS * | infercons, | ||
| int | inferinfo, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
depending on SCIP's stage, fixes binary variable in the problem, in preprocessing, or in current node; the given inference constraint is stored, such that the conflict analysis is able to find out the reason for the deduction of the fixing
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var binary variable to fix fixedval value to fix binary variable to infercons constraint that deduced the fixing inferinfo user information for inference to help resolving the conflict infeasible pointer to store whether the fixing is infeasible tightened pointer to store whether the fixing tightened the local bounds, or NULL
Definition at line 7412 of file scip_var.c.
References FALSE, NULL, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIPcheckStage, SCIPchgVarLb(), SCIPchgVarUb(), SCIPerrorMessage, SCIPnodeAddBoundinfer(), SCIPsetIsEQ(), SCIPsetIsLE(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarFix(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), and TRUE.
Referenced by analyzeZeroResultant(), consdataFixOperandsOne(), consdataFixResultantZero(), processBinvarFixings(), processFixings(), processRealBoundChg(), processWatchedVars(), propagateCons(), and SCIP_DECL_CONSPROP().
◆ SCIPinferVarUbConsExact()
| SCIP_RETCODE SCIPinferVarUbConsExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | newbound, | ||
| SCIP_CONS * | infercons, | ||
| int | inferinfo, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
changes upper bound of variable in preprocessing or in the current node, if the new bound is tighter than the current bound; if possible, adjusts bound to integral value; the given inference constraint is stored, such that the conflict analysis is able to find out the reason for the deduction of the bound change
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets resorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound infercons constraint that deduced the bound change inferinfo user information for inference to help resolving the conflict infeasible pointer to store whether the bound change is infeasible tightened pointer to store whether the bound was tightened, or NULL
Definition at line 7174 of file scip_var.c.
References FALSE, NULL, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPbuffer(), SCIPcertificateGetCurrentIndex(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcheckStage, SCIPchgVarType(), SCIPerrorMessage, SCIPgetCertificate(), SCIPgetStage(), SCIPinProbing(), SCIPnodeAddBoundchgExact(), SCIPnodeAddBoundinferExact(), SCIPrationalCreateBuffer(), SCIPrationalDebugMessage, SCIPrationalFreeBuffer(), SCIPrationalIsGE(), SCIPrationalIsLE(), SCIPrationalIsLT(), SCIPrationalIsNegInfinity(), SCIPrationalSetRational(), SCIPshouldCertificateTrackBounds(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUbExact(), SCIPvarChgUbGlobalExact(), SCIPvarChgUbLocalExact(), SCIPvarChgUbOriginalExact(), SCIPvarGetLbLocalExact(), SCIPvarGetName(), SCIPvarGetUbLocalExact(), SCIPvarIsBinary(), SCIPvarIsTransformed(), TRUE, and SCIP_Var::vartype.
Referenced by tightenVarBounds().
◆ SCIPinferVarLbConsExact()
| SCIP_RETCODE SCIPinferVarLbConsExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | newbound, | ||
| SCIP_CONS * | infercons, | ||
| int | inferinfo, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
changes lower bound of variable in preprocessing or in the current node, if the new bound is tighter than the current bound; if possible, adjusts bound to integral value; the given inference constraint is stored, such that the conflict analysis is able to find out the reason for the deduction of the bound change
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets resorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound infercons constraint that deduced the bound change inferinfo user information for inference to help resolving the conflict infeasible pointer to store whether the bound change is infeasible tightened pointer to store whether the bound was tightened, or NULL
Definition at line 7296 of file scip_var.c.
References FALSE, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPbuffer(), SCIPcertificateGetCurrentIndex(), SCIPcertificatePrintCutoffConflictingBounds(), SCIPcheckStage, SCIPchgVarType(), SCIPerrorMessage, SCIPgetCertificate(), SCIPgetStage(), SCIPinProbing(), SCIPnodeAddBoundchgExact(), SCIPnodeAddBoundinferExact(), SCIPrationalCreateBuffer(), SCIPrationalDebugMessage, SCIPrationalFreeBuffer(), SCIPrationalIsGT(), SCIPrationalIsLE(), SCIPrationalIsNegInfinity(), SCIPrationalSetRational(), SCIPshouldCertificateTrackBounds(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLbExact(), SCIPvarChgLbGlobalExact(), SCIPvarChgLbLocalExact(), SCIPvarChgLbOriginalExact(), SCIPvarGetLbLocalExact(), SCIPvarGetName(), SCIPvarGetUbLocalExact(), SCIPvarIsBinary(), SCIPvarIsTransformed(), TRUE, and SCIP_Var::vartype.
Referenced by tightenVarBounds().
◆ SCIPinferVarFixProp()
| SCIP_RETCODE SCIPinferVarFixProp | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | fixedval, | ||
| SCIP_PROP * | inferprop, | ||
| int | inferinfo, | ||
| SCIP_Bool | force, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
fixes variable in preprocessing or in the current node, if the new bound is tighter (w.r.t. bound strengthening epsilon) than the current bound; if possible, adjusts bound to integral value; the given inference constraint is stored, such that the conflict analysis is able to find out the reason for the deduction of the bound change
- Note
- In presolving stage when not in probing mode the variable will be fixed directly, otherwise this method changes first the lowerbound by calling SCIPinferVarLbProp and second the upperbound by calling SCIPinferVarUbProp
- If SCIP is in presolving stage, it can happen that the internal variable array (which get be accessed via SCIPgetVars()) gets re-sorted.
- During presolving, an integer variable which bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for fixedval new value for fixation inferprop propagator that deduced the bound change inferinfo user information for inference to help resolving the conflict force force tightening even if below bound strengthening tolerance infeasible pointer to store whether the bound change is infeasible tightened pointer to store whether the bound was tightened, or NULL
Definition at line 7515 of file scip_var.c.
References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIPcheckStage, SCIPgetStage(), SCIPinferVarLbProp(), SCIPinferVarUbProp(), SCIPtreeGetCurrentDepth(), SCIPvarFix(), and TRUE.
◆ SCIPinferVarLbProp()
| SCIP_RETCODE SCIPinferVarLbProp | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound, | ||
| SCIP_PROP * | inferprop, | ||
| int | inferinfo, | ||
| SCIP_Bool | force, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
changes lower bound of variable in preprocessing or in the current node, if the new bound is tighter (w.r.t. bound strengthening epsilon) than the current bound; if possible, adjusts bound to integral value; the given inference propagator is stored, such that the conflict analysis is able to find out the reason for the deduction of the bound change
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets re-sorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound inferprop propagator that deduced the bound change inferinfo user information for inference to help resolving the conflict force force tightening even if below bound strengthening tolerance infeasible pointer to store whether the bound change is infeasible tightened pointer to store whether the bound was tightened, or NULL
Definition at line 7584 of file scip_var.c.
References FALSE, MIN, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPcomputeVarLbLocal(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPnodeAddBoundinfer(), SCIPsetIsFeasGT(), SCIPsetIsLbBetter(), SCIPsetIsLE(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLb(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), TRUE, and SCIP_Var::vartype.
Referenced by applyGenVBound(), propagateCutoffboundVar(), SCIPinferVarFixProp(), and tightenVarLb().
◆ SCIPinferVarUbProp()
| SCIP_RETCODE SCIPinferVarUbProp | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound, | ||
| SCIP_PROP * | inferprop, | ||
| int | inferinfo, | ||
| SCIP_Bool | force, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
changes upper bound of variable in preprocessing or in the current node, if the new bound is tighter (w.r.t. bound strengthening epsilon) than the current bound; if possible, adjusts bound to integral value; the given inference propagator is stored, such that the conflict analysis is able to find out the reason for the deduction of the bound change
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets re-sorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound inferprop propagator that deduced the bound change inferinfo user information for inference to help resolving the conflict force force tightening even if below bound strengthening tolerance infeasible pointer to store whether the bound change is infeasible tightened pointer to store whether the bound was tightened, or NULL
Definition at line 7699 of file scip_var.c.
References FALSE, MAX, NULL, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPcomputeVarUbLocal(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPnodeAddBoundinfer(), SCIPsetIsFeasLT(), SCIPsetIsGE(), SCIPsetIsLE(), SCIPsetIsUbBetter(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUb(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), TRUE, and SCIP_Var::vartype.
Referenced by applyGenVBound(), propagateCutoffboundVar(), SCIPinferVarFixProp(), and tightenVarUb().
◆ SCIPinferBinvarProp()
| SCIP_RETCODE SCIPinferBinvarProp | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Bool | fixedval, | ||
| SCIP_PROP * | inferprop, | ||
| int | inferinfo, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
depending on SCIP's stage, fixes binary variable in the problem, in preprocessing, or in current node; the given inference propagator is stored, such that the conflict analysis is able to find out the reason for the deduction of the fixing
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var binary variable to fix fixedval value to fix binary variable to inferprop propagator that deduced the fixing inferinfo user information for inference to help resolving the conflict infeasible pointer to store whether the fixing is infeasible tightened pointer to store whether the fixing tightened the local bounds, or NULL
Definition at line 7809 of file scip_var.c.
References FALSE, NULL, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIPcheckStage, SCIPchgVarLb(), SCIPchgVarUb(), SCIPerrorMessage, SCIPnodeAddBoundinfer(), SCIPsetIsEQ(), SCIPsetIsLE(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarFix(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), and TRUE.
◆ SCIPtightenVarLbGlobal()
| SCIP_RETCODE SCIPtightenVarLbGlobal | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound, | ||
| SCIP_Bool | force, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
changes global lower bound of variable in preprocessing or in the current node, if the new bound is tighter (w.r.t. bound strengthening epsilon) than the current global bound; if possible, adjusts bound to integral value; also tightens the local bound, if the global bound is better than the local bound
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets re-sorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound force force tightening even if below bound strengthening tolerance infeasible pointer to store whether the new domain is empty tightened pointer to store whether the bound was tightened, or NULL
Definition at line 8026 of file scip_var.c.
References FALSE, MIN, NULL, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPcomputeVarLbGlobal(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisExact(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPsetIsEQ(), SCIPsetIsFeasGT(), SCIPsetIsLbBetter(), SCIPsetIsLE(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLb(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarGetLbGlobal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbGlobal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), tightenVarLbGlobalSafe(), TRUE, and SCIP_Var::vartype.
Referenced by applyBoundChanges(), applyGenVBound(), objimplicsCreate(), propagateCutoffboundVar(), propagateLowerboundBinvar(), propagateLowerboundVar(), propagateRootRedcostVar(), setupAndSolveSubscipRapidlearning(), tightenBounds(), tightenCoefs(), and tightenVarLb().
◆ SCIPtightenVarUbGlobal()
| SCIP_RETCODE SCIPtightenVarUbGlobal | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | newbound, | ||
| SCIP_Bool | force, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | tightened | ||
| ) |
changes global upper bound of variable in preprocessing or in the current node, if the new bound is tighter (w.r.t. bound strengthening epsilon) than the current global bound; if possible, adjusts bound to integral value; also tightens the local bound, if the global bound is better than the local bound
- Warning
- If SCIP is in presolving stage, it can happen that the internal variable array (which can be accessed via SCIPgetVars()) gets re-sorted.
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- During presolving, an integer variable whose bound changes to {0,1} is upgraded to a binary variable.
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound force force tightening even if below bound strengthening tolerance infeasible pointer to store whether the new domain is empty tightened pointer to store whether the bound was tightened, or NULL
Definition at line 8257 of file scip_var.c.
References FALSE, MAX, NULL, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPcheckStage, SCIPchgVarType(), SCIPcomputeVarUbGlobal(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisExact(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPsetIsEQ(), SCIPsetIsFeasLT(), SCIPsetIsLE(), SCIPsetIsUbBetter(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUb(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetUbGlobal(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), tightenVarUbGlobalSafe(), TRUE, and SCIP_Var::vartype.
Referenced by applyBoundChanges(), applyGenVBound(), objimplicsCreate(), propagateCutoffboundVar(), propagateLowerboundVar(), propagateRootRedcostVar(), SCIP_DECL_PROPEXEC(), setupAndSolveSubscipRapidlearning(), tightenBounds(), tightenCoefs(), and tightenVarUb().
◆ SCIPcomputeVarLbGlobal()
for a multi-aggregated variable, returns the global lower bound computed by adding the global bounds from all aggregation variables
This global bound may be tighter than the one given by SCIPvarGetLbGlobal, since the latter is not updated if bounds of aggregation variables are changing calling this function for a non-multi-aggregated variable results in a call to SCIPvarGetLbGlobal.
- Returns
- the global lower bound computed by adding the global bounds from all aggregation variables
- Parameters
-
scip SCIP data structure var variable to compute the bound for
Definition at line 8375 of file scip_var.c.
References NULL, SCIP_VARSTATUS_MULTAGGR, SCIPvarGetLbGlobal(), SCIPvarGetMultaggrLbGlobal(), and SCIPvarGetStatus().
Referenced by applyGlobalBounds(), SCIPtightenVarLbGlobal(), and tightenVarLbGlobalSafe().
◆ SCIPcomputeVarUbGlobal()
for a multi-aggregated variable, returns the global upper bound computed by adding the global bounds from all aggregation variables
This global bound may be tighter than the one given by SCIPvarGetUbGlobal, since the latter is not updated if bounds of aggregation variables are changing calling this function for a non-multi-aggregated variable results in a call to SCIPvarGetUbGlobal.
- Returns
- the global upper bound computed by adding the global bounds from all aggregation variables
for a multi-aggregated variable, returns the global upper bound computed by adding the global bounds from all aggregation variables
This global bound may be tighter than the one given by SCIPvarGetUbGlobal, since the latter is not updated if bounds of aggregation variables are changing calling this function for a non-multi-aggregated variable results in a call to SCIPvarGetUbGlobal
- Returns
- the global upper bound computed by adding the global bounds from all aggregation variables
- Parameters
-
scip SCIP data structure var variable to compute the bound for
Definition at line 8396 of file scip_var.c.
References NULL, SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrUbGlobal(), SCIPvarGetStatus(), and SCIPvarGetUbGlobal().
Referenced by applyGlobalBounds(), SCIPtightenVarUbGlobal(), and tightenVarUbGlobalSafe().
◆ SCIPcomputeVarLbLocal()
for a multi-aggregated variable, returns the local lower bound computed by adding the local bounds from all aggregation variables
This local bound may be tighter than the one given by SCIPvarGetLbLocal, since the latter is not updated if bounds of aggregation variables are changing calling this function for a non-multi-aggregated variable results in a call to SCIPvarGetLbLocal.
- Returns
- the local lower bound computed by adding the global bounds from all aggregation variables
- Parameters
-
scip SCIP data structure var variable to compute the bound for
Definition at line 8417 of file scip_var.c.
References NULL, SCIP_VARSTATUS_MULTAGGR, SCIPvarGetLbLocal(), SCIPvarGetMultaggrLbLocal(), and SCIPvarGetStatus().
Referenced by checkSystemGF2(), createNAryBranch(), isLiteralSatisfied(), isLiteralViolated(), registerBranchingCandidates(), SCIPinferVarLbCons(), SCIPinferVarLbProp(), SCIPtightenVarLb(), SCIPtightenVarUb(), and updateBestCandidate().
◆ SCIPcomputeVarLbLocalExact()
| SCIP_RETCODE SCIPcomputeVarLbLocalExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | result | ||
| ) |
for a multi-aggregated variable, returns the local lower bound computed by adding the local bounds from all aggregation variables
This local bound may be tighter than the one given by SCIPvarGetLbLocal, since the latter is not updated if bounds of aggregation variables are changing calling this function for a non-multi-aggregated variable results in a call to SCIPvarGetLbLocal.
- Returns
- the local lower bound computed by adding the global bounds from all aggregation variables
- Parameters
-
scip SCIP data structure var variable to compute the bound for result rational to store the resulting bound
Definition at line 8438 of file scip_var.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIP_VARSTATUS_MULTAGGR, SCIPrationalSetRational(), SCIPvarGetLbLocalExact(), SCIPvarGetMultaggrLbLocalExact(), and SCIPvarGetStatusExact().
Referenced by SCIPtightenVarLbExact(), and SCIPtightenVarUbExact().
◆ SCIPcomputeVarUbLocal()
for a multi-aggregated variable, returns the local upper bound computed by adding the local bounds from all aggregation variables
This local bound may be tighter than the one given by SCIPvarGetUbLocal, since the latter is not updated if bounds of aggregation variables are changing calling this function for a non-multi-aggregated variable results in a call to SCIPvarGetUbLocal.
- Returns
- the local upper bound computed by adding the global bounds from all aggregation variables
- Parameters
-
scip SCIP data structure var variable to compute the bound for
Definition at line 8462 of file scip_var.c.
References NULL, SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrUbLocal(), SCIPvarGetStatus(), and SCIPvarGetUbLocal().
Referenced by checkSystemGF2(), createNAryBranch(), isLiteralSatisfied(), isLiteralViolated(), registerBranchingCandidates(), SCIPinferVarUbCons(), SCIPinferVarUbProp(), SCIPtightenVarLb(), SCIPtightenVarUb(), and updateBestCandidate().
◆ SCIPcomputeVarUbLocalExact()
| SCIP_RETCODE SCIPcomputeVarUbLocalExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | result | ||
| ) |
for a multi-aggregated variable, returns the local upper bound computed by adding the local bounds from all aggregation variables
This local bound may be tighter than the one given by SCIPvarGetUbLocal, since the latter is not updated if bounds of aggregation variables are changing calling this function for a non-multi-aggregated variable results in a call to SCIPvarGetUbLocal.
- Returns
- the local upper bound computed by adding the global bounds from all aggregation variables
- Parameters
-
scip SCIP data structure var variable to compute the bound for result rational to store the resulting bound
Definition at line 8483 of file scip_var.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIP_VARSTATUS_MULTAGGR, SCIPrationalSetRational(), SCIPvarGetMultaggrUbLocalExact(), SCIPvarGetStatusExact(), and SCIPvarGetUbLocalExact().
Referenced by SCIPtightenVarLbExact(), and SCIPtightenVarUbExact().
◆ SCIPgetVarMultaggrLbGlobal()
for a multi-aggregated variable, gives the global lower bound computed by adding the global bounds from all aggregation variables, this global bound may be tighter than the one given by SCIPvarGetLbGlobal, since the latter is not updated if bounds of aggregation variables are changing
calling this function for a non-multi-aggregated variable is not allowed
- Parameters
-
scip SCIP data structure var variable to compute the bound for
Definition at line 8506 of file scip_var.c.
References SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrLbGlobal(), and SCIPvarGetStatus().
◆ SCIPgetVarMultaggrUbGlobal()
for a multi-aggregated variable, gives the global upper bound computed by adding the global bounds from all aggregation variables, this upper bound may be tighter than the one given by SCIPvarGetUbGlobal, since the latter is not updated if bounds of aggregation variables are changing
calling this function for a non-multi-aggregated variable is not allowed
- Parameters
-
scip SCIP data structure var variable to compute the bound for
Definition at line 8521 of file scip_var.c.
References SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrUbGlobal(), and SCIPvarGetStatus().
◆ SCIPgetVarMultaggrLbLocal()
for a multi-aggregated variable, gives the local lower bound computed by adding the local bounds from all aggregation variables, this lower bound may be tighter than the one given by SCIPvarGetLbLocal, since the latter is not updated if bounds of aggregation variables are changing
calling this function for a non-multi-aggregated variable is not allowed
- Parameters
-
scip SCIP data structure var variable to compute the bound for
Definition at line 8536 of file scip_var.c.
References SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrLbLocal(), and SCIPvarGetStatus().
◆ SCIPgetVarMultaggrUbLocal()
for a multi-aggregated variable, gives the local upper bound computed by adding the local bounds from all aggregation variables, this upper bound may be tighter than the one given by SCIPvarGetUbLocal, since the latter is not updated if bounds of aggregation variables are changing
calling this function for a non-multi-aggregated variable is not allowed
- Parameters
-
scip SCIP data structure var variable to compute the bound for
Definition at line 8551 of file scip_var.c.
References SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrUbLocal(), and SCIPvarGetStatus().
◆ SCIPgetVarClosestVlb()
| SCIP_RETCODE SCIPgetVarClosestVlb | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_SOL * | sol, | ||
| SCIP_Real * | closestvlb, | ||
| int * | closestvlbidx | ||
| ) |
returns solution value and index of variable lower bound that is closest to the variable's value in the given primal solution or current LP solution if no primal solution is given; returns an index of -1 if no variable lower bound is available
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_SOLVING
- Parameters
-
scip SCIP data structure var active problem variable sol primal solution, or NULL for LP solution closestvlb pointer to store the value of the closest variable lower bound closestvlbidx pointer to store the index of the closest variable lower bound
Definition at line 8569 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarGetClosestVlb(), and TRUE.
Referenced by findBestLb(), findBestLbSafely(), separateCuts(), setupAggregationData(), and transformNonIntegralRow().
◆ SCIPgetVarClosestVub()
| SCIP_RETCODE SCIPgetVarClosestVub | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_SOL * | sol, | ||
| SCIP_Real * | closestvub, | ||
| int * | closestvubidx | ||
| ) |
returns solution value and index of variable upper bound that is closest to the variable's value in the given primal solution; or current LP solution if no primal solution is given; returns an index of -1 if no variable upper bound is available
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_SOLVING
- Parameters
-
scip SCIP data structure var active problem variable sol primal solution, or NULL for LP solution closestvub pointer to store the value of the closest variable lower bound closestvubidx pointer to store the index of the closest variable lower bound
Definition at line 8592 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarGetClosestVub(), and TRUE.
Referenced by findBestUb(), findBestUbSafely(), separateCuts(), setupAggregationData(), and transformNonIntegralRow().
◆ SCIPaddVarVlb()
| SCIP_RETCODE SCIPaddVarVlb | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_VAR * | vlbvar, | ||
| SCIP_Real | vlbcoef, | ||
| SCIP_Real | vlbconstant, | ||
| SCIP_Bool * | infeasible, | ||
| int * | nbdchgs | ||
| ) |
informs variable x about a globally valid variable lower bound x >= b*z + d with integer variable z; if z is binary, the corresponding valid implication for z is also added; if z is non-continuous and 1/b not too small, the corresponding valid upper/lower bound z <= (x-d)/b or z >= (x-d)/b (depending on the sign of of b) is added, too; improves the global bounds of the variable and the vlb variable if possible
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable vlbvar variable z in x >= b*z + d vlbcoef coefficient b in x >= b*z + d vlbconstant constant d in x >= b*z + d infeasible pointer to store whether an infeasibility was detected nbdchgs pointer to store the number of performed bound changes, or NULL
Definition at line 8621 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPisZero(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarIsIntegral(), and TRUE.
Referenced by SCIP_DECL_CONSPRESOL(), SCIPanalyzeDeductionsProbing(), and strengthenVarbounds().
◆ SCIPaddVarVub()
| SCIP_RETCODE SCIPaddVarVub | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_VAR * | vubvar, | ||
| SCIP_Real | vubcoef, | ||
| SCIP_Real | vubconstant, | ||
| SCIP_Bool * | infeasible, | ||
| int * | nbdchgs | ||
| ) |
informs variable x about a globally valid variable upper bound x <= b*z + d with integer variable z; if z is binary, the corresponding valid implication for z is also added; if z is non-continuous and 1/b not too small, the corresponding valid lower/upper bound z >= (x-d)/b or z <= (x-d)/b (depending on the sign of of b) is added, too; improves the global bounds of the variable and the vlb variable if possible
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable vubvar variable z in x <= b*z + d vubcoef coefficient b in x <= b*z + d vubconstant constant d in x <= b*z + d infeasible pointer to store whether an infeasibility was detected nbdchgs pointer to store the number of performed bound changes, or NULL
Definition at line 8680 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPisZero(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarIsIntegral(), and TRUE.
Referenced by SCIP_DECL_CONSPRESOL(), and SCIPanalyzeDeductionsProbing().
◆ SCIPaddVarImplication()
| SCIP_RETCODE SCIPaddVarImplication | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Bool | varfixing, | ||
| SCIP_VAR * | implvar, | ||
| SCIP_BOUNDTYPE | impltype, | ||
| SCIP_Real | implbound, | ||
| SCIP_Bool * | infeasible, | ||
| int * | nbdchgs | ||
| ) |
informs binary variable x about a globally valid implication: x == 0 or x == 1 ==> y <= b or y >= b; also adds the corresponding implication or variable bound to the implied variable; if the implication is conflicting, the variable is fixed to the opposite value; if the variable is already fixed to the given value, the implication is performed immediately; if the implication is redundant with respect to the variables' global bounds, it is ignored
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable varfixing FALSE if y should be added in implications for x == 0, TRUE for x == 1 implvar variable y in implication y <= b or y >= b impltype type of implication y <= b (SCIP_BOUNDTYPE_UPPER) or y >= b (SCIP_BOUNDTYPE_LOWER) implbound bound b in implication y <= b or y >= b infeasible pointer to store whether an infeasibility was detected nbdchgs pointer to store the number of performed bound changes, or NULL
Definition at line 8740 of file scip_var.c.
References FALSE, NULL, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_BINARY, SCIPaddClique(), SCIPcheckStage, SCIPerrorMessage, SCIPisFeasEQ(), SCIPisFeasZero(), SCIPisInfinity(), SCIPvarAddImplic(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarGetLbGlobal(), SCIPvarGetProbvar(), SCIPvarGetType(), SCIPvarGetUbGlobal(), SCIPvarIsActive(), SCIPvarIsBinary(), and TRUE.
Referenced by addCliques(), extractCliques(), preprocessConstraintPairs(), SCIP_DECL_CONSPRESOL(), SCIPanalyzeDeductionsProbing(), and SCIPcopyImplicationsCliques().
◆ SCIPaddClique()
| SCIP_RETCODE SCIPaddClique | ( | SCIP * | scip, |
| SCIP_VAR ** | vars, | ||
| SCIP_Bool * | values, | ||
| int | nvars, | ||
| SCIP_Bool | isequation, | ||
| SCIP_Bool * | infeasible, | ||
| int * | nbdchgs | ||
| ) |
adds a clique information to SCIP, stating that at most one of the given binary variables can be set to 1; if a variable appears twice in the same clique, the corresponding implications are performed
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure vars binary variables in the clique from which at most one can be set to 1 values values of the variables in the clique; NULL to use TRUE for all vars nvars number of variables in the clique isequation is the clique an equation or an inequality? infeasible pointer to store whether an infeasibility was detected nbdchgs pointer to store the number of performed bound changes, or NULL
Definition at line 8882 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPcliquetableAdd(), and TRUE.
Referenced by addCliques(), addNegatedCliques(), applyBinaryConstraints(), extractCliques(), fixDeleteOrUpgradeCons(), greedyCliqueAlgorithm(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSPRESOL(), SCIPaddVarImplication(), and SCIPcopyImplicationsCliques().
◆ SCIPcalcCliquePartition()
| SCIP_RETCODE SCIPcalcCliquePartition | ( | SCIP * | scip, |
| SCIP_VAR ** | vars, | ||
| int | nvars, | ||
| int ** | probtoidxmap, | ||
| int * | probtoidxmapsize, | ||
| int * | cliquepartition, | ||
| int * | ncliques | ||
| ) |
calculates a partition of the given set of binary variables into cliques; takes into account independent clique components
The algorithm performs the following steps:
- recomputes connected components of the clique table, if necessary
- computes a clique partition for every connected component greedily.
- relabels the resulting clique partition such that it satisfies the description below
afterwards the output array contains one value for each variable, such that two variables got the same value iff they were assigned to the same clique; the first variable is always assigned to clique 0, and a variable can only be assigned to clique i if at least one of the preceding variables was assigned to clique i-1; for each clique at most 1 variables can be set to TRUE in a feasible solution;
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
calculates a partition of the given set of binary variables into cliques
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure vars binary variables in the clique from which at most one can be set to 1 nvars number of variables in the clique probtoidxmap cleared memory array with default values -1 probtoidxmapsize returns size of probtoidxmap cliquepartition array of length nvars to store the clique partition ncliques pointer to store the number of cliques actually contained in the partition
Definition at line 9330 of file scip_var.c.
References calcCliquePartitionGreedy(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPallocBufferArray, SCIPcheckStage, SCIPduplicateBufferArray, SCIPfreeBufferArray, SCIPgetNCliques(), SCIPtestCliquePartition(), SCIPvarsGetProbvarBinary(), and TRUE.
Referenced by calcCliquepartition(), deleteRedundantVars(), preprocessCliques(), SCIPcalcNegatedCliquePartition(), and tightenWeights().
◆ SCIPcalcNegatedCliquePartition()
| SCIP_RETCODE SCIPcalcNegatedCliquePartition | ( | SCIP * | scip, |
| SCIP_VAR ** | vars, | ||
| int | nvars, | ||
| int ** | probtoidxmap, | ||
| int * | probtoidxmapsize, | ||
| int * | cliquepartition, | ||
| int * | ncliques | ||
| ) |
calculates a partition of the given set of binary variables into negated cliques; afterwards the output array contains one value for each variable, such that two variables got the same value iff they were assigned to the same negated clique; the first variable is always assigned to clique 0 and a variable can only be assigned to clique i if at least one of the preceding variables was assigned to clique i-1; for each clique with n_c variables at least n_c-1 variables can be set to TRUE in a feasible solution;
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure vars binary variables in the clique from which at most one can be set to 1 nvars number of variables in the clique probtoidxmap cleared memory array with default values -1 probtoidxmapsize returns size of probtoidxmap cliquepartition array of length nvars to store the clique partition ncliques pointer to store the number of cliques actually contained in the partition
Definition at line 9410 of file scip_var.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIPcalcCliquePartition(), SCIPgetNegatedVar(), SCIPsetAllocBufferArray, and SCIPsetFreeBufferArray.
Referenced by calcCliquepartition().
◆ SCIPcleanupCliques()
| SCIP_RETCODE SCIPcleanupCliques | ( | SCIP * | scip, |
| SCIP_Bool * | infeasible | ||
| ) |
force SCIP to clean up all cliques; cliques do not get automatically cleaned up after presolving. Use this method to prevent inactive variables in cliques when retrieved via SCIPgetCliques()
- Returns
- SCIP_OKAY if everything worked, otherwise a suitable error code is passed
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure infeasible pointer to store if cleanup detected infeasibility
Definition at line 9469 of file scip_var.c.
References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CALL_ABORT, SCIP_OKAY, SCIP_STATUS_INFEASIBLE, SCIPcheckStage, SCIPcliquetableCleanup(), and TRUE.
Referenced by SCIP_DECL_PROPPRESOL(), SCIPshrinkDisjunctiveVarSet(), separateCuts(), and shortenConss().
◆ SCIPgetNCliques()
| int SCIPgetNCliques | ( | SCIP * | scip | ) |
gets the number of cliques in the clique table
- Returns
- number of cliques in the clique table
- Precondition
- This method can be called if
scipis in one of the following stages:
gets the number of cliques in the clique table
- Returns
- number of cliques in the clique table
- Note
- cliques do not get automatically cleaned up after presolving. Use SCIPcleanupCliques() to prevent inactive variables in cliques when retrieved via SCIPgetCliques(). This might reduce the number of cliques
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure
Definition at line 9512 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPcliquetableGetNCliques(), and TRUE.
Referenced by applyCliqueFixings(), calcCliquepartition(), createConflictGraphSST(), propdataInit(), removeConstraintsDueToNegCliques(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PROPPRESOL(), SCIPcalcCliquePartition(), SCIPcopyImplicationsCliques(), SCIPwriteCliqueGraph(), separateCuts(), separateOddCycles(), shortenConss(), tcliquegraphConstructCliqueTable(), and topologicalSort().
◆ SCIPgetNCliquesCreated()
| int SCIPgetNCliquesCreated | ( | SCIP * | scip | ) |
gets the number of cliques created so far by the cliquetable
- Returns
- number of cliques created so far by the cliquetable
- Precondition
- This method can be called if
scipis in one of the following stages:
gets the number of cliques created so far by the cliquetable
- Returns
- number of cliques created so far by the cliquetable
- Note
- cliques do not get automatically cleaned up after presolving. Use SCIPcleanupCliques() to prevent inactive variables in cliques when retrieved via SCIPgetCliques(). This might reduce the number of cliques
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure
Definition at line 9539 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPcliquetableGetNCliquesCreated(), and TRUE.
Referenced by SCIP_DECL_PROPPRESOL().
◆ SCIPgetCliques()
| SCIP_CLIQUE ** SCIPgetCliques | ( | SCIP * | scip | ) |
gets the array of cliques in the clique table
- Returns
- array of cliques in the clique table
- Precondition
- This method can be called if
scipis in one of the following stages:
gets the array of cliques in the clique table
- Returns
- array of cliques in the clique table
- Note
- cliques do not get automatically cleaned up after presolving. Use SCIPcleanupCliques() to prevent inactive variables in cliques when retrieved via SCIPgetCliques(). This might reduce the number of cliques
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure
Definition at line 9566 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPcliquetableGetCliques(), and TRUE.
Referenced by applyCliqueFixings(), createConflictGraphSST(), SCIPcopyImplicationsCliques(), SCIPwriteCliqueGraph(), separateCuts(), and tcliquegraphConstructCliqueTable().
◆ SCIPhaveVarsCommonClique()
| SCIP_Bool SCIPhaveVarsCommonClique | ( | SCIP * | scip, |
| SCIP_VAR * | var1, | ||
| SCIP_Bool | value1, | ||
| SCIP_VAR * | var2, | ||
| SCIP_Bool | value2, | ||
| SCIP_Bool | regardimplics | ||
| ) |
returns whether there is a clique that contains both given variable/value pairs; the variables must be active binary variables; if regardimplics is FALSE, only the cliques in the clique table are looked at; if regardimplics is TRUE, both the cliques and the implications of the implication graph are regarded
- Returns
- TRUE, if there is a clique that contains both variable/clique pairs; FALSE, otherwise
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- a variable with it's negated variable are NOT! in a clique
- a variable with itself are in a clique
- Parameters
-
scip SCIP data structure var1 first variable value1 value of first variable var2 second variable value2 value of second variable regardimplics should the implication graph also be searched for a clique?
Definition at line 9596 of file scip_var.c.
References FALSE, NULL, SCIP_CALL_ABORT, SCIPcheckStage, SCIPcliquetableGetNCliques(), SCIPvarGetNCliques(), SCIPvarIsActive(), SCIPvarIsBinary(), SCIPvarsHaveCommonClique(), and TRUE.
Referenced by liftCliqueVariables().
◆ SCIPwriteCliqueGraph()
| SCIP_RETCODE SCIPwriteCliqueGraph | ( | SCIP * | scip, |
| const char * | fname, | ||
| SCIP_Bool | writenodeweights | ||
| ) |
writes the clique graph to a gml file
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- there can be duplicated arcs in the output file
If writenodeweights is true, only nodes corresponding to variables that have a fractional value and only edges between such nodes are written.
- Parameters
-
scip SCIP data structure fname name of file writenodeweights should we write weights of nodes?
Definition at line 9647 of file scip_var.c.
References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_CALL_ABORT, SCIP_CALL_FINALLY, SCIP_INVALIDDATA, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPABORT, SCIPblkmem(), SCIPcheckStage, SCIPcliqueGetNVars(), SCIPcliqueGetValues(), SCIPcliqueGetVars(), SCIPerrorMessage, SCIPgetCliques(), SCIPgetNCliques(), SCIPgetSolVal(), SCIPgetVarsData(), SCIPgmlWriteArc(), SCIPgmlWriteClosing(), SCIPgmlWriteNode(), SCIPgmlWriteNodeWeight(), SCIPgmlWriteOpening(), SCIPhashmapCreate(), SCIPhashmapExists(), SCIPhashmapFree(), SCIPhashmapInsertInt(), SCIPisFeasIntegral(), SCIPsnprintf(), SCIPvarGetName(), SCIPvarGetProbindex(), and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC(), and separateGLS().
◆ SCIPremoveVarFromGlobalStructures()
| SCIP_RETCODE SCIPremoveVarFromGlobalStructures | ( | SCIP * | scip, |
| SCIP_VAR * | var | ||
| ) |
Removes (irrelevant) variable from all its global structures, i.e. cliques, implications and variable bounds. This is an advanced method which should be used with care.
- Returns
- SCIP_OKAY if everything worked, otherwise a suitable error code is passed
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to remove from global structures
Definition at line 9796 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_CALL_ABORT, SCIP_OKAY, SCIPblkmem(), SCIPcheckStage, SCIPvarMarkDeleteGlobalStructures(), SCIPvarRemoveCliquesImplicsVbs(), and TRUE.
Referenced by checkLocksAndRes().
◆ SCIPchgVarBranchFactor()
| SCIP_RETCODE SCIPchgVarBranchFactor | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | branchfactor | ||
| ) |
sets the branch factor of the variable; this value can be used in the branching methods to scale the score values of the variables; higher factor leads to a higher probability that this variable is chosen for branching
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable branchfactor factor to weigh variable's branching score with
Definition at line 9830 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarChgBranchFactor(), and TRUE.
◆ SCIPscaleVarBranchFactor()
| SCIP_RETCODE SCIPscaleVarBranchFactor | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | scale | ||
| ) |
scales the branch factor of the variable with the given value
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable scale factor to scale variable's branching factor with
Definition at line 9858 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarChgBranchFactor(), SCIPvarGetBranchFactor(), and TRUE.
◆ SCIPaddVarBranchFactor()
| SCIP_RETCODE SCIPaddVarBranchFactor | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | addfactor | ||
| ) |
adds the given value to the branch factor of the variable
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable addfactor value to add to the branch factor of the variable
Definition at line 9886 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarChgBranchFactor(), SCIPvarGetBranchFactor(), and TRUE.
◆ SCIPchgVarBranchPriority()
| SCIP_RETCODE SCIPchgVarBranchPriority | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| int | branchpriority | ||
| ) |
sets the branch priority of the variable; variables with higher branch priority are always preferred to variables with lower priority in selection of branching variable
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- the default branching priority is 0
- Parameters
-
scip SCIP data structure var problem variable branchpriority branch priority of the variable
Definition at line 9917 of file scip_var.c.
References FALSE, NULL, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPbranchcandUpdateVarBranchPriority(), SCIPcheckStage, SCIPisTransformed(), SCIPvarChgBranchPriority(), and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC(), and SCIPtransformMinUC().
◆ SCIPupdateVarBranchPriority()
| SCIP_RETCODE SCIPupdateVarBranchPriority | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| int | branchpriority | ||
| ) |
changes the branch priority of the variable to the given value, if it is larger than the current priority
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable branchpriority new branch priority of the variable, if it is larger than current priority
Definition at line 9958 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarChgBranchPriority(), SCIPvarGetBranchPriority(), and TRUE.
◆ SCIPaddVarBranchPriority()
| SCIP_RETCODE SCIPaddVarBranchPriority | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| int | addpriority | ||
| ) |
adds the given value to the branch priority of the variable
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable addpriority value to add to the branch priority of the variable
Definition at line 9991 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarChgBranchPriority(), SCIPvarGetBranchPriority(), and TRUE.
◆ SCIPchgVarBranchDirection()
| SCIP_RETCODE SCIPchgVarBranchDirection | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | branchdirection | ||
| ) |
sets the branch direction of the variable (-1: prefer downwards branch, 0: automatic selection, +1: prefer upwards branch)
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable branchdirection preferred branch direction of the variable (downwards, upwards, auto)
Definition at line 10022 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarChgBranchDirection(), and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC().
◆ SCIPchgVarType()
| SCIP_RETCODE SCIPchgVarType | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_VARTYPE | vartype, | ||
| SCIP_Bool * | infeasible | ||
| ) |
changes type of variable in the problem;
- Warning
- This type change might change the variable array returned from SCIPgetVars() and SCIPgetVarsData();
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- If SCIP is already beyond the SCIP_STAGE_PROBLEM and a original variable is passed, the variable type of the corresponding transformed variable is changed; the type of the original variable does not change
- If the type changes from a continuous variable to a non-continuous variable the bounds of the variable get adjusted w.r.t. to integrality information
- Parameters
-
scip SCIP data structure var variable to change the bound for vartype new type of variable infeasible pointer to store whether an infeasibility was detected (, due to integrality condition of the new variable type)
Definition at line 10113 of file scip_var.c.
References FALSE, NULL, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIPcheckStage, SCIPchgVarType(), SCIPdebugMsg, SCIPerrorMessage, SCIPgetStage(), SCIPgetTransformedVar(), SCIPprobChgVarType(), SCIPvarChgType(), SCIPvarGetName(), SCIPvarGetNegationVar(), SCIPvarGetProbindex(), SCIPvarGetType(), SCIPvarIsIntegral(), SCIPvarIsNegated(), SCIPvarIsTransformed(), tightenBounds(), and TRUE.
Referenced by createIndicatorConstraint(), createSubSCIP(), dualPresolve(), presolveSingleLockedVars(), readBinaries(), readBounds(), readBoundsExact(), readGenerals(), SCIP_DECL_RELAXEXEC(), SCIPaddVarIndicator(), SCIPbendersChgMastervarsToCont(), SCIPchgVarLb(), SCIPchgVarLbExact(), SCIPchgVarLbGlobal(), SCIPchgVarType(), SCIPchgVarUb(), SCIPchgVarUbExact(), SCIPchgVarUbGlobal(), SCIPcreateConsIndicatorGeneric(), SCIPcreateConsIndicatorGenericLinCons(), SCIPcreateConsIndicatorGenericLinConsPure(), SCIPinferVarLbCons(), SCIPinferVarLbConsExact(), SCIPinferVarLbProp(), SCIPinferVarUbCons(), SCIPinferVarUbConsExact(), SCIPinferVarUbProp(), SCIPtightenVarLb(), SCIPtightenVarLbExact(), SCIPtightenVarLbGlobal(), SCIPtightenVarUb(), SCIPtightenVarUbExact(), SCIPtightenVarUbGlobal(), setupAndSolveFiniteSolSubscip(), setupAndSolveSubscipRapidlearning(), tightenVarLbGlobalSafe(), and tightenVarUbGlobalSafe().
◆ SCIPchgVarImplType()
| SCIP_RETCODE SCIPchgVarImplType | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_IMPLINTTYPE | impltype, | ||
| SCIP_Bool * | infeasible | ||
| ) |
changes implied integral type of variable in the problem
- Warning
- This type change might change the variable array returned from SCIPgetVars() and SCIPgetVarsData();
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- If SCIP is already beyond the SCIP_STAGE_PROBLEM and a original variable is passed, the implied integral type of the corresponding transformed variable is changed; the type of the original variable does not change
- If the implied integral type is adjusted to weak or strong for a continuous variable, the bounds of the variable get adjusted w.r.t. to integrality information
- Parameters
-
scip SCIP data structure var variable to change the type for impltype new type of variable infeasible pointer to store whether an infeasibility was detected (, due to integrality condition of the new variable type)
Definition at line 10218 of file scip_var.c.
References FALSE, NULL, SCIP_Var::scip, SCIP_CALL, SCIP_IMPLINTTYPE_NONE, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIPcheckStage, SCIPchgVarImplType(), SCIPdebugMsg, SCIPerrorMessage, SCIPgetStage(), SCIPgetTransformedVar(), SCIPprobChgVarImplType(), SCIPvarChgImplType(), SCIPvarGetImplType(), SCIPvarGetName(), SCIPvarGetNegationVar(), SCIPvarGetProbindex(), SCIPvarIsNegated(), SCIPvarIsTransformed(), tightenBounds(), and TRUE.
Referenced by addAuxiliaryVariablesToMaster(), convertLongEquality(), dualPresolve(), findImpliedIntegers(), fullDualPresolve(), presolveImplint(), SCIP_DECL_CONSPRESOL(), SCIPaddVarIndicator(), SCIPbendersChgMastervarsToCont(), SCIPchgVarImplType(), SCIPcreateConsAnd(), SCIPcreateConsIndicatorGeneric(), SCIPcreateConsIndicatorGenericLinCons(), SCIPcreateConsIndicatorGenericLinConsPure(), and setupAndSolveSubscipRapidlearning().
◆ SCIPfixVar()
| SCIP_RETCODE SCIPfixVar | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | fixedval, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | fixed | ||
| ) |
in problem creation and solving stage, both bounds of the variable are set to the given value; in presolving stage, the variable is converted into a fixed variable, and bounds are changed respectively; conversion into a fixed variable changes the vars array returned from SCIPgetVars() and SCIPgetVarsData(), and also renders arrays returned from the SCIPvarGetImpl...() methods invalid
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to fix fixedval value to fix variable to infeasible pointer to store whether the fixing is infeasible fixed pointer to store whether the fixing was performed (variable was unfixed)
Definition at line 10318 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_ORIGINAL, SCIPcheckStage, SCIPchgVarLb(), SCIPchgVarUb(), SCIPerrorMessage, SCIPsetIsFeasEQ(), SCIPsetIsFeasGT(), SCIPsetIsFeasIntegral(), SCIPsetIsFeasLT(), SCIPtreeGetCurrentDepth(), SCIPvarFix(), SCIPvarGetLbLocal(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), SCIPvarIsIntegral(), and TRUE.
Referenced by aggregateVariables(), analyseVarOnoffBounds(), applyAlternativeBoundsFixing(), applyFixings(), applyFixingsAndAggregations(), applyProbing(), checkForOverlapping(), checkVariable(), cliquePresolve(), consdataLinearize(), convertUnaryEquality(), copyVars(), detectRedundantConstraints(), dualPresolve(), dualPresolving(), enforceSol(), fixAdditionalVars(), fixDeleteOrUpgradeCons(), fixIntegerVariable(), fixIntegerVariableLb(), fixIntegerVariableUb(), fixTriangle(), fixVariables(), fixVariableZero(), liftCliqueVariables(), main(), mergeMultiples(), performDualfix(), prepareCons(), preprocessConstraintPairs(), presolRoundCardinality(), presolRoundConsSOS1(), presolRoundIndicator(), presolRoundSOS2(), presolRoundVarsSOS1(), presolStuffing(), presolveConsEst(), presolveConsLct(), presolveCumulativeCondition(), presolvePropagateCons(), processNlRow(), propagateCons(), readSol(), removeDoubleAndSingletonsAndPerformDualpresolve(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_NLHDLRENFO(), SCIP_DECL_PRESOLEXEC(), SCIPanalyzeDeductionsProbing(), SCIPselectVarPseudoStrongBranching(), setupAndSolveFiniteSolSubscip(), setupProblem(), shortenConss(), solveAndEvalSubscip(), solveIndependentCons(), solveSubproblem(), tryFixVar(), tryUpgradingLogicor(), tryUpgradingSetppc(), and upgradeCons().
◆ SCIPfixVarExact()
| SCIP_RETCODE SCIPfixVarExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | fixedval, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | fixed | ||
| ) |
in problem creation and solving stage, both bounds of the variable are set to the given value; in presolving stage, the variable is converted into a fixed variable, and bounds are changed respectively; conversion into a fixed variable changes the vars array returned from SCIPgetVars() and SCIPgetVarsData(), and also renders arrays returned from the SCIPvarGetImpl...() methods invalid
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to fix fixedval value to fix variable to infeasible pointer to store whether the fixing is infeasible fixed pointer to store whether the fixing was performed (variable was unfixed)
Definition at line 10420 of file scip_var.c.
References SCIP_Var::exactdata, FALSE, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_R_ROUND_DOWNWARDS, SCIP_R_ROUND_UPWARDS, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_ORIGINAL, SCIP_VARTYPE_CONTINUOUS, SCIPcheckStage, SCIPchgVarLb(), SCIPchgVarUb(), SCIPerrorMessage, SCIPisExact(), SCIPrationalIsEQ(), SCIPrationalIsGT(), SCIPrationalIsIntegral(), SCIPrationalIsLE(), SCIPrationalIsLT(), SCIPrationalRoundReal(), SCIPtreeGetCurrentDepth(), SCIPvarFixExact(), SCIPvarGetLbLocalExact(), SCIPvarGetStatus(), SCIPvarGetType(), SCIPvarGetUbLocalExact(), and TRUE.
◆ SCIPaggregateVars()
| SCIP_RETCODE SCIPaggregateVars | ( | SCIP * | scip, |
| SCIP_VAR * | varx, | ||
| SCIP_VAR * | vary, | ||
| SCIP_Real | scalarx, | ||
| SCIP_Real | scalary, | ||
| SCIP_Real | rhs, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | redundant, | ||
| SCIP_Bool * | aggregated | ||
| ) |
From a given equality a*x + b*y == c, aggregates one of the variables and removes it from the set of active problem variables. This changes the vars array returned from SCIPgetVars() and SCIPgetVarsData(), and also renders the arrays returned from the SCIPvarGetImpl...() methods for the two variables invalid. In the first step, the equality is transformed into an equality with active problem variables a'*x' + b'*y' == c'. If x' == y', this leads to the detection of redundancy if a' == -b' and c' == 0, of infeasibility, if a' == -b' and c' != 0, or to a variable fixing x' == c'/(a'+b') (and possible infeasibility) otherwise. In the second step, the variable to be aggregated is chosen among x' and y', prefering a less strict variable type as aggregation variable (i.e. continuous variables are preferred over implicit integers, implicit integers over integers, and integers over binaries). If none of the variables is continuous, it is tried to find an integer aggregation (i.e. integral coefficients a'' and b'', such that a''*x' + b''*y' == c''). This can lead to the detection of infeasibility (e.g. if c'' is fractional), or to a rejection of the aggregation (denoted by aggregated == FALSE), if the resulting integer coefficients are too large and thus numerically instable.
The output flags have the following meaning:
- infeasible: the problem is infeasible
- redundant: the equality can be deleted from the constraint set
- aggregated: the aggregation was successfully performed (the variables were not aggregated before)
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_PRESOLVING
- Parameters
-
scip SCIP data structure varx variable x in equality a*x + b*y == c vary variable y in equality a*x + b*y == c scalarx multiplier a in equality a*x + b*y == c scalary multiplier b in equality a*x + b*y == c rhs right hand side c in equality a*x + b*y == c infeasible pointer to store whether the aggregation is infeasible redundant pointer to store whether the equality is (now) redundant aggregated pointer to store whether the aggregation was successful
Definition at line 10550 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_MULTAGGR, SCIPcheckStage, SCIPerrorMessage, SCIPsetIsZero(), SCIPtreeGetCurrentDepth(), SCIPtreeProbing(), SCIPvarFix(), SCIPvarGetProbvarSum(), SCIPvarGetStatus(), SCIPvarTryAggregateVars(), and TRUE.
Referenced by addExtendedAsymmetricFormulation(), addExtendedFlowFormulation(), aggregateVariables(), applyFixings(), applyFixingsAndAggregations(), cliquePresolve(), convertBinaryEquality(), convertLongEquality(), detectRedundantConstraints(), dualPresolve(), dualPresolving(), findAggregation(), performAggregations(), preprocessConstraintPairs(), presolvePropagateCons(), removeDoubleAndSingletonsAndPerformDualpresolve(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIPanalyzeDeductionsProbing(), and upgradeConss().
◆ SCIPaggregateVarsExact()
| SCIP_RETCODE SCIPaggregateVarsExact | ( | SCIP * | scip, |
| SCIP_VAR * | varx, | ||
| SCIP_VAR * | vary, | ||
| SCIP_RATIONAL * | scalarx, | ||
| SCIP_RATIONAL * | scalary, | ||
| SCIP_RATIONAL * | rhs, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | redundant, | ||
| SCIP_Bool * | aggregated | ||
| ) |
From a given equality a*x + b*y == c, aggregates one of the variables and removes it from the set of active problem variables. This changes the vars array returned from SCIPgetVars() and SCIPgetVarsData(), and also renders the arrays returned from the SCIPvarGetImpl...() methods for the two variables invalid. In the first step, the equality is transformed into an equality with active problem variables a'*x' + b'*y' == c'. If x' == y', this leads to the detection of redundancy if a' == -b' and c' == 0, of infeasibility, if a' == -b' and c' != 0, or to a variable fixing x' == c'/(a'+b') (and possible infeasibility) otherwise. In the second step, the variable to be aggregated is chosen among x' and y', prefering a less strict variable type as aggregation variable (i.e. continuous variables are preferred over implicit integers, implicit integers over integers, and integers over binaries). If none of the variables is continuous, it is tried to find an integer aggregation (i.e. integral coefficients a'' and b'', such that a''*x' + b''*y' == c''). This can lead to the detection of infeasibility (e.g. if c'' is fractional), or to a rejection of the aggregation (denoted by aggregated == FALSE), if the resulting integer coefficients are too large and thus numerically instable.
The output flags have the following meaning:
- infeasible: the problem is infeasible
- redundant: the equality can be deleted from the constraint set
- aggregated: the aggregation was successfully performed (the variables were not aggregated before)
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_PRESOLVING
- Parameters
-
scip SCIP data structure varx variable x in equality a*x + b*y == c vary variable y in equality a*x + b*y == c scalarx multiplier a in equality a*x + b*y == c scalary multiplier b in equality a*x + b*y == c rhs right hand side c in equality a*x + b*y == c infeasible pointer to store whether the aggregation is infeasible redundant pointer to store whether the equality is (now) redundant aggregated pointer to store whether the aggregation was successful
Definition at line 10692 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_VARSTATUS_MULTAGGR, SCIPbuffer(), SCIPcheckStage, SCIPerrorMessage, SCIPrationalAdd(), SCIPrationalCreateBuffer(), SCIPrationalDiff(), SCIPrationalDiv(), SCIPrationalFreeBuffer(), SCIPrationalIsZero(), SCIPtreeGetCurrentDepth(), SCIPtreeProbing(), SCIPvarFixExact(), SCIPvarGetProbvarSumExact(), SCIPvarGetStatus(), SCIPvarTryAggregateVarsExact(), and TRUE.
◆ SCIPmultiaggregateVar()
| SCIP_RETCODE SCIPmultiaggregateVar | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| int | naggvars, | ||
| SCIP_VAR ** | aggvars, | ||
| SCIP_Real * | scalars, | ||
| SCIP_Real | constant, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | aggregated | ||
| ) |
converts variable into multi-aggregated variable; this changes the variable array returned from SCIPgetVars() and SCIPgetVarsData();
- Warning
- The integrality condition is not checked anymore on the multi-aggregated variable. You must not multi-aggregate an integer variable without being sure, that integrality on the aggregation variables implies integrality on the aggregated variable.
The output flags have the following meaning:
- infeasible: the problem is infeasible
- aggregated: the aggregation was successfully performed (the variables were not aggregated before)
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_PRESOLVING
- Parameters
-
scip SCIP data structure var variable x to aggregate naggvars number n of variables in aggregation x = a_1*y_1 + ... + a_n*y_n + c aggvars variables y_i in aggregation x = a_1*y_1 + ... + a_n*y_n + c scalars multipliers a_i in aggregation x = a_1*y_1 + ... + a_n*y_n + c constant constant shift c in aggregation x = a_1*y_1 + ... + a_n*y_n + c infeasible pointer to store whether the aggregation is infeasible aggregated pointer to store whether the aggregation was successful
Definition at line 10834 of file scip_var.c.
References FALSE, scalars, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPcheckStage, SCIPerrorMessage, SCIPtreeGetCurrentDepth(), SCIPtreeProbing(), SCIPvarMultiaggregate(), and TRUE.
Referenced by aggregation(), convertLongEquality(), dualPresolve(), multiAggregateBinvar(), and SCIP_DECL_PRESOLEXEC().
◆ SCIPmultiaggregateVarExact()
| SCIP_RETCODE SCIPmultiaggregateVarExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| int | naggvars, | ||
| SCIP_VAR ** | aggvars, | ||
| SCIP_RATIONAL ** | scalars, | ||
| SCIP_RATIONAL * | constant, | ||
| SCIP_Bool * | infeasible, | ||
| SCIP_Bool * | aggregated | ||
| ) |
converts variable into exact multi-aggregated variable; this changes the variable array returned from SCIPgetVars() and SCIPgetVarsData();
- Warning
- The integrality condition is not checked anymore on the multi-aggregated variable. You must not multi-aggregate an integer variable without being sure, that integrality on the aggregation variables implies integrality on the aggregated variable.
The output flags have the following meaning:
- infeasible: the problem is infeasible
- aggregated: the aggregation was successfully performed (the variables were not aggregated before)
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_PRESOLVING
- Parameters
-
scip SCIP data structure var variable x to aggregate naggvars number n of variables in aggregation x = a_1*y_1 + ... + a_n*y_n + c aggvars variables y_i in aggregation x = a_1*y_1 + ... + a_n*y_n + c scalars multipliers a_i in aggregation x = a_1*y_1 + ... + a_n*y_n + c constant constant shift c in aggregation x = a_1*y_1 + ... + a_n*y_n + c infeasible pointer to store whether the aggregation is infeasible aggregated pointer to store whether the aggregation was successful
Definition at line 10879 of file scip_var.c.
References FALSE, scalars, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPcheckStage, SCIPerrorMessage, SCIPtreeGetCurrentDepth(), SCIPtreeProbing(), SCIPvarMultiaggregateExact(), and TRUE.
◆ SCIPdoNotAggr()
returns whether aggregation of variables is not allowed
- Parameters
-
scip SCIP data structure
Definition at line 10909 of file scip_var.c.
References NULL.
Referenced by applyFixings(), checkForOverlapping(), convertLongEquality(), detectRedundantConstraints(), preprocessCliques(), preprocessConstraintPairs(), presolvePropagateCons(), removeDoubleAndSingletonsAndPerformDualpresolve(), SCIP_DECL_CONSPRESOL(), and SCIP_DECL_PRESOLEXEC().
◆ SCIPdoNotMultaggr()
returns whether multi-aggregation is disabled
- Parameters
-
scip SCIP data structure
Definition at line 10919 of file scip_var.c.
References NULL.
Referenced by removeDoubleAndSingletonsAndPerformDualpresolve(), SCIP_DECL_CONSPRESOL(), and SCIP_DECL_HEUREXEC().
◆ SCIPdoNotAggrVar()
returns whether variable is not allowed to be aggregated
- Parameters
-
scip SCIP data structure var variable x to aggregate
Definition at line 10929 of file scip_var.c.
References NULL, SCIP_Var::scip, and SCIPvarDoNotAggr().
◆ SCIPdoNotMultaggrVar()
returns whether variable is not allowed to be multi-aggregated
- Parameters
-
scip SCIP data structure var variable x to aggregate
Definition at line 10942 of file scip_var.c.
References NULL, SCIP_Var::scip, and SCIPvarDoNotMultaggr().
Referenced by aggregation(), convertLongEquality(), dualPresolve(), SCIP_DECL_PRESOLEXEC(), and SCIPcreateConsIndicatorGenericLinConsPure().
◆ SCIPisVarAggrCoefAcceptable()
checks whether a loose variable can be used in a new aggregation with given coefficient
Checks whether multiplying the bounds on the coefficient with which the variable appears in aggregations (SCIPvarGetMinAggrCoef(), SCIPvarGetMaxAggrCoef()) by the given scalar would exceed acceptable values (numerics/sumepsilon and 1.0 / numerics/sumepsilon).
- Precondition
- This method can only be called if
scipis in stage SCIP_STAGE_PRESOLVING
- Parameters
-
scip SCIP data structure var problem variable scalar aggregation scalar
Definition at line 10962 of file scip_var.c.
References FALSE, NULL, SCIP_CALL_ABORT, SCIP_VARSTATUS_LOOSE, SCIPcheckStage, SCIPvarGetStatus(), SCIPvarIsAggrCoefAcceptable(), and TRUE.
Referenced by cancelCol().
◆ SCIPallowStrongDualReds()
returns whether strong dual reductions are allowed during propagation and presolving
- Note
- A reduction is called strong dual, if it may discard feasible/optimal solutions, but leaves at least one optimal solution intact. Often such reductions are based on analyzing the objective function and variable locks.
- Parameters
-
scip SCIP data structure
Definition at line 10984 of file scip_var.c.
References NULL.
Referenced by enfopsPackingPartitioningOrbitopeSolution(), enforceIndicators(), presolveCons(), propagateCons(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPEXEC(), SCIP_DECL_PROPPRESOL(), SCIPorbitopalReductionPropagate(), separateConstraints(), setupAndSolveSubscipRapidlearning(), and tryAddSymmetryHandlingMethods().
◆ SCIPallowWeakDualReds()
returns whether weak dual reductions are allowed during propagation and presolving
- Note
- A reduction is called weak dual, if it may discard feasible solutions, but leaves at all optimal solutions intact. Often such reductions are based on analyzing the objective function, reduced costs, and/or dual LPs.
- Parameters
-
scip SCIP data structure
Definition at line 10998 of file scip_var.c.
References NULL.
Referenced by SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPEXEC(), SCIP_DECL_PROPPRESOL(), and tryAddSymmetryHandlingMethods().
◆ SCIPmarkDoNotAggrVar()
| SCIP_RETCODE SCIPmarkDoNotAggrVar | ( | SCIP * | scip, |
| SCIP_VAR * | var | ||
| ) |
marks the variable that it must not be aggregated
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- There exists no "unmark" method since it has to be ensured that if a plugin requires that a variable is not aggregated that this is will be the case.
- Parameters
-
scip SCIP data structure var variable to delete
Definition at line 11024 of file scip_var.c.
References FALSE, NULL, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarMarkDoNotAggr(), and TRUE.
◆ SCIPmarkDoNotMultaggrVar()
| SCIP_RETCODE SCIPmarkDoNotMultaggrVar | ( | SCIP * | scip, |
| SCIP_VAR * | var | ||
| ) |
marks the variable that it must not be multi-aggregated
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- There exists no "unmark" method since it has to be ensured that if a plugin requires that a variable is not multi-aggregated that this is will be the case.
- Parameters
-
scip SCIP data structure var variable to delete
Definition at line 11057 of file scip_var.c.
References FALSE, NULL, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarMarkDoNotMultaggr(), and TRUE.
Referenced by addComponent(), addOrbitope(), consdataCreate(), createConstraints(), forbidNonlinearVariablesMultiaggration(), handleNewVariableCardinality(), handleNewVariableSOS1(), lexdataCreate(), SCIP_DECL_CONSTRANS(), SCIPcreateConsIndicatorGeneric(), SCIPcreateConsIndicatorGenericLinCons(), SCIPcreateConsIndicatorGenericLinConsPure(), SCIPcreateConsSOS1(), and SCIPcreateSchedulingProblem().
◆ SCIPenableVarHistory()
| void SCIPenableVarHistory | ( | SCIP * | scip | ) |
enables the collection of statistics for a variable
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure
Definition at line 11083 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPstatEnableVarHistory(), and TRUE.
Referenced by applyVbounds(), performRandRounding(), SCIP_DECL_HEUREXEC(), SCIPapplyProbingVar(), SCIPperformGenericDivingAlgorithm(), and selectVarStart().
◆ SCIPdisableVarHistory()
| void SCIPdisableVarHistory | ( | SCIP * | scip | ) |
disables the collection of any statistic for a variable
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure
Definition at line 11102 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPstatDisableVarHistory(), and TRUE.
Referenced by SCIP_DECL_HEUREXEC().
◆ SCIPupdateVarPseudocost()
| SCIP_RETCODE SCIPupdateVarPseudocost | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | solvaldelta, | ||
| SCIP_Real | objdelta, | ||
| SCIP_Real | weight | ||
| ) |
updates the pseudo costs of the given variable and the global pseudo costs after a change of "solvaldelta" in the variable's solution value and resulting change of "objdelta" in the in the LP's objective value; the update is ignored, if the objective value difference is infinite
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable solvaldelta difference of variable's new LP value - old LP value objdelta difference of new LP's objective value - old LP's objective value weight weight in (0,1] of this update in pseudo cost sum
Definition at line 11122 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPsetIsInfinity(), SCIPtreeProbing(), SCIPvarUpdatePseudocost(), and TRUE.
Referenced by executeBranchingRecursive(), runVanillaStrongBranching(), SCIP_DECL_HEUREXEC(), SCIPperformGenericDivingAlgorithm(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), and SCIPupdateVarPseudocostSymmetric().
◆ SCIPupdateVarAncPseudocost()
| SCIP_RETCODE SCIPupdateVarAncPseudocost | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | solvaldelta, | ||
| SCIP_Real | objdelta, | ||
| SCIP_Real | weight | ||
| ) |
updates the ancestor pseudo costs of the given variable and the global ancestor pseudo costs after a change of "solvaldelta" in the variable's solution value and resulting change of "objdelta" in the in the LP's objective value; the update is ignored, if the objective value difference is infinite
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable solvaldelta difference of variable's new LP value - old LP value objdelta difference of new LP's objective value - old LP's objective value weight weight in (0,1] of this update in pseudo cost sum
Definition at line 11154 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPsetIsInfinity(), SCIPtreeProbing(), SCIPvarUpdateAncPseudocost(), and TRUE.
Referenced by SCIPupdateVarPseudocostSymmetric().
◆ SCIPgetVarPseudocostVal()
gets the variable's pseudo cost value for the given change of the variable's LP value
- Returns
- the variable's pseudo cost value for the given change of the variable's LP value
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable solvaldelta difference of variable's new LP value - old LP value
Definition at line 11188 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetPseudocost(), and TRUE.
Referenced by calcPscostQuot(), calculateScoreFromPseudocosts(), execRelpscost(), getVariablePscostScore(), SCIP_DECL_DIVESETGETSCORE(), scoreBranchingCandidates(), selectVarMultAggrBranching(), and updateBestCandidate().
◆ SCIPgetVarAncPseudocostVal()
gets the variable's ancestral pseudo cost value for the given change of the variable's LP value
- Returns
- the variable's ancestral pseudo cost value for the given change of the variable's LP value
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable solvaldelta difference of variable's new LP value - old LP value
Definition at line 11214 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetAncPseudocost(), and TRUE.
Referenced by execRelpscost().
◆ SCIPgetVarPseudocostValCurrentRun()
gets the variable's pseudo cost value for the given change of the variable's LP value, only using the pseudo cost information of the current run
- Returns
- the variable's pseudo cost value for the given change of the variable's LP value, only using the pseudo cost information of the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable solvaldelta difference of variable's new LP value - old LP value
Definition at line 11242 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetPseudocostCurrentRun(), and TRUE.
◆ SCIPgetVarPseudocost()
| SCIP_Real SCIPgetVarPseudocost | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
gets the variable's pseudo cost value for the given direction
- Returns
- the variable's pseudo cost value for the given direction
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 11268 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetPseudocost(), and TRUE.
◆ SCIPgetVarPseudocostCurrentRun()
| SCIP_Real SCIPgetVarPseudocostCurrentRun | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
gets the variable's pseudo cost value for the given direction, only using the pseudo cost information of the current run
- Returns
- the variable's pseudo cost value for the given direction, only using the pseudo cost information of the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 11296 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetPseudocostCurrentRun(), and TRUE.
Referenced by execRelpscost().
◆ SCIPgetVarPseudocostCount()
| SCIP_Real SCIPgetVarPseudocostCount | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
gets the variable's (possible fractional) number of pseudo cost updates for the given direction
- Returns
- the variable's (possible fractional) number of pseudo cost updates for the given direction
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 11322 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetPseudocostCount(), and TRUE.
◆ SCIPgetVarPseudocostCountCurrentRun()
| SCIP_Real SCIPgetVarPseudocostCountCurrentRun | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
gets the variable's (possible fractional) number of pseudo cost updates for the given direction, only using the pseudo cost information of the current run
- Returns
- the variable's (possible fractional) number of pseudo cost updates for the given direction, only using the pseudo cost information of the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 11350 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetPseudocostCountCurrentRun(), and TRUE.
Referenced by execRelpscost(), isCandidateReliable(), needsStrongBranching(), and scoreBranchingCandidates().
◆ SCIPgetVarAncPseudocostCountCurrentRun()
| SCIP_Real SCIPgetVarAncPseudocostCountCurrentRun | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
gets the variable's (possible fractional) number of ancestor pseudo cost updates for the given direction, only using the pseudo cost information of the current run
- Returns
- the variable's (possible fractional) number of ancestor pseudo cost updates for the given direction, only using the pseudo cost information of the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 11378 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetAncPseudocostCountCurrentRun(), and TRUE.
Referenced by needsStrongBranching().
◆ SCIPgetVarPseudocostVariance()
| SCIP_Real SCIPgetVarPseudocostVariance | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir, | ||
| SCIP_Bool | onlycurrentrun | ||
| ) |
get pseudo cost variance of the variable, either for entire solve or only for current branch and bound run
- Returns
- returns the (corrected) variance of pseudo code information collected so far.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards) onlycurrentrun only for pseudo costs of current branch and bound run
Definition at line 11404 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetPseudocostVariance(), and TRUE.
◆ SCIPcalculatePscostConfidenceBound()
| SCIP_Real SCIPcalculatePscostConfidenceBound | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir, | ||
| SCIP_Bool | onlycurrentrun, | ||
| SCIP_CONFIDENCELEVEL | clevel | ||
| ) |
calculates a confidence bound for this variable under the assumption of normally distributed pseudo costs
The confidence bound \( \theta \geq 0\) denotes the interval borders \( [X - \theta, \ X + \theta]\), which contains the true pseudo costs of the variable, i.e., the expected value of the normal distribution, with a probability of 2 * clevel - 1.
- Returns
- value of confidence bound for this variable
- Parameters
-
scip SCIP data structure var variable in question dir the branching direction for the confidence bound onlycurrentrun should only the current run be taken into account clevel confidence level for the interval
Definition at line 11426 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarCalcPscostConfidenceBound(), and TRUE.
◆ SCIPsignificantVarPscostDifference()
| SCIP_Bool SCIPsignificantVarPscostDifference | ( | SCIP * | scip, |
| SCIP_VAR * | varx, | ||
| SCIP_Real | fracx, | ||
| SCIP_VAR * | vary, | ||
| SCIP_Real | fracy, | ||
| SCIP_BRANCHDIR | dir, | ||
| SCIP_CONFIDENCELEVEL | clevel, | ||
| SCIP_Bool | onesided | ||
| ) |
check if variable pseudo-costs have a significant difference in location. The significance depends on the choice of clevel and on the kind of tested hypothesis. The one-sided hypothesis, which should be rejected, is that fracy * mu_y >= fracx * mu_x, where mu_y and mu_x denote the unknown location means of the underlying pseudo-cost distributions of x and y.
This method is applied best if variable x has a better pseudo-cost score than y. The method hypothesizes that y were actually better than x (despite the current information), meaning that y can be expected to yield branching decisions as least as good as x in the long run. If the method returns TRUE, the current history information is sufficient to safely rely on the alternative hypothesis that x yields indeed a better branching score (on average) than y.
- Note
- The order of x and y matters for the one-sided hypothesis
-
set
onesidedto FALSE if you are not sure which variable is better. The hypothesis tested then reads fracy * mu_y == fracx * mu_x vs the alternative hypothesis fracy * mu_y != fracx * mu_x.
- Returns
- TRUE if the hypothesis can be safely rejected at the given confidence level
- Parameters
-
scip SCIP data structure varx variable x fracx the fractionality of variable x vary variable y fracy the fractionality of variable y dir branching direction clevel confidence level for rejecting hypothesis onesided should a one-sided hypothesis y >= x be tested?
Definition at line 11457 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarSignificantPscostDifference(), and TRUE.
Referenced by execRelpscost(), and needsStrongBranching().
◆ SCIPpscostThresholdProbabilityTest()
| SCIP_Bool SCIPpscostThresholdProbabilityTest | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | frac, | ||
| SCIP_Real | threshold, | ||
| SCIP_BRANCHDIR | dir, | ||
| SCIP_CONFIDENCELEVEL | clevel | ||
| ) |
tests at a given confidence level whether the variable pseudo-costs only have a small probability to exceed a threshold. This is useful to determine if past observations provide enough evidence to skip an expensive strong-branching step if there is already a candidate that has been proven to yield an improvement of at least threshold.
- Note
- use
clevelto adjust the level of confidence. For SCIP_CONFIDENCELEVEL_MIN, the method returns TRUE if the estimated probability to exceedthresholdis less than 25 %.
- See also
- SCIP_Confidencelevel for a list of available levels. The used probability limits refer to the one-sided levels of confidence.
- Returns
- TRUE if the variable pseudo-cost probabilistic model is likely to be smaller than
thresholdat the given confidence levelclevel.
- Parameters
-
scip SCIP data structure var variable x frac the fractionality of variable x threshold the threshold to test against dir branching direction clevel confidence level for rejecting hypothesis
Definition at line 11487 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarPscostThresholdProbabilityTest(), and TRUE.
Referenced by execRelpscost().
◆ SCIPisVarPscostRelerrorReliable()
| SCIP_Bool SCIPisVarPscostRelerrorReliable | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | threshold, | ||
| SCIP_CONFIDENCELEVEL | clevel | ||
| ) |
check if the current pseudo cost relative error in a direction violates the given threshold. The Relative Error is calculated at a specific confidence level
- Returns
- TRUE if relative error in variable pseudo costs is smaller than
threshold
- Parameters
-
scip SCIP data structure var variable in question threshold threshold for relative errors to be considered reliable (enough) clevel a given confidence level
Definition at line 11506 of file scip_var.c.
References FALSE, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarIsPscostRelerrorReliable(), and TRUE.
Referenced by needsStrongBranching().
◆ SCIPgetVarPseudocostScore()
gets the variable's pseudo cost score value for the given LP solution value
- Returns
- the variable's pseudo cost score value for the given LP solution value
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable solval variable's LP solution value
Definition at line 11531 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPsetFeasCeil(), SCIPsetFeasFloor(), SCIPvarGetPseudocost(), and TRUE.
Referenced by execRelpscost(), SCIP_DECL_BRANCHEXECLP(), and scoring().
◆ SCIPgetVarDPseudocostScore()
| SCIP_Real SCIPgetVarDPseudocostScore | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | solval, | ||
| SCIP_Real | discountfac | ||
| ) |
gets the variable's discounted pseudo cost score value for the given LP solution value.
This combines both pscost and ancpscost fields.
- Returns
- the variable's discounted pseudo cost score value for the given LP solution value, combining both pscost and ancpscost fields.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable solval variable's LP solution value discountfac discount factor for discounted pseudocost
Definition at line 11570 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPsetFeasCeil(), SCIPsetFeasFloor(), SCIPvarGetAncPseudocost(), SCIPvarGetPseudocost(), and TRUE.
Referenced by execRelpscost(), and SCIP_DECL_BRANCHEXECLP().
◆ SCIPgetVarPseudocostScoreCurrentRun()
gets the variable's pseudo cost score value for the given LP solution value, only using the pseudo cost information of the current run
- Returns
- the variable's pseudo cost score value for the given LP solution value, only using the pseudo cost information of the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable solval variable's LP solution value
Definition at line 11613 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPsetFeasCeil(), SCIPsetFeasFloor(), SCIPvarGetPseudocostCurrentRun(), and TRUE.
Referenced by execRelpscost().
◆ SCIPgetVarVSIDS()
| SCIP_Real SCIPgetVarVSIDS | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the variable's VSIDS value
- Returns
- the variable's VSIDS value
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 11649 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_INVALID, SCIPcheckStage, SCIPerrorMessage, SCIPvarGetVSIDS(), and TRUE.
Referenced by setupAndSolveSubscipRapidlearning().
◆ SCIPgetVarVSIDSCurrentRun()
| SCIP_Real SCIPgetVarVSIDSCurrentRun | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the variable's VSIDS value only using conflicts of the current run
- Returns
- the variable's VSIDS value only using conflicts of the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 11681 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_INVALID, SCIPcheckStage, SCIPerrorMessage, SCIPvarGetVSIDSCurrentRun(), and TRUE.
◆ SCIPgetVarConflictScore()
returns the variable's conflict score value
- Returns
- the variable's conflict score value
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable
Definition at line 11713 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPvarGetVSIDS(), and TRUE.
Referenced by computeFixingOrder(), execRelpscost(), getAggrScore(), performBranchingNoSol(), and performBranchingSol().
◆ SCIPgetVarConflictScoreCurrentRun()
returns the variable's conflict score value only using conflicts of the current run
- Returns
- the variable's conflict score value only using conflicts of the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable
Definition at line 11744 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPvarGetVSIDSCurrentRun(), and TRUE.
◆ SCIPgetVarConflictlengthScore()
returns the variable's conflict length score
- Returns
- the variable's conflict length score
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable
Definition at line 11775 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPvarGetAvgConflictlength(), and TRUE.
Referenced by execRelpscost().
◆ SCIPgetVarConflictlengthScoreCurrentRun()
returns the variable's conflict length score only using conflicts of the current run
- Returns
- the variable's conflict length score only using conflicts of the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable
Definition at line 11806 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPvarGetAvgConflictlengthCurrentRun(), and TRUE.
◆ SCIPgetVarAvgConflictlength()
| SCIP_Real SCIPgetVarAvgConflictlength | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the variable's average conflict length
- Returns
- the variable's average conflict length
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 11837 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetAvgConflictlength(), and TRUE.
Referenced by setupAndSolveSubscipRapidlearning().
◆ SCIPgetVarAvgConflictlengthCurrentRun()
| SCIP_Real SCIPgetVarAvgConflictlengthCurrentRun | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the variable's average conflict length only using conflicts of the current run
- Returns
- the variable's average conflict length only using conflicts of the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 11863 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetAvgConflictlengthCurrentRun(), and TRUE.
◆ SCIPgetVarAvgInferences()
| SCIP_Real SCIPgetVarAvgInferences | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the average number of inferences found after branching on the variable in given direction; if branching on the variable in the given direction was yet evaluated, the average number of inferences over all variables for branching in the given direction is returned
- Returns
- the average number of inferences found after branching on the variable in given direction
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 11891 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetAvgInferences(), and TRUE.
Referenced by changeSubvariableObjective(), and setupAndSolveSubscipRapidlearning().
◆ SCIPgetVarAvgInferencesCurrentRun()
| SCIP_Real SCIPgetVarAvgInferencesCurrentRun | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the average number of inferences found after branching on the variable in given direction in the current run; if branching on the variable in the given direction was yet evaluated, the average number of inferences over all variables for branching in the given direction is returned
- Returns
- the average number of inferences found after branching on the variable in given direction in the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 11919 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetAvgInferencesCurrentRun(), and TRUE.
◆ SCIPgetVarAvgInferenceScore()
returns the variable's average inference score value
- Returns
- the variable's average inference score value
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable
Definition at line 11945 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPvarGetAvgInferences(), and TRUE.
Referenced by execRelpscost(), fixVariable(), performBranchingNoSol(), performBranchingSol(), and SCIP_DECL_HEUREXEC().
◆ SCIPgetVarAvgInferenceScoreCurrentRun()
returns the variable's average inference score value only using inferences of the current run
- Returns
- the variable's average inference score value only using inferences of the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable
Definition at line 11976 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPvarGetAvgInferencesCurrentRun(), and TRUE.
◆ SCIPinitVarBranchStats()
| SCIP_RETCODE SCIPinitVarBranchStats | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | downpscost, | ||
| SCIP_Real | uppscost, | ||
| SCIP_Real | downvsids, | ||
| SCIP_Real | upvsids, | ||
| SCIP_Real | downconflen, | ||
| SCIP_Real | upconflen, | ||
| SCIP_Real | downinfer, | ||
| SCIP_Real | upinfer, | ||
| SCIP_Real | downcutoff, | ||
| SCIP_Real | upcutoff | ||
| ) |
initializes the upwards and downwards pseudocosts, conflict scores, conflict lengths, inference scores, cutoff scores of a variable to the given values
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable which should be initialized downpscost value to which pseudocosts for downwards branching should be initialized uppscost value to which pseudocosts for upwards branching should be initialized downvsids value to which VSIDS score for downwards branching should be initialized upvsids value to which VSIDS score for upwards branching should be initialized downconflen value to which conflict length score for downwards branching should be initialized upconflen value to which conflict length score for upwards branching should be initialized downinfer value to which inference counter for downwards branching should be initialized upinfer value to which inference counter for upwards branching should be initialized downcutoff value to which cutoff counter for downwards branching should be initialized upcutoff value to which cutoff counter for upwards branching should be initialized
Definition at line 12009 of file scip_var.c.
References FALSE, NULL, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL, SCIP_OKAY, SCIP_UNKNOWN, SCIPcheckStage, SCIPisFeasZero(), SCIPvarIncCutoffSum(), SCIPvarIncInferenceSum(), SCIPvarIncNActiveConflicts(), SCIPvarIncNBranchings(), SCIPvarIncVSIDS(), SCIPvarUpdatePseudocost(), and TRUE.
Referenced by setupAndSolveSubscipRapidlearning().
◆ SCIPinitVarValueBranchStats()
| SCIP_RETCODE SCIPinitVarValueBranchStats | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | value, | ||
| SCIP_Real | downvsids, | ||
| SCIP_Real | upvsids, | ||
| SCIP_Real | downconflen, | ||
| SCIP_Real | upconflen, | ||
| SCIP_Real | downinfer, | ||
| SCIP_Real | upinfer, | ||
| SCIP_Real | downcutoff, | ||
| SCIP_Real | upcutoff | ||
| ) |
initializes the upwards and downwards conflict scores, conflict lengths, inference scores, cutoff scores of a variable w.r.t. a value by the given values (SCIP_VALUEHISTORY)
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable which should be initialized value domain value, or SCIP_UNKNOWN downvsids value to which VSIDS score for downwards branching should be initialized upvsids value to which VSIDS score for upwards branching should be initialized downconflen value to which conflict length score for downwards branching should be initialized upconflen value to which conflict length score for upwards branching should be initialized downinfer value to which inference counter for downwards branching should be initialized upinfer value to which inference counter for upwards branching should be initialized downcutoff value to which cutoff counter for downwards branching should be initialized upcutoff value to which cutoff counter for upwards branching should be initialized
Definition at line 12080 of file scip_var.c.
References FALSE, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL, SCIP_OKAY, SCIPblkmem(), SCIPcheckStage, SCIPisFeasZero(), SCIPvarIncCutoffSum(), SCIPvarIncInferenceSum(), SCIPvarIncNActiveConflicts(), SCIPvarIncNBranchings(), SCIPvarIncVSIDS(), and TRUE.
◆ SCIPgetVarAvgCutoffs()
| SCIP_Real SCIPgetVarAvgCutoffs | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the average number of cutoffs found after branching on the variable in given direction; if branching on the variable in the given direction was yet evaluated, the average number of cutoffs over all variables for branching in the given direction is returned
- Returns
- the average number of cutoffs found after branching on the variable in given direction
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 12145 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetAvgCutoffs(), and TRUE.
Referenced by SCIPisStrongbranchDownFirst().
◆ SCIPgetVarAvgCutoffsCurrentRun()
| SCIP_Real SCIPgetVarAvgCutoffsCurrentRun | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_BRANCHDIR | dir | ||
| ) |
returns the average number of cutoffs found after branching on the variable in given direction in the current run; if branching on the variable in the given direction was yet evaluated, the average number of cutoffs over all variables for branching in the given direction is returned
- Returns
- the average number of cutoffs found after branching on the variable in given direction in the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable dir branching direction (downwards, or upwards)
Definition at line 12173 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetAvgCutoffsCurrentRun(), and TRUE.
◆ SCIPgetVarAvgCutoffScore()
returns the variable's average cutoff score value
- Returns
- the variable's average cutoff score value
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable
Definition at line 12199 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPvarGetAvgCutoffs(), and TRUE.
Referenced by execRelpscost().
◆ SCIPgetVarAvgCutoffScoreCurrentRun()
returns the variable's average cutoff score value, only using cutoffs of the current run
- Returns
- the variable's average cutoff score value, only using cutoffs of the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable
Definition at line 12230 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPvarGetAvgCutoffsCurrentRun(), and TRUE.
◆ SCIPgetVarAvgInferenceCutoffScore()
returns the variable's average inference/cutoff score value, weighting the cutoffs of the variable with the given factor
- Returns
- the variable's average inference/cutoff score value
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable cutoffweight factor to weigh average number of cutoffs in branching score
Definition at line 12262 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPhistoryGetAvgInferences(), SCIPvarGetAvgCutoffs(), SCIPvarGetAvgInferences(), and TRUE.
Referenced by computeFixingOrder(), getAggrScore(), performBranchingNoSol(), and performBranchingSol().
◆ SCIPgetVarAvgInferenceCutoffScoreCurrentRun()
| SCIP_Real SCIPgetVarAvgInferenceCutoffScoreCurrentRun | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | cutoffweight | ||
| ) |
returns the variable's average inference/cutoff score value, weighting the cutoffs of the variable with the given factor, only using inferences and cutoffs of the current run
- Returns
- the variable's average inference/cutoff score value, only using inferences and cutoffs of the current run
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable cutoffweight factor to weigh average number of cutoffs in branching score
Definition at line 12306 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPcheckStage, SCIPhistoryGetAvgInferences(), SCIPvarGetAvgCutoffsCurrentRun(), SCIPvarGetAvgInferencesCurrentRun(), and TRUE.
◆ SCIPgetVarAvgGMIScore()
returns the variable's average GMI efficacy score value
- Returns
- the variable's average GMI efficacy score value (for when it was fractional and basic in the LP)
- Precondition
- This method can be called if
scipis in one of the following stages:
returns the variable's average GMI efficacy score value
- Returns
- the variable's average GMI efficacy score value
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable
Definition at line 12349 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetAvgGMIScore(), and TRUE.
Referenced by execRelpscost().
◆ SCIPincVarGMISumScore()
| SCIP_RETCODE SCIPincVarGMISumScore | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | gmieff | ||
| ) |
sets the variable's avg GMI efficacy score value
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
sets the variable's average GMI efficacy score value
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable gmieff Efficacy of last GMI cut generated from when var was basic /frac
Definition at line 12375 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_CALL_ABORT, SCIP_OKAY, SCIPcheckStage, SCIPvarIncGMIeffSum(), and TRUE.
Referenced by SCIP_DECL_SEPAEXECLP().
◆ SCIPgetVarLastGMIScore()
returns the variable's last GMI efficacy score value
- Returns
- the variable's last GMI efficacy score value (for when it was fractional and basic in the LP)
- Precondition
- This method can be called if
scipis in one of the following stages:
returns the variable's last GMI efficacy score value
- Returns
- the variable's last GMI efficacy score value
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable
Definition at line 12403 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPcheckStage, SCIPvarGetLastGMIScore(), and TRUE.
Referenced by execRelpscost().
◆ SCIPsetVarLastGMIScore()
| SCIP_RETCODE SCIPsetVarLastGMIScore | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_Real | gmieff | ||
| ) |
sets the variable's last GMI efficacy score value
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var problem variable gmieff efficacy of GMI cut from tableau row when variable is basic / frac
Definition at line 12429 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_CALL_ABORT, SCIP_OKAY, SCIPcheckStage, SCIPvarSetLastGMIScore(), and TRUE.
Referenced by SCIP_DECL_SEPAEXECLP().
◆ SCIPprintVar()
| SCIP_RETCODE SCIPprintVar | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| FILE * | file | ||
| ) |
outputs variable information to file stream via the message system
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- If the message handler is set to a NULL pointer nothing will be printed
- Parameters
-
scip SCIP data structure var problem variable file output file (or NULL for standard output)
Definition at line 12465 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarPrint(), and TRUE.
Referenced by checkBounddisjunction(), checkKnapsack(), computeAndConstraintInfos(), consdataCheck(), createVariable(), doPricing(), getFixedVariable(), getVariable(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_READERWRITE(), SCIPcreateVarBinpacking(), and SCIPwriteOpb().
◆ SCIPchgVarObjExact()
| SCIP_RETCODE SCIPchgVarObjExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | newobj | ||
| ) |
changes variable's exact objective value
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to change the objective value for newobj new objective value
Definition at line 5420 of file scip_var.c.
References FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_TRANSFORMED, SCIP_STAGE_TRANSFORMING, SCIPcheckStage, SCIPerrorMessage, SCIPrationalIsAbsInfinity(), SCIPvarChgObjExact(), SCIPvarIsTransformed(), and TRUE.
Referenced by getVariable(), readColsExact(), readObjectiveRational(), and setObjective().
◆ SCIPchgVarUbGlobalExact()
| SCIP_RETCODE SCIPchgVarUbGlobalExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | newbound | ||
| ) |
changes exact global upper bound of variable;
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound
Definition at line 5467 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarChgUbGlobalExact(), SCIPvarIsTransformed(), and TRUE.
◆ SCIPchgVarLbGlobalExact()
| SCIP_RETCODE SCIPchgVarLbGlobalExact | ( | SCIP * | scip, |
| SCIP_VAR * | var, | ||
| SCIP_RATIONAL * | newbound | ||
| ) |
changes exact global lower bound of variable;
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Parameters
-
scip SCIP data structure var variable to change the bound for newbound new value for bound
Definition at line 5492 of file scip_var.c.
References FALSE, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarChgLbGlobalExact(), SCIPvarIsTransformed(), and TRUE.
◆ SCIPwriteVarsLinearsumExact()
| SCIP_RETCODE SCIPwriteVarsLinearsumExact | ( | SCIP * | scip, |
| FILE * | file, | ||
| SCIP_VAR ** | vars, | ||
| SCIP_RATIONAL ** | vals, | ||
| int | nvars, | ||
| SCIP_Bool | type | ||
| ) |
print the given variables and rational coefficients as linear sum in the following form c1 <x1> + c2 <x2> ... + cn <xn>
This string can be parsed by the method SCIPparseVarsLinearsum().
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- The printing process is done via the message handler system.
print the given variables and rational coefficients as linear sum in the following form c1 <x1> + c2 <x2> ... + cn <xn>
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- The printing process is done via the message handler system.
- Parameters
-
scip SCIP data structure file output file, or NULL for stdout vars variable array to output vals array of coefficients or NULL if all coefficients are 1.0 nvars number of variables type should the variable type be also posted
Definition at line 533 of file scip_var.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPgetMessagehdlr(), SCIPinfoMessage(), SCIPrationalIsEQReal(), SCIPrationalIsNegative(), SCIPrationalMessage(), SCIPwriteVarName(), and TRUE.
Referenced by consdataPrint().
◆ SCIPgetProbvarLinearSumExact()
| SCIP_RETCODE SCIPgetProbvarLinearSumExact | ( | SCIP * | scip, |
| SCIP_VAR ** | vars, | ||
| SCIP_RATIONAL ** | scalars, | ||
| int * | nvars, | ||
| int | varssize, | ||
| SCIP_RATIONAL * | constant, | ||
| int * | requiredsize, | ||
| SCIP_Bool | mergemultiples | ||
| ) |
Transforms a given linear sum of variables, that is a_1*x_1 + ... + a_n*x_n + c into a corresponding linear sum of active variables, that is b_1*y_1 + ... + b_m*y_m + d.
If the number of needed active variables is greater than the available slots in the variable array, nothing happens except that the required size is stored in the corresponding variable (requiredsize). Otherwise, the active variable representation is stored in the variable array, scalar array and constant.
The reason for this approach is that we cannot reallocate memory, since we do not know how the memory has been allocated (e.g., by a C++ 'new' or SCIP functions).
- Returns
- SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
- Precondition
- This method can be called if
scipis in one of the following stages:
- Note
- The resulting linear sum is stored into the given variable array, scalar array, and constant. That means the given entries are overwritten.
- That method can be used to convert a single variables into variable space of active variables. Therefore call the method with the linear sum 1.0*x + 0.0.
- Parameters
-
scip SCIP data structure vars variable array x_1, ..., x_n in the linear sum which will be overwritten by the variable array y_1, ..., y_m in the linear sum w.r.t. active variables scalars scalars a_1, ..., a_n in linear sum which will be overwritten to the scalars b_1, ..., b_m in the linear sum of the active variables nvars pointer to number of variables in the linear sum which will be overwritten by the number of variables in the linear sum corresponding to the active variables varssize available slots in vars and scalars array which is needed to check if the array are large enough for the linear sum w.r.t. active variables constant pointer to constant c in linear sum a_1*x_1 + ... + a_n*x_n + c which will chnage to constant d in the linear sum b_1*y_1 + ... + b_m*y_m + d w.r.t. the active variables requiredsize pointer to store the required array size for the linear sum w.r.t. the active variables mergemultiples should multiple occurrences of a var be replaced by a single coeff?
Definition at line 2443 of file scip_var.c.
References FALSE, NULL, scalars, SCIP_CALL, SCIP_OKAY, SCIPcheckStage, SCIPvarGetActiveRepresentativesExact(), and TRUE.
Referenced by getActiveVariablesExact(), SCIPaddCoefExactLinear(), and SCIPcreateConsExactLinear().