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_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) |
int SCIPvarGetNLocksDown | ( | SCIP_VAR * | var | ) |
gets number of locks for rounding down
var | problem variable |
Definition at line 3162 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::donotmultaggr, SCIP_Var::multaggr, SCIP_Var::negatedvar, SCIP_Var::nlocksdown, 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, SCIPvarGetNLocksUp(), 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(), consdataFindUnlockedLinearVar(), createCoveringProblem(), dualPresolve(), dualPresolving(), extractGates(), findComponents(), fixIntegerVariableLb(), hasQuadvarHpProperty(), isConsIndependently(), multiAggregateBinvar(), performDualfix(), presolRoundIndicator(), presolveConsEst(), presolveDual(), propagateCons(), propIndicator(), removeDoubleAndSingletonsAndPerformDualpresolve(), roundFixingValue(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_READERWRITE(), SCIPanalyzeDeductionsProbing(), SCIPapplyLockFixings(), SCIPapplyProbingVar(), SCIPgetVarStrongbranchWithPropagation(), SCIPmakeIndicatorFeasible(), SCIPmatrixCreate(), SCIPmatrixDownlockConflict(), SCIPprintBranchingStatistics(), SCIPsolAdjustImplicitSolVals(), SCIPvarAddLocks(), SCIPvarGetNLocksUp(), SCIPvarMayRoundDown(), selectEssentialRounding(), selectRounding(), selectShifting(), singletonColumnStuffing(), and sortVariables().
int SCIPvarGetNLocksUp | ( | SCIP_VAR * | var | ) |
gets number of locks for rounding up
var | problem variable |
Definition at line 3217 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::donotmultaggr, SCIP_Var::multaggr, SCIP_Var::negatedvar, SCIP_Var::nlocksup, SCIP_Multaggr::nvars, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_Multaggr::scalars, SCIP_Bool, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPABORT, SCIPerrorMessage, SCIPvarGetNLocksDown(), SCIPvarGetStatus(), SCIPvarMayRoundDown(), SCIP_Original::transvar, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by applyAlternativeBoundsBranching(), applyAlternativeBoundsFixing(), applyProbing(), calcBdchgScore(), checkCands(), checkConsQuadraticProblem(), checkLocksAndRes(), chooseCoefVar(), chooseVeclenVar(), collectCliqueData(), compensateVarLock(), createCoveringProblem(), dualPresolve(), dualPresolving(), extractGates(), findComponents(), fixIntegerVariableUb(), hasQuadvarHpProperty(), isConsIndependently(), multiAggregateBinvar(), performDualfix(), presolRoundIndicator(), presolveConsLct(), presolveDual(), propagateCons(), propIndicator(), removeDoubleAndSingletonsAndPerformDualpresolve(), roundFixingValue(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_READERWRITE(), SCIPanalyzeDeductionsProbing(), SCIPapplyLockFixings(), SCIPapplyProbingVar(), SCIPgetVarStrongbranchWithPropagation(), SCIPmakeIndicatorFeasible(), SCIPmatrixCreate(), SCIPmatrixUplockConflict(), SCIPprintBranchingStatistics(), SCIPsolAdjustImplicitSolVals(), SCIPvarGetNLocksDown(), SCIPvarGetProbvarBinary(), SCIPvarMayRoundUp(), selectEssentialRounding(), selectRounding(), selectShifting(), singletonColumnStuffing(), and sortVariables().
is it possible, to round variable down and stay feasible?
var | problem variable |
Definition at line 3272 of file var.c.
References SCIP_Bool, SCIPvarGetNLocksDown(), and SCIPvarMayRoundUp().
Referenced by chooseCoefVar(), chooseDoubleVar(), chooseFracVar(), chooseGuidedVar(), choosePscostVar(), chooseVeclenVar(), makeSOS1conflictgraphFeasible(), makeSOS1constraintsFeasible(), performDualfix(), performRandRounding(), performSimpleRounding(), polishSolution(), SCIP_DECL_CONSCHECK(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_HEUREXEC(), SCIPperformGenericDivingAlgorithm(), SCIPsolRound(), and SCIPvarGetNLocksUp().
is it possible, to round variable up and stay feasible?
var | problem variable |
Definition at line 3280 of file var.c.
References SCIPvarGetNLocksUp(), and SCIPvarTransform().
Referenced by chooseCoefVar(), chooseDoubleVar(), chooseFracVar(), chooseGuidedVar(), choosePscostVar(), chooseVeclenVar(), makeSOS1conflictgraphFeasible(), makeSOS1constraintsFeasible(), performDualfix(), performRandRounding(), performSimpleRounding(), polishSolution(), SCIP_DECL_CONSCHECK(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_HEUREXEC(), SCIPperformGenericDivingAlgorithm(), SCIPsolRound(), and SCIPvarMayRoundDown().
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
var1 | first problem variable |
var2 | second problem variable |
Definition at line 11315 of file var.c.
References SCIP_DECL_SORTPTRCOMP(), SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_NEGATED, SCIPvarGetIndex(), SCIPvarGetNegatedVar(), SCIPvarGetStatus(), and SCIPvarIsActive().
Referenced by consdataSort(), liftCliqueVariables(), preprocessConstraintPairs(), SCIP_DECL_HASHKEYEQ(), SCIP_DECL_SORTPTRCOMP(), and SCIPvarChgBranchDirection().
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 11345 of file var.c.
References SCIPvarCompare(), and SCIPvarCompareActiveAndNegated().
Referenced by SCIP_DECL_SORTPTRCOMP(), SCIPvarCompare(), and SCIPvarCompareActiveAndNegated().
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
var1 | first problem variable |
var2 | second problem variable |
Definition at line 11353 of file var.c.
References SCIP_Var::index, and SCIP_DECL_SORTPTRCOMP().
Referenced by addBilinearTerm(), addBranchingComplementaritiesSOS1(), addLinearCoef(), addQuadVarTerm(), consdataCalcSignatures(), consdataFindQuadVarTerm(), consdataSort(), detectRedundantConstraints(), extractGates(), generateBoundInequalityFromSOS1Nodes(), getBoundConsFromVertices(), nlrowAddLinearCoef(), passConComponentVarbound(), preprocessConstraintPairs(), propVariableNonzero(), removeFixedVariables(), removeRedundantConss(), removeRedundantNonZeros(), replaceQuadVarTermPos(), SCIP_DECL_CONSTRANS(), SCIP_DECL_HASHKEYEQ(), SCIP_DECL_SORTINDCOMP(), SCIP_DECL_SORTPTRCOMP(), SCIPvarGetActiveRepresentatives(), SCIPvarsGetActiveVars(), and selectBranchVar().
SCIP_DECL_SORTPTRCOMP | ( | SCIPvarComp | ) |
comparison method for sorting variables by non-decreasing index
Definition at line 11373 of file var.c.
References SCIP_DECL_SORTPTRCOMP(), and SCIPvarCompare().
SCIP_DECL_SORTPTRCOMP | ( | SCIPvarCompObj | ) |
comparison method for sorting variables by non-decreasing objective coefficient
Definition at line 11379 of file var.c.
References SCIP_DECL_HASHGETKEY(), SCIP_Real, and SCIPvarGetObj().
SCIP_DECL_HASHGETKEY | ( | SCIPvarGetHashkey | ) |
hash key retrieval function for variables
Definition at line 11396 of file var.c.
References SCIP_DECL_HASHKEYEQ().
Referenced by SCIP_DECL_SORTPTRCOMP(), and SCIPvarWasFixedEarlier().
SCIP_DECL_HASHKEYEQ | ( | SCIPvarIsHashkeyEq | ) |
returns TRUE iff the indices of both variables are equal
Definition at line 11402 of file var.c.
References FALSE, SCIP_DECL_HASHKEYVAL(), and TRUE.
Referenced by SCIP_DECL_HASHGETKEY().
SCIP_DECL_HASHKEYVAL | ( | SCIPvarGetHashkeyVal | ) |
returns the hash value of the key
Definition at line 11410 of file var.c.
References SCIPvarGetIndex(), and SCIPvarsGetActiveVars().
Referenced by SCIP_DECL_HASHKEYEQ().
void SCIPvarsGetProbvar | ( | SCIP_VAR ** | vars, |
int | nvars | ||
) |
gets corresponding active, fixed, or multi-aggregated problem variables of given variables,
vars | array of problem variables |
nvars | number of variables |
Definition at line 11608 of file var.c.
References SCIPvarGetProbvar().
Referenced by correctConshdlrdata(), SCIP_DECL_CONSINITPRE(), SCIPvarsGetActiveVars(), and updateConsanddataUses().
gets corresponding active, fixed, or multi-aggregated problem variable of a variable
var | problem variable |
Definition at line 11628 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::multaggr, SCIP_Var::name, SCIP_Var::negatedvar, 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(), SCIPvarsGetProbvarBinary(), SCIP_Original::transvar, TRUE, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by addCoef(), applyFixings(), cliquetableGetNodeIndexBinvar(), consdataCreate(), getRandomVariable(), preprocessConstraintPairs(), presolveFindDuplicates(), processWatchedVars(), propagateCons(), readSolFile(), readXmlSolFile(), removeFixedVariables(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_CONSINITPRE(), SCIPcliquetableComputeCliqueComponents(), SCIPcreateConsAnd(), SCIPnodePropagateImplics(), SCIPtreeBranchVar(), SCIPtreeBranchVarNary(), SCIPvarGetLastBdchgIndex(), SCIPvarsGetProbvar(), SCIPvarWasFixedEarlier(), tightenBounds(), and updateBestCandidate().
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
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 11688 of file var.c.
References SCIP_Bool, SCIP_CALL, SCIP_OKAY, and SCIPvarGetProbvarBinary().
Referenced by GUBsetCalcCliquePartition(), SCIPcalcCliquePartition(), SCIPcliquetableAdd(), SCIPgetBinvarRepresentatives(), and SCIPvarGetProbvar().
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)
var | pointer to binary problem variable |
negated | pointer to update the negation status |
Definition at line 11720 of file var.c.
References active, SCIP_Var::aggregate, SCIP_Var::data, EPSEQ, EPSLE, EPSZ, FALSE, SCIP_Var::multaggr, SCIP_Var::negatedvar, SCIP_Var::original, REALABS, SCIP_Bool, 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, SCIPerrorMessage, SCIPvarGetNLocksUp(), SCIPvarGetProbvarBound(), SCIPvarGetStatus(), SCIPvarGetUbGlobal(), SCIPvarIsBinary(), SCIP_Original::transvar, TRUE, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by cliqueCleanup(), cliquePresolve(), dualPresolving(), presolRoundIndicator(), SCIPgetBinvarRepresentative(), SCIPvarAddClique(), SCIPvarDelClique(), and SCIPvarsGetProbvarBinary().
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
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 11879 of file var.c.
References SCIP_Var::aggregate, bound, SCIP_Var::data, SCIP_Var::multaggr, SCIP_Var::negatedvar, 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, SCIPvarGetProbvarHole(), 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(), and SCIPvarGetProbvarBinary().
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
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 11972 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::negatedvar, 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, SCIPvarGetProbvarSum(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPnodeAddHoleinfer(), SCIPtreeBranchVarHole(), and SCIPvarGetProbvarBound().
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
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 12184 of file var.c.
References SCIP_Var::aggregate, SCIP_Aggregate::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::negate, SCIP_Var::negatedvar, SCIP_Var::parentvars, SCIP_Aggregate::scalar, SCIP_Bool, 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(), SCIPvarIsTransformedOrigvar(), and SCIP_Aggregate::var.
Referenced by collectDualInformation(), countSparseSol(), fixBounds(), getActiveVariables(), getActiveVariables2(), getBinVarsRepresentatives(), getLinearCoeffs(), reoptSimilarity(), saveConsBounddisjuction(), saveConsLinear(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_EVENTEXEC(), SCIPapplyHeurDualval(), SCIPcopyConsLinear(), SCIPgetReoptOldObjCoef(), SCIPreoptAddDualBndchg(), SCIPsolGetVal(), SCIPvarGetProbvarSum(), solveSubNLP(), storeCuts(), and transformIntoOrig().
returns whether the given variable is the direct counterpart of an original problem variable
var | problem variable |
Definition at line 12271 of file var.c.
References FALSE, SCIP_Var::nparentvars, SCIP_Var::parentvars, SCIP_Real, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetObjLP(), SCIPvarGetStatus(), and SCIPvarIsTransformed().
Referenced by createAndAddAndCons(), fixBounds(), fixInterdiction(), SCIPprobDelVar(), SCIPsolPrint(), SCIPsolPrintRay(), SCIPvarGetOrigvarSum(), and SCIPwriteBnd().
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
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 15105 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::history, SCIP_Var::negatedvar, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_Longint, 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 SCIPprintBranchingStatistics(), and SCIPvarIncCutoffSum().
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
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 15150 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::historycrun, SCIP_Var::negatedvar, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_Real, 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(), SCIPvarGetAvgBranchdepth(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by processWatchedVars(), and SCIPvarGetNBranchings().
SCIP_Real SCIPvarGetInferenceSum | ( | SCIP_VAR * | var, |
SCIP_BRANCHDIR | dir | ||
) |
returns the number of inferences branching on this variable in given direction triggered
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 15383 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::history, SCIP_Var::negatedvar, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_Real, 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 SCIPvarGetVSIDSCurrentRun().
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
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 15428 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::historycrun, SCIP_Var::negatedvar, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_Real, 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(), SCIPvarGetAvgInferences(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPvarGetInferenceSum().
SCIP_Real SCIPvarGetCutoffSum | ( | SCIP_VAR * | var, |
SCIP_BRANCHDIR | dir | ||
) |
returns the number of cutoffs branching on this variable in given direction produced
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 15583 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::history, SCIP_Var::negatedvar, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_Real, 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 SCIPvarGetAvgInferencesCurrentRun().
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
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 15626 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::historycrun, SCIP_Var::negatedvar, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_Real, 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(), SCIPvarGetAvgCutoffs(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPvarGetCutoffSum().
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
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 15193 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::history, SCIP_Var::negatedvar, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_Real, 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(), SCIPvarGetAvgBranchdepthCurrentRun(), SCIPvarGetStatus(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPprintBranchingStatistics(), and SCIPvarGetNBranchingsCurrentRun().
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
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 15238 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::historycrun, SCIP_Var::negatedvar, SCIP_Var::original, SCIP_Aggregate::scalar, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, 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, SCIPhistoryGetAvgBranchdepth(), SCIPvarGetStatus(), SCIPvarGetVSIDS_rec(), SCIP_Original::transvar, and SCIP_Aggregate::var.
Referenced by SCIPvarGetAvgBranchdepth().
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
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 10560 of file var.c.
References SCIP_Var::implics, SCIP_Bool, SCIPimplicsContainsImpl(), SCIPvarHasBinaryImplic(), SCIPvarIsActive(), and SCIPvarIsBinary().
Referenced by initData(), SCIPvarAddImplic(), SCIPvarHasBinaryImplic(), and SCIPvarsHaveCommonClique().
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
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 10580 of file var.c.
References SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIPvarFixBinary(), SCIPvarHasImplic(), and SCIPvarIsBinary().
Referenced by SCIPvarHasImplic().
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
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 10889 of file var.c.
References SCIP_Var::cliquelist, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIPcliquelistsHaveCommonClique(), SCIPvarHasImplic(), SCIPvarIsActive(), SCIPvarIsBinary(), and varProcessChgBranchFactor().
Referenced by addCliques(), calcCliquePartitionGreedy(), cliquePresolve(), detectDominatingVlbs(), detectDominatingVubs(), findFixings(), getMinactImplicObjchg(), GUBsetCalcCliquePartition(), liftCliqueVariables(), removeConstraintsDueToNegCliques(), SCIPhaveVarsCommonClique(), and SCIPvarDelClique().
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
var | problem variable |
aggrobj | pointer to store the aggregated objective value |
Definition at line 17146 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Var::multaggr, SCIP_Var::negatedvar, 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, SCIPvarGetLbOriginal(), SCIPvarGetObj(), SCIPvarGetStatus(), SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by dualPresolve(), dualPresolving(), removeDoubleAndSingletonsAndPerformDualpresolve(), and SCIPvarGetUnchangedObj().
SCIP_RETCODE SCIPvarSetInitial | ( | SCIP_VAR * | var, |
SCIP_Bool | initial | ||
) |
sets the initial flag of a variable; only possible for original or loose variables
var | problem variable |
initial | initial flag |
Definition at line 16749 of file var.c.
References SCIP_Var::initial, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_ORIGINAL, SCIPvarSetRemovable(), and SCIP_Var::varstatus.
Referenced by SCIPcreateVarBinpacking(), and SCIPvarSetCopyData().
SCIP_RETCODE SCIPvarSetRemovable | ( | SCIP_VAR * | var, |
SCIP_Bool | removable | ||
) |
sets the removable flag of a variable; only possible for original or loose variables
var | problem variable |
removable | removable flag |
Definition at line 16765 of file var.c.
References SCIP_Var::removable, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_VARSTATUS_LOOSE, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetStatus(), and SCIP_Var::varstatus.
Referenced by SCIPcreateVarBinpacking(), and SCIPvarSetInitial().
const char* SCIPvarGetName | ( | SCIP_VAR * | var | ) |
returns the name of the variable
var | problem variable |
Definition at line 16662 of file var.c.
References SCIP_Var::name, and SCIPvarGetNUses().
Referenced by addAltLPColumn(), addBilinearTermToCut(), addBoundViolated(), addCand(), addCliques(), addCoef(), addConcaveEstimatorBivariate(), addConcaveEstimatorMultivariate(), addConflictBinvar(), addConflictBounds(), addFixedVarsConss(), addGenVBound(), addIntervalGradientEstimator(), addLinearization(), addLinearTermToCut(), addNode(), addSplitcons(), addVarbound(), addVarCardinality(), adjustOversizedJobBounds(), aggregateVariables(), alnsFixMoreVariables(), alnsUnfixVariables(), analyseInfeasibelCoreInsertion(), analyzeEnergyRequirement(), analyzeGenVBoundConflict(), analyzeZeroResultant(), appendVarCardinality(), applyAlternativeBoundsBranching(), applyBdchgs(), applyBoundHeur(), applyCliqueFixings(), applyFixings(), applyFixingsAndAggregations(), applyGenVBound(), applyProbing(), applyRepair(), applyVboundsFixings(), boundchgApplyGlobal(), branch(), branchcandCalcLPCands(), branchcandInsertPseudoCand(), branchcandRemovePseudoCand(), branchUnbalancedCardinality(), calcBranchScore(), calcShiftVal(), changeAncestorBranchings(), checkCons(), checkCumulativeCondition(), checkFactorable(), checkFixedVariables(), checkForOverlapping(), checkPackingPartitioningOrbitopeSolution(), checkSolOrig(), checkSolution(), checkSystemGF2(), checkVarbound(), checkVarnames(), cliqueCleanup(), cliquePresolve(), colAddCoef(), collectBinaryCliqueData(), collectBranchingCands(), collectMinactVar(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), collectSolution(), collectThetaSubtree(), colLink(), colUnlink(), compensateVarLock(), computeCut(), computeEnergyContribution(), computeGauge(), computeImpliedEst(), computeImpliedLct(), computeInteriorPoint(), computeReferencePointGauge(), computeReferencePointProjection(), computeSymmetryGroup(), conflictAddBound(), conflictAddConflictBound(), conflictAddConflictCons(), conflictAnalyze(), conflictAnalyzeRemainingBdchgs(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictMarkBoundCheckPresence(), conflictResolveBound(), conflictsetAddBounds(), conflictsetIsRedundant(), consdataCheckSuperindicator(), consdataCollectLinkingCons(), consdataCreate(), consdataCreateBinvars(), consdataDeletePos(), consdataFindUnlockedLinearVar(), consdataFixOperandsOne(), consdataFixResultantZero(), consdataPrint(), constraintNonOverlappingGraph(), constructCompression(), constructSNFRelaxation(), coretimesUpdateLb(), coretimesUpdateUb(), countSparseSol(), createAndAddAndCons(), createConsFromMonomial(), createConstraints(), createCoreProfile(), createCoveringProblem(), createKKTComplementarityBinary(), createKKTComplementarityBounds(), createKKTDualCons(), createMIP(), createNAryBranch(), createSelectedSortedEventpointsSol(), createSubproblem(), createSubSCIP(), createTcliqueGraph(), detectDominatingVlbs(), detectDominatingVubs(), detectImpliedBounds(), detectVarboundSOS1(), determineBound(), determineBoundForSNF(), determineVariableFixings(), dfs(), disaggregate(), doSeachEcAggr(), dryBranch(), dualPresolve(), dualPresolving(), ecaggrAddBilinTerm(), enforceCardinality(), enforceConssSOS1(), enforceConstraint(), enforceSOS2(), enforceViolatedFixedNonlinear(), evaluateGauge(), execRelpscost(), extractCycle(), filterCands(), filterExistingLP(), findAggregation(), findAndStoreEcAggregations(), findCumulativeConss(), findUncapacitatedArcs(), fixAlmostFixedX(), fixAndPropagate(), fixBounds(), fixDeleteOrUpgradeCons(), fixIntegerVariableLb(), fixIntegerVariableUb(), fixInterdiction(), fixVariable(), fixVariables(), fixVariableZeroNode(), generate1ConvexIndefiniteUnderestimator(), generate1ConvexIndefiniteUnderestimatorAtBoundary(), generate1ConvexIndefiniteUnderestimatorInTheInteriorPatternA(), generate1ConvexIndefiniteUnderestimatorInTheInteriorPatternB(), generateConvexConcaveUnderestimator(), generateCut(), generateCutNonConvex(), generateEstimatingHyperplane(), generateOrthogonal_lx_ly_Underestimator(), generateOrthogonal_lx_uy_Underestimator(), generateSecantCut(), generateUnderestimatorParallelYFacets(), getConflictImplics(), getFixedVariable(), getGenVBound(), getMaxactImplicObjchg(), GUBsetMoveVar(), handle1Cycle(), handleNewVariableSOS1(), inferboundsEdgeFinding(), initData(), liftCliqueVariables(), lpFlushAddCols(), lpFlushAddRows(), lpRemoveObsoleteCols(), maximalslack(), mcfnetworkFill(), mergeAndCleanQuadVarTerms(), mergeMultiples(), multiAggregateBinvar(), nlpCalcFracVars(), nlpFlushVarAdditions(), nlrowAddLinearCoef(), nlrowAddQuadElement(), nlrowaggrFree(), nlrowRemoveFixedQuadVars(), nodepairqueueCreate(), objimplicsCreate(), optimize(), performAggregations(), performBranching(), performDualfix(), performFixing(), performImplicationGraphAnalysis(), performOrbitalFixing(), performRandRounding(), performSimpleRounding(), performStrongbranchWithPropagation(), polishSolution(), predBndStr(), preprocessConstraintPairs(), presolRoundCardinality(), presolRoundConsSOS1(), presolRoundIndicator(), presolRoundSOS2(), presolRoundVarsSOS1(), presolveAddKKTAggregatedVars(), presolveConsEst(), presolveConsLct(), presolveCreateGlineurApproxDim3(), presolveDisaggregate(), presolveDual(), presolveFindDuplicates(), presolvePropagateCons(), presolveRemoveFixedVariables(), presolveSolve(), presolveTryAddAND(), presolveTryAddLinearReform(), printActiveVariables(), printAggregatedCons(), printBoundSection(), printColumnSection(), printIndicatorCons(), printLinearCons(), printLinearRow(), printNLRow(), printPBRow(), printRow(), printRowNl(), printSOCCons(), printSosCons(), processBinvarFixings(), processFixings(), processIntegerBoundChg(), processNlRow(), processWatchedVars(), proofsetFree(), propagateBinaryBestRootRedcost(), propagateBounds(), propagateBoundsBilinearTerm(), propagateBoundsQuadVar(), propagateBoundsTightenVar(), propagateBoundsTightenVarLb(), propagateBoundsTightenVarUb(), propagateCons(), propagateCutoffboundVar(), propagateLbTTEF(), propagateRedcostBinvar(), propagateRedcostVar(), propagateRootRedcostBinvar(), propagateTimetable(), propagateUbTTEF(), propagateVarbounds(), propagateVbounds(), propCardinality(), propConsSOS1(), propIndicator(), proposeFeasibleSolution(), propSOS2(), readBinaries(), readBounds(), readCoefficients(), readerdataAddOutputvar(), readGenerals(), readObjective(), readPolynomial(), readQCMatrix(), readQMatrix(), readSemicontinuous(), readSolFile(), readSOS(), readSos(), readVariables(), readXmlSolFile(), registerBranchingCandidates(), registerBranchingCandidatesCentrality(), registerBranchingCandidatesGap(), registerBranchingCandidatesViolation(), registerBranchingVariables(), relaxVar(), removeConstraintsDueToNegCliques(), removeDoubleAndSingletonsAndPerformDualpresolve(), removeFixedLinearVariables(), removeFixedNonlinearVariables(), removeFixedVariables(), removeIrrelevantJobs(), removeRedundantNonZeros(), replaceByLinearConstraints(), replaceViolatedByLinearConstraints(), resetVarname(), resolveGenVBoundPropagation(), resolvePropagation(), resolvePropagationCoretimes(), respropCumulativeCondition(), rowAddCoef(), rowFindSlackVar(), rowprepCleanupImproveCoefrange(), rowprepCleanupIntegralCoefs(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECPS(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSENFORELAX(), SCIP_DECL_CONSEXIT(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSINITLP(), SCIP_DECL_CONSINITPRE(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_CONSPARSE(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPRINT(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSTRANS(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPRGRAPHVARADDED(), SCIP_DECL_EXPRGRAPHVARREMOVE(), SCIP_DECL_HASHGETKEY(), SCIP_DECL_HASHKEYVAL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_READERWRITE(), SCIP_DECL_RELAXEXEC(), SCIP_DECL_SEPAEXECLP(), SCIPaddBilinearIneqQuadratic(), SCIPaddCoefLinear(), SCIPaddVarCardinality(), SCIPaddVarSOS1(), SCIPaddVarSOS2(), SCIPaggrRowPrint(), SCIPanalyzeDeductionsProbing(), SCIPappendVarCardinality(), SCIPappendVarSOS2(), SCIPapplyHeurDualval(), SCIPapplyHeurSubNlp(), SCIPapplyLockFixings(), SCIPapplyProbingVar(), SCIPboundchgApply(), SCIPboundchgUndo(), SCIPbranchcandAddExternCand(), SCIPbranchExecExtern(), SCIPbranchVar(), SCIPbranchVarVal(), SCIPbranchVarValNary(), SCIPcatchVarEvent(), SCIPchgReoptObjective(), SCIPchgVarLb(), SCIPchgVarLbGlobal(), SCIPchgVarLbNode(), SCIPchgVarLbProbing(), SCIPchgVarType(), SCIPchgVarUb(), SCIPchgVarUbGlobal(), SCIPchgVarUbNode(), SCIPchgVarUbProbing(), SCIPcliqueAddVar(), SCIPcliqueDelVar(), SCIPcliquelistRemoveFromCliques(), SCIPcliquetableAdd(), SCIPcolChgLb(), SCIPcolChgObj(), SCIPcolChgUb(), SCIPcolDelCoef(), SCIPcolGetStrongbranch(), SCIPcomputeConvexEnvelopeFacet(), SCIPconflictAddRelaxedBound(), SCIPconflictAnalyzeStrongbranch(), SCIPconflictIsVarUsed(), SCIPcopyImplicationsCliques(), SCIPcreateConsAnd(), SCIPcreateConsCardinality(), SCIPcreateConsLinking(), SCIPcreateFiniteSolCopy(), SCIPcreateNlpiProb(), SCIPdropVarEvent(), SCIPendStrongbranch(), SCIPeventqueueAdd(), SCIPexprtreePrintWithNames(), SCIPgetVarCopy(), SCIPgetVarsStrongbranchesFrac(), SCIPgetVarsStrongbranchesInt(), SCIPgetVarStrongbranchFrac(), SCIPgetVarStrongbranchInt(), SCIPgetVarStrongbranchWithPropagation(), SCIPholelistGetNext(), SCIPimplicsAdd(), SCIPimplicsDel(), SCIPincSolVal(), SCIPinferVarLbCons(), SCIPinferVarLbProp(), SCIPinferVarUbCons(), SCIPinferVarUbProp(), SCIPlpAddCol(), SCIPlpAddRow(), SCIPlpGetSol(), SCIPmatrixGetColName(), SCIPmatrixPrintRow(), SCIPnlpDelVar(), SCIPnlrowDelLinearCoef(), SCIPnlrowPrint(), SCIPnodeAddBoundinfer(), SCIPnodeAddHolechg(), SCIPnodeAddHoleinfer(), SCIPnodePrintAncestorBranchings(), SCIPparseVarsList(), SCIPperformGenericDivingAlgorithm(), SCIPpricestoreAddBdviolvar(), SCIPpricestoreAddProbVars(), SCIPpricestoreAddVar(), SCIPpricestoreApplyVars(), SCIPprimalTransformSol(), SCIPprintBranchingStatistics(), SCIPprintNodeRootPath(), SCIPprintRowprep(), SCIPprobAddVar(), SCIPprobDelVar(), SCIPprobFree(), SCIPprobPerformVarDeletions(), SCIPprobPrintPseudoSol(), SCIPprobScaleObj(), SCIPreaderWrite(), SCIPreoptAddDualBndchg(), SCIPreoptApplyGlbConss(), SCIPreoptMergeVarHistory(), SCIPresolveSolHeurSubNlp(), SCIProwDelCoef(), SCIProwPrint(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), SCIPseparateKnapsackCuts(), SCIPseparateRelaxedKnapsack(), SCIPsetBinaryVarIndicator(), SCIPsetSolVal(), SCIPsetSolVals(), SCIPshrinkDisjunctiveVarSet(), SCIPsolCheck(), SCIPsolIncVal(), SCIPsolPrint(), SCIPsolPrintRay(), SCIPsolSetVal(), SCIPsolveKnapsackApproximately(), SCIPstatComputeRootLPBestEstimate(), SCIPstatUpdateVarRootLPBestEstimate(), SCIPtightenVarLb(), SCIPtightenVarLbGlobal(), SCIPtightenVarUb(), SCIPtightenVarUbGlobal(), SCIPtreeBranchVar(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPtreeCalcNodeselPriority(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarCopy(), SCIPvarGetImplRedcost(), SCIPvarIncVSIDS(), SCIPvarMultiaggregate(), SCIPvarPrint(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarSetNLPSol(), SCIPvarSetRelaxSol(), SCIPvarUpdateBestRootSol(), SCIPvarUpdatePseudocost(), SCIPvisualCutoffNode(), SCIPvisualizeConsCumulative(), SCIPvisualNewChild(), SCIPvisualSolvedNode(), SCIPvisualUpdateChild(), SCIPwriteBnd(), SCIPwriteCliqueGraph(), SCIPwriteGms(), SCIPwriteLp(), SCIPwriteOpb(), SCIPwritePip(), SCIPwriteVarName(), selectInitialVariable(), selectVarMultAggrBranching(), sepaImplBoundCutsSOS1(), separateCuts(), sepastoreApplyLb(), sepastoreApplyUb(), setupAndSolveFiniteSolSubscip(), setupAndSolveSubscipRapidlearning(), simplifyInequalities(), solUnlinkVar(), solveAndEvalSubscip(), solveBilinearLP(), solveNlp(), solveNode(), solveSubNLP(), sortAndMergeClique(), strengthenVarbounds(), tarjan(), tightenBounds(), tightenCoefs(), tightenDualproof(), tightenedIntvar(), tightenSingleVar(), tightenVariables(), tightenVarLb(), tightenVarsBoundsSOS1(), tightenVarUb(), tightenWeights(), transformVariable(), treeApplyPendingBdchgs(), tryFixVar(), undoBdchgsProof(), updateArcData(), updateBestCandidate(), updateConsanddataUses(), updatePseudocost(), upgradeConss(), varAddImplic(), varAddLbchginfo(), varAddUbchginfo(), varAddVbound(), varHasName(), varProcessAddHoleGlobal(), varProcessAddHoleLocal(), varProcessChgLbGlobal(), varProcessChgUbGlobal(), writeFzn(), writeOpbFixedVars(), writeOpbObjective(), and writeOpbRelevantAnds().
int SCIPvarGetNUses | ( | SCIP_VAR * | var | ) |
gets number of times, the variable is currently captured
var | problem variable |
Definition at line 16672 of file var.c.
References SCIP_Var::nuses, and SCIPvarGetData().
Referenced by SCIPprobFree(), and SCIPvarGetName().
SCIP_VARDATA* SCIPvarGetData | ( | SCIP_VAR * | var | ) |
returns the user data of the variable
var | problem variable |
Definition at line 16682 of file var.c.
References SCIPvarSetData(), and SCIP_Var::vardata.
Referenced by addFixedVarsConss(), checkVariable(), consdataCheck(), SCIP_DECL_BRANCHEXECLP(), SCIPgetObjVardata(), and SCIPvarGetNUses().
void SCIPvarSetData | ( | SCIP_VAR * | var, |
SCIP_VARDATA * | vardata | ||
) |
sets the user data for the variable
var | problem variable |
vardata | user variable data |
Definition at line 16692 of file var.c.
References SCIPvarSetDelorigData(), and SCIP_Var::vardata.
Referenced by createInitialColumns(), SCIPcreateVarBinpacking(), and SCIPvarGetData().
void SCIPvarSetDelorigData | ( | SCIP_VAR * | var, |
SCIP_DECL_VARDELORIG((*vardelorig)) | |||
) |
sets method to free user data for the original variable
var | problem variable |
Definition at line 16703 of file var.c.
References SCIP_VARSTATUS_ORIGINAL, SCIPvarGetStatus(), and SCIPvarSetTransData().
Referenced by SCIPvarSetData().
void SCIPvarSetTransData | ( | SCIP_VAR * | var, |
SCIP_DECL_VARTRANS((*vartrans)) | |||
) |
sets method to transform user data of the variable
var | problem variable |
Definition at line 16715 of file var.c.
References SCIP_VARSTATUS_ORIGINAL, SCIPvarGetStatus(), and SCIPvarSetDeltransData().
Referenced by SCIPvarSetDelorigData().
void SCIPvarSetDeltransData | ( | SCIP_VAR * | var, |
SCIP_DECL_VARDELTRANS((*vardeltrans)) | |||
) |
sets method to free transformed user data for the variable
var | problem variable |
Definition at line 16727 of file var.c.
References SCIPvarSetCopyData().
Referenced by SCIPcreateVarBinpacking(), and SCIPvarSetTransData().
void SCIPvarSetCopyData | ( | SCIP_VAR * | var, |
SCIP_DECL_VARCOPY((*varcopy)) | |||
) |
sets method to copy this variable into sub-SCIPs
var | problem variable |
Definition at line 16738 of file var.c.
References SCIPvarSetInitial().
Referenced by SCIPvarSetDeltransData().
SCIP_VARSTATUS SCIPvarGetStatus | ( | SCIP_VAR * | var | ) |
gets status of variable
var | problem variable |
Definition at line 16781 of file var.c.
References SCIP_Bool, SCIPvarIsOriginal(), and SCIP_Var::varstatus.
Referenced by addAltLPConstraint(), addBdchg(), addCliques(), addCoef(), addSplitcons(), addVarbound(), applyBoundChanges(), applyFixings(), applyGenVBound(), binvarGetActiveProbindex(), branchcandCalcLPCands(), calcBdchgScore(), calcBranchScore(), calcVarBoundsDominated(), calcVarBoundsDominating(), catchVarEvents(), changeAncestorBranchings(), checkCons(), checkFixedVariables(), checkForOverlapping(), checkSystemGF2(), cleanupHashDatas(), cliqueCleanup(), cliquePresolve(), colCalcInternalFarkasCoef(), colCalcInternalRedcost(), collectAggregatedVars(), computeAlternativeBounds(), computeCut(), conflictAddBound(), conflictAnalyzeRemainingBdchgs(), conflictResolveBound(), consdataCreate(), consdataPrint(), convertToActiveVar(), correctConshdlrdata(), correctPresoldata(), countNonlinearities(), createCGCutCMIR(), createCGCuts(), createCoveringProblem(), createKKTComplementarityBounds(), createNAryBranch(), createNewSol(), createPresoldata(), dropVarEvents(), enforceCardinality(), enforceConflictgraph(), enforceIndicators(), exitPresolve(), fixDeleteOrUpgradeCons(), fixVariables(), fixVariableZero(), fixVariableZeroNode(), getActiveVar(), getActiveVariables(), getImplVarRedcost(), getLinearCoeffs(), getNActiveConsScore(), getRandomVariable(), getVariablePscostScore(), getVariableRedcostScore(), inferVariableZero(), liftCliqueVariables(), lpFlushAddCols(), lpFlushChgCols(), lpUpdateObjval(), lpUpdateVarColumn(), lpUpdateVarColumnProved(), lpUpdateVarLoose(), lpUpdateVarLooseProved(), lpUpdateVarProved(), markNeighborsMWISHeuristic(), mergeMultiples(), nlrowAddToLinearCoef(), nlrowRemoveFixedLinearCoefPos(), nlrowRemoveFixedQuadVars(), optimize(), performRandRounding(), performSimpleRounding(), performStrongbranchSOS1(), preprocessCliques(), presolRoundIndicator(), presolveAddKKTAggregatedVars(), presolveDual(), presolveFindDuplicates(), presolveRemoveFixedVariables(), printBoundSection(), probInsertVar(), probRemoveVar(), processWatchedVars(), propagateBounds(), propagateBoundsTightenVar(), propagateCons(), propIndicator(), proposeFeasibleSolution(), propVariableNonzero(), readSolFile(), readXmlSolFile(), recomputeLooseObjectiveValue(), relaxVar(), removeConstraintsDueToNegCliques(), removeDoubleAndSingletonsAndPerformDualpresolve(), removeFixedLinearVariables(), removeFixedVariables(), SCIP_DECL_CONCSOLVERSYNCREAD(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSEXITPRE(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPRINT(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_HASHKEYVAL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_READERWRITE(), SCIPaddPricedVar(), SCIPaddVar(), SCIPaggregateVars(), 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(), SCIPconflictIsVarUsed(), SCIPcreateFiniteSolCopy(), SCIPdelVar(), SCIPdomchgAddBoundchg(), SCIPeventCreateImplAdded(), SCIPeventCreateVarFixed(), SCIPeventCreateVarUnlocked(), SCIPeventProcess(), SCIPexprtreeRemoveFixedVars(), SCIPfixVar(), SCIPgetRowprepViolation(), SCIPgetVarCopy(), SCIPgetVarFarkasCoef(), SCIPgetVarImplRedcost(), SCIPgetVarLbAtIndex(), SCIPgetVarMultaggrLbGlobal(), SCIPgetVarMultaggrLbLocal(), SCIPgetVarMultaggrUbGlobal(), SCIPgetVarMultaggrUbLocal(), SCIPgetVarNStrongbranchs(), SCIPgetVarRedcost(), SCIPgetVarsStrongbranchesFrac(), SCIPgetVarsStrongbranchesInt(), SCIPgetVarStrongbranchFrac(), SCIPgetVarStrongbranchInt(), SCIPgetVarStrongbranchLast(), SCIPgetVarStrongbranchLPAge(), SCIPgetVarStrongbranchNode(), SCIPgetVarStrongbranchWithPropagation(), SCIPgetVarUbAtIndex(), SCIPimplicsAdd(), SCIPlpAddCol(), SCIPlpEndDive(), SCIPlpMarkFlushed(), SCIPlpShrinkCols(), SCIPlpStartDive(), SCIPlpSumRows(), SCIPlpUpdateAddVar(), SCIPlpUpdateDelVar(), SCIPlpUpdateVarLb(), SCIPlpUpdateVarObj(), SCIPlpUpdateVarUb(), SCIPmakeIndicatorFeasible(), SCIPmergeVariableStatistics(), SCIPnlrowAddLinearCoef(), SCIPnodeAddBoundinfer(), SCIPnodeAddHoleinfer(), SCIPnodePropagateImplics(), SCIPpricestoreAddProbVars(), SCIPpricestoreApplyVars(), SCIPprimalTransformSol(), SCIPprobAddVar(), SCIPprobChgVarType(), SCIPprobDelVar(), SCIPprobExitSolve(), SCIPprobPerformVarDeletions(), SCIPprobUpdateBestRootSol(), SCIPprobVarChangedStatus(), SCIPrelaxationUpdateVarObj(), SCIPreoptApplyCuts(), SCIProwCalcIntegralScalar(), SCIProwPrint(), SCIProwRecalcPseudoActivity(), SCIPsolAdjustImplicitSolVals(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolIncVal(), SCIPsolRound(), SCIPsolSetVal(), SCIPsolUpdateVarObj(), SCIPstatUpdateVarRootLPBestEstimate(), SCIPtreeBranchVar(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPvarAddClique(), SCIPvarAddCliqueToList(), SCIPvarAddHoleGlobal(), SCIPvarAddHoleLocal(), SCIPvarAddHoleOriginal(), SCIPvarAddImplic(), SCIPvarAddLocks(), SCIPvarAddObj(), SCIPvarAddToRow(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarAggregate(), SCIPvarChgBranchDirection(), SCIPvarChgBranchFactor(), SCIPvarChgBranchPriority(), SCIPvarChgLbDive(), SCIPvarChgLbGlobal(), SCIPvarChgLbLazy(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarChgObj(), SCIPvarChgObjDive(), SCIPvarChgUbDive(), SCIPvarChgUbGlobal(), SCIPvarChgUbLazy(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarColumn(), SCIPvarCompareActiveAndNegated(), SCIPvarCopy(), SCIPvarDelClique(), SCIPvarDoNotMultaggr(), SCIPvarFix(), SCIPvarFlattenAggregationGraph(), SCIPvarGetActiveRepresentatives(), SCIPvarGetAggrConstant(), SCIPvarGetAggregatedObj(), SCIPvarGetAggrScalar(), SCIPvarGetAggrVar(), SCIPvarGetAvgBranchdepth(), SCIPvarGetAvgBranchdepthCurrentRun(), SCIPvarGetAvgConflictlength(), SCIPvarGetAvgConflictlengthCurrentRun(), SCIPvarGetAvgCutoffs(), SCIPvarGetAvgCutoffsCurrentRun(), SCIPvarGetAvgInferences(), SCIPvarGetAvgInferencesCurrentRun(), SCIPvarGetAvgSol(), SCIPvarGetBestRootLPObjval(), SCIPvarGetBestRootRedcost(), SCIPvarGetBestRootSol(), SCIPvarGetCol(), SCIPvarGetCutoffSum(), SCIPvarGetCutoffSumCurrentRun(), SCIPvarGetHolelistOriginal(), SCIPvarGetImplRedcost(), SCIPvarGetInferenceSum(), SCIPvarGetInferenceSumCurrentRun(), SCIPvarGetLastBdchgIndex(), SCIPvarGetLbAtIndex(), SCIPvarGetLbLP(), SCIPvarGetLbOriginal(), SCIPvarGetLPSol(), SCIPvarGetLPSol_rec(), SCIPvarGetMultaggrConstant(), SCIPvarGetMultaggrLbGlobal(), SCIPvarGetMultaggrLbLocal(), SCIPvarGetMultaggrNVars(), SCIPvarGetMultaggrScalars(), SCIPvarGetMultaggrUbGlobal(), SCIPvarGetMultaggrUbLocal(), SCIPvarGetMultaggrVars(), SCIPvarGetNActiveConflicts(), SCIPvarGetNActiveConflictsCurrentRun(), SCIPvarGetNBranchings(), SCIPvarGetNBranchingsCurrentRun(), SCIPvarGetNegationConstant(), SCIPvarGetNegationVar(), SCIPvarGetNLocksDown(), SCIPvarGetNLocksUp(), SCIPvarGetNLPSol(), SCIPvarGetNLPSol_rec(), SCIPvarGetObjLP(), SCIPvarGetOrigvarSum(), SCIPvarGetProbvar(), SCIPvarGetProbvarBinary(), SCIPvarGetProbvarBound(), SCIPvarGetProbvarHole(), SCIPvarGetProbvarSum(), SCIPvarGetPseudocost(), SCIPvarGetPseudocostCount(), SCIPvarGetPseudocostCountCurrentRun(), SCIPvarGetPseudocostCurrentRun(), SCIPvarGetPseudocostVariance(), SCIPvarGetPseudoSol(), SCIPvarGetPseudoSol_rec(), SCIPvarGetRelaxSol(), SCIPvarGetRelaxSolTransVar(), SCIPvarGetRootSol(), SCIPvarGetTransformed(), SCIPvarGetTransVar(), SCIPvarGetUbAtIndex(), SCIPvarGetUbLP(), SCIPvarGetUbOriginal(), SCIPvarGetVSIDS(), SCIPvarGetVSIDS_rec(), SCIPvarGetVSIDSCurrentRun(), SCIPvarIncCutoffSum(), SCIPvarIncInferenceSum(), SCIPvarIncNActiveConflicts(), SCIPvarIncNBranchings(), SCIPvarIncVSIDS(), SCIPvarIsInLP(), SCIPvarIsNegated(), SCIPvarIsOriginal(), SCIPvarIsTransformed(), SCIPvarIsTransformedOrigvar(), SCIPvarLoose(), SCIPvarMarkDoNotMultaggr(), SCIPvarMultiaggregate(), SCIPvarNegate(), SCIPvarPrint(), SCIPvarRemove(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarsAddClique(), SCIPvarScaleVSIDS(), SCIPvarSetDelorigData(), SCIPvarSetNLPSol(), SCIPvarSetRelaxSol(), SCIPvarSetRemovable(), SCIPvarSetTransData(), SCIPvarsGetActiveVars(), SCIPvarTransform(), SCIPvarTryAggregateVars(), SCIPvarUpdatePseudocost(), SCIPvarWasFixedEarlier(), SCIPvboundsAdd(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), selectVarMultAggrBranching(), shortenConss(), solUnlinkVar(), solveLp(), sortAndMergeClique(), tightenVarsBoundsSOS1(), tryAggregateIntVars(), updateBestCandidate(), updateConsanddataUses(), varAddImplic(), varAddParent(), varAddTransitiveImplic(), varEventGlbChanged(), varEventGubChanged(), varEventLbChanged(), varEventObjChanged(), varEventUbChanged(), varEventVarFixed(), varFree(), varFreeParents(), varGetActiveVar(), varGetObjDelta(), varMayRoundDown(), varMayRoundUp(), varProcessAddHoleGlobal(), varProcessAddHoleLocal(), varProcessChgBranchDirection(), varProcessChgBranchFactor(), varProcessChgBranchPriority(), varProcessChgLbGlobal(), varProcessChgLbLocal(), varProcessChgUbGlobal(), varProcessChgUbLocal(), varSetProbindex(), writeOpbConstraints(), and writeOpbObjective().
returns whether the variable belongs to the original problem
var | problem variable |
Definition at line 16791 of file var.c.
References SCIP_Var::negatedvar, SCIP_Bool, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetStatus(), and SCIPvarIsTransformed().
Referenced by addGlobalCut(), addSplitcons(), changeAncestorBranchings(), collectDualInformation(), consdataFree(), constructCompression(), createAndAddAndCons(), fixBounds(), reoptSaveNewObj(), reoptSimilarity(), SCIPcatchVarEvent(), SCIPchgBilinCoefQuadratic(), SCIPchgCoefLinear(), SCIPchgLinearCoefQuadratic(), SCIPchgReoptObjective(), SCIPchgSquareCoefQuadratic(), SCIPcopyConsLinear(), SCIPdropVarEvent(), SCIPgetConcurrentVaridx(), SCIPgetReoptOldObjCoef(), SCIPreoptAddDualBndchg(), SCIPreoptApplyCuts(), SCIPreoptApplyGlbConss(), SCIPreoptMergeVarHistory(), SCIPreoptUpdateVarHistory(), SCIPvarGetHolelistOriginal(), SCIPvarGetLbOriginal(), SCIPvarGetOrigvarSum(), SCIPvarGetStatus(), SCIPvarGetUbOriginal(), SCIPvarResetBounds(), separateSolution(), and transformIntoOrig().
returns whether the variable belongs to the transformed problem
var | problem variable |
Definition at line 16804 of file var.c.
References SCIP_Var::negatedvar, SCIP_Bool, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetStatus(), and SCIPvarIsNegated().
Referenced by addCoef(), addExtendedAsymmetricFormulation(), addExtendedFlowFormulation(), addLinearCoef(), addQuadVarTerm(), addSplitcons(), addVarCardinality(), addVarSOS1(), addVarSOS2(), appendVarCardinality(), appendVarSOS1(), appendVarSOS2(), changeAncestorBranchings(), chgLinearCoefPos(), delCoefPos(), nlpAddVars(), SCIP_DECL_CONSDELETE(), SCIP_DECL_CONSINIT(), SCIPaddVarLocks(), SCIPaddVarObj(), SCIPchgVarLb(), SCIPchgVarLbGlobal(), SCIPchgVarObj(), SCIPchgVarType(), SCIPchgVarUb(), SCIPchgVarUbGlobal(), SCIPcreateConsCardinality(), SCIPcreateConsSOS1(), SCIPgetTransformedVar(), SCIPgetTransformedVars(), SCIPincSolVal(), SCIPinferBinvarCons(), SCIPinferBinvarProp(), SCIPinferVarLbCons(), SCIPinferVarLbProp(), SCIPinferVarUbCons(), SCIPinferVarUbProp(), SCIPlockVarCons(), SCIPnlpAddVar(), SCIPreleaseVar(), SCIPsetSolVal(), SCIPsetSolVals(), SCIPsolGetVal(), SCIPsolMarkPartial(), SCIPtightenVarLb(), SCIPtightenVarLbGlobal(), SCIPtightenVarUb(), SCIPtightenVarUbGlobal(), SCIPtransformVar(), SCIPtransformVars(), SCIPunlockVarCons(), SCIPvarAddHoleOriginal(), SCIPvarCatchEvent(), SCIPvarChgLbOriginal(), SCIPvarChgUbOriginal(), SCIPvarDropEvent(), SCIPvarIsOriginal(), SCIPvarIsTransformedOrigvar(), SCIPvarNegate(), SCIPvarPrint(), SCIPvarRemove(), SCIPwriteBnd(), setIntvar(), solUnlinkVar(), tightenBounds(), transformToOrig(), varEnsureLbchginfosSize(), varEnsureUbchginfosSize(), varEventGholeAdded(), varEventGlbChanged(), varEventGubChanged(), varEventLbChanged(), varEventObjChanged(), varEventUbChanged(), varIncRootboundchgs(), varProcessAddHoleGlobal(), varProcessAddHoleLocal(), varProcessChgLbGlobal(), varProcessChgLbLocal(), varProcessChgUbGlobal(), and varProcessChgUbLocal().
returns whether the variable was created by negation of a different variable
var | problem variable |
Definition at line 16817 of file var.c.
References SCIP_VARSTATUS_NEGATED, SCIPvarGetStatus(), and SCIPvarGetType().
Referenced by addCliqueDataEntry(), addCliques(), addSplitcons(), applyFixings(), binvarGetActiveProbindex(), checkOrigPbCons(), checkSolution(), checkSystemGF2(), collectCliqueData(), computeRanks(), createCoveringProblem(), createSubSCIP(), extractGates(), findAggregation(), getLinVarsAndAndRess(), mergeMultiples(), packingUpgrade(), preprocessCliques(), presolRoundIndicator(), printIndicatorCons(), printNLRow(), printPBRow(), printRow(), propagateCons(), removeConstraintsDueToNegCliques(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_READERWRITE(), SCIPapplyHeurDualval(), SCIPchgVarType(), SCIPcreateConsOrbitope(), SCIPvarIsTransformed(), SCIPwriteLp(), SCIPwriteVarName(), setObjective(), strenghtenOrbitopeConstraint(), tryUpgradingXor(), varGetObjDelta(), writeOpbObjective(), and writeOpbRelevantAnds().
SCIP_VARTYPE SCIPvarGetType | ( | SCIP_VAR * | var | ) |
gets type of variable
var | problem variable |
Definition at line 16827 of file var.c.
References SCIP_Bool, SCIPvarIsBinary(), and SCIP_Var::vartype.
Referenced by addFixedVarsConss(), addGlobalCut(), addLinearConstraints(), addLocalBranchingConstraint(), addRelaxation(), addSplitcons(), addVarboundConstraints(), aggregateVariables(), applyBoundChanges(), applyBoundHeur(), applyFixings(), applyNlobbt(), applyRepair(), applyVboundsFixings(), branchcandCalcLPCands(), branchcandInsertPseudoCand(), branchcandRemovePseudoCand(), calcBranchScore(), calcColActivity(), checkCons(), checkRedundancy(), checkRedundancySide(), checkSystemGF2(), checkVarbound(), chooseVeclenVar(), colIsDiscrete(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), compensateVarLock(), computeBranchingVariables(), computeIntegerVariableBounds(), computeIntegerVariableBoundsDins(), computeSymmetryGroup(), conflictAddBound(), conflictAnalyzeRemainingBdchgs(), conflictResolveBound(), consdataCalcMinAbsval(), consdataCreate(), consdataPrint(), copyVars(), countSparseSol(), createAndSplitProblem(), CUTOFF_CONSTRAINT(), determineBestBounds(), determineBoundForSNF(), dfs(), domchgMakeDynamic(), dualBoundStrengthening(), extractCapacityRows(), extractFlowRows(), findBestLb(), findBestUb(), findFixings(), findVarAggrRedVbcons(), fixAndPropagate(), fixInterdiction(), forbidFixation(), generateCutConvex(), generateCutNonConvex(), getBinVarIdxInDownlockRow(), getBinVarIdxInUplockRow(), getMultiaggVars(), hasQuadvarHpProperty(), heurExec(), infCntUpdate(), initData(), isBoundchgUseless(), isPseudocostUpdateValid(), isVlb(), isVub(), mcfnetworkExtract(), mergeMultiples(), nlpCalcFracVars(), optimize(), performOrbitalFixing(), performSimpleRounding(), predBndStr(), presolveDual(), presolveTryAddLinearReform(), presolveUpgrade(), prettifyConss(), printBoundSection(), printColumnSection(), printLinearCons(), probInsertVar(), probRemoveVar(), propagateOrbitalFixing(), readBounds(), readIndicators(), registerBranchingCandidates(), removeDoubleAndSingletonsAndPerformDualpresolve(), resolvePropagation(), rowCalculateGauss(), rowFindSlackVar(), sampleRandomPoints(), saveGlobalCons(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONCSOLVERSYNCREAD(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPRINT(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EVENTEXITSOL(), SCIP_DECL_EVENTINITSOL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_READERWRITE(), SCIP_DECL_SEPAEXECLP(), SCIP_DECL_SORTPTRCOMP(), SCIPaddVarImplication(), SCIPaddVarIndicator(), SCIPaddVarVlb(), SCIPaddVarVub(), SCIPanalyzeDeductionsProbing(), SCIPapplyLockFixings(), SCIPbranchcandAddExternCand(), SCIPbranchcandContainsExternCand(), SCIPbranchcandGetPseudoCands(), SCIPbranchcandUpdateVar(), SCIPbranchExecLP(), SCIPbranchExecPseudo(), SCIPbranchGetBranchingPoint(), SCIPbranchVar(), SCIPbranchVarVal(), SCIPbranchVarValNary(), SCIPchgVarType(), SCIPcliquetableCleanup(), SCIPcreateConsAnd(), SCIPcreateConsIndicator(), SCIPcreateConsIndicatorLinCons(), SCIPdomchgAddBoundchg(), SCIPdomchgMakeStatic(), SCIPfixVar(), SCIPisObjIntegral(), SCIPnlpHasContinuousNonlinearity(), SCIPprobCheckObjIntegral(), SCIPprobChgVarType(), SCIPreoptApplyGlbConss(), SCIPreoptnodeAddCons(), SCIPreoptSplitRoot(), SCIPsetBinaryVarIndicator(), SCIPsetLinearConsIndicator(), SCIPshrinkDisjunctiveVarSet(), SCIPsolAdjustImplicitSolVals(), SCIPtreeBranchVar(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPtreeCalcChildEstimate(), SCIPvarAddHoleGlobal(), SCIPvarAddHoleLocal(), SCIPvarAddHoleOriginal(), SCIPvarAddImplic(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarAdjustLb(), SCIPvarAdjustUb(), SCIPvarAggregate(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarChgType(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarCopy(), SCIPvarFix(), SCIPvarIsBinary(), SCIPvarIsIntegral(), SCIPvarIsNegated(), SCIPvarNegate(), SCIPvarPrint(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarTransform(), SCIPvarTryAggregateVars(), SCIPvboundsAdd(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), SCIPwriteVarName(), selectEssentialRounding(), selectRounding(), selectShifting(), selectVarMultAggrBranching(), separateCons(), separateCuts(), separateGLS(), separateHeur(), separateSolution(), setupAndSolveSubscipRapidlearning(), singletonColumnStuffing(), soltreeAddSol(), solveNode(), sortComponents(), SymmetryFixVar(), tcliquegraphAddNode(), tcliquegraphConstructCliqueTable(), tightenBounds(), tightenCoefs(), tightenDualproof(), tightenSides(), tryAggregateIntVars(), updateActivities(), updateBestCandidate(), updatePseudocost(), useValuehistory(), varAddImplic(), varAddLbchginfo(), varAddTransitiveImplic(), varAddUbchginfo(), varIsDiscrete(), varIsUnfixedLocal(), varProcessAddHoleGlobal(), varProcessAddHoleLocal(), varProcessBoundChanges(), varProcessChgLbGlobal(), varProcessChgLbLocal(), varProcessChgUbGlobal(), varProcessChgUbLocal(), writeFzn(), and writeOpbConstraints().
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
var | problem variable |
Definition at line 16842 of file var.c.
References SCIP_Var::glbdom, SCIP_Var::lazylb, SCIP_Var::lazyub, SCIP_Dom::lb, MAX, SCIP_Bool, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_CONTINUOUS, SCIPvarGetType(), SCIPvarIsIntegral(), and SCIP_Dom::ub.
Referenced by addCand(), addConflictBinvar(), addVarCardinality(), adjustCutoffbound(), aggregateVariables(), analyzeStrongbranch(), appendVarCardinality(), applyFixings(), applyProbing(), bdchginfoIsInvalid(), binvarGetActiveProbindex(), calcBranchScore(), calcPscostQuot(), calculateAlternatives(), cancelRow(), checkCons(), checkCurvature(), checkLogicor(), chooseCoefVar(), chooseDoubleVar(), chooseFracVar(), chooseGuidedVar(), cliquetableGetNodeIndexBinvar(), collectBinaryCliqueData(), collectMaxactVar(), collectMinactImplicVars(), collectMinactObjchg(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), conflictQueueBound(), consdataCreate(), createConflict(), createKKTDualCons(), createSolFromSubScipSol(), createSubproblem(), CUTOFF_CONSTRAINT(), DECL_VARFIXINGS(), detectImpliedBounds(), dfs(), enforceConflictgraph(), enforceConssSOS1(), findFixings(), fixMatchingSolutionValues(), generateOrbitopeVarsMatrix(), getClosestVlb(), getClosestVub(), getConflictImplics(), getCover(), getFixedVariable(), getImpliedBounds(), getMaxactImplicObjchg(), getMaxactObjchg(), getMinactImplicObjchg(), getMinactObjchg(), getPermProperties(), heurExec(), lpCopyIntegrality(), mergeAndCleanQuadVarTerms(), mergeMultiples(), objimplicsCreate(), orbisackUpgrade(), predBndStr(), preprocessConstraintPairs(), presolRoundCardinality(), presolRoundConsSOS1(), presolveDisaggregate(), presolveSolve(), presolveTryAddAND(), presolveTryAddLinearReform(), printIndicatorCons(), processBinvarFixings(), propagateCutoffboundBinvar(), propagateLowerboundBinvar(), propagateVarbounds(), propagateVbounds(), propCardinality(), propdataInit(), propVariables(), registerBranchingCandidatesGap(), removeDoubleAndSingletonsAndPerformDualpresolve(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSCHECK(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPRGRAPHNODEREFORM(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIPaddConflictBinvar(), SCIPaddVarImplication(), SCIPanalyzeDeductionsProbing(), SCIPapplyHeurDualval(), SCIPapplyProximity(), SCIPchgVarLb(), SCIPchgVarLbGlobal(), SCIPchgVarUb(), SCIPchgVarUbGlobal(), SCIPcliqueAddVar(), SCIPcliqueDelVar(), SCIPcliquelistRemoveFromCliques(), SCIPcliquetableAdd(), SCIPcliquetableComputeCliqueComponents(), SCIPcliquetableGetVarComponentIdx(), SCIPcreateConsCardinality(), SCIPcreateConsOrbitope(), SCIPdomchgAddBoundchg(), SCIPgetVarWasFixedAtIndex(), SCIPhaveVarsCommonClique(), SCIPinferBinvarCons(), SCIPinferBinvarProp(), SCIPinferVarLbCons(), SCIPinferVarLbProp(), SCIPinferVarUbCons(), SCIPinferVarUbProp(), SCIPnodePropagateImplics(), SCIPprobGetNImplBinVars(), SCIPprobUpdateBestRootSol(), SCIPseparateRelaxedKnapsack(), SCIPshrinkDisjunctiveVarSet(), SCIPtightenVarLb(), SCIPtightenVarLbGlobal(), SCIPtightenVarUb(), SCIPtightenVarUbGlobal(), SCIPvarAddClique(), SCIPvarAddCliqueToList(), SCIPvarAddImplic(), SCIPvarAddVub(), SCIPvarAggregate(), SCIPvarDelClique(), SCIPvarDelCliqueFromList(), SCIPvarGetImplRedcost(), SCIPvarGetProbvarBinary(), SCIPvarGetType(), SCIPvarHasBinaryImplic(), SCIPvarHasImplic(), SCIPvarNegate(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarsAddClique(), SCIPvarsHaveCommonClique(), SCIPvarTryAggregateVars(), SCIPvarWasFixedAtIndex(), SCIPvarWasFixedEarlier(), separateGLS(), separateHeur(), sortAndMergeClique(), sortVariables(), tightenCoefs(), tightenDualproof(), upgradeCons(), upgradeConss(), varAddImplic(), varAddLbchginfo(), varAddUbchginfo(), and varGetObjDelta().
returns whether variable is of integral type (binary, integer, or implicit integer)
var | problem variable |
Definition at line 16853 of file var.c.
References SCIP_Bool, SCIP_VARTYPE_CONTINUOUS, SCIPvarGetType(), and SCIPvarIsInitial().
Referenced by addBilinearTermToCut(), addVarbound(), adjustCutoffbound(), analyzeConflict(), analyzeConflictLowerbound(), analyzeConflictUpperbound(), calculateAlternatives(), cancelRow(), checkKnapsack(), computeCut(), computeFixingOrder(), computeRelaxedLowerbound(), computeRelaxedUpperbound(), conflictAddConflictCons(), conflictCreateReconvergenceConss(), createCGCutCMIR(), createNewSol(), createSubSCIP(), cutsRoundStrongCG(), cutTightenCoefs(), cutTightenCoefsQuad(), DECL_VARFIXINGS(), detectImpliedBounds(), determineBound(), enforceConflictgraph(), fixAndPropagate(), fixMatchingSolutionValues(), fixVariables(), generateClusterCuts(), isOverlapping(), lpCopyIntegrality(), nodepartitionIsConnected(), performFixing(), performStrongbranchSOS1(), polishSolution(), propagateLowerboundVar(), propagateRedcostVar(), propIndicator(), proposeFeasibleSolution(), readIndicators(), registerBranchingCandidatesGap(), resolveGenVBoundPropagation(), resolvePropagation(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSENFORELAX(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRESOLEXEC(), SCIPaddVarIndicator(), SCIPboundchgApply(), SCIPcolCreate(), SCIPcolGetStrongbranch(), SCIPcolGetStrongbranches(), SCIPcolInvalidateStrongbranchData(), SCIPcolIsIntegral(), SCIPcolSetStrongbranchData(), SCIPcreateConsIndicator(), SCIPcutsTightenCoefficients(), SCIPgetVarStrongbranchWithPropagation(), SCIPlpAddCol(), SCIPlpWriteMip(), SCIPprobAddVar(), SCIProwCreate(), SCIPsolPrint(), SCIPstatComputeRootLPBestEstimate(), SCIPtreeBranchVarHole(), SCIPvarAddVlb(), SCIPvarIsBinary(), selectInitialVariable(), selectShifting(), tightenDualproof(), tightenSingleVar(), tightenVariables(), tightenVarLb(), tightenVarsBoundsSOS1(), tightenVarUb(), transformVariable(), tryAdd2variableBuffer(), updateArcData(), varIncRootboundchgs(), and varIsDiscrete().
returns whether variable's column should be present in the initial root LP
var | problem variable |
Definition at line 16863 of file var.c.
References SCIP_Var::initial, SCIP_Bool, and SCIPvarIsRemovable().
Referenced by applyFixings(), initLP(), presolveTryAddAND(), presolveTryAddLinearReform(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIPvarCopy(), SCIPvarIsIntegral(), tightenCoefs(), and tryAggregateIntVars().
returns whether variable's column is removable from the LP (due to aging or cleanup)
var | problem variable |
Definition at line 16873 of file var.c.
References SCIP_Var::removable, SCIP_Bool, and SCIPvarIsDeleted().
Referenced by applyFixings(), presolveTryAddAND(), presolveTryAddLinearReform(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIPvarCopy(), SCIPvarIsInitial(), tightenCoefs(), and tryAggregateIntVars().
returns whether the variable was deleted from the problem
var | problem variable |
Definition at line 16883 of file var.c.
References SCIP_Var::deleted, and SCIPvarMarkDeletable().
Referenced by applyProbing(), performDualfix(), performVarDeletions(), SCIP_DECL_PRESOLEXEC(), and SCIPvarIsRemovable().
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()
var | problem variable |
Definition at line 16895 of file var.c.
References SCIP_Var::deletable, SCIP_Var::probindex, SCIPvarMarkNotDeletable(), and TRUE.
Referenced by SCIPcreateVarBinpacking(), and SCIPvarIsDeleted().
void SCIPvarMarkNotDeletable | ( | SCIP_VAR * | var | ) |
marks the variable to be not deletable from the problem
Definition at line 16906 of file var.c.
References SCIP_Var::deletable, FALSE, and SCIPvarMarkDeleteGlobalStructures().
Referenced by focusnodeCleanupVars(), SCIPsolMarkPartial(), SCIPvarAggregate(), SCIPvarMarkDeletable(), SCIPvarMultiaggregate(), SCIPvarNegate(), solIncArrayVal(), and solSetArrayVal().
returns whether variable is allowed to be deleted completely from the problem
Definition at line 16939 of file var.c.
References SCIP_Var::deletable, SCIP_Bool, and SCIPvarIsActive().
Referenced by focusnodeCleanupVars(), and SCIPvarIsMarkedDeleteGlobalStructures().
void SCIPvarMarkDeleteGlobalStructures | ( | SCIP_VAR * | var | ) |
marks variable to be deleted from global structures (cliques etc.) when cleaning up
var | problem variable |
Definition at line 16919 of file var.c.
References SCIP_Var::delglobalstructs, SCIP_Bool, SCIPvarIsMarkedDeleteGlobalStructures(), and TRUE.
Referenced by SCIPremoveVarFromGlobalStructures(), SCIPvarMarkNotDeletable(), and solveAndEvalSubscip().
returns whether variable is an active (neither fixed nor aggregated) variable
var | problem variable |
Definition at line 16949 of file var.c.
References SCIP_Var::probindex, and SCIPvarGetIndex().
Referenced by addCliqueDataEntry(), addCliques(), addConsToOccurList(), addLinearCoef(), addQuadVarTerm(), addVarbound(), applyFixings(), applyGenVBounds(), applyProbing(), binvarGetActiveProbindex(), branchruledataEnsureArraySize(), calcCliquePartitionGreedy(), catchVarEvents(), checkFixedVariables(), checkForOverlapping(), checkLocksAndRes(), checkSystemGF2(), cliquePresolve(), cliquesSearchClique(), cliquetableGetNodeIndexBinvar(), collectCliqueData(), conflictAddBound(), conflictAnalyze(), conflictCreateReconvergenceConss(), conflictResolveBound(), createAndSplitProblem(), createCoveringProblem(), createNAryBranch(), createSolFromNLP(), createSolFromSubScipSol(), createSubproblem(), createSubSCIP(), cutsRoundMIR(), cutsTransformMIR(), cutsTransformStrongCG(), dfs(), dualPresolving(), extractGates(), findAggregation(), freeSubSCIP(), getActiveVar(), getImpliedBounds(), getLinVarsAndAndRess(), getMaxactImplicObjchg(), getRandomVariable(), GUBsetCalcCliquePartition(), heurdataEnsureArraySize(), initData(), initTCliquegraph(), isGAMSprintableSOC(), liftCliqueVariables(), mergeMultiples(), nlpAddVars(), nlpRemoveFixedVar(), nlpSetupNlpiIndices(), nlrowAddLinearCoef(), nlrowAddToLinearCoef(), nlrowExprtreeChanged(), nlrowRemoveFixedLinearCoefPos(), nlrowRemoveFixedQuadVars(), nlrowRemoveFixedVar(), preprocessCliques(), preprocessConstraintPairs(), presolRoundIndicator(), presolveDisaggregate(), presolveRemoveFixedVariables(), propagateCons(), propagateVbounds(), removeConstraintsDueToNegCliques(), removeFixedLinearVariables(), removeFixedNonlinearVariables(), removeFixedVariables(), replaceQuadVarTermPos(), resolvePropagationCoretimes(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_CONSACTIVE(), SCIP_DECL_CONSENABLE(), SCIP_DECL_CONSEXITPRE(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSTRANS(), SCIP_DECL_EXPRGRAPHVARADDED(), SCIP_DECL_HASHKEYVAL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_SEPAEXECLP(), SCIPcalcCliquePartition(), SCIPcliquetableComputeCliqueComponents(), SCIPconflictAddBound(), SCIPconflictAddRelaxedBound(), SCIPconflictIsVarUsed(), SCIPcreateConsAbspower(), SCIPcreateConsOrbitope(), SCIPexprtreeRemoveFixedVars(), SCIPgetReoptOldObjCoef(), SCIPhaveVarsCommonClique(), SCIPimplicsAdd(), SCIPnlrowAddLinearCoef(), SCIPnlrowAddQuadVar(), SCIPnlrowDelLinearCoef(), SCIPprimalTransformSol(), SCIPreoptMergeVarHistory(), SCIPreoptUpdateVarHistory(), SCIPseparateRelaxedKnapsack(), SCIPsolLinkNLPSol(), SCIPtreeBranchVar(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPvarAddImplic(), SCIPvarAddObj(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarChgObj(), SCIPvarCompareActiveAndNegated(), SCIPvarGetClosestVlb(), SCIPvarGetClosestVub(), SCIPvarGetImplBounds(), SCIPvarGetImplIds(), SCIPvarGetImplRedcost(), SCIPvarGetImplTypes(), SCIPvarGetImplVars(), SCIPvarGetLastBdchgIndex(), SCIPvarGetLbchgInfo(), SCIPvarGetNImpls(), SCIPvarGetUbchgInfo(), SCIPvarHasImplic(), SCIPvariablegraphBreadthFirst(), SCIPvarIsDeletable(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarsHaveCommonClique(), SCIPvarWasFixedEarlier(), SCIPwriteGms(), selectInitialVariable(), shortenConss(), solveComponent(), sortVariables(), tarjan(), tcliquegraphAddNode(), tightenBounds(), tightenVariables(), tryUpgradingXor(), updateBestCandidate(), varAddImplic(), varAddTransitiveBinaryClosureImplic(), varAddTransitiveImplic(), varIncRootboundchgs(), varMayRoundDown(), varMayRoundUp(), and writeOpbRelevantAnds().
int SCIPvarGetIndex | ( | SCIP_VAR * | var | ) |
gets unique index of variable
var | problem variable |
Definition at line 16959 of file var.c.
References SCIP_Var::index, and SCIPvarGetProbindex().
Referenced by applyProbing(), calcSignature(), checkForOverlapping(), cliquesSearchClique(), componentSetupWorkingSol(), computeConsAndDataChanges(), conflictsetAddBound(), conflictsetAddBounds(), consdataCalcSignature(), consdataGetFeasibility(), correctLocksAndCaptures(), correctPresoldata(), createPresoldata(), createTcliqueGraph(), dfs(), evaluateAggrCand(), evaluateValueCand(), extractGates(), getHashmapKey(), getLinVarsAndAndRess(), initConcsolver(), initConflictgraph(), liftCliqueVariables(), printNLRow(), propagateCons(), removeRedundantConstraints(), reoptSaveNewObj(), reoptSimilarity(), resolvePropagationFullOrbitopes(), SCIP_DECL_CONSINIT(), SCIP_DECL_HASHKEYEQ(), SCIP_DECL_HASHKEYVAL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_SORTPTRCOMP(), SCIPcliqueSearchVar(), SCIPgetConcurrentVaridx(), SCIPgetReoptOldObjCoef(), SCIPreoptMergeVarHistory(), SCIPreoptUpdateVarHistory(), SCIPsolGetVal(), SCIPsolIncVal(), SCIPsolMarkPartial(), SCIPsolRound(), SCIPsolSetVal(), SCIPvarCompareActiveAndNegated(), SCIPvarIsActive(), solGetArrayVal(), solIncArrayVal(), solSetArrayVal(), solUnlinkVar(), sortVariables(), tryUpgradingLogicor(), tryUpgradingSetppc(), tryUpgradingXor(), and writeOpbObjective().
int SCIPvarGetProbindex | ( | SCIP_VAR * | var | ) |
gets position of variable in problem, or -1 if variable is not active
var | problem variable |
Definition at line 16969 of file var.c.
References SCIP_Var::probindex, and SCIPvarGetTransVar().
Referenced by addGLSCliques(), addNextLevelCliques(), addRow(), aggrRowGetMinActivity(), alnsFixMoreVariables(), alnsUnfixVariables(), applyRepair(), binvarGetActiveProbindex(), branchruledataAddBoundChangeVar(), branchruledataEnsureArraySize(), branchruledataPopBoundChangeVar(), branchruledataUpdateCurrentBounds(), calcSignature(), checkRedundancy(), collectBinaryCliqueData(), collectCoefficients(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), computeAlternativeBounds(), computeCut(), computeSymmetryGroup(), conflictAnalyzeLP(), constructCompression(), constructSNFRelaxation(), createCGCutDirect(), createCoveringProblem(), createEdgesFromRow(), createRows(), createSubproblem(), createSubSCIP(), createTcliqueGraph(), cutsRoundMIR(), cutsRoundStrongCG(), cutsTransformMIR(), cutsTransformStrongCG(), detectImpliedBounds(), determineBestBounds(), determineBoundForSNF(), dfs(), execRelpscost(), fillDigraph(), fillVariableGraph(), findBestLb(), findBestUb(), forbidFixation(), freeMemory(), freeSubSCIP(), generateAverageNBRay(), getClosestVlb(), getClosestVub(), getDualProof(), getMaxactImplicObjchg(), getMaxActivity(), getMinActivity(), getNodeIdx(), heurdataAddBoundChangeVar(), heurdataEnsureArraySize(), heurdataFreeArrays(), heurdataPopBoundChangeVar(), heurdataUpdateCurrentBounds(), initLP(), insertSortedRootNeighbors(), isNeighbor(), isVariableInNeighborhood(), lpUpdateVarColumn(), lpUpdateVarColumnProved(), lpUpdateVarLoose(), lpUpdateVarLooseProved(), lpUpdateVarProved(), mergeMultiples(), mod2MatrixAddCol(), packingUpgrade(), printLinearCons(), printRow(), probInsertVar(), probRemoveVar(), processNlRow(), reoptCheckLocalRestart(), rowAddCoef(), rowCalculateGauss(), runBoundHeuristic(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HASHKEYVAL(), SCIP_DECL_HEUREXEC(), SCIP_DECL_SORTPTRCOMP(), SCIPaddPricedVar(), SCIPaddVar(), SCIPaggrRowAddObjectiveFunction(), SCIPaggrRowCancelVarWithBound(), SCIPaggrRowPrint(), SCIPapplyHeurSubNlp(), SCIPapplyLockFixings(), SCIPchgVarName(), SCIPchgVarType(), SCIPcolCreate(), SCIPeventProcess(), SCIPlpGetPrimalRay(), SCIPlpSumRows(), SCIPlpUpdateAddVar(), SCIPlpUpdateDelVar(), SCIPlpUpdateVarLb(), SCIPlpUpdateVarObj(), SCIPlpUpdateVarUb(), SCIPpricestoreApplyVars(), SCIPprimalTransformSol(), SCIPprobAddVar(), SCIPprobAddVarName(), SCIPprobChgVarType(), SCIPprobDelVar(), SCIPprobFree(), SCIPprobPerformVarDeletions(), SCIPprobVarChangedStatus(), SCIPresolveSolHeurSubNlp(), SCIPseparateRelaxedKnapsack(), SCIPshrinkDisjunctiveVarSet(), SCIPsolRetransform(), SCIPtreeBranchVar(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPvarGetImplRedcost(), SCIPvarGetIndex(), SCIPvariablegraphBreadthFirst(), SCIPvarRemove(), SCIPwriteCliqueGraph(), selectInitialVariable(), selectNextVariable(), selectShifting(), separateCuts(), separateGLS(), separateHeur(), setupAndSolve(), solveSubNLP(), strenghtenOrbitopeConstraint(), tarjan(), tightenDualproof(), tightenVariables(), transformNonIntegralRow(), undoBdchgsProof(), and varProcessBoundChanges().
gets transformed variable of ORIGINAL variable
var | problem variable |
Definition at line 16979 of file var.c.
References SCIP_Var::data, SCIP_Var::original, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetCol(), SCIPvarGetStatus(), and SCIP_Original::transvar.
Referenced by computeRanks(), createSolFromNLP(), createSolFromSubScipSol(), createSubSCIP(), fixDiscreteVars(), reoptSimilarity(), SCIPapplyHeurDualval(), SCIPmergeVariableStatistics(), SCIPreoptApplyCuts(), SCIPreoptMergeVarHistory(), SCIPreoptUpdateVarHistory(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolIncVal(), SCIPsolSetVal(), SCIPvarGetProbindex(), SCIPvarResetBounds(), and setupAndSolveSubscipRapidlearning().
gets column of COLUMN variable
var | problem variable |
Definition at line 16990 of file var.c.
References SCIP_Var::col, SCIP_Var::data, SCIP_Bool, SCIP_VARSTATUS_COLUMN, SCIPvarGetStatus(), and SCIPvarIsInLP().
Referenced by addBdchg(), addFracCounter(), analyzeStrongbranch(), branchcandCalcLPCands(), calcBdchgScore(), calcBranchScore(), calcShiftVal(), calculateBounds(), checkConstraintMatching(), colCalcInternalFarkasCoef(), colCalcInternalRedcost(), computeCut(), createCGCutCMIR(), determineBound(), filterExistingLP(), fixVariables(), generateAverageRay(), getImplVarRedcost(), getNActiveConsScore(), lpFlushAddCols(), lpFlushChgCols(), relaxVar(), 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(), SCIPlpMarkFlushed(), SCIPlpShrinkCols(), SCIPlpStartDive(), SCIPlpSumRows(), SCIPpricestoreAddProbVars(), SCIPpricestoreApplyVars(), SCIPprobUpdateBestRootSol(), SCIPreoptApplyCuts(), SCIProwCalcIntegralScalar(), SCIPsolAdjustImplicitSolVals(), SCIPvarGetImplRedcost(), SCIPvarGetTransVar(), setupAggregationData(), shiftValues(), tryFixVar(), updateActivities(), updateRowActivities(), updateSlacks(), varColCompare(), and varProcessBoundChanges().
returns whether the variable is a COLUMN variable that is member of the current LP
var | problem variable |
Definition at line 17001 of file var.c.
References SCIP_Var::col, SCIP_Var::data, SCIP_VARSTATUS_COLUMN, SCIPcolIsInLP(), SCIPvarGetAggrVar(), and SCIPvarGetStatus().
Referenced by focusnodeCleanupVars(), SCIP_DECL_HEUREXEC(), SCIPselectVarPseudoStrongBranching(), SCIPvarGetCol(), setupAggregationData(), and undoBdchgsProof().
gets aggregation variable y of an aggregated variable x = a*y + c
var | problem variable |
Definition at line 17011 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Real, SCIP_VARSTATUS_AGGREGATED, SCIPvarGetAggrScalar(), SCIPvarGetStatus(), and SCIP_Aggregate::var.
Referenced by checkCons(), checkSystemGF2(), markNeighborsMWISHeuristic(), presolveAddKKTAggregatedVars(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_READERWRITE(), SCIPgetVarCopy(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolIncVal(), SCIPsolSetVal(), SCIPvarIsInLP(), tightenVarsBoundsSOS1(), and varGetObjDelta().
gets aggregation scalar a of an aggregated variable x = a*y + c
var | problem variable |
Definition at line 17022 of file var.c.
References SCIP_Var::aggregate, SCIP_Var::data, SCIP_Aggregate::scalar, SCIP_Real, SCIP_VARSTATUS_AGGREGATED, SCIPvarGetAggrConstant(), and SCIPvarGetStatus().
Referenced by checkCons(), checkSystemGF2(), presolveAddKKTAggregatedVars(), SCIP_DECL_LINCONSUPGD(), SCIPgetVarCopy(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolIncVal(), SCIPsolSetVal(), SCIPvarGetAggrVar(), tightenVarsBoundsSOS1(), and varGetObjDelta().
gets aggregation constant c of an aggregated variable x = a*y + c
var | problem variable |
Definition at line 17033 of file var.c.
References SCIP_Var::aggregate, SCIP_Aggregate::constant, SCIP_Var::data, SCIP_VARSTATUS_AGGREGATED, SCIPvarGetMultaggrNVars(), and SCIPvarGetStatus().
Referenced by checkCons(), checkSystemGF2(), markNeighborsMWISHeuristic(), presolveAddKKTAggregatedVars(), SCIP_DECL_LINCONSUPGD(), SCIPgetVarCopy(), SCIPsolGetVal(), SCIPsolSetVal(), SCIPvarGetAggrScalar(), and tightenVarsBoundsSOS1().
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
var | problem variable |
Definition at line 17044 of file var.c.
References SCIP_Var::data, SCIP_Var::donotmultaggr, SCIP_Var::multaggr, SCIP_Multaggr::nvars, SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrVars(), and SCIPvarGetStatus().
Referenced by conflictResolveBound(), exitPresolve(), fixVariableZero(), getRandomVariable(), nlrowAddToLinearCoef(), nlrowRemoveFixedLinearCoefPos(), nlrowRemoveFixedQuadVars(), presolveAddKKTAggregatedVars(), removeFixedLinearVariables(), removeFixedVariables(), SCIP_DECL_READERWRITE(), SCIPconflictAddBound(), SCIPexprtreeRemoveFixedVars(), SCIPgetVarCopy(), SCIPnlrowAddLinearCoef(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolSetVal(), SCIPvarGetAggrConstant(), selectVarMultAggrBranching(), tightenVarsBoundsSOS1(), and updateBestCandidate().
gets vector of aggregation variables y of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c
var | problem variable |
Definition at line 17056 of file var.c.
References SCIP_Var::data, SCIP_Var::donotmultaggr, SCIP_Var::multaggr, SCIP_Real, SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrScalars(), SCIPvarGetStatus(), and SCIP_Multaggr::vars.
Referenced by exitPresolve(), fixVariableZero(), getRandomVariable(), nlrowAddToLinearCoef(), nlrowRemoveFixedLinearCoefPos(), nlrowRemoveFixedQuadVars(), presolveAddKKTAggregatedVars(), removeFixedLinearVariables(), removeFixedVariables(), SCIP_DECL_READERWRITE(), SCIPconflictAddBound(), SCIPexprtreeRemoveFixedVars(), SCIPgetVarCopy(), SCIPnlrowAddLinearCoef(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolSetVal(), SCIPvarGetMultaggrNVars(), selectVarMultAggrBranching(), tightenVarsBoundsSOS1(), and updateBestCandidate().
gets vector of aggregation scalars a of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c
var | problem variable |
Definition at line 17068 of file var.c.
References SCIP_Var::data, SCIP_Var::donotmultaggr, SCIP_Var::multaggr, SCIP_Multaggr::scalars, SCIP_Real, SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrConstant(), and SCIPvarGetStatus().
Referenced by fixVariableZero(), nlrowAddToLinearCoef(), nlrowRemoveFixedLinearCoefPos(), nlrowRemoveFixedQuadVars(), presolveAddKKTAggregatedVars(), removeFixedLinearVariables(), removeFixedVariables(), SCIPconflictAddBound(), SCIPexprtreeRemoveFixedVars(), SCIPgetVarCopy(), SCIPnlrowAddLinearCoef(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolSetVal(), SCIPvarGetMultaggrVars(), selectVarMultAggrBranching(), tightenVarsBoundsSOS1(), and updateBestCandidate().
gets aggregation constant c of a multi aggregated variable x = a0*y0 + ... + a(n-1)*y(n-1) + c
var | problem variable |
Definition at line 17080 of file var.c.
References SCIP_Multaggr::constant, SCIP_Var::data, SCIP_Var::donotmultaggr, SCIP_Var::multaggr, SCIP_VARSTATUS_MULTAGGR, SCIPvarGetNegatedVar(), and SCIPvarGetStatus().
Referenced by fixVariableZero(), nlrowAddToLinearCoef(), nlrowRemoveFixedLinearCoefPos(), nlrowRemoveFixedQuadVars(), presolveAddKKTAggregatedVars(), removeFixedLinearVariables(), removeFixedVariables(), SCIPexprtreeRemoveFixedVars(), SCIPgetVarCopy(), SCIPsolGetVal(), SCIPsolSetVal(), SCIPvarGetActiveRepresentatives(), SCIPvarGetMultaggrScalars(), selectVarMultAggrBranching(), and tightenVarsBoundsSOS1().
gets the negation of the given variable; may return NULL, if no negation is existing yet
var | negated problem variable |
Definition at line 17092 of file var.c.
References SCIP_Var::negatedvar, and SCIPvarGetNegationVar().
Referenced by addCliqueDataEntry(), addCliques(), addConsToOccurList(), applyFixings(), checkSolution(), checkSystemGF2(), cliquePresolve(), collectCliqueData(), computeRanks(), createCoveringProblem(), extractGates(), findAggregation(), getActiveVariables(), getLinearCoeffs(), mergeMultiples(), preprocessCliques(), preprocessConstraintPairs(), presolRoundIndicator(), removeConstraintsDueToNegCliques(), removeDoubleAndSingletonsAndPerformDualpresolve(), removeRedundantNonZeros(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_CONSPRINT(), SCIP_DECL_READERWRITE(), SCIPcreateConsOrbitope(), SCIPprobDelVar(), SCIPvarCompareActiveAndNegated(), SCIPvarGetMultaggrConstant(), SCIPwriteLp(), separateIISRounding(), strengthenConss(), tcliquegraphConstructCliqueTable(), and varGetObjDelta().
gets the negation variable x of a negated variable x' = offset - x
var | negated problem variable |
Definition at line 17102 of file var.c.
References SCIP_Var::negatedvar, SCIP_Real, SCIP_VARSTATUS_NEGATED, SCIPvarGetNegationConstant(), and SCIPvarGetStatus().
Referenced by addCliques(), applyFixings(), binvarGetActiveProbindex(), checkForOverlapping(), checkOrigPbCons(), checkSolution(), cliqueCleanup(), cliquePresolve(), collectCliqueData(), createCoveringProblem(), findAggregation(), getLinVarsAndAndRess(), liftCliqueVariables(), markNeighborsMWISHeuristic(), mergeMultiples(), preprocessCliques(), presolveAddKKTAggregatedVars(), printNLRow(), printPBRow(), printRow(), removeConstraintsDueToNegCliques(), SCIP_DECL_READERWRITE(), SCIPaddPricedVar(), SCIPaddVar(), SCIPchgVarType(), SCIPgetVarCopy(), SCIPmakeIndicatorFeasible(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolIncVal(), SCIPsolSetVal(), SCIPvarGetNegatedVar(), setObjective(), shortenConss(), tightenVarsBoundsSOS1(), tryUpgradingXor(), writeOpbConstraints(), writeOpbFixedVars(), writeOpbObjective(), and writeOpbRelevantAnds().
gets the negation offset of a negated variable x' = offset - x
var | negated problem variable |
Definition at line 17113 of file var.c.
References SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::negate, SCIP_Real, SCIP_VARSTATUS_NEGATED, SCIPvarGetObj(), and SCIPvarGetStatus().
Referenced by markNeighborsMWISHeuristic(), presolveAddKKTAggregatedVars(), SCIPsolGetVal(), SCIPsolSetVal(), SCIPvarGetNegationVar(), and tightenVarsBoundsSOS1().
gets objective function value of variable
var | problem variable |
Definition at line 17124 of file var.c.
References SCIP_Var::obj, SCIP_Real, and SCIPvarGetUnchangedObj().
Referenced by addBoundViolated(), addConflictBinvar(), addConflictBounds(), addObjcut(), adjustCutoffbound(), applyAlternativeBoundsBranching(), applyCliqueFixings(), applyRepair(), applyVboundsFixings(), calcShiftVal(), catchObjEvent(), changeSubvariableObjective(), checkConsQuadraticProblem(), checkSystemGF2(), chooseFracVar(), chooseGuidedVar(), chooseVeclenVar(), collectMinactImplicVar(), collectMinactImplicVars(), collectMinactVar(), compensateVarLock(), componentSetupWorkingSol(), computeSymmetryGroup(), consdataFindUnlockedLinearVar(), createCGCutDirect(), createNewSol(), createObjRow(), createSubproblem(), createSubSCIP(), dropObjEvent(), dualBoundStrengthening(), dualPresolving(), evaluateAggrCand(), evaluateValueCand(), findComponents(), findDominancePairs(), findDownlockAggregations(), findFixings(), findUplockAggregations(), fixVariables(), generateObjectiveRay(), getActivities(), getConflictImplics(), getMaxactImplicObjchg(), getMinactImplicObjchg(), getObjectiveFactor(), getPotential(), getVariable(), hasQuadvarHpProperty(), initSolve(), isVlb(), isVub(), lpUpdateVarColumn(), lpUpdateVarColumnProved(), lpUpdateVarLoose(), lpUpdateVarLooseProved(), nlpAddVars(), nlpDelVarPos(), nlpFlushObjective(), nlpFlushVarAdditions(), nlpSolve(), nlpUpdateObjCoef(), objimplicsCreate(), optimize(), performDualfix(), performRandRounding(), performSimpleRounding(), predBndStr(), presolveDual(), printPBRow(), propagateCons(), propagateCutoffboundGlobally(), propagateLowerboundVar(), readObjective(), readOPBFile(), recomputeGlbPseudoObjectiveValue(), recomputeLooseObjectiveValue(), recomputePseudoObjectiveValue(), removeDoubleAndSingletonsAndPerformDualpresolve(), reoptSaveNewObj(), resolvePropagation(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DIVESETGETSCORE(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_READERWRITE(), SCIP_DECL_SORTPTRCOMP(), SCIPaggrRowAddObjectiveFunction(), SCIPapplyHeurDualval(), SCIPapplyLockFixings(), SCIPapplyProximity(), SCIPchgReoptObjective(), SCIPchgVarObjProbing(), SCIPcolCreate(), SCIPconflictAnalyzePseudo(), SCIPcreateConsOrbitope(), SCIPcreateNlpiProb(), SCIPisObjIntegral(), SCIPlpEndDive(), SCIPlpGetModifiedProvedPseudoObjval(), SCIPlpGetModifiedPseudoObjval(), SCIPlpRecomputeLocalAndGlobalPseudoObjval(), SCIPlpStartDive(), SCIPlpUpdateAddVar(), SCIPlpUpdateDelVar(), SCIPlpUpdateVarLb(), SCIPlpUpdateVarLbGlobal(), SCIPlpUpdateVarUb(), SCIPlpUpdateVarUbGlobal(), SCIPnlpChgVarObjDive(), SCIPnlpGetPseudoObjval(), SCIPnodeAddBoundinfer(), SCIPnodeAddHoleinfer(), SCIPprobAddVar(), SCIPprobCheckObjIntegral(), SCIPprobGetAbsMaxObjCoef(), SCIPprobGetAbsMinObjCoef(), SCIPprobGetNObjVars(), SCIPprobPerformVarDeletions(), SCIPprobScaleObj(), SCIPpropagateCutoffboundVar(), SCIPsolRetransform(), SCIPtreeBranchVar(), SCIPvarCopy(), SCIPvarGetAggregatedObj(), SCIPvarGetNegationConstant(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), selectEssentialRounding(), selectRounding(), selectShifting(), setObjective(), setupAndSolveSubscip(), setupAndSolveSubscipRapidlearning(), setupSubproblem(), setupSubScip(), singletonColumnStuffing(), solCutIsViolated(), solveAndEvalSubscip(), solveCoveringProblem(), solveIndependentCons(), transformColumn(), updateBestCandidate(), updateVariableRounding(), varGetObjDelta(), varMayRoundDown(), varMayRoundUp(), writeExpandedSolutions(), writeFzn(), writeOpbConstraints(), and writeOpbObjective().
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)
var | problem variable |
Definition at line 17134 of file var.c.
References SCIPvarGetAggregatedObj(), and SCIP_Var::unchangedobj.
Referenced by SCIPcolChgObj(), SCIPcolCreate(), SCIPsolAdjustImplicitSolVals(), SCIPsolCheck(), SCIPsolIncVal(), SCIPsolLinkLPSol(), SCIPsolLinkNLPSol(), SCIPsolPrint(), SCIPsolPrintRay(), SCIPsolRecomputeObj(), SCIPsolRetransform(), SCIPsolRound(), SCIPsolSetVal(), and SCIPvarGetObj().
gets original lower bound of original problem variable (i.e. the bound set in problem creation)
var | original problem variable |
Definition at line 17222 of file var.c.
References SCIP_Negate::constant, SCIP_Var::data, SCIP_Dom::lb, SCIP_Var::negate, SCIP_Var::negatedvar, SCIP_Original::origdom, SCIP_Var::original, SCIP_Real, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetStatus(), SCIPvarGetUbOriginal(), SCIPvarIsOriginal(), and SCIP_Dom::ub.
Referenced by checkSolOrig(), parseConstantArrayAssignment(), parseValue(), printBoundSection(), SCIPcreateFiniteSolCopy(), SCIPvarAddHoleOriginal(), SCIPvarChgUbOriginal(), SCIPvarCopy(), SCIPvarGetAggregatedObj(), SCIPvarPrint(), SCIPwriteBnd(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), writeFzn(), writeOpbFixedVars(), and writeOpbRelevantAnds().
gets original upper bound of original problem variable (i.e. the bound set in problem creation)
var | original problem variable |
Definition at line 17242 of file var.c.
References SCIP_Negate::constant, SCIP_Var::data, SCIP_Dom::lb, SCIP_Var::negate, SCIP_Var::negatedvar, SCIP_Original::origdom, SCIP_Var::original, SCIP_VARSTATUS_NEGATED, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetHolelistOriginal(), SCIPvarGetStatus(), SCIPvarIsOriginal(), and SCIP_Dom::ub.
Referenced by checkSolOrig(), parseConstantArrayAssignment(), parseValue(), printBoundSection(), SCIPcreateFiniteSolCopy(), SCIPvarAddHoleOriginal(), SCIPvarChgLbOriginal(), SCIPvarCopy(), SCIPvarGetLbOriginal(), SCIPvarPrint(), SCIPwriteBnd(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), writeFzn(), writeOpbFixedVars(), and writeOpbRelevantAnds().
SCIP_HOLELIST* SCIPvarGetHolelistOriginal | ( | SCIP_VAR * | var | ) |
gets the original hole list of an original variable
var | problem variable |
Definition at line 17262 of file var.c.
References SCIP_Var::data, SCIP_Dom::holelist, SCIP_Original::origdom, SCIP_Var::original, SCIP_Real, SCIP_VARSTATUS_ORIGINAL, SCIPvarGetLbGlobal(), SCIPvarGetStatus(), and SCIPvarIsOriginal().
Referenced by SCIPvarGetUbOriginal(), and SCIPvarPrint().
gets global lower bound of variable
var | problem variable |
Definition at line 17276 of file var.c.
References SCIP_Var::glbdom, SCIP_Dom::lb, SCIP_Real, and SCIPvarGetUbGlobal().
Referenced by addAltLPColumn(), addConflictBinvar(), addConflictBounds(), addFixedVarsConss(), addGlobalCut(), addLinearCoef(), addLinearization(), addLinearizationCuts(), addLocalBranchingConstraint(), addQuadVarTerm(), addSplitcons(), addVarbound(), adjustCutoffbound(), adjustOversizedJobBounds(), aggrRowGetMinActivity(), alnsFixMoreVariables(), analyzeEnergyRequirement(), analyzeStrongbranch(), applyFixings(), applyGenVBound(), applyImplic(), applyRepair(), boundchgApplyGlobal(), buildMod2Matrix(), calcColActivity(), calcShiftVal(), calculateBounds(), catchVarEvents(), checkCurvature(), checkFixedVariables(), checkGlbfirstnonfixed(), checkIISlocal(), checkImplic(), checkOverloadViaThetaTree(), checkRedundancy(), checkRedundancySide(), checkSolution(), checkSystemGF2(), chgCoeffWithBound(), chgQuadCoeffWithBound(), cliqueCleanup(), cliquePresolve(), cliquesSearchClique(), collectBinaryCliqueData(), collectMinactImplicVar(), collectMinactImplicVars(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), compensateVarLock(), componentSetupWorkingSol(), computeCut(), computeEnergyContribution(), computeIntegerVariableBounds(), computeIntegerVariableBoundsDins(), computeInteriorPoint(), computeRanks(), computeSymmetryGroup(), computeViolation(), conflictAnalyze(), consdataCreate(), consdataCreateBinvars(), consdataDeletePos(), consdataFree(), consdataGetFeasibility(), consdataGetGlbActivityResiduals(), consdataLinearize(), consdataPrint(), consdataRecomputeGlbMinactivity(), consdataRecomputeMaxactivity(), constructSNFRelaxation(), createCoveringProblem(), createIndicatorConstraint(), createKKTComplementarityBounds(), createKKTDualCons(), createNlRow(), createObjRow(), createSolFromSubScipSol(), createSortedEventpoints(), createSubSCIP(), createSubscip(), cutsRoundMIR(), cutsRoundStrongCG(), cutTightenCoefs(), cutTightenCoefsQuad(), DECL_CHANGESUBSCIP(), detectImpliedBounds(), determineBestBounds(), determineBound(), determineVariableFixings(), dfs(), doSolveSubMIP(), dualBoundStrengthening(), dualPresolve(), dualPresolving(), extractLinearValues(), filterExistingLP(), findAggregation(), findBestLb(), findDominancePairs(), findDownlockAggregations(), findUncapacitatedArcs(), findUplockAggregations(), fixDiscreteVars(), fixIntegerVariableUb(), fixNonNeighborhoodVariables(), fixVariables(), focusnodeCleanupVars(), forbidFixation(), freeMemory(), generateBoundInequalityFromSOS1Nodes(), generateCut(), generateRowCardinality(), generateRowSOS2(), generateZerohalfCut(), getActivityResidualsLowerBound(), getActivityResidualsUpperBound(), getBounds(), getClosestVub(), getCorner(), getGenVBoundsMinActivity(), getImpliedBounds(), getMaxactImplicObjchg(), getMaxActivity(), getMinactImplicObjchg(), getMinActivity(), getObjectiveFactor(), getPotential(), getPotentialContributed(), handleNewVariableCardinality(), handleNewVariableSOS1(), infCntUpdate(), isBoundchgUseless(), isCandidate(), isVlb(), isVub(), mcfnetworkFill(), objimplicsCreate(), optimize(), performDualfix(), polishSolution(), predBndStr(), preprocessConstraintPairs(), presolRoundIndicator(), presolRoundSOS2(), presolveAddKKTAggregatedVars(), presolveConsEffectiveHorizon(), presolveConsEst(), presolveConsLct(), presolveCreateBenTalNemirovskiApproxDim3(), presolveCreateGlineurApproxDim3(), presolveDual(), presolveTryAddLinearReform(), printSignpowerRow(), proofsetCancelVarWithBound(), propagateBinaryBestRootRedcost(), propagateCutoffboundGlobally(), propagateCutoffboundVar(), propagateLongProof(), propagateLowerboundVar(), propagateRootRedcostVar(), propagateVarbounds(), propagateVbounds(), proposeFeasibleSolution(), readBinaries(), readBounds(), readGenerals(), readSemicontinuous(), readSol(), reboundIntegerVariables(), recomputeGlbPseudoObjectiveValue(), relaxVar(), removeDoubleAndSingletonsAndPerformDualpresolve(), removeFixedVariables(), removeIrrelevantJobs(), removeZeros(), removeZerosQuad(), replaceQuadVarTermPos(), resolveGenVBoundPropagation(), resolvePropagationCoretimes(), restrictToBinaryBounds(), rowFindSlackVar(), rowprepCleanupImproveCoefrange(), rowprepCleanupIntegralCoefs(), rowScale(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_CONCSOLVERSYNCREAD(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSENABLE(), SCIP_DECL_CONSINITLP(), SCIP_DECL_CONSINITPRE(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSSEPALP(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPRGRAPHNODEREFORM(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPEXEC(), SCIP_DECL_QUADCONSUPGD(), SCIPaddVarImplication(), SCIPaggrRowCancelVarWithBound(), SCIPapplyHeurDualval(), SCIPapplyHeurSubNlp(), SCIPapplyProbingVar(), SCIPapplyProximity(), SCIPapplyUndercover(), SCIPcliqueDelVar(), SCIPcliquetableAdd(), SCIPcomputeVarLbGlobal(), SCIPconflictAddRelaxedBound(), SCIPconflictGetVarLb(), SCIPconsResolvePropagation(), SCIPcreateConsLinking(), SCIPcreateConsOrbitope(), SCIPcreateFiniteSolCopy(), SCIPcutGenerationHeuristicCMIR(), SCIPcutsTightenCoefficients(), SCIPevalExprtreeGlobalBounds(), SCIPimplicsAdd(), SCIPlpRecomputeLocalAndGlobalPseudoObjval(), SCIPlpUpdateVarObj(), SCIPmatrixCreate(), SCIPmatrixPrintRow(), SCIPnodeAddBoundinfer(), SCIPpropResolvePropagation(), SCIPreoptSaveGlobalBounds(), SCIPresolveSolHeurSubNlp(), SCIPseparateRelaxedKnapsack(), SCIPshrinkDisjunctiveVarSet(), SCIPsolAdjustImplicitSolVals(), SCIPsolCheck(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPsolSetVal(), SCIPtightenVarLbGlobal(), SCIPtightenVarUbGlobal(), SCIPvarAddHoleGlobal(), SCIPvarAddImplic(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarCopy(), SCIPvarGetHolelistOriginal(), SCIPvarGetMultaggrLbGlobal(), SCIPvarGetMultaggrUbGlobal(), SCIPvarGetNLPSol_rec(), SCIPvarGetRelaxSol(), SCIPvarPrint(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarUpdateBestRootSol(), SCIPvisualizeConsCumulative(), SCIPwriteBnd(), SCIPwriteLp(), SCIPwritePip(), selectShifting(), sepaImplBoundCutsSOS1(), separateCuts(), separatePerspective(), sepastoreApplyLb(), sepastoreApplyUb(), sepastoreIsBdchgApplicable(), setupAggregationData(), setupAndSolveCumulativeSubscip(), setupAndSolveSubscip(), setupAndSolveSubscipRapidlearning(), shiftValues(), singletonColumnStuffing(), skipRedundantBdchginfos(), solveAndEvalSubscip(), solveComponent(), solveLp(), solveSubNLP(), sortAndMergeClique(), termIsConstant(), tightenBounds(), tightenCoefs(), tightenDualproof(), tightenSingleVar(), tightenVariables(), tightenVarUb(), transformDualredsToBounddisjunction(), transformNonIntegralRow(), treeAddPendingBdchg(), tryAdd2variableBuffer(), tryFixVar(), tryUpgradingXor(), undoBdchgsProof(), updateFirstRow(), updateFirstRowGlobal(), updateSlacks(), varAddImplic(), varAddVbound(), varIncRootboundchgs(), varIsFixed(), and varProcessAddHoleGlobal().
gets global upper bound of variable
var | problem variable |
Definition at line 17286 of file var.c.
References SCIP_Var::glbdom, SCIPvarGetHolelistGlobal(), and SCIP_Dom::ub.
Referenced by addAltLPColumn(), addConflictBinvar(), addConflictBounds(), addConflictReasonVars(), addFixedVarsConss(), addGlobalCut(), addLinearCoef(), addLinearization(), addLinearizationCuts(), addLocalBranchingConstraint(), addQuadVarTerm(), addSplitcons(), addVarbound(), adjustCutoffbound(), adjustOversizedJobBounds(), aggrRowGetMinActivity(), alnsFixMoreVariables(), analyzeEnergyRequirement(), analyzeStrongbranch(), applyFixings(), applyGenVBound(), applyImplic(), applyRepair(), boundchgApplyGlobal(), buildMod2Matrix(), calcColActivity(), calcShiftVal(), calculateBounds(), catchVarEvents(), checkCurvature(), checkFixedVariables(), checkGlbfirstnonfixed(), checkIISlocal(), checkImplic(), checkOverloadViaThetaTree(), checkRedundancy(), checkRedundancySide(), checkSolution(), checkSystemGF2(), chgCoeffWithBound(), chgQuadCoeffWithBound(), cliqueCleanup(), cliquePresolve(), cliquesSearchClique(), collectBinaryCliqueData(), collectBinaryVars(), collectDemands(), collectMinactImplicVar(), collectMinactImplicVars(), collectNonBinaryImplicationData(), collectNonBinaryVBoundData(), compensateVarLock(), componentSetupWorkingSol(), computeCut(), computeEnergyContribution(), computeIntegerVariableBounds(), computeIntegerVariableBoundsDins(), computeInteriorPoint(), computeRanks(), computeSymmetryGroup(), computeViolation(), conflictAnalyze(), consdataCreate(), consdataCreateBinvars(), consdataDeletePos(), consdataGetFeasibility(), consdataGetGlbActivityResiduals(), consdataLinearize(), consdataPrint(), consdataRecomputeGlbMinactivity(), consdataRecomputeMaxactivity(), constructSNFRelaxation(), createCoveringProblem(), createIndicatorConstraint(), createKKTComplementarityBounds(), createKKTDualCons(), createNlRow(), createSortedEventpoints(), createSubSCIP(), createSubscip(), createVarUbs(), cutsRoundMIR(), cutsRoundStrongCG(), cutTightenCoefs(), cutTightenCoefsQuad(), DECL_CHANGESUBSCIP(), detectImpliedBounds(), determineBestBounds(), determineBound(), determineVariableFixings(), dfs(), doSolveSubMIP(), dualBoundStrengthening(), dualPresolve(), dualPresolving(), extractLinearValues(), filterExistingLP(), findAggregation(), findBestUb(), findDominancePairs(), findDownlockAggregations(), findFixings(), findUncapacitatedArcs(), findUplockAggregations(), fixDiscreteVars(), fixIntegerVariableUb(), fixNonNeighborhoodVariables(), fixTriangle(), fixVariables(), focusnodeCleanupVars(), forbidFixation(), freeMemory(), generateBoundInequalityFromSOS1Nodes(), generateCut(), generateRowCardinality(), generateRowSOS2(), generateZerohalfCut(), getActivityResidualsLowerBound(), getActivityResidualsUpperBound(), getBounds(), getClosestVlb(), getCorner(), getGenVBoundsMinActivity(), getImpliedBounds(), getMaxactImplicObjchg(), getMaxActivity(), getMinactImplicObjchg(), getMinActivity(), getObjectiveFactor(), getPotential(), getPotentialContributed(), handleNewVariableCardinality(), handleNewVariableSOS1(), isBoundchgUseless(), isCandidate(), mcfnetworkFill(), objimplicsCreate(), optimize(), performDualfix(), polishSolution(), predBndStr(), preprocessConstraintPairs(), presolRoundIndicator(), presolRoundSOS2(), presolveAddKKTAggregatedVars(), presolveConsEffectiveHorizon(), presolveConsEst(), presolveConsLct(), presolveDual(), presolveTryAddLinearReform(), printIndicatorCons(), printSignpowerRow(), proofsetCancelVarWithBound(), propagateBinaryBestRootRedcost(), propagateCons(), propagateCutoffboundGlobally(), propagateCutoffboundVar(), propagateLongProof(), propagateLowerboundVar(), propagateRootRedcostVar(), propagateVarbounds(), propagateVbounds(), proposeFeasibleSolution(), readBinaries(), readBounds(), readGenerals(), readSol(), reboundIntegerVariables(), recomputeGlbPseudoObjectiveValue(), relaxVar(), removeFixedVariables(), removeIrrelevantJobs(), removeZeros(), removeZerosQuad(), replaceQuadVarTermPos(), resolveGenVBoundPropagation(), resolvePropagationCoretimes(), restrictToBinaryBounds(), rowFindSlackVar(), rowprepCleanupImproveCoefrange(), rowprepCleanupIntegralCoefs(), rowScale(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_CONCSOLVERSYNCREAD(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSINITLP(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSSEPALP(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_HEUREXEC(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPEXEC(), SCIP_DECL_QUADCONSUPGD(), SCIP_DECL_SOLVECUMULATIVE(), SCIPaddVarImplication(), SCIPaggrRowCancelVarWithBound(), SCIPapplyHeurDualval(), SCIPapplyHeurSubNlp(), SCIPapplyProbingVar(), SCIPapplyProximity(), SCIPcliqueDelVar(), SCIPcliquetableAdd(), SCIPcomputeVarUbGlobal(), SCIPconflictAddRelaxedBound(), SCIPconflictGetVarUb(), SCIPconsResolvePropagation(), SCIPcreateConsLinking(), SCIPcreateConsOrbitope(), SCIPcreateFiniteSolCopy(), SCIPcutGenerationHeuristicCMIR(), SCIPcutsTightenCoefficients(), SCIPevalExprtreeGlobalBounds(), SCIPimplicsAdd(), SCIPlpRecomputeLocalAndGlobalPseudoObjval(), SCIPlpUpdateVarObj(), SCIPmatrixCreate(), SCIPmatrixPrintRow(), SCIPnodeAddBoundinfer(), SCIPpropResolvePropagation(), SCIPreoptSaveGlobalBounds(), SCIPresolveSolHeurSubNlp(), SCIPseparateRelaxedKnapsack(), SCIPshrinkDisjunctiveVarSet(), SCIPsolAdjustImplicitSolVals(), SCIPsolCheck(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPtightenVarLbGlobal(), SCIPtightenVarUbGlobal(), SCIPvarAddHoleGlobal(), SCIPvarAddImplic(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarCopy(), SCIPvarGetLbGlobal(), SCIPvarGetMultaggrLbGlobal(), SCIPvarGetMultaggrUbGlobal(), SCIPvarGetNLPSol_rec(), SCIPvarGetProbvarBinary(), SCIPvarGetRelaxSol(), SCIPvarPrint(), SCIPvarRemoveCliquesImplicsVbs(), SCIPvarUpdateBestRootSol(), SCIPvisualizeConsCumulative(), SCIPwriteBnd(), SCIPwriteLp(), SCIPwritePip(), selectShifting(), sepaImplBoundCutsSOS1(), separateCuts(), separateIndicators(), separatePerspective(), sepastoreApplyLb(), sepastoreApplyUb(), sepastoreIsBdchgApplicable(), setupAggregationData(), setupAndSolveCumulativeSubscip(), setupAndSolveSubscip(), setupAndSolveSubscipRapidlearning(), shiftValues(), singletonColumnStuffing(), skipRedundantBdchginfos(), solveAndEvalSubscip(), solveLp(), solveSubNLP(), sortAndMergeClique(), termIsConstant(), tightenBounds(), tightenCoefs(), tightenDualproof(), tightenSingleVar(), tightenVariables(), tightenVarLb(), transformDualredsToBounddisjunction(), transformNonIntegralRow(), treeAddPendingBdchg(), tryAdd2variableBuffer(), tryFixVar(), tryUpgradingXor(), undoBdchgsProof(), updateDistances(), updateFirstRow(), updateFirstRowGlobal(), updateSlacks(), varAddImplic(), varAddVbound(), varIncRootboundchgs(), varIsFixed(), and varProcessAddHoleGlobal().
SCIP_HOLELIST* SCIPvarGetHolelistGlobal | ( | SCIP_VAR * | var | ) |
gets the global hole list of an active variable
var | problem variable |
Definition at line 17296 of file var.c.
References SCIP_Var::glbdom, SCIP_Dom::holelist, SCIP_Real, and SCIPvarGetBestBoundGlobal().
Referenced by SCIPvarAggregate(), SCIPvarCopy(), SCIPvarGetUbGlobal(), SCIPvarMultiaggregate(), and SCIPvarPrint().
gets best global bound of variable with respect to the objective function
var | problem variable |
Definition at line 17306 of file var.c.
References SCIP_Var::glbdom, SCIP_Dom::lb, SCIP_Var::obj, SCIP_Real, SCIPvarGetWorstBoundGlobal(), and SCIP_Dom::ub.
Referenced by SCIPvarGetHolelistGlobal().
gets worst global bound of variable with respect to the objective function
var | problem variable |
Definition at line 17319 of file var.c.
References SCIP_Var::glbdom, SCIP_Dom::lb, SCIP_Var::obj, SCIP_Real, SCIPvarGetLbLocal(), and SCIP_Dom::ub.
Referenced by initSolve(), and SCIPvarGetBestBoundGlobal().
gets current lower bound of variable
var | problem variable |
Definition at line 17332 of file var.c.
References SCIP_Dom::lb, SCIP_Var::locdom, SCIP_Real, and SCIPvarGetUbLocal().
Referenced by addBilinearTermToCut(), addBoundViolated(), addBranchingComplementaritiesSOS1(), addCand(), addCliqueDataEntry(), addConcaveEstimatorBivariate(), addConcaveEstimatorMultivariate(), addConcaveEstimatorUnivariate(), addConflictReasonVars(), addFacetToCut(), addFixedVarsConss(), addIntervalGradientEstimator(), addLinearTermToCut(), addSplitcons(), addUserEstimator(), analyseInfeasibelCoreInsertion(), analyzeConflictOne(), analyzeConflictUpperbound(), analyzeConflictZero(), analyzeEnergyRequirement(), analyzeGenVBoundConflict(), analyzeZeroResultant(), applyAlternativeBoundsBranching(), applyAlternativeBoundsFixing(), applyBdchgs(), applyBoundHeur(), applyCliqueFixings(), applyGenVBound(), applyNlobbt(), applyProbing(), applyProbingVar(), applyVboundsFixings(), branch(), branchBalancedCardinality(), branchcandCalcLPCands(), branchruledataUpdateCurrentBounds(), branchUnbalancedCardinality(), buildMod2Matrix(), calcBranchScore(), calculateAlternatives(), catchEvent(), changeAncestorBranchings(), checkBounddisjunction(), checkForOverlapping(), checkIISlocal(), checkKnapsack(), checkLogicor(), checkOverloadViaThetaTree(), checkRikun(), checkSolution(), checkSwitchNonoverlappingSOS1Methods(), checkVarbound(), checkVariable(), chgCoeffWithBound(), chgProbingBound(), chgQuadCoeffWithBound(), chooseCoefVar(), chooseDoubleVar(), chooseFracVar(), chooseGuidedVar(), choosePscostVar(), chooseVeclenVar(), collectBranchingCands(), collectCliqueData(), collectDataTTEF(), collectIntVars(), collectSolution(), componentSetupWorkingSol(), computeAlternativeBounds(), computeBranchingVariables(), computeCut(), computeEnergyContribution(), computeImpliedEst(), computeImpliedLct(), computeInteriorPoint(), computeMinDistance(), computeReferencePointGauge(), computeReferencePointProjection(), computeSymmetryGroup(), computeViolation(), conflictAnalyzeLP(), conflictAnalyzeRemainingBdchgs(), consCheckRedundancy(), consdataCheck(), consdataCheckNonbinvar(), consdataComputePseudoActivity(), consdataCreate(), consdataGetActivityResiduals(), consdataPrint(), consdataRecomputeMaxActivityDelta(), consdataRecomputeMinactivity(), consdataUpdateLinearActivity(), consFixInteger(), constraintNonOverlappingGraph(), coretimesUpdateLb(), coretimesUpdateUb(), countSparseSol(), createCoreProfile(), createCoverCuts(), createCoverCutsTimepoint(), createCoveringProblem(), createSelectedSortedEventpointsSol(), createSortedEventpoints(), createSubscip(), CUTOFF_CONSTRAINT(), cutsRoundMIR(), cutsRoundStrongCG(), cutTightenCoefs(), cutTightenCoefsQuad(), deleteVarCardinality(), determineBestBounds(), doSeachEcAggr(), doSolveSubMIP(), dropEvent(), dryBranch(), enforceCardinality(), enforceConflictgraph(), enforceConstraint(), enforceIndicators(), evalCorner(), evaluateGauge(), execRelpscost(), extractCycle(), extractGates(), filterCands(), filterExistingLP(), findBestLb(), findComponents(), fixAlmostFixedX(), fixAndPropagate(), fixBounds(), fixIntegerVariableLb(), fixInterdiction(), fixVariable(), fixVariables(), fixVariableZero(), fixVariableZeroNode(), forbidCover(), generate1ConvexIndefiniteUnderestimator(), generate1ConvexIndefiniteUnderestimatorAtBoundary(), generate1ConvexIndefiniteUnderestimatorInTheInteriorPatternA(), generate1ConvexIndefiniteUnderestimatorInTheInteriorPatternB(), generateAverageNBRay(), generateBoundInequalityFromSOS1Cons(), generateBoundInequalityFromSOS1Nodes(), generateCloseCutPoint(), generateConvexConcaveUnderestimator(), generateCut(), generateCutFactorable(), generateCutLTI(), generateCutNonConvex(), generateCutSol(), generateEstimatingHyperplane(), generateLinearizationCut(), generateOrthogonal_lx_ly_Underestimator(), generateOrthogonal_lx_uy_Underestimator(), generateRowCardinality(), generateRowSOS2(), generateSecantCut(), generateUnderestimatorParallelYFacets(), generateZerohalfCut(), getBoundConsFromVertices(), getClosestVub(), getDiveBdChgsSOS1conflictgraph(), getDiveBdChgsSOS1constraints(), getFixingValue(), getGenVBoundsMinActivity(), getGenVBoundsMinActivityConflict(), getImplVarRedcost(), getIneqViol(), getMaxactImplicObjchg(), getNLPFracVars(), getRandomVariable(), getRelDistance(), getValueScore(), handle1Cycle(), handleNewVariableCardinality(), handleNewVariableSOS1(), handleNewVariableSOS2(), heurdataUpdateCurrentBounds(), heurExec(), impliesVlbPrecedenceCondition(), improvePoint(), inferboundsEdgeFinding(), inferVariableZero(), initConflictgraph(), initLP(), initProblem(), initSepaData(), isConvexLocal(), isPossibleToComputeCut(), isPseudocostUpdateValid(), isViolatedSOS1(), liftCliqueVariables(), lockVariableCardinality(), lockVariableSOS2(), lpUpdateVarColumn(), lpUpdateVarColumnProved(), lpUpdateVarLoose(), lpUpdateVarLooseProved(), makeSOS1conflictgraphFeasible(), makeSOS1constraintsFeasible(), nlpCalcFracVars(), nlpFlushVarAdditions(), nlpSolve(), nlpUpdateVarBounds(), nlrowCalcActivityBounds(), nodeGetSolvalBinaryBigMSOS1(), nodeGetSolvalVarboundLbSOS1(), performBranching(), performDualfix(), performFixing(), performOrbitalFixing(), performRandRounding(), performStrongbranchSOS1(), performStrongbranchWithPropagation(), preprocessCliques(), presolRoundCardinality(), presolRoundConsSOS1(), presolRoundIndicator(), presolRoundSOS2(), presolRoundVarsSOS1(), presolveConsEst(), presolveCreateBenTalNemirovskiApproxDim3(), presolveCreateGlineurApproxDim3(), presolveFindDuplicates(), presolvePropagateCons(), presolveUpgrade(), printBoundSection(), processBinvarFixings(), processFixings(), processIntegerBoundChg(), processWatchedVars(), projectVbd(), propagateBoundsBilinearTerm(), propagateBoundsCons(), propagateBoundsGetQuadActivity(), propagateBoundsQuadVar(), propagateBoundsTightenVar(), propagateBoundsTightenVarLb(), propagateCons(), propagateCutoffboundBinvars(), propagateCutoffboundVar(), propagateFullOrbitope(), propagateLbTTEF(), propagatePackingPartitioningCons(), propagateRedcostBinvar(), propagateRedcostVar(), propagateRootRedcostBinvar(), propagateTimetable(), propagateTTEF(), propagateUbTTEF(), propagateVbounds(), propCardinality(), propConsSOS1(), propIndicator(), proposeBranchingPoint(), propSOS2(), propVariableNonzero(), propVariables(), recomputeLooseObjectiveValue(), recomputePseudoObjectiveValue(), registerBranchingCandidates(), registerBranchingCandidatesCentrality(), registerBranchingCandidatesGap(), registerBranchingCandidatesViolation(), registerBranchingVariables(), registerLargeRelaxValueVariableForBranching(), removeZeros(), removeZerosQuad(), reoptCheckLocalRestart(), reoptSimilarity(), replaceByLinearConstraints(), replaceViolatedByLinearConstraints(), resolveGenVBoundPropagation(), retransformVariable(), rowCalculateGauss(), rowprepCleanupImproveCoefrange(), rowprepCleanupIntegralCoefs(), sampleRandomPoints(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSENFORELAX(), SCIP_DECL_CONSGETDIVEBDCHGS(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSTRANS(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPRGRAPHVARADDED(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_RELAXEXEC(), SCIP_DECL_SORTINDCOMP(), SCIPaddConflictBinvar(), SCIPaggrRowCancelVarWithBound(), SCIPanalyzeDeductionsProbing(), SCIPapplyLockFixings(), SCIPapplyProbingVar(), SCIPbranchcandAddExternCand(), SCIPbranchcandGetPseudoCands(), SCIPbranchcandUpdateVar(), SCIPbranchExecExtern(), SCIPbranchExecLP(), SCIPbranchExecPseudo(), SCIPbranchGetBranchingPoint(), SCIPbranchVar(), SCIPbranchVarVal(), SCIPbranchVarValNary(), SCIPchgVarLb(), SCIPchgVarLbGlobal(), SCIPchgVarLbNode(), SCIPchgVarLbProbing(), SCIPcolCreate(), SCIPcomputeConvexEnvelopeFacet(), SCIPcomputeVarLbLocal(), SCIPconflictAnalyzePseudo(), SCIPconflictAnalyzeStrongbranch(), SCIPcreateNlpiProb(), SCIPcreateWorstCaseProfile(), SCIPcutGenerationHeuristicCMIR(), SCIPcutsTightenCoefficients(), SCIPevalExprtreeLocalBounds(), SCIPfixVar(), SCIPfixVarProbing(), SCIPgetVarLbAtIndex(), SCIPgetVarStrongbranchWithPropagation(), SCIPgetVarWasFixedAtIndex(), SCIPinferBinvarCons(), SCIPinferBinvarProp(), SCIPinferVarLbCons(), SCIPinferVarLbProp(), SCIPinferVarUbCons(), SCIPinferVarUbProp(), SCIPisLinearLocalQuadratic(), SCIPlpEndDive(), SCIPlpRecomputeLocalAndGlobalPseudoObjval(), SCIPlpStartDive(), SCIPlpUpdateVarObj(), SCIPlpUpdateVarUb(), SCIPmakeIndicatorFeasible(), SCIPnlpEndDive(), SCIPnodeAddBoundinfer(), SCIPnodeAddHoleinfer(), SCIPnodePropagateImplics(), SCIPperformGenericDivingAlgorithm(), SCIPpricestoreAddBdviolvar(), SCIPpricestoreAddProbVars(), SCIPpricestoreAddVar(), SCIPpricestoreResetBounds(), SCIPprobUpdateBestRootSol(), SCIPreoptnodeAddCons(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), SCIPseparateRelaxedKnapsack(), SCIPsetBinaryVarIndicator(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPtightenVarLb(), SCIPtightenVarLbGlobal(), SCIPtreeBranchVar(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPupdateNlpiProb(), SCIPvarAddHoleLocal(), SCIPvarChgLbGlobal(), SCIPvarCopy(), SCIPvarGetImplRedcost(), SCIPvarGetLbAtIndex(), SCIPvarGetMultaggrLbLocal(), SCIPvarGetMultaggrUbLocal(), SCIPvarGetNLPSol_rec(), SCIPvarGetRelaxSol(), SCIPvarGetWorstBoundGlobal(), SCIPvarPrint(), SCIPvarWasFixedAtIndex(), SCIPvisualCutoffNode(), SCIPvisualNewChild(), SCIPvisualSolvedNode(), SCIPvisualUpdateChild(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), selectBranchVar(), selectNextDiving(), separateCons(), separateCuts(), separatePerspective(), sepastoreApplyLb(), sepastoreApplyUb(), sepastoreIsBdchgApplicable(), setupAggregationData(), setupAndSolveFiniteSolSubscip(), setupAndSolveSubscipRapidlearning(), solveAndEvalSubscip(), solveIndependentCons(), solveNlp(), solveNLP(), solveNode(), sortBounds(), strenghtenOrbitopeConstraint(), termIsConstant(), tightenBounds(), tightenCoefs(), tightenDualproof(), tightenedIntvar(), tightenSingleVar(), tightenUbTTEF(), tightenVariables(), tightenVarLb(), tightenVarsBoundsSOS1(), tightenVarUb(), transformNonIntegralRow(), transformVariable(), treeApplyPendingBdchgs(), tryOneOpt(), trySolCandidate(), unlockVariableCardinality(), unlockVariableSOS2(), updateBestCandidate(), updateBilinearRelaxation(), updateFirstRow(), updateImplicationGraphSOS1(), updatePseudocost(), updateVariableRounding(), updateWeightsTCliquegraph(), varIsFixed(), varIsUnfixedLocal(), varProcessAddHoleLocal(), varProcessBoundChanges(), writeFzn(), writeOpbFixedVars(), and writeOpbRelevantAnds().
gets current upper bound of variable
var | problem variable |
Definition at line 17342 of file var.c.
References SCIP_Var::locdom, SCIPvarGetHolelistLocal(), and SCIP_Dom::ub.
Referenced by addBilinearTermToCut(), addBoundViolated(), addBranchingComplementaritiesSOS1(), addCand(), addCliqueDataEntry(), addConcaveEstimatorBivariate(), addConcaveEstimatorMultivariate(), addConcaveEstimatorUnivariate(), addConflictReasonVars(), addFacetToCut(), addFixedVarsConss(), addIntervalGradientEstimator(), addLinearTermToCut(), addSplitcons(), addUserEstimator(), analyseInfeasibelCoreInsertion(), analyzeConflictLowerbound(), analyzeConflictOne(), analyzeConflictZero(), analyzeEnergyRequirement(), analyzeGenVBoundConflict(), analyzeZeroResultant(), applyAlternativeBoundsBranching(), applyAlternativeBoundsFixing(), applyBdchgs(), applyBoundHeur(), applyCliqueFixings(), applyGenVBound(), applyNlobbt(), applyProbing(), applyProbingVar(), applyVboundsFixings(), branch(), branchBalancedCardinality(), branchcandCalcLPCands(), branchruledataUpdateCurrentBounds(), branchUnbalancedCardinality(), buildMod2Matrix(), calcBranchScore(), calculateAlternatives(), catchEvent(), changeAncestorBranchings(), checkBounddisjunction(), checkForOverlapping(), checkIISlocal(), checkKnapsack(), checkOverloadViaThetaTree(), checkRikun(), checkSolution(), checkSwitchNonoverlappingSOS1Methods(), checkVarbound(), checkVariable(), chgCoeffWithBound(), chgProbingBound(), chgQuadCoeffWithBound(), chooseCoefVar(), chooseDoubleVar(), chooseFracVar(), chooseGuidedVar(), choosePscostVar(), chooseVeclenVar(), collectBranchingCands(), collectCliqueData(), collectDataTTEF(), collectIntVars(), collectSolution(), componentSetupWorkingSol(), computeAlternativeBounds(), computeCut(), computeEnergyContribution(), computeImpliedEst(), computeImpliedLct(), computeInteriorPoint(), computeMinDistance(), computeReferencePointGauge(), computeReferencePointProjection(), computeSymmetryGroup(), computeViolation(), conflictAnalyzeLP(), conflictAnalyzeRemainingBdchgs(), consCheckRedundancy(), consdataCheckNonbinvar(), consdataComputePseudoActivity(), consdataCreate(), consdataGetActivityResiduals(), consdataPrint(), consdataRecomputeMaxActivityDelta(), consdataRecomputeMinactivity(), consdataUpdateLinearActivity(), consFixInteger(), constraintNonOverlappingGraph(), coretimesUpdateLb(), coretimesUpdateUb(), countSparseSol(), createCoreProfile(), createCoverCuts(), createCoverCutsTimepoint(), createCoveringProblem(), createSelectedSortedEventpointsSol(), createSortedEventpoints(), createSubscip(), CUTOFF_CONSTRAINT(), cutsRoundMIR(), cutsRoundStrongCG(), cutTightenCoefs(), cutTightenCoefsQuad(), determineBestBounds(), doSeachEcAggr(), doSolveSubMIP(), dropEvent(), dryBranch(), enforceCardinality(), enforceConflictgraph(), enforceIndicators(), evalCorner(), evaluateGauge(), execRelpscost(), extractCycle(), extractGates(), filterCands(), filterExistingLP(), findBestUb(), findComponents(), fixAlmostFixedX(), fixAndPropagate(), fixBounds(), fixIntegerVariableUb(), fixInterdiction(), fixVariable(), fixVariables(), fixVariableZero(), fixVariableZeroNode(), generate1ConvexIndefiniteUnderestimator(), generate1ConvexIndefiniteUnderestimatorAtBoundary(), generate1ConvexIndefiniteUnderestimatorInTheInteriorPatternA(), generate1ConvexIndefiniteUnderestimatorInTheInteriorPatternB(), generateAverageNBRay(), generateBoundInequalityFromSOS1Cons(), generateBoundInequalityFromSOS1Nodes(), generateCloseCutPoint(), generateConvexConcaveUnderestimator(), generateCut(), generateCutFactorable(), generateCutLTI(), generateCutNonConvex(), generateCutSol(), generateEstimatingHyperplane(), generateLinearizationCut(), generateOrthogonal_lx_ly_Underestimator(), generateOrthogonal_lx_uy_Underestimator(), generateRowSOS2(), generateSecantCut(), generateUnderestimatorParallelYFacets(), generateZerohalfCut(), getBoundConsFromVertices(), getClosestVlb(), getDiveBdChgsSOS1conflictgraph(), getDiveBdChgsSOS1constraints(), getFixingValue(), getGenVBoundsMinActivity(), getGenVBoundsMinActivityConflict(), getImplVarRedcost(), getIneqViol(), getMaxactImplicObjchg(), getNLPFracVars(), getRandomVariable(), getRelDistance(), getValueScore(), handle1Cycle(), handleNewVariableSOS1(), handleNewVariableSOS2(), heurdataUpdateCurrentBounds(), heurExec(), impliesVlbPrecedenceCondition(), improvePoint(), inferboundsEdgeFinding(), inferVariableZero(), initConflictgraph(), initLP(), initProblem(), initSepaData(), isConvexLocal(), isPossibleToComputeCut(), isPseudocostUpdateValid(), isViolatedSOS1(), liftCliqueVariables(), lockVariableCardinality(), lockVariableSOS2(), lpUpdateVarColumn(), lpUpdateVarColumnProved(), lpUpdateVarLoose(), lpUpdateVarLooseProved(), makeSOS1conflictgraphFeasible(), makeSOS1constraintsFeasible(), nlpCalcFracVars(), nlpFlushVarAdditions(), nlpSolve(), nlpUpdateVarBounds(), nlrowCalcActivityBounds(), nodeGetSolvalBinaryBigMSOS1(), nodeGetSolvalVarboundUbSOS1(), performBranching(), performDualfix(), performFixing(), performOrbitalFixing(), performRandRounding(), performStrongbranchSOS1(), performStrongbranchWithPropagation(), preprocessCliques(), presolRoundCardinality(), presolRoundConsSOS1(), presolRoundIndicator(), presolRoundSOS2(), presolRoundVarsSOS1(), presolveConsLct(), presolveFindDuplicates(), presolvePropagateCons(), presolveUpgrade(), printBoundSection(), processBinvarFixings(), processFixings(), processIntegerBoundChg(), processWatchedVars(), projectVbd(), propagateBoundsBilinearTerm(), propagateBoundsCons(), propagateBoundsGetQuadActivity(), propagateBoundsQuadVar(), propagateBoundsTightenVar(), propagateBoundsTightenVarUb(), propagateCons(), propagateCutoffboundBinvars(), propagateCutoffboundVar(), propagateFullOrbitope(), propagateLbTTEF(), propagatePackingPartitioningCons(), propagateRedcostBinvar(), propagateRedcostVar(), propagateRootRedcostBinvar(), propagateTimetable(), propagateTTEF(), propagateUbTTEF(), propagateVbounds(), propCardinality(), propConsSOS1(), propIndicator(), proposeBranchingPoint(), propSOS2(), propVariableNonzero(), propVariables(), recomputeLooseObjectiveValue(), recomputePseudoObjectiveValue(), registerBranchingCandidates(), registerBranchingCandidatesCentrality(), registerBranchingCandidatesGap(), registerBranchingCandidatesViolation(), registerBranchingVariables(), registerLargeRelaxValueVariableForBranching(), removeFixedBinvars(), removeZeros(), removeZerosQuad(), reoptCheckLocalRestart(), reoptSimilarity(), replaceByLinearConstraints(), replaceViolatedByLinearConstraints(), resolveGenVBoundPropagation(), retransformVariable(), rowCalculateGauss(), rowprepCleanupImproveCoefrange(), rowprepCleanupIntegralCoefs(), sampleRandomPoints(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSENFORELAX(), SCIP_DECL_CONSGETDIVEBDCHGS(), SCIP_DECL_CONSLOCK(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_CONSTRANS(), SCIP_DECL_EVENTEXEC(), SCIP_DECL_EXPRGRAPHVARADDED(), SCIP_DECL_HEUREXEC(), SCIP_DECL_PARAMCHGD(), SCIP_DECL_RELAXEXEC(), SCIP_DECL_SORTINDCOMP(), SCIPaddConflictBinvar(), SCIPaggrRowCancelVarWithBound(), SCIPanalyzeDeductionsProbing(), SCIPapplyLockFixings(), SCIPapplyProbingVar(), SCIPbranchcandAddExternCand(), SCIPbranchcandGetPseudoCands(), SCIPbranchcandUpdateVar(), SCIPbranchExecExtern(), SCIPbranchExecLP(), SCIPbranchExecPseudo(), SCIPbranchGetBranchingPoint(), SCIPbranchVar(), SCIPbranchVarVal(), SCIPbranchVarValNary(), SCIPchgVarUb(), SCIPchgVarUbGlobal(), SCIPchgVarUbNode(), SCIPchgVarUbProbing(), SCIPcolCreate(), SCIPcomputeConvexEnvelopeFacet(), SCIPcomputeVarUbLocal(), SCIPconflictAnalyzePseudo(), SCIPconflictAnalyzeStrongbranch(), SCIPcreateNlpiProb(), SCIPcreateWorstCaseProfile(), SCIPcutGenerationHeuristicCMIR(), SCIPcutsTightenCoefficients(), SCIPevalExprtreeLocalBounds(), SCIPfixVar(), SCIPfixVarProbing(), SCIPgetVarStrongbranchWithPropagation(), SCIPgetVarUbAtIndex(), SCIPgetVarWasFixedAtIndex(), SCIPinferBinvarCons(), SCIPinferBinvarProp(), SCIPinferVarLbCons(), SCIPinferVarLbProp(), SCIPinferVarUbCons(), SCIPinferVarUbProp(), SCIPisLinearLocalQuadratic(), SCIPlpEndDive(), SCIPlpRecomputeLocalAndGlobalPseudoObjval(), SCIPlpStartDive(), SCIPlpUpdateVarLb(), SCIPlpUpdateVarObj(), SCIPnlpEndDive(), SCIPnodeAddBoundinfer(), SCIPnodeAddHoleinfer(), SCIPnodePropagateImplics(), SCIPperformGenericDivingAlgorithm(), SCIPpricestoreAddBdviolvar(), SCIPpricestoreAddProbVars(), SCIPpricestoreAddVar(), SCIPpricestoreResetBounds(), SCIPprobUpdateBestRootSol(), SCIPreoptnodeAddCons(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), SCIPseparateRelaxedKnapsack(), SCIPsolGetRayVal(), SCIPsolGetVal(), SCIPtightenVarUb(), SCIPtightenVarUbGlobal(), SCIPtreeBranchVar(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPupdateNlpiProb(), SCIPvarAddHoleLocal(), SCIPvarChgUbGlobal(), SCIPvarCopy(), SCIPvarGetImplRedcost(), SCIPvarGetLbLocal(), SCIPvarGetMultaggrLbLocal(), SCIPvarGetMultaggrUbLocal(), SCIPvarGetNLPSol_rec(), SCIPvarGetRelaxSol(), SCIPvarGetUbAtIndex(), SCIPvarPrint(), SCIPvarWasFixedAtIndex(), SCIPvisualCutoffNode(), SCIPvisualNewChild(), SCIPvisualSolvedNode(), SCIPvisualUpdateChild(), SCIPwriteGms(), SCIPwriteLp(), SCIPwritePip(), selectBranchVar(), selectNextDiving(), separateCons(), separateCuts(), separateIndicators(), separatePerspective(), sepastoreApplyLb(), sepastoreApplyUb(), sepastoreIsBdchgApplicable(), setupAggregationData(), setupAndSolveFiniteSolSubscip(), setupAndSolveSubscipRapidlearning(), solveAndEvalSubscip(), solveIndependentCons(), solveNlp(), solveNLP(), solveNode(), sortBounds(), strenghtenOrbitopeConstraint(), termIsConstant(), tightenBounds(), tightenCoefs(), tightenDualproof(), tightenedIntvar(), tightenLbTTEF(), tightenSingleVar(), tightenVariables(), tightenVarLb(), tightenVarsBoundsSOS1(), tightenVarUb(), transformNonIntegralRow(), transformVariable(), treeApplyPendingBdchgs(), tryOneOpt(), trySolCandidate(), unlockVariableCardinality(), unlockVariableSOS2(), updateBestCandidate(), updateBilinearRelaxation(), updateFirstRow(), updateImplicationGraphSOS1(), updatePseudocost(), updateVariableRounding(), updateWeightsTCliquegraph(), varIsFixed(), varIsUnfixedLocal(), varProcessAddHoleLocal(), varProcessBoundChanges(), writeFzn(), writeOpbFixedVars(), and writeOpbRelevantAnds().
SCIP_HOLELIST* SCIPvarGetHolelistLocal | ( | SCIP_VAR * | var | ) |
gets the current hole list of an active variable
var | problem variable |
Definition at line 17352 of file var.c.
References SCIP_Dom::holelist, SCIP_Var::locdom, SCIP_Real, and SCIPvarGetBestBoundLocal().
Referenced by SCIPvarCopy(), SCIPvarGetUbLocal(), and SCIPvarPrint().
gets best local bound of variable with respect to the objective function
var | problem variable |
Definition at line 17362 of file var.c.
References SCIP_Dom::lb, SCIP_Var::locdom, SCIP_Var::obj, SCIP_Real, SCIPvarGetWorstBoundLocal(), and SCIP_Dom::ub.
Referenced by addBoundViolated(), nlpAddVars(), SCIP_DECL_CONSINITLP(), SCIPnlpGetPseudoObjval(), SCIPnlrowRecalcPseudoActivity(), SCIPvarGetHolelistLocal(), SCIPvarGetLPSol_rec(), SCIPvarGetPseudoSol(), and SCIPvarGetPseudoSol_rec().
gets worst local bound of variable with respect to the objective function
var | problem variable |
Definition at line 17375 of file var.c.
References SCIP_Dom::lb, SCIP_Var::locdom, SCIP_Var::obj, SCIPvarGetBestBoundType(), and SCIP_Dom::ub.
Referenced by SCIP_DECL_CONSINITLP(), SCIPtreeBranchVar(), SCIPtreeBranchVarNary(), and SCIPvarGetBestBoundLocal().
SCIP_BOUNDTYPE SCIPvarGetBestBoundType | ( | SCIP_VAR * | var | ) |
gets type (lower or upper) of best bound of variable with respect to the objective function
var | problem variable |
Definition at line 17388 of file var.c.
References SCIP_Var::obj, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, and SCIPvarGetWorstBoundType().
Referenced by adjustCutoffbound(), collectMinactImplicVars(), collectMinactObjchg(), collectMinactVar(), consdataComputePseudoActivity(), getMinactObjchg(), objimplicsCreate(), SCIP_DECL_CONSINITLP(), SCIPlpGetModifiedProvedPseudoObjval(), SCIPlpGetModifiedPseudoObjval(), and SCIPvarGetWorstBoundLocal().
SCIP_BOUNDTYPE SCIPvarGetWorstBoundType | ( | SCIP_VAR * | var | ) |
gets type (lower or upper) of worst bound of variable with respect to the objective function
var | problem variable |
Definition at line 17401 of file var.c.
References SCIP_Var::obj, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_Real, and SCIPvarGetLbLazy().
Referenced by getMaxactImplicObjchg(), getMaxactObjchg(), and SCIPvarGetBestBoundType().
gets lazy lower bound of variable
gets lazy lower bound of variable, returns -infinity if the variable has no lazy lower bound
var | problem variable |
Definition at line 17414 of file var.c.
References SCIP_Var::lazylb, SCIP_Real, and SCIPvarGetUbLazy().
Referenced by SCIPcolCreate(), SCIPvarGetWorstBoundType(), and SCIPvarPrint().
gets lazy upper bound of variable
gets lazy upper bound of variable, returns infinity if the variable has no lazy upper bound
var | problem variable |
Definition at line 17424 of file var.c.
References SCIP_Var::lazyub, SCIP_Real, and SCIPvarGetBranchFactor().
Referenced by SCIPcolCreate(), SCIPvarGetLbLazy(), and SCIPvarPrint().
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
var | problem variable |
Definition at line 17436 of file var.c.
References SCIP_Var::branchfactor, and SCIPvarGetBranchPriority().
Referenced by SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_BRANCHEXECLP(), SCIPaddVarBranchFactor(), SCIPbranchExecExtern(), SCIPbranchExecLP(), SCIPbranchExecPseudo(), SCIPbranchGetScore(), SCIPprintBranchingStatistics(), SCIPscaleVarBranchFactor(), SCIPvarGetUbLazy(), and updateBestCandidate().
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
var | problem variable |
Definition at line 17448 of file var.c.
References SCIP_Var::branchpriority, and SCIPvarGetBranchDirection().
Referenced by branchcandCalcLPCands(), branchcandInsertPseudoCand(), branchcandRemovePseudoCand(), branchcandSortPseudoCands(), nlpCalcFracVars(), performBranching(), SCIP_DECL_DIALOGEXEC(), SCIPaddVarBranchPriority(), SCIPbranchcandAddExternCand(), SCIPbranchcandContainsExternCand(), SCIPbranchcandUpdateVarBranchPriority(), SCIPbranchExecExtern(), SCIPbranchExecLP(), SCIPbranchExecPseudo(), SCIPprintBranchingStatistics(), SCIPtransformMinUC(), SCIPtreeBranchVar(), SCIPupdateVarBranchPriority(), and SCIPvarGetBranchFactor().
SCIP_BRANCHDIR SCIPvarGetBranchDirection | ( | SCIP_VAR * | var | ) |
gets the preferred branch direction of the variable (downwards, upwards, or auto)
var | problem variable |
Definition at line 17458 of file var.c.
References SCIP_Var::branchdirection, and SCIPvarGetNVlbs().
Referenced by SCIP_DECL_DIALOGEXEC(), SCIPtreeCalcNodeselPriority(), and SCIPvarGetBranchPriority().
int SCIPvarGetNVlbs | ( | SCIP_VAR * | var | ) |
gets number of variable lower bounds x >= b_i*z_i + d_i of given variable x
var | problem variable |
Definition at line 17468 of file var.c.
References SCIPvarGetVlbVars(), SCIPvboundsGetNVbds(), and SCIP_Var::vlbs.
Referenced by collectNonBinaryVBoundData(), computeImpliedEst(), constructSNFRelaxation(), cutsRoundMIR(), cutsTransformMIR(), cutsTransformStrongCG(), detectImpliedBounds(), determineBestBounds(), dfs(), getClosestVlb(), initData(), projectVbd(), propagateVarbounds(), SCIPseparateRelaxedKnapsack(), SCIPvarGetBranchDirection(), SCIPvarGetClosestVlb(), SCIPvisualizeConsCumulative(), and strengthenVarbounds().
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())
var | problem variable |
Definition at line 17480 of file var.c.
References SCIP_Real, SCIPvarGetVlbCoefs(), SCIPvboundsGetVars(), and SCIP_Var::vlbs.
Referenced by collectNonBinaryVBoundData(), computeImpliedEst(), constructSNFRelaxation(), cutsRoundMIR(), cutsTransformMIR(), cutsTransformStrongCG(), determineBestBounds(), determineBoundForSNF(), dfs(), findBestLb(), getClosestVlb(), initData(), projectVbd(), propagateVarbounds(), SCIPcutGenerationHeuristicCMIR(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVlb(), SCIPvarGetNVlbs(), SCIPvisualizeConsCumulative(), separateCuts(), strengthenVarbounds(), and transformNonIntegralRow().
gets array with bounding coefficients b_i in variable lower bounds x >= b_i*z_i + d_i of given variable x
var | problem variable |
Definition at line 17490 of file var.c.
References SCIP_Real, SCIPvarGetVlbConstants(), SCIPvboundsGetCoefs(), and SCIP_Var::vlbs.
Referenced by collectNonBinaryVBoundData(), computeImpliedEst(), constructSNFRelaxation(), cutsRoundMIR(), cutsTransformMIR(), cutsTransformStrongCG(), determineBestBounds(), dfs(), getClosestVlb(), initData(), projectVbd(), propagateVarbounds(), SCIPcutGenerationHeuristicCMIR(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVlb(), SCIPvarGetVlbVars(), separateCuts(), strengthenVarbounds(), and transformNonIntegralRow().
gets array with bounding constants d_i in variable lower bounds x >= b_i*z_i + d_i of given variable x
var | problem variable |
Definition at line 17500 of file var.c.
References SCIPvarGetNVubs(), SCIPvboundsGetConstants(), and SCIP_Var::vlbs.
Referenced by collectNonBinaryVBoundData(), computeImpliedEst(), constructSNFRelaxation(), cutsRoundMIR(), cutsTransformMIR(), cutsTransformStrongCG(), determineBestBounds(), getClosestVlb(), initData(), projectVbd(), propagateVarbounds(), SCIPcutGenerationHeuristicCMIR(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVlb(), SCIPvarGetVlbCoefs(), strengthenVarbounds(), and transformNonIntegralRow().
int SCIPvarGetNVubs | ( | SCIP_VAR * | var | ) |
gets number of variable upper bounds x <= b_i*z_i + d_i of given variable x
var | problem variable |
Definition at line 17510 of file var.c.
References SCIPvarGetVubVars(), SCIPvboundsGetNVbds(), and SCIP_Var::vubs.
Referenced by collectNonBinaryVBoundData(), computeImpliedLct(), constructSNFRelaxation(), cutsRoundMIR(), cutsTransformMIR(), cutsTransformStrongCG(), detectImpliedBounds(), determineBestBounds(), dfs(), getClosestVub(), initData(), projectVbd(), propagateVarbounds(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVub(), SCIPvarGetVlbConstants(), and SCIPvisualizeConsCumulative().
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())
var | problem variable |
Definition at line 17522 of file var.c.
References SCIP_Real, SCIPvarGetVubCoefs(), SCIPvboundsGetVars(), and SCIP_Var::vubs.
Referenced by collectNonBinaryVBoundData(), computeImpliedLct(), constructSNFRelaxation(), cutsRoundMIR(), cutsTransformMIR(), cutsTransformStrongCG(), determineBestBounds(), determineBoundForSNF(), dfs(), findBestUb(), getClosestVub(), initData(), projectVbd(), propagateVarbounds(), SCIPcutGenerationHeuristicCMIR(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVub(), SCIPvarGetNVubs(), SCIPvisualizeConsCumulative(), separateCuts(), and transformNonIntegralRow().
gets array with bounding coefficients b_i in variable upper bounds x <= b_i*z_i + d_i of given variable x
var | problem variable |
Definition at line 17532 of file var.c.
References SCIP_Real, SCIPvarGetVubConstants(), SCIPvboundsGetCoefs(), and SCIP_Var::vubs.
Referenced by collectNonBinaryVBoundData(), computeImpliedLct(), constructSNFRelaxation(), cutsRoundMIR(), cutsTransformMIR(), cutsTransformStrongCG(), determineBestBounds(), dfs(), getClosestVub(), initData(), projectVbd(), propagateVarbounds(), SCIPcutGenerationHeuristicCMIR(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVub(), SCIPvarGetVubVars(), separateCuts(), and transformNonIntegralRow().
gets array with bounding constants d_i in variable upper bounds x <= b_i*z_i + d_i of given variable x
var | problem variable |
Definition at line 17542 of file var.c.
References SCIPvarGetNImpls(), SCIPvboundsGetConstants(), and SCIP_Var::vubs.
Referenced by collectNonBinaryVBoundData(), computeImpliedLct(), constructSNFRelaxation(), cutsRoundMIR(), cutsTransformMIR(), cutsTransformStrongCG(), determineBestBounds(), getClosestVub(), initData(), projectVbd(), propagateVarbounds(), SCIPcutGenerationHeuristicCMIR(), SCIPseparateRelaxedKnapsack(), SCIPvarGetClosestVub(), SCIPvarGetVubCoefs(), and transformNonIntegralRow().
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
var | active problem variable |
varfixing | FALSE for implications for x == 0, TRUE for x == 1 |
Definition at line 17554 of file var.c.
References SCIP_Var::implics, SCIPimplicsGetNImpls(), SCIPvarGetImplVars(), and SCIPvarIsActive().
Referenced by catchEvents(), collectNonBinaryImplicationData(), dfs(), extractCycle(), getImpliedBounds(), getMaxactImplicObjchg(), presolveDisaggregate(), propagateVbounds(), removeConstraintsDueToNegCliques(), SCIP_DECL_PRESOLEXEC(), SCIPapplyProbingVar(), SCIPcopyImplicationsCliques(), SCIPnodePropagateImplics(), SCIPvarGetAvgInferences(), SCIPvarGetAvgInferencesCurrentRun(), SCIPvarGetVubConstants(), separateCuts(), and sortVariables().
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())
var | active problem variable |
varfixing | FALSE for implications for x == 0, TRUE for x == 1 |
Definition at line 17571 of file var.c.
References SCIP_Var::implics, SCIPimplicsGetVars(), SCIPvarGetImplTypes(), and SCIPvarIsActive().
Referenced by collectNonBinaryImplicationData(), dfs(), extractCycle(), getImpliedBounds(), getMaxactImplicObjchg(), propagateVbounds(), SCIP_DECL_PRESOLEXEC(), SCIPcopyImplicationsCliques(), SCIPnodePropagateImplics(), SCIPvarGetNImpls(), and separateCuts().
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
var | active problem variable |
varfixing | FALSE for implications for x == 0, TRUE for x == 1 |
Definition at line 17586 of file var.c.
References SCIP_Var::implics, SCIP_Real, SCIPimplicsGetTypes(), SCIPvarGetImplBounds(), and SCIPvarIsActive().
Referenced by collectNonBinaryImplicationData(), dfs(), extractCycle(), getImpliedBounds(), getMaxactImplicObjchg(), propagateVbounds(), SCIP_DECL_PRESOLEXEC(), SCIPcopyImplicationsCliques(), SCIPnodePropagateImplics(), SCIPvarGetImplVars(), and separateCuts().
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
var | active problem variable |
varfixing | FALSE for implications for x == 0, TRUE for x == 1 |
Definition at line 17600 of file var.c.
References SCIP_Var::implics, SCIPimplicsGetBounds(), SCIPvarGetImplIds(), and SCIPvarIsActive().
Referenced by collectNonBinaryImplicationData(), extractCycle(), getImpliedBounds(), getMaxactImplicObjchg(), propagateVbounds(), SCIP_DECL_PRESOLEXEC(), SCIPcopyImplicationsCliques(), SCIPnodePropagateImplics(), SCIPvarGetImplTypes(), and separateCuts().
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.
var | active problem variable |
varfixing | FALSE for implications for x == 0, TRUE for x == 1 |
Definition at line 17616 of file var.c.
References SCIP_Var::implics, SCIPimplicsGetIds(), SCIPvarGetNCliques(), and SCIPvarIsActive().
Referenced by dfs(), propagateVbounds(), and SCIPvarGetImplBounds().
gets number of cliques, the active variable is contained in
var | active problem variable |
varfixing | FALSE for cliques containing x == 0, TRUE for x == 1 |
Definition at line 17628 of file var.c.
References SCIP_Var::cliquelist, SCIPcliquelistGetNCliques(), and SCIPvarGetCliques().
Referenced by addNextLevelCliques(), calcCliquePartitionGreedy(), catchEvents(), cliquesSearchClique(), collectBinaryCliqueData(), collectMinactImplicVars(), collectMinactVar(), detectImpliedBounds(), dfs(), extractCycle(), getMaxactImplicObjchg(), GUBsetCalcCliquePartition(), insertSortedRootNeighbors(), isNeighbor(), propagateVbounds(), removeConstraintsDueToNegCliques(), SCIPapplyProbingVar(), SCIPcliquelistCheck(), SCIPcliquelistRemoveFromCliques(), SCIPhaveVarsCommonClique(), SCIPnodePropagateImplics(), SCIPvarGetAvgInferences(), SCIPvarGetAvgInferencesCurrentRun(), SCIPvarGetImplIds(), SCIPvarGetImplRedcost(), separateGLS(), separateHeur(), sortVariables(), tarjan(), tcliquegraphAddCliqueVars(), and tcliquegraphAddNode().
SCIP_CLIQUE** SCIPvarGetCliques | ( | SCIP_VAR * | var, |
SCIP_Bool | varfixing | ||
) |
gets array of cliques, the active variable is contained in
var | active problem variable |
varfixing | FALSE for cliques containing x == 0, TRUE for x == 1 |
Definition at line 17639 of file var.c.
References SCIP_Var::cliquelist, SCIP_Real, SCIPcliquelistGetCliques(), and SCIPvarGetLPSol().
Referenced by addGLSCliques(), addNextLevelCliques(), cliquesSearchClique(), collectBinaryCliqueData(), collectMinactImplicVars(), dfs(), extractCycle(), getMaxactImplicObjchg(), insertSortedRootNeighbors(), isNeighbor(), propagateVbounds(), SCIPcliquelistCheck(), SCIPcliquelistRemoveFromCliques(), SCIPnodePropagateImplics(), SCIPvarGetImplRedcost(), SCIPvarGetNCliques(), tarjan(), and tcliquegraphAddNode().
gets primal LP solution value of variable
var | problem variable |
Definition at line 17650 of file var.c.
References SCIP_Var::col, SCIP_Var::data, SCIP_Real, SCIP_VARSTATUS_COLUMN, SCIPcolGetPrimsol(), SCIPvarGetLPSol_rec(), SCIPvarGetNLPSol(), and SCIPvarGetStatus().
Referenced by branch(), changeSubvariableObjective(), computeFixingrate(), computeIntegerVariableBounds(), computeIntegerVariableBoundsDins(), createCGCuts(), cutsTransformMIR(), determineBestBounds(), determineFixings(), determineVariableFixings(), filterExistingLP(), generateAverageNBRay(), generateCloseCutPoint(), generateDifferenceRay(), generateStartingPoint(), getFixingValue(), getVariableRedcostScore(), handle1Cycle(), handleCycle(), isPseudocostUpdateValid(), nodepartitionIsConnected(), restrictToBinaryBounds(), SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_HEUREXEC(), SCIPgetDualSolVal(), SCIPgetVarSols(), SCIPnodeAddBoundinfer(), SCIPselectVarPseudoStrongBranching(), SCIPvarGetCliques(), SCIPvarGetClosestVlb(), SCIPvarGetClosestVub(), SCIPvarGetLPSol_rec(), SCIPvarGetSol(), selectVarMultAggrBranching(), solCutIsViolated(), solGetArrayVal(), solUnlinkVar(), solveBilinearLP(), sortBounds(), and updatePseudocost().
gets primal NLP solution value of variable
var | problem variable |
Definition at line 17663 of file var.c.
References SCIP_Var::nlpsol, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_LOOSE, SCIPvarGetBdchgInfoLb(), SCIPvarGetNLPSol_rec(), and SCIPvarGetStatus().
Referenced by computeFixingrate(), createSolFromNLP(), getFixingValue(), maximalslack(), nlpCalcFracVars(), nlpDelVarPos(), nlpUpdateVarBounds(), restrictToBinaryBounds(), SCIPnlrowRecalcNLPActivity(), SCIProwGetNLPFeasibility(), SCIPsolLinkNLPSol(), SCIPvarGetLPSol(), SCIPvarGetNLPSol_rec(), separateCuts(), solGetArrayVal(), and solUnlinkVar().
SCIP_BDCHGINFO* SCIPvarGetBdchgInfoLb | ( | SCIP_VAR * | var, |
int | pos | ||
) |
return lower bound change info at requested position
var | problem variable |
pos | requested position |
Definition at line 17676 of file var.c.
References SCIP_Var::lbchginfos, and SCIPvarGetNBdchgInfosLb().
Referenced by SCIPconflictAddRelaxedBound(), SCIPvarGetNLPSol(), and updatePseudocost().
int SCIPvarGetNBdchgInfosLb | ( | SCIP_VAR * | var | ) |
gets the number of lower bound change info array
var | problem variable |
Definition at line 17688 of file var.c.
References SCIP_Var::nlbchginfos, and SCIPvarGetBdchgInfoUb().
Referenced by SCIPvarGetBdchgInfoLb(), and updatePseudocost().
SCIP_BDCHGINFO* SCIPvarGetBdchgInfoUb | ( | SCIP_VAR * | var, |
int | pos | ||
) |
return upper bound change info at requested position
var | problem variable |
pos | requested position |
Definition at line 17696 of file var.c.
References SCIPvarGetNBdchgInfosUb(), and SCIP_Var::ubchginfos.
Referenced by SCIPconflictAddRelaxedBound(), SCIPvarGetNBdchgInfosLb(), and updatePseudocost().
int SCIPvarGetNBdchgInfosUb | ( | SCIP_VAR * | var | ) |
gets the number upper bound change info array
var | problem variable |
Definition at line 17708 of file var.c.
References SCIP_Var::nubchginfos, and SCIPvarGetValuehistory().
Referenced by SCIPvarGetBdchgInfoUb(), and updatePseudocost().
SCIP_VALUEHISTORY* SCIPvarGetValuehistory | ( | SCIP_VAR * | var | ) |
returns the value based history for the variable
var | problem variable |
Definition at line 17718 of file var.c.
References SCIP_Real, SCIPvarGetPseudoSol(), and SCIP_Var::valuehistory.
Referenced by getValueScore(), and SCIPvarGetNBdchgInfosUb().
gets primal LP solution value of variable
var | problem variable |
Definition at line 12479 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::donotmultaggr, SCIP_Dom::lb, SCIP_Var::locdom, SCIP_Var::multaggr, SCIP_Var::negate, SCIP_Var::negatedvar, 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, SCIPvarGetBestBoundLocal(), SCIPvarGetLPSol(), SCIPvarGetNLPSol_rec(), SCIPvarGetStatus(), SCIP_Original::transvar, SCIP_Dom::ub, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by SCIPvarGetLPSol(), and SCIPvarGetUbLP().
gets primal NLP solution value of variable
var | problem variable |
Definition at line 12551 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, 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(), SCIPvarGetPseudoSol_rec(), SCIPvarGetStatus(), SCIPvarGetUbGlobal(), SCIPvarGetUbLocal(), SCIP_Original::transvar, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by SCIPvarGetLPSol_rec(), and SCIPvarGetNLPSol().
gets pseudo solution value of variable at current node
gets pseudo solution value of variable
var | problem variable |
Definition at line 17728 of file var.c.
References SCIP_Real, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_LOOSE, SCIPvarGetBestBoundLocal(), SCIPvarGetPseudoSol_rec(), SCIPvarGetStatus(), and SCIPvarGetVSIDS().
Referenced by SCIPgetVarSols(), SCIPprobPrintPseudoSol(), SCIPvarGetPseudoSol_rec(), SCIPvarGetSol(), SCIPvarGetValuehistory(), solGetArrayVal(), and solUnlinkVar().
gets current LP or pseudo solution value of variable
var | problem variable |
getlpval | should the LP solution value be returned? |
Definition at line 12665 of file var.c.
References SCIPvarGetLPSol(), SCIPvarGetPseudoSol(), and SCIPvarStoreRootSol().
Referenced by SCIP_DECL_BRANCHEXECLP(), SCIPbranchGetBranchingPoint(), SCIPgetSolVal(), SCIPgetVarSol(), SCIPprobUpdateBestRootSol(), SCIPtreeBranchVar(), SCIPtreeBranchVarHole(), SCIPtreeBranchVarNary(), SCIPtreeCalcChildEstimate(), SCIPtreeCalcNodeselPriority(), SCIPvarGetPseudoSol_rec(), and SCIPvarStoreRootSol().
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
var | problem variable |
Definition at line 12758 of file var.c.
References SCIP_Var::aggregate, SCIP_Aggregate::constant, SCIP_Multaggr::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::donotmultaggr, getImplVarRedcost(), SCIP_Dom::lb, SCIP_Var::locdom, SCIP_Var::multaggr, SCIP_Var::negate, SCIP_Var::negatedvar, 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, 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_HEUREXEC(), SCIPstatComputeRootLPBestEstimate(), SCIPstatUpdateVarRootLPBestEstimate(), SCIPtreeBranchVar(), SCIPtreeCalcNodeselPriority(), SCIPvarUpdateBestRootSol(), and SCIPvarUpdatePseudocost().
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
var | problem variable |
Definition at line 13122 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::donotmultaggr, SCIP_Dom::lb, SCIP_Var::locdom, SCIP_Var::multaggr, SCIP_Var::negate, SCIP_Var::negatedvar, 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, SCIPvarGetBestRootRedcost(), SCIPvarGetStatus(), SCIP_Original::transvar, SCIP_Dom::ub, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by getVariableRedcostScore(), propagateBinaryBestRootRedcost(), propagateRootRedcostBinvar(), propagateRootRedcostVar(), and SCIPvarGetImplRedcost().
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
var | problem variable |
Definition at line 13188 of file var.c.
References SCIP_Var::bestrootredcost, SCIP_Var::data, SCIP_Var::original, 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, SCIPvarGetBestRootLPObjval(), SCIPvarGetStatus(), and SCIP_Original::transvar.
Referenced by countNonZeroRootRedcostVars(), getVariableRedcostScore(), propagateBinaryBestRootRedcost(), propagateRootRedcostBinvar(), propagateRootRedcostVar(), propdataInit(), and SCIPvarGetBestRootSol().
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
var | problem variable |
Definition at line 13222 of file var.c.
References SCIP_Var::bestrootlpobjval, SCIP_Var::data, 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, SCIPvarGetStatus(), SCIPvarSetBestRootSol(), and SCIP_Original::transvar.
Referenced by propagateBinaryBestRootRedcost(), propagateRootRedcostBinvar(), propagateRootRedcostVar(), and SCIPvarGetBestRootRedcost().
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
var | problem variable |
rootsol | root solution value |
rootredcost | root reduced cost |
rootlpobjval | objective value of the root LP |
Definition at line 13253 of file var.c.
References SCIP_Var::bestrootlpobjval, SCIP_Var::bestrootredcost, SCIP_Var::bestrootsol, and SCIPvarSetRelaxSol().
Referenced by SCIPprobExitSolve(), and SCIPvarGetBestRootLPObjval().
returns a weighted average solution value of the variable in all feasible primal solutions found so far
var | problem variable |
Definition at line 13468 of file var.c.
References SCIP_Var::aggregate, SCIP_Aggregate::constant, SCIP_Multaggr::constant, SCIP_Negate::constant, SCIP_Var::data, SCIP_Var::donotmultaggr, SCIP_Var::glbdom, SCIP_Dom::lb, SCIP_Var::locdom, MAX, SCIP_Var::multaggr, SCIP_Var::negate, SCIP_Var::negatedvar, 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, SCIPvarGetClosestVlb(), SCIPvarGetStatus(), SCIP_Original::transvar, SCIP_Dom::ub, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by SCIPvarSetNLPSol(), and separateAlternativeProofs().
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
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 15814 of file var.c.
References SCIP_BdChgInfo::bdchgidx, SCIP_BdChgInfo::boundtype, SCIP_Var::lbchginfos, SCIP_BdChgInfo::newbound, SCIP_Var::nlbchginfos, SCIP_BdChgInfo::oldbound, SCIP_BdChgInfo::pos, SCIP_BdChgInfo::redundant, SCIP_BOUNDTYPE_LOWER, SCIPbdchgidxIsEarlier(), SCIPvarGetUbchgInfo(), SCIPvarIsActive(), and SCIP_BdChgInfo::var.
Referenced by SCIPbdchginfoFree(), SCIPgetVarLbAtIndex(), SCIPvarGetBdchgInfo(), and SCIPvarGetLbAtIndex().
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
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 15870 of file var.c.
References SCIP_BdChgInfo::bdchgidx, SCIP_BdChgInfo::boundtype, SCIP_BdChgInfo::newbound, SCIP_Var::nubchginfos, SCIP_BdChgInfo::oldbound, SCIP_BdChgInfo::pos, SCIP_BdChgInfo::redundant, SCIP_BOUNDTYPE_UPPER, SCIPbdchgidxIsEarlier(), SCIPvarGetBdchgInfo(), SCIPvarIsActive(), SCIP_Var::ubchginfos, and SCIP_BdChgInfo::var.
Referenced by SCIPgetVarUbAtIndex(), SCIPvarGetBdchgInfo(), SCIPvarGetLbchgInfo(), and SCIPvarGetUbAtIndex().
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
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 15926 of file var.c.
References SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_Real, SCIPvarGetLbAtIndex(), SCIPvarGetLbchgInfo(), and SCIPvarGetUbchgInfo().
Referenced by SCIPconflictAddBound(), SCIPconflictAddRelaxedBound(), and SCIPvarGetUbchgInfo().
SCIP_Real SCIPvarGetLbAtIndex | ( | 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
returns lower bound of variable directly before or after the bound change given by the bound change index was applied
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 15947 of file 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, 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, SCIPbdchginfoGetNewbound(), SCIPerrorMessage, SCIPvarGetLbchgInfo(), SCIPvarGetLbLocal(), SCIPvarGetStatus(), SCIPvarGetUbAtIndex(), SCIP_Original::transvar, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by resolvePropagationFullOrbitopes(), SCIP_DECL_CONSRESPROP(), SCIPvarGetBdAtIndex(), SCIPvarGetBdchgInfo(), SCIPvarGetUbAtIndex(), and SCIPvarWasFixedAtIndex().
SCIP_Real SCIPvarGetUbAtIndex | ( | 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
returns upper bound of variable directly before or after the bound change given by the bound change index was applied
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 16071 of file 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, 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, SCIPbdchginfoGetNewbound(), SCIPerrorMessage, SCIPvarGetBdAtIndex(), SCIPvarGetLbAtIndex(), SCIPvarGetStatus(), SCIPvarGetUbchgInfo(), SCIPvarGetUbLocal(), SCIP_Original::transvar, SCIP_Dom::ub, SCIP_Aggregate::var, and SCIP_Multaggr::vars.
Referenced by resolvePropagationFullOrbitopes(), SCIP_DECL_CONSRESPROP(), SCIPvarGetBdAtIndex(), SCIPvarGetLbAtIndex(), and SCIPvarWasFixedAtIndex().
SCIP_Real SCIPvarGetBdAtIndex | ( | 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
returns lower or upper bound of variable directly before or after the bound change given by the bound change index was applied
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 16195 of file var.c.
References SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIPvarGetLbAtIndex(), SCIPvarGetUbAtIndex(), and SCIPvarWasFixedAtIndex().
Referenced by SCIPvarGetUbAtIndex().
SCIP_Bool SCIPvarWasFixedAtIndex | ( | 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
returns whether the binary variable was fixed at the time given by the bound change index
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 16215 of file var.c.
References initbdchgidx, SCIPvarGetLbAtIndex(), SCIPvarGetLbLocal(), SCIPvarGetUbAtIndex(), SCIPvarGetUbLocal(), and SCIPvarIsBinary().
Referenced by SCIPvarGetBdAtIndex().
SCIP_BDCHGIDX* SCIPvarGetLastBdchgIndex | ( | SCIP_VAR * | var | ) |
returns the last bound change index, at which the bounds of the given variable were tightened
var | problem variable |
Definition at line 16238 of file var.c.
References SCIP_BdChgInfo::bdchgidx, initbdchgidx, SCIP_Var::lbchginfos, SCIP_Var::nlbchginfos, SCIP_Var::nubchginfos, presolvebdchgidx, SCIP_BdChgInfo::redundant, SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_LOOSE, SCIPbdchgidxIsEarlierNonNull(), SCIPvarGetLastBdchgDepth(), SCIPvarGetProbvar(), SCIPvarGetStatus(), SCIPvarIsActive(), and SCIP_Var::ubchginfos.
Referenced by 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
var | problem variable |
Definition at line 16275 of file var.c.
References SCIP_BdChgIdx::depth, SCIPvarGetConflictingBdchgDepth(), and SCIPvarGetLastBdchgIndex().
Referenced by SCIPvarGetLastBdchgIndex().
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
var1 | first binary variable |
var2 | second binary variable |
Definition at line 16363 of file var.c.
References SCIP_BdChgInfo::bdchgidx, FALSE, SCIP_Var::glbdom, SCIP_Dom::lb, SCIP_Var::lbchginfos, SCIP_Var::nlbchginfos, SCIP_Var::nubchginfos, SCIP_BdChgInfo::redundant, SCIP_DECL_HASHGETKEY(), SCIP_VARSTATUS_COLUMN, SCIP_VARSTATUS_LOOSE, SCIPbdchgidxIsEarlier(), SCIPvarGetProbvar(), SCIPvarGetStatus(), SCIPvarIsActive(), SCIPvarIsBinary(), TRUE, SCIP_Dom::ub, and SCIP_Var::ubchginfos.
Referenced by SCIPvarGetConflictingBdchgDepth().
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
bdchgidx1 | first bound change index, or NULL |
bdchgidx2 | second bound change index, or NULL |
Definition at line 17838 of file var.c.
References SCIP_BdChgIdx::depth, FALSE, SCIP_BdChgIdx::pos, SCIP_Real, SCIPbdchginfoGetOldbound(), and TRUE.
Referenced by SCIPbdchgidxIsEarlierNonNull(), SCIPconflictAddBound(), SCIPconflictAddRelaxedBound(), SCIPvarGetLbchgInfo(), SCIPvarGetUbchgInfo(), SCIPvarWasFixedEarlier(), varAddLbchginfo(), and varAddUbchginfo().
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
bdchgidx1 | first bound change index |
bdchgidx2 | second bound change index |
Definition at line 17818 of file var.c.
References SCIP_BdChgIdx::depth, SCIP_BdChgIdx::pos, SCIP_Bool, and SCIPbdchgidxIsEarlier().
Referenced by SCIP_DECL_SORTPTRCOMP(), SCIPbdchgidxGetPos(), and SCIPvarGetLastBdchgIndex().
SCIP_Real SCIPbdchginfoGetOldbound | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns old bound that was overwritten for given bound change information
bdchginfo | bound change information |
Definition at line 17858 of file var.c.
References SCIP_BdChgInfo::oldbound, SCIP_Real, and SCIPbdchginfoGetNewbound().
Referenced by conflictAddBound(), SCIPbdchgidxIsEarlier(), and SCIPconflictAddRelaxedBound().
SCIP_Real SCIPbdchginfoGetNewbound | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns new bound installed for given bound change information
bdchginfo | bound change information |
Definition at line 17868 of file var.c.
References SCIP_BdChgInfo::newbound, and SCIPbdchginfoGetVar().
Referenced by bdchginfoIsInvalid(), checkRedundancy(), conflictAddBound(), conflictAddConflictBound(), conflictAnalyze(), conflictAnalyzeRemainingBdchgs(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictMarkBoundCheckPresence(), conflictQueueBound(), conflictResolveBound(), conflictsetAddBounds(), conflictsetIsRedundant(), detectImpliedBounds(), isBoundchgUseless(), SCIP_DECL_CONFLICTEXEC(), SCIPbdchginfoGetOldbound(), SCIPconflictAddBound(), SCIPconflictAddRelaxedBound(), SCIPgetVarLbAtIndex(), SCIPgetVarUbAtIndex(), SCIPvarGetLbAtIndex(), and SCIPvarGetUbAtIndex().
SCIP_VAR* SCIPbdchginfoGetVar | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns variable that belongs to the given bound change information
bdchginfo | bound change information |
Definition at line 17878 of file var.c.
References SCIPbdchginfoGetChgtype(), and SCIP_BdChgInfo::var.
Referenced by bdchginfoIsInvalid(), checkRedundancy(), conflictAddBound(), conflictAddConflictBound(), conflictAnalyze(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictMarkBoundCheckPresence(), conflictQueueBound(), conflictRemoveCand(), conflictResolveBound(), conflictsetAddBound(), conflictsetAddBounds(), conflictsetIsRedundant(), detectImpliedBounds(), isBoundchgUseless(), SCIP_DECL_CONFLICTEXEC(), and SCIPbdchginfoGetNewbound().
SCIP_BOUNDCHGTYPE SCIPbdchginfoGetChgtype | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns whether the bound change information belongs to a branching decision or a deduction
bdchginfo | bound change information |
Definition at line 17888 of file var.c.
References SCIP_BdChgInfo::boundchgtype, and SCIPbdchginfoGetBoundtype().
Referenced by bdchginfoIsResolvable(), conflictAddBound(), conflictResolveBound(), and SCIPbdchginfoGetVar().
SCIP_BOUNDTYPE SCIPbdchginfoGetBoundtype | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns whether the bound change information belongs to a lower or upper bound change
bdchginfo | bound change information |
Definition at line 17898 of file var.c.
References SCIP_BdChgInfo::boundtype, and SCIPbdchginfoGetDepth().
Referenced by bdchginfoIsInvalid(), checkRedundancy(), conflictAddBound(), conflictAddConflictBound(), conflictAnalyze(), conflictAnalyzeRemainingBdchgs(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictMarkBoundCheckPresence(), conflictQueueBound(), conflictRemoveCand(), conflictResolveBound(), conflictsetAddBound(), conflictsetAddBounds(), conflictsetIsRedundant(), detectImpliedBounds(), isBoundchgUseless(), SCIP_DECL_CONFLICTEXEC(), SCIPbdchginfoGetChgtype(), SCIPbdchginfoIsTighter(), and updateStatistics().
int SCIPbdchginfoGetDepth | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns depth level of given bound change information
bdchginfo | bound change information |
Definition at line 17908 of file var.c.
References SCIP_BdChgInfo::bdchgidx, SCIP_BdChgIdx::depth, and SCIPbdchginfoGetPos().
Referenced by conflictAddBound(), conflictAddConflictBound(), conflictAnalyze(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictResolveBound(), conflictsetAddBounds(), conflictsetCalcConflictDepth(), conflictsetCalcInsertDepth(), conflictsetIsRedundant(), SCIPbdchginfoGetBoundtype(), and SCIPconflictAddRelaxedBound().
int SCIPbdchginfoGetPos | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns bound change position in its depth level of given bound change information
bdchginfo | bound change information |
Definition at line 17918 of file var.c.
References SCIP_BdChgInfo::bdchgidx, SCIP_BdChgIdx::pos, and SCIPbdchginfoGetIdx().
Referenced by conflictAddBound(), conflictAnalyze(), conflictCreateReconvergenceConss(), conflictResolveBound(), SCIPbdchginfoGetDepth(), and SCIPconflictAddRelaxedBound().
SCIP_BDCHGIDX* SCIPbdchginfoGetIdx | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns bound change index of given bound change information
bdchginfo | bound change information |
Definition at line 17928 of file var.c.
References SCIP_BdChgInfo::bdchgidx, and SCIPbdchginfoGetInferVar().
Referenced by conflictResolveBound(), SCIP_DECL_SORTPTRCOMP(), SCIPbdchginfoGetPos(), SCIPconflictAddBound(), and SCIPconflictAddRelaxedBound().
SCIP_VAR* SCIPbdchginfoGetInferVar | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns inference variable of given bound change information
bdchginfo | bound change information |
Definition at line 17938 of file var.c.
References SCIP_BdChgInfo::boundchgtype, SCIP_BdChgInfo::inferencedata, SCIP_BOUNDCHGTYPE_CONSINFER, SCIP_BOUNDCHGTYPE_PROPINFER, and SCIPbdchginfoGetInferCons().
Referenced by conflictResolveBound(), and SCIPbdchginfoGetIdx().
SCIP_CONS* SCIPbdchginfoGetInferCons | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns inference constraint of given bound change information
bdchginfo | bound change information |
Definition at line 17950 of file var.c.
References SCIP_BdChgInfo::boundchgtype, SCIP_BdChgInfo::inferencedata, SCIP_BOUNDCHGTYPE_CONSINFER, and SCIPbdchginfoGetInferProp().
Referenced by conflictAddBound(), conflictResolveBound(), and SCIPbdchginfoGetInferVar().
SCIP_PROP* SCIPbdchginfoGetInferProp | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns inference propagator of given bound change information, or NULL if no propagator was responsible
bdchginfo | bound change information |
Definition at line 17962 of file var.c.
References SCIP_BdChgInfo::boundchgtype, SCIP_BdChgInfo::inferencedata, SCIP_BOUNDCHGTYPE_PROPINFER, and SCIPbdchginfoGetInferInfo().
Referenced by bdchginfoIsResolvable(), conflictAddBound(), conflictResolveBound(), and SCIPbdchginfoGetInferCons().
int SCIPbdchginfoGetInferInfo | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns inference user information of given bound change information
bdchginfo | bound change information |
Definition at line 17973 of file var.c.
References SCIP_BdChgInfo::boundchgtype, SCIP_BdChgInfo::inferencedata, SCIP_BOUNDCHGTYPE_CONSINFER, SCIP_BOUNDCHGTYPE_PROPINFER, and SCIPbdchginfoGetInferBoundtype().
Referenced by conflictAddBound(), conflictResolveBound(), and SCIPbdchginfoGetInferProp().
SCIP_BOUNDTYPE SCIPbdchginfoGetInferBoundtype | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns inference bound of inference variable of given bound change information
bdchginfo | bound change information |
Definition at line 17985 of file var.c.
References SCIP_BdChgInfo::boundchgtype, SCIP_BdChgInfo::inferboundtype, SCIP_BOUNDCHGTYPE_CONSINFER, SCIP_BOUNDCHGTYPE_PROPINFER, SCIP_Real, and SCIPbdchginfoGetRelaxedBound().
Referenced by conflictResolveBound(), and SCIPbdchginfoGetInferInfo().
SCIP_Bool SCIPbdchginfoIsRedundant | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns whether the bound change information belongs to a redundant bound change
bdchginfo | bound change information |
Definition at line 18006 of file var.c.
References SCIP_BdChgInfo::newbound, SCIP_BdChgInfo::oldbound, SCIP_BdChgInfo::redundant, SCIP_Bool, and SCIPbdchginfoHasInferenceReason().
Referenced by bdchginfoIsResolvable(), conflictAddBound(), conflictAddConflictBound(), conflictAnalyze(), conflictAnalyzeRemainingBdchgs(), conflictCreateReconvergenceConss(), conflictFirstCand(), conflictQueueBound(), conflictRemoveCand(), conflictResolveBound(), SCIP_DECL_SORTPTRCOMP(), SCIPbdchginfoGetRelaxedBound(), and SCIPconflictAddRelaxedBound().
SCIP_Bool SCIPbdchginfoHasInferenceReason | ( | SCIP_BDCHGINFO * | bdchginfo | ) |
returns whether the bound change has an inference reason (constraint or propagator), that can be resolved
bdchginfo | bound change information |
Definition at line 18017 of file var.c.
References SCIP_BdChgInfo::boundchgtype, SCIP_BdChgInfo::inferencedata, SCIP_Bool, SCIP_BOUNDCHGTYPE_CONSINFER, SCIP_BOUNDCHGTYPE_PROPINFER, and SCIPbdchginfoIsTighter().
Referenced by conflictAnalyze(), and SCIPbdchginfoIsRedundant().
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
bdchginfo1 | first bound change information |
bdchginfo2 | second bound change information |
Definition at line 18031 of file var.c.
References SCIP_BdChgInfo::boundtype, SCIP_BdChgInfo::newbound, SCIP_BOUNDTYPE_LOWER, SCIPbdchginfoGetBoundtype(), and SCIP_BdChgInfo::var.
Referenced by conflictsetAddBound(), conflictsetAddBounds(), conflictsetIsRedundant(), and SCIPbdchginfoHasInferenceReason().
SCIP_Real SCIPboundchgGetNewbound | ( | SCIP_BOUNDCHG * | boundchg | ) |
returns the new value of the bound in the bound change data
boundchg | bound change data |
Definition at line 16559 of file var.c.
References SCIP_BoundChg::newbound, and SCIPboundchgGetVar().
Referenced by boundchgApplyGlobal(), SCIP_DECL_HASHGETKEY(), and SCIPendStrongbranch().
SCIP_VAR* SCIPboundchgGetVar | ( | SCIP_BOUNDCHG * | boundchg | ) |
returns the variable of the bound change in the bound change data
boundchg | bound change data |
Definition at line 16569 of file var.c.
References SCIPboundchgGetBoundchgtype(), and SCIP_BoundChg::var.
Referenced by boundchgApplyGlobal(), computeBranchingVariables(), SCIPboundchgGetNewbound(), SCIPendStrongbranch(), and SCIPnodePropagateImplics().
SCIP_BOUNDCHGTYPE SCIPboundchgGetBoundchgtype | ( | SCIP_BOUNDCHG * | boundchg | ) |
returns the bound change type of the bound change in the bound change data
boundchg | bound change data |
Definition at line 16579 of file var.c.
References SCIP_BoundChg::boundchgtype, and SCIPboundchgGetBoundtype().
Referenced by computeBranchingVariables(), and SCIPboundchgGetVar().
SCIP_BOUNDTYPE SCIPboundchgGetBoundtype | ( | SCIP_BOUNDCHG * | boundchg | ) |
returns the bound type of the bound change in the bound change data
boundchg | bound change data |
Definition at line 16589 of file var.c.
References SCIP_BoundChg::boundtype, SCIP_Bool, and SCIPboundchgIsRedundant().
Referenced by boundchgApplyGlobal(), SCIPboundchgGetBoundchgtype(), SCIPendStrongbranch(), and SCIPnodePropagateImplics().
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
boundchg | bound change data |
Definition at line 16599 of file var.c.
References SCIP_BoundChg::redundant, and SCIPdomchgGetNBoundchgs().
Referenced by SCIPboundchgGetBoundtype(), SCIPendStrongbranch(), and SCIPnodePropagateImplics().
int SCIPdomchgGetNBoundchgs | ( | SCIP_DOMCHG * | domchg | ) |
returns the number of bound changes in the domain change data
domchg | domain change data |
Definition at line 16609 of file var.c.
References SCIP_DomChg::domchgbound, SCIP_DomChgBound::nboundchgs, and SCIPdomchgGetBoundchg().
Referenced by computeBranchingVariables(), SCIPboundchgIsRedundant(), SCIPendStrongbranch(), and SCIPnodePropagateImplics().
SCIP_BOUNDCHG* SCIPdomchgGetBoundchg | ( | SCIP_DOMCHG * | domchg, |
int | pos | ||
) |
returns a particular bound change in the domain change data
domchg | domain change data |
pos | position of the bound change in the domain change data |
Definition at line 16617 of file var.c.
References SCIP_DomChgBound::boundchgs, SCIP_DomChg::domchgbound, SCIP_DomChgBound::nboundchgs, SCIP_Real, and SCIPholelistGetLeft().
Referenced by computeBranchingVariables(), SCIPdomchgGetNBoundchgs(), SCIPendStrongbranch(), and SCIPnodePropagateImplics().
SCIP_Real SCIPholelistGetLeft | ( | SCIP_HOLELIST * | holelist | ) |
returns left bound of open interval in hole
holelist | hole list pointer to hole of interest |
Definition at line 16629 of file var.c.
References SCIP_Holelist::hole, SCIP_Hole::left, SCIP_Real, and SCIPholelistGetRight().
Referenced by printHolelist(), and SCIPdomchgGetBoundchg().
SCIP_Real SCIPholelistGetRight | ( | SCIP_HOLELIST * | holelist | ) |
returns right bound of open interval in hole
holelist | hole list pointer to hole of interest |
Definition at line 16639 of file var.c.
References SCIP_Holelist::hole, SCIP_Hole::right, and SCIPholelistGetNext().
Referenced by printHolelist(), and SCIPholelistGetLeft().
SCIP_HOLELIST* SCIPholelistGetNext | ( | SCIP_HOLELIST * | holelist | ) |
returns next hole in list or NULL
returns next hole in list
holelist | hole list pointer to hole of interest |
Definition at line 16649 of file var.c.
References SCIP_Holelist::next, and SCIPvarGetName().
Referenced by printHolelist(), and SCIPholelistGetRight().
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;
scip
is in one of the following stages:
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 |
Definition at line 17613 of file scip.c.
References checkStage(), FALSE, Scip::mem, SCIP_Mem::probmem, 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, SCIPerrorMessage, SCIPisInfinity(), SCIPvarCreateOriginal(), SCIPvarCreateTransformed(), Scip::set, SCIP_Set::stage, Scip::stat, and TRUE.
Referenced by addExtendedAsymmetricFormulation(), addExtendedFlowFormulation(), addVarCardinality(), appendVarCardinality(), applyFixings(), consdataCreateBinvars(), createAndAddAndCons(), createCoveringProblem(), createObjRow(), createRelaxation(), createSubSCIP(), createSubscip(), createVariable(), disaggregate(), getVariable(), presolveCreateBenTalNemirovskiApproxDim3(), presolveCreateGlineurApproxDim3(), presolveCreateOuterApprox(), presolveDisaggregate(), presolveFindDuplicates(), presolveTryAddAND(), presolveTryAddLinearReform(), readBounds(), readCnf(), readCols(), readIndicators(), readNonlinearExprs(), readObjective(), readQMatrix(), readQuadraticCoefs(), readVariables(), reformMonomial(), reformNode2Var(), reformulate(), SCIP_DECL_EXPRGRAPHNODEREFORM(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_NONLINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_QUADCONSUPGD(), SCIP_DECL_READERREAD(), SCIPcreateConsCardinality(), SCIPcreateConsIndicator(), SCIPcreateObjVar(), SCIPcreateVarBasic(), SCIPtransformMinUC(), setObjective(), setupAndSolveFiniteSolSubscip(), and tightenCoefs().
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 with optional callbacks and variable data set to NULL, which can be set afterwards using SCIPvarSetDelorigData(), SCIPvarSetTransData(), SCIPvarSetDeltransData(), SCIPvarSetCopy(), and SCIPvarSetData(); sets variable flags initial=TRUE and removable = FALSE, which 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;
scip
is in one of the following stages:
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 17693 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPcreateVar(), and TRUE.
Referenced by applyRepair(), createConstraints(), createKKTComplementarityBinary(), createKKTComplementarityBounds(), createKKTComplementarityLinear(), createKKTDualCons(), createMIP(), createSubproblem(), initPricing(), presolveAddKKTLinearCons(), readObjective(), SCIP_DECL_QUADCONSUPGD(), SCIP_DECL_SOLVECUMULATIVE(), SCIPcreateVarBinpacking(), setupAndSolveCumulativeSubscip(), and setupProblem().
SCIP_RETCODE SCIPwriteVarName | ( | SCIP * | scip, |
FILE * | file, | ||
SCIP_VAR * | var, | ||
SCIP_Bool | type | ||
) |
outputs the variable name to the file stream
scip
is in one of the following stages:
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 17729 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_BINARY_CHAR, SCIP_VARTYPE_CONTINUOUS_CHAR, SCIP_VARTYPE_IMPLINT, SCIP_VARTYPE_IMPLINT_CHAR, SCIP_VARTYPE_INTEGER, SCIP_VARTYPE_INTEGER_CHAR, SCIPgetNegatedVar(), SCIPinfoMessage(), SCIPvarGetName(), SCIPvarGetType(), SCIPvarIsNegated(), and TRUE.
Referenced by consdataPrint(), SCIP_DECL_CONSPRINT(), SCIPwriteVarsLinearsum(), SCIPwriteVarsList(), and SCIPwriteVarsPolynomial().
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
scip
is in one of the following stages:
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 17791 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPinfoMessage(), SCIPwriteVarName(), and TRUE.
Referenced by consdataPrint().
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().
scip
is in one of the following stages:
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 17842 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPinfoMessage(), SCIPwriteVarName(), and TRUE.
Referenced by consdataPrint().
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().
scip
is in one of the following stages:
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 17903 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPinfoMessage(), SCIPwriteVarName(), and TRUE.
Referenced by SCIP_DECL_CONSPRINT().
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
scip
is in one of the following stages:
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 17973 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::messagehdlr, SCIP_Mem::probmem, 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, SCIPerrorMessage, SCIPvarParseOriginal(), SCIPvarParseTransformed(), Scip::set, SCIP_Set::stage, Scip::stat, and TRUE.
Referenced by getFixedVariable(), and getVariable().
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
scip
is in one of the following stages:
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 18032 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_INVALIDDATA, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_VARTYPE_BINARY_CHAR, SCIP_VARTYPE_CONTINUOUS_CHAR, SCIP_VARTYPE_IMPLINT_CHAR, SCIP_VARTYPE_INTEGER_CHAR, SCIPdebugMsg, SCIPerrorMessage, SCIPfindVar(), SCIPgetNegatedVar(), SCIPstrCopySection(), and TRUE.
Referenced by getFixedVariable(), readBounds(), SCIP_DECL_CONSPARSE(), SCIPparseVarsList(), and SCIPparseVarsPolynomial().
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
scip
is in one of the following stages:
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 18109 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPallocBufferArray, SCIPdebugMsg, SCIPfreeBufferArray, SCIPparseVarName(), SCIPvarGetName(), and TRUE.
Referenced by SCIP_DECL_CONSPARSE().
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
scip
is in one of the following stages:
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 18208 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPerrorMessage, SCIPfreeParseVarsPolynomialData(), SCIPparseVarsPolynomial(), and TRUE.
Referenced by getFixedVariable(), and SCIP_DECL_CONSPARSE().
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 polynomial 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.
scip
is in one of the following stages:
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 18318 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_INVALID, SCIP_OKAY, SCIP_READERROR, SCIP_Real, SCIPcalcMemGrowSize(), SCIPdebugMsg, SCIPduplicateBufferArray, SCIPerrorMessage, SCIPfreeBufferArrayNull, SCIPfreeParseVarsPolynomialData(), SCIPparseVarName(), SCIPreallocBufferArray, SCIPstrToRealValue(), and TRUE.
Referenced by SCIP_DECL_CONSPARSE(), and SCIPparseVarsLinearsum().
void SCIPfreeParseVarsPolynomialData | ( | SCIP * | scip, |
SCIP_VAR **** | monomialvars, | ||
SCIP_Real *** | monomialexps, | ||
SCIP_Real ** | monomialcoefs, | ||
int ** | monomialnvars, | ||
int | nmonomials | ||
) |
frees memory allocated when parsing a polynomial from a string
scip
is in one of the following stages:
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 18670 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPfreeBufferArray, SCIPfreeBufferArrayNull, and TRUE.
Referenced by SCIP_DECL_CONSPARSE(), SCIPparseVarsLinearsum(), and SCIPparseVarsPolynomial().
SCIP_RETCODE SCIPcaptureVar | ( | SCIP * | scip, |
SCIP_VAR * | var | ||
) |
increases usage counter of variable
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to capture |
Definition at line 18726 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPvarCapture(), and TRUE.
Referenced by addCoef(), addLinearCoef(), addQuadVarTerm(), applyFixings(), applyProbing(), computeConsAndDataChanges(), consdataCreate(), correctPresoldata(), createAndAddAndCons(), createPresoldata(), createSubSCIP(), objimplicsCreate(), presolRoundIndicator(), presolveRemoveFixedVariables(), propdataInit(), replaceQuadVarTermPos(), tsp::ProbDataTSP::scip_copy(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSINITSOL(), SCIP_DECL_CONSTRANS(), SCIP_DECL_EXPRGRAPHVARADDED(), tsp::ProbDataTSP::scip_trans(), SCIPcreateConsPseudobooleanWithConss(), SCIPcreateConsSOC(), SCIPgenVBoundAdd(), SCIPprobdataAddVar(), setIntvar(), and tcliquegraphAddNode().
SCIP_RETCODE SCIPreleaseVar | ( | SCIP * | scip, |
SCIP_VAR ** | var | ||
) |
decreases usage counter of variable, if the usage pointer reaches zero the variable gets freed
scip
is in one of the following stages:
scip | SCIP data structure |
var | pointer to variable |
Definition at line 18760 of file scip.c.
References checkStage(), Scip::eventqueue, FALSE, Scip::lp, Scip::mem, SCIP_Mem::probmem, 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, SCIPerrorMessage, SCIPvarIsTransformed(), SCIPvarRelease(), Scip::set, SCIP_Set::stage, and TRUE.
Referenced by addVarCardinality(), appendVarCardinality(), applyFixings(), applyProbing(), applyRepair(), cleanupHashDatas(), computeCoverUndercover(), consdataFree(), correctConshdlrdata(), createAndAddAndCons(), createInitialColumns(), createKKTComplementarityBinary(), createKKTComplementarityBounds(), createKKTComplementarityLinear(), createKKTDualCons(), createSubproblem(), createSubSCIP(), createVariable(), delCoefPos(), delLinearCoefPos(), delQuadVarTermPos(), disaggregate(), doSeachEcAggr(), freeGenVBound(), freeGenVBounds(), freeSortedvars(), freeSubSCIP(), freeSubscip(), getFixedVariable(), getVariable(), initPricing(), presolRoundIndicator(), presolveAddKKTLinearCons(), presolveCreateBenTalNemirovskiApproxDim3(), presolveCreateGlineurApproxDim3(), presolveCreateOuterApprox(), presolveDisaggregate(), presolveFindDuplicates(), presolveRemoveFixedVariables(), presolveTryAddAND(), presolveTryAddLinearReform(), probdataFree(), propdataExit(), readBounds(), readCnf(), readCols(), readNonlinearExprs(), readObjective(), readQMatrix(), readQuadraticCoefs(), reformMonomial(), reformNode2Var(), reformulate(), releaseHashmapEntries(), replaceQuadVarTermPos(), SCIP_DECL_CONSDELETE(), SCIP_DECL_CONSEXIT(), SCIP_DECL_EXPRGRAPHNODEREFORM(), SCIP_DECL_EXPRGRAPHVARREMOVE(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_NONLINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PRICERREDCOST(), SCIP_DECL_QUADCONSUPGD(), SCIP_DECL_READERREAD(), SCIP_DECL_SEPAEXIT(), SCIP_DECL_SOLVECUMULATIVE(), tsp::ProbDataTSP::scip_delorig(), tsp::ProbDataTSP::scip_deltrans(), SCIPapplyUndercover(), SCIPcreateConsCardinality(), SCIPcreateConsIndicator(), SCIPgenVBoundAdd(), SCIPgetVarCopy(), SCIPtransformMinUC(), setIntvar(), setObjective(), setupAndSolveCumulativeSubscip(), setupAndSolveFiniteSolSubscip(), setupProblem(), tcliquegraphFree(), tightenCoefs(), and transformToOrig().
SCIP_RETCODE SCIPchgVarName | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
const char * | name | ||
) |
changes the name of a variable
scip
is in stage SCIP_STAGE_PROBLEMscip | SCIP data structure |
var | variable |
name | new name of constraint |
Definition at line 18811 of file scip.c.
References checkStage(), FALSE, Scip::origprob, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PROBLEM, SCIPABORT, SCIPblkmem(), SCIPerrorMessage, SCIPgetStage(), SCIPprobAddVarName(), SCIPprobRemoveVarName(), SCIPvarChgName(), SCIPvarGetProbindex(), and TRUE.
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to get/create transformed variable for |
transvar | pointer to store the transformed variable |
Definition at line 18861 of file scip.c.
References checkStage(), FALSE, Scip::mem, SCIP_Prob::objsense, Scip::origprob, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPvarCapture(), SCIPvarIsTransformed(), SCIPvarTransform(), Scip::set, Scip::stat, and TRUE.
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
scip
is in one of the following stages:
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 18901 of file scip.c.
References checkStage(), FALSE, Scip::mem, SCIP_Prob::objsense, Scip::origprob, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPvarCapture(), SCIPvarIsTransformed(), SCIPvarTransform(), Scip::set, Scip::stat, and TRUE.
Referenced by SCIP_DECL_PROBTRANS().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to get transformed variable for |
transvar | pointer to store the transformed variable |
Definition at line 18951 of file scip.c.
References checkStage(), FALSE, Scip::mem, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPvarGetTransformed(), SCIPvarIsTransformed(), Scip::set, Scip::stat, and TRUE.
Referenced by addCoef(), addLinearCoef(), addQuadVarTerm(), addVarCardinality(), addVarSOS1(), addVarSOS2(), appendVarCardinality(), appendVarSOS1(), appendVarSOS2(), consdataCreate(), consdataCreateSuperindicator(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSTRANS(), SCIP_DECL_DIALOGEXEC(), tsp::ProbDataTSP::scip_trans(), SCIPchgVarType(), SCIPcreateConsCardinality(), SCIPcreateConsSOS1(), SCIPsetBinaryVarIndicator(), and setIntvar().
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
scip
is in one of the following stages:
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 18992 of file scip.c.
References checkStage(), FALSE, Scip::mem, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPvarGetTransformed(), SCIPvarIsTransformed(), Scip::set, Scip::stat, and TRUE.
Referenced by consdataCreate(), SCIP_DECL_CONSTRANS(), and SCIPgetExprtreeTransformedVars().
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
scip
is 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)
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to get negated variable for |
negvar | pointer to store the negated variable |
Definition at line 19039 of file scip.c.
References checkStage(), FALSE, Scip::mem, SCIP_Mem::probmem, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPvarNegate(), Scip::set, Scip::stat, and TRUE.
Referenced by addFixedVarsConss(), applyCliqueFixings(), checkForOverlapping(), cliquePresolve(), consdataLinearize(), createAndAddLinearCons(), createConflict(), createCoveringProblem(), createIndicatorConstraint(), createNormalizedKnapsack(), createNormalizedLogicor(), createNormalizedSetppc(), createSubSCIP(), CUTOFF_CONSTRAINT(), extendToCover(), extractGates(), fixDeleteOrUpgradeCons(), forbidCover(), forbidFixation(), getBinVarsRepresentatives(), getVariableOrTerm(), printIndicatorCons(), readCnf(), readIndicators(), SCIP_DECL_CONFLICTEXEC(), SCIP_DECL_CONSINITPRE(), SCIP_DECL_CONSPARSE(), SCIP_DECL_LINCONSUPGD(), SCIPcalcNegatedCliquePartition(), SCIPgetBinvarRepresentative(), SCIPgetBinvarRepresentatives(), SCIPgetVarCopy(), SCIPparseVarName(), SCIPseparateRelaxedKnapsack(), SCIPtransformMinUC(), SCIPwriteVarName(), tcliquegraphAddNode(), upgradeCons(), and upgradeConss().
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)
scip
is in one of the following stages:
gets negated variables x' = lb + ub - x of variables x; negated variables are created, if not yet existing
scip
is in one of the following stages:
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 19072 of file scip.c.
References checkStage(), FALSE, Scip::mem, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPvarNegate(), Scip::set, Scip::stat, and TRUE.
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
scip
is in one of the following stages:
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 19109 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPgetNegatedVar(), SCIPvarGetProbvarBinary(), and TRUE.
Referenced by applyFixings(), binvarGetActiveProbindex(), cleanupHashDatas(), consdataPrint(), correctPresoldata(), createCoveringProblem(), createPresoldata(), extractGates(), getBinVarsRepresentatives(), writeOpbFixedVars(), and writeOpbRelevantAnds().
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
scip
is in one of the following stages:
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 19156 of file scip.c.
References BMSclearMemoryArray, BMScopyMemoryArray, checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPgetNegatedVar(), SCIPvarsGetProbvarBinary(), and TRUE.
Referenced by applyFixings(), checkSolution(), consdataLinearize(), findAggregation(), printPseudobooleanCons(), and tryUpgradingXor().
SCIP_RETCODE SCIPflattenVarAggregationGraph | ( | SCIP * | scip, |
SCIP_VAR * | var | ||
) |
flattens aggregation graph of multi-aggregated variable in order to avoid exponential recursion later on
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
Definition at line 19205 of file scip.c.
References checkStage(), FALSE, Scip::mem, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPvarFlattenAggregationGraph(), Scip::set, and TRUE.
Referenced by fixVariableZero(), SCIP_DECL_READERWRITE(), and SCIPgetVarCopy().
SCIP_RETCODE SCIPgetProbvarLinearSum | ( | SCIP * | scip, |
SCIP_VAR ** | vars, | ||
SCIP_Real * | scalars, | ||
int * | nvars, | ||
int | varssize, | ||
SCIP_Real * | 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).
scip
is in one of the following stages:
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 19249 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPvarGetActiveRepresentatives(), Scip::set, and TRUE.
Referenced by applyFixings(), correctConshdlrdata(), getActiveVariables(), getLinearCoeffs(), removeFixedNonlinearVariables(), SCIPaddCoefLinear(), SCIPcopyConsLinear(), SCIPcreateConsLinear(), tightenVarsBoundsSOS1(), tryUpgradingXor(), and writeExpandedSolutions().
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
scip
is in one of the following stages:
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 19305 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPvarGetProbvarSum(), Scip::set, and TRUE.
Referenced by addAltLPConstraint(), addVarbound(), applyFixings(), checkFixedVariables(), createSolFromSubScipSol(), getActiveVar(), initData(), presolRoundCardinality(), presolRoundConsSOS1(), presolRoundSOS2(), presolveRemoveFixedVariables(), removeFixedLinearVariables(), removeFixedVariables(), and SCIP_DECL_PARAMCHGD().
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
scip
is in one of the following stages:
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 19341 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPvarsGetActiveVars(), Scip::set, and TRUE.
Referenced by fillDigraph(), and getActiveVariables2().
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.
scip
is in stage SCIP_STAGE_SOLVINGscip | SCIP data structure |
var | variable to get reduced costs, should be a column in current node LP |
Definition at line 19375 of file scip.c.
References SCIP_Var::data, 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 getVariableRedcostScore(), propagateRedcostBinvar(), propagateRootRedcostBinvar(), SCIP_DECL_BRANCHEXECLP(), SCIPgetDualSolVal(), and SCIPgetVarRedcost().
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.
scip
is in stage SCIP_STAGE_SOLVINGscip | 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 19420 of file scip.c.
References SCIP_Var::data, Scip::lp, 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(), Scip::set, Scip::stat, Scip::transprob, and SCIP_Original::transvar.
Referenced by propagateRedcostBinvar(), propagateRootRedcostBinvar(), and SCIPgetVarImplRedcost().
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.
scip
is in stage SCIP_STAGE_SOLVING scip | SCIP data structure |
var | variable to get reduced costs, should be a column in current node LP |
Definition at line 19465 of file scip.c.
References SCIP_Var::data, 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 SCIPgetVarFarkasCoef().
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
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 19503 of file scip.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, 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(), adjustCutoffbound(), analyzeConflictUpperbound(), analyzeEnergyRequirement(), getConflictImplics(), getGenVBoundsMinActivityConflict(), getMinactImplicObjchg(), resolveGenVBoundPropagation(), resolvePropagation(), resolvePropagationCoretimes(), respropCumulativeCondition(), SCIP_DECL_CONSRESPROP(), SCIPconflictIsVarUsed(), SCIPconsResolvePropagation(), SCIPgetVarBdAtIndex(), SCIPgetVarLbAtIndex(), SCIPgetVarUbAtIndex(), SCIPgetVarWasFixedAtIndex(), and SCIPpropResolvePropagation().
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
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 19643 of file scip.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, 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(), adjustCutoffbound(), analyzeConflictLowerbound(), analyzeEnergyRequirement(), getConflictImplics(), getGenVBoundsMinActivityConflict(), getMinactImplicObjchg(), resolveGenVBoundPropagation(), resolvePropagation(), resolvePropagationCoretimes(), respropCumulativeCondition(), SCIP_DECL_CONSRESPROP(), SCIPconflictIsVarUsed(), SCIPconsResolvePropagation(), SCIPgetVarBdAtIndex(), SCIPgetVarLbAtIndex(), SCIPgetVarUbAtIndex(), SCIPgetVarWasFixedAtIndex(), and SCIPpropResolvePropagation().
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
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 19783 of file scip.c.
References SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIPgetVarLbAtIndex(), and SCIPgetVarUbAtIndex().
Referenced by conflictResolveBound().
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
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 19801 of file scip.c.
References SCIPgetVarLbAtIndex(), SCIPgetVarUbAtIndex(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), and SCIPvarIsBinary().
gets solution value for variable in current node
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to get solution value for |
Definition at line 19826 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPtreeHasCurrentNodeLP(), SCIPvarGetSol(), Scip::tree, and TRUE.
Referenced by buildMod2Matrix(), calcEfficacy(), createSubscip(), fixVariable(), generateZerohalfCut(), performBranching(), SCIP_DECL_SEPAEXECLP(), separateIISRounding(), and transformNonIntegralRow().
SCIP_RETCODE SCIPgetVarSols | ( | SCIP * | scip, |
int | nvars, | ||
SCIP_VAR ** | vars, | ||
SCIP_Real * | vals | ||
) |
gets solution values of multiple variables in current node
scip
is in one of the following stages:
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 19846 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPtreeHasCurrentNodeLP(), SCIPvarGetLPSol(), SCIPvarGetPseudoSol(), Scip::tree, and TRUE.
Referenced by SCIP_DECL_SEPAEXECLP(), and SCIPgetSolVals().
SCIP_RETCODE SCIPclearRelaxSolVals | ( | SCIP * | scip | ) |
sets the solution value of all variables in the global relaxation solution to zero
scip
is in one of the following stages:
scip | SCIP data structure |
Definition at line 19883 of file scip.c.
References checkStage(), FALSE, Scip::relaxation, SCIP_CALL, SCIP_OKAY, SCIPgetVarsData(), SCIPrelaxationIsSolZero(), SCIPrelaxationSetSolObj(), SCIPrelaxationSetSolZero(), SCIPvarSetRelaxSol(), Scip::set, and TRUE.
Referenced by SCIP_DECL_RELAXEXEC(), SCIPsetRelaxSolVals(), SCIPsetRelaxSolValsSol(), and SCIPsolve().
SCIP_RETCODE SCIPsetRelaxSolVal | ( | SCIP * | scip, |
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to set value for |
val | solution value of variable |
Definition at line 19929 of file scip.c.
References checkStage(), FALSE, Scip::relaxation, SCIP_CALL, SCIP_OKAY, SCIPrelaxationSetSolValid(), SCIPrelaxationSetSolZero(), SCIPvarSetRelaxSol(), Scip::set, and TRUE.
Referenced by SCIP_DECL_RELAXEXEC().
SCIP_RETCODE SCIPsetRelaxSolVals | ( | SCIP * | scip, |
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
scip
is in one of the following stages:
scip | SCIP 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 19960 of file scip.c.
References checkStage(), FALSE, Scip::relaxation, SCIP_CALL, SCIP_OKAY, SCIPclearRelaxSolVals(), SCIPrelaxationSetSolValid(), SCIPrelaxationSetSolZero(), SCIPvarSetRelaxSol(), Scip::set, and TRUE.
SCIP_RETCODE SCIPsetRelaxSolValsSol | ( | SCIP * | scip, |
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
scip
is in one of the following stages:
scip | SCIP data structure |
sol | primal relaxation solution |
includeslp | does the relaxator contain all cuts in the LP? |
Definition at line 20000 of file scip.c.
References checkStage(), FALSE, Scip::origprob, Scip::relaxation, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPclearRelaxSolVals(), SCIPfreeBufferArray, SCIPgetSolVals(), SCIPgetVarsData(), SCIPrelaxationSetSolObj(), SCIPrelaxationSetSolValid(), SCIPrelaxationSetSolZero(), SCIPsolGetObj(), SCIPvarSetRelaxSol(), Scip::set, Scip::transprob, and TRUE.
returns whether the relaxation solution is valid
scip
is in one of the following stages:
scip | SCIP data structure |
Definition at line 20046 of file scip.c.
References checkStage(), FALSE, Scip::relaxation, SCIP_CALL_ABORT, SCIPrelaxationIsSolValid(), and TRUE.
Referenced by performRelaxSimpleRounding(), SCIP_DECL_HEUREXEC(), SCIP_DECL_RELAXEXEC(), and SCIPstartDive().
SCIP_RETCODE SCIPmarkRelaxSolValid | ( | SCIP * | scip, |
SCIP_Bool | includeslp | ||
) |
informs SCIP that the relaxation solution is valid and whether the relaxation can be enforced through linear cuts
scip
is in one of the following stages:
scip | SCIP data structure |
includeslp | does the relaxator contain all cuts in the LP? |
Definition at line 20066 of file scip.c.
References checkStage(), FALSE, Scip::relaxation, SCIP_CALL, SCIP_OKAY, SCIPrelaxationSetSolValid(), and TRUE.
Referenced by SCIP_DECL_RELAXEXEC().
SCIP_RETCODE SCIPmarkRelaxSolInvalid | ( | SCIP * | scip | ) |
informs SCIP, that the relaxation solution is invalid
scip
is in one of the following stages:
scip | SCIP data structure |
Definition at line 20089 of file scip.c.
References checkStage(), FALSE, Scip::relaxation, SCIP_CALL, SCIP_OKAY, SCIPrelaxationSetSolValid(), and TRUE.
gets the relaxation solution value of the given variable
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to get value for |
Definition at line 20110 of file scip.c.
References checkStage(), FALSE, Scip::relaxation, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_INVALID, SCIPABORT, SCIPerrorMessage, SCIPrelaxationIsSolValid(), SCIPvarGetRelaxSol(), Scip::set, and TRUE.
Referenced by performRelaxSimpleRounding().
gets the relaxation solution objective value
scip
is in one of the following stages:
scip | SCIP data structure |
Definition at line 20139 of file scip.c.
References checkStage(), FALSE, Scip::relaxation, SCIP_CALL_ABORT, SCIP_INVALID, SCIPABORT, SCIPerrorMessage, SCIPrelaxationGetSolObj(), SCIPrelaxationIsSolValid(), and TRUE.
Referenced by SCIP_DECL_RELAXEXEC().
SCIP_RETCODE SCIPstartStrongbranch | ( | SCIP * | scip, |
SCIP_Bool | enablepropagation | ||
) |
start strong branching - call before any strong branching
scip
is in one of the following stages:
scip | SCIP data structure |
enablepropagation | should propagation be done before solving the strong branching LP? |
Definition at line 20169 of file scip.c.
References checkStage(), FALSE, SCIP_Stat::lastsblpsolstats, Scip::lp, SCIP_Stat::lpcount, Scip::mem, SCIP_Stat::nsbdivinglps, SCIP_Mem::probmem, Scip::relaxation, SCIP_CALL, SCIP_INVALIDCALL, SCIP_LPSOLSTAT_NOTSOLVED, SCIP_OKAY, SCIPdebugMsg, SCIPerrorMessage, SCIPinProbing(), SCIPlpDiving(), SCIPlpStartStrongbranch(), SCIPlpStartStrongbranchProbing(), SCIPtreeProbing(), SCIPtreeStartProbing(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by execRelpscost(), SCIPselectVarPseudoStrongBranching(), and SCIPselectVarStrongBranching().
SCIP_RETCODE SCIPendStrongbranch | ( | SCIP * | scip | ) |
end strong branching - call after any strong branching
scip
is in one of the following stages:
scip | SCIP data structure |
Definition at line 20228 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventfilter, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::messagehdlr, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::relaxation, Scip::reopt, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_NODETYPE_PROBINGNODE, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPboundchgGetBoundtype(), SCIPboundchgGetNewbound(), SCIPboundchgGetVar(), SCIPboundchgIsRedundant(), SCIPchgVarLb(), SCIPchgVarUb(), SCIPdebugMsg, SCIPdomchgGetBoundchg(), SCIPdomchgGetNBoundchgs(), SCIPfreeBufferArray, SCIPgetCurrentNode(), SCIPgetProbingDepth(), SCIPlpEndStrongbranch(), SCIPlpEndStrongbranchProbing(), SCIPnodeGetDomchg(), SCIPnodeGetType(), SCIPtreeEndProbing(), SCIPtreeProbing(), SCIPvarGetName(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by execRelpscost(), SCIPselectVarPseudoStrongBranching(), and SCIPselectVarStrongBranching().
SCIP_RETCODE SCIPgetVarStrongbranchFrac | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
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 variable with fractional value
scip
is 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.
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to get strong branching values for |
itlim | iteration limit for strong branchings |
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 20403 of file scip.c.
References analyzeStrongbranch(), checkStage(), FALSE, Scip::lp, SCIP_Set::misc_exactsolve, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_COLUMN, SCIPcolGetStrongbranch(), SCIPcolIsInLP(), SCIPerrorMessage, SCIPprobAllColsInLP(), SCIPsolveIsStopped(), SCIPtreeProbing(), SCIPvarGetCol(), SCIPvarGetName(), SCIPvarGetStatus(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by execRelpscost(), SCIPselectVarPseudoStrongBranching(), and SCIPselectVarStrongBranching().
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
.
scip
is in one of the following stages:
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 20856 of file scip.c.
References SCIP_Set::branch_firstsbchild, SCIP_Set::branch_forceall, checkStage(), SCIP_Set::conf_enable, SCIP_Set::conf_usesb, Scip::conflict, FALSE, SCIP_Stat::lastsblpsolstats, Scip::lp, SCIP_Stat::nsbdivinglpiterations, performStrongbranchWithPropagation(), SCIP_Var::scip, SCIP_Bool, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL, SCIP_INVALIDDATA, SCIP_Longint, SCIP_LPSOLSTAT_NOTSOLVED, SCIP_OKAY, SCIP_PARAMETERWRONGVAL, SCIP_Real, SCIP_VARSTATUS_COLUMN, SCIPABORT, SCIPallColsInLP(), SCIPcolInvalidateStrongbranchData(), SCIPcolIsInLP(), SCIPcolSetStrongbranchData(), SCIPconflictGetNConflicts(), SCIPdebugMsg, SCIPerrorMessage, SCIPfeasCeil(), SCIPfeasFloor(), SCIPgetCutoffbound(), SCIPgetNVars(), SCIPgetVarAvgCutoffs(), SCIPgetVars(), SCIPinfinity(), SCIPinProbing(), SCIPisGE(), SCIPsolveIsStopped(), SCIPvarGetCol(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetNLocksDown(), SCIPvarGetNLocksUp(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), SCIPvarIsIntegral(), Scip::set, Scip::stat, and TRUE.
Referenced by execRelpscost(), and SCIPselectVarStrongBranching().
SCIP_RETCODE SCIPgetVarStrongbranchInt | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
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 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)
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to get strong branching values for |
itlim | iteration limit for strong branchings |
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 21186 of file scip.c.
References analyzeStrongbranch(), checkStage(), FALSE, Scip::lp, SCIP_Set::misc_exactsolve, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_COLUMN, SCIPcolGetStrongbranch(), SCIPcolIsInLP(), SCIPerrorMessage, SCIPprobAllColsInLP(), SCIPsolveIsStopped(), SCIPvarGetCol(), SCIPvarGetName(), SCIPvarGetStatus(), Scip::set, Scip::stat, Scip::transprob, and TRUE.
Referenced by SCIPselectVarPseudoStrongBranching().
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
scip
is in one of the following stages:
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 21273 of file scip.c.
References analyzeStrongbranch(), checkStage(), FALSE, Scip::lp, SCIP_Set::misc_exactsolve, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_COLUMN, SCIPallocBufferArray, SCIPcolGetStrongbranches(), SCIPcolIsInLP(), SCIPerrorMessage, SCIPfreeBufferArray, SCIPprobAllColsInLP(), SCIPsolveIsStopped(), SCIPvarGetCol(), SCIPvarGetName(), SCIPvarGetStatus(), Scip::set, Scip::stat, Scip::transprob, and TRUE.
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
scip
is in one of the following stages:
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 21384 of file scip.c.
References analyzeStrongbranch(), checkStage(), FALSE, Scip::lp, SCIP_Set::misc_exactsolve, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_COLUMN, SCIPallocBufferArray, SCIPcolGetStrongbranches(), SCIPcolIsInLP(), SCIPerrorMessage, SCIPfreeBufferArray, SCIPprobAllColsInLP(), SCIPsolveIsStopped(), SCIPvarGetCol(), SCIPvarGetName(), SCIPvarGetStatus(), Scip::set, Scip::stat, Scip::transprob, and TRUE.
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)
scip | SCIP data structure |
branchdir | branching direction for which LP solution status is requested |
Definition at line 21489 of file scip.c.
References SCIP_Stat::lastsblpsolstats, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, and Scip::stat.
Referenced by execRelpscost().
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
scip
is in one of the following stages:
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 21511 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_VARSTATUS_COLUMN, SCIPcolGetStrongbranchLast(), SCIPerrorMessage, SCIPvarGetCol(), SCIPvarGetStatus(), and TRUE.
Referenced by execRelpscost(), and SCIPselectVarStrongBranching().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to get last strong branching node for |
Definition at line 21555 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_VARSTATUS_COLUMN, SCIPcolGetStrongbranchNode(), SCIPvarGetCol(), SCIPvarGetStatus(), and TRUE.
Referenced by execRelpscost(), and SCIPselectVarStrongBranching().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to get strong branching LP age for |
Definition at line 21589 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_LONGINT_MAX, SCIP_VARSTATUS_COLUMN, SCIPcolGetStrongbranchLPAge(), SCIPvarGetCol(), SCIPvarGetStatus(), Scip::stat, and TRUE.
Referenced by SCIPselectVarStrongBranching().
gets number of times, strong branching was applied in current run on the given variable
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to get last strong branching node for |
Definition at line 21621 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_VARSTATUS_COLUMN, SCIPcolGetNStrongbranchs(), SCIPvarGetCol(), SCIPvarGetStatus(), and TRUE.
Referenced by SCIPprintBranchingStatistics().
SCIP_RETCODE SCIPaddVarLocks | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
int | nlocksdown, | ||
int | nlocksup | ||
) |
adds given values to lock numbers of variable for rounding
scip
is in one of the following stages:
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 21654 of file scip.c.
References checkStage(), Scip::eventqueue, FALSE, Scip::mem, SCIP_Mem::probmem, 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, SCIPerrorMessage, SCIPvarAddLocks(), SCIPvarIsTransformed(), Scip::set, SCIP_Set::stage, and TRUE.
Referenced by createConstraints(), createObjRow(), freeGenVBounds(), freeTransform(), presolRoundIndicator(), SCIP_DECL_CONSEXIT(), SCIP_DECL_CONSINIT(), SCIP_DECL_CONSLOCK(), SCIP_DECL_EXPRGRAPHVARADDED(), SCIP_DECL_EXPRGRAPHVARREMOVE(), and setupAndSolveSubscipRapidlearning().
SCIP_RETCODE SCIPlockVarCons | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_CONS * | cons, | ||
SCIP_Bool | lockdown, | ||
SCIP_Bool | lockup | ||
) |
locks rounding 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
scip
is in one of the following stages:
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 21708 of file scip.c.
References checkStage(), Scip::eventqueue, FALSE, Scip::mem, SCIP_Mem::probmem, 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, SCIPconsIsLockedNeg(), SCIPconsIsLockedPos(), SCIPerrorMessage, SCIPvarAddLocks(), SCIPvarIsTransformed(), Scip::set, SCIP_Set::stage, and TRUE.
Referenced by addExtendedAsymmetricFormulation(), addExtendedFlowFormulation(), checkFixedVariables(), chgLhs(), chgRhs(), lockLinearVariable(), lockQuadraticVariable(), lockRounding(), lockRoundingAndCons(), lockVariableCardinality(), lockVariableSOS2(), preprocessConstraintPairs(), presolveFindDuplicates(), presolveRemoveFixedVariables(), and tightenCoefs().
SCIP_RETCODE SCIPunlockVarCons | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_CONS * | cons, | ||
SCIP_Bool | lockdown, | ||
SCIP_Bool | lockup | ||
) |
unlocks rounding 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
scip
is in one of the following stages:
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 21782 of file scip.c.
References checkStage(), Scip::eventqueue, FALSE, Scip::mem, SCIP_Mem::probmem, 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_TRANSFORMING, SCIPconsIsLockedNeg(), SCIPconsIsLockedPos(), SCIPerrorMessage, SCIPvarAddLocks(), SCIPvarIsTransformed(), Scip::set, SCIP_Set::stage, and TRUE.
Referenced by checkFixedVariables(), chgLhs(), chgRhs(), consdataDeletePos(), delCoefPos(), lockRounding(), preprocessConstraintPairs(), presolveConsEst(), presolveConsLct(), presolveFindDuplicates(), presolveRemoveFixedVariables(), tightenCoefs(), unlockLinearVariable(), unlockQuadraticVariable(), unlockRounding(), unlockRoundingAndCons(), unlockVariableCardinality(), and unlockVariableSOS2().
SCIP_RETCODE SCIPchgVarObj | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_Real | newobj | ||
) |
changes variable's objective value
scip
is in one of the following stages:
changes variable's objective value
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to change the objective value for |
newobj | new objective value |
Definition at line 21847 of file scip.c.
References checkStage(), Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, Scip::primal, SCIP_Mem::probmem, 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, SCIPerrorMessage, SCIPisInfinity(), SCIPvarChgObj(), SCIPvarIsTransformed(), Scip::set, SCIP_Set::stage, Scip::transprob, and TRUE.
Referenced by addLocalBranchingConstraint(), changeSubvariableObjective(), createCoveringProblem(), createSubproblem(), createSubSCIP(), DECL_CHANGESUBSCIP(), getVariable(), parseSolveItem(), readCnf(), readCols(), readConstraints(), readObjective(), SCIPapplyProximity(), SCIPchgReoptObjective(), SCIPtransformMinUC(), setObjective(), setupAndSolveFiniteSolSubscip(), and setupAndSolveSubscip().
SCIP_RETCODE SCIPaddVarObj | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_Real | addobj | ||
) |
adds value to variable's objective value
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to change the objective value for |
addobj | additional objective value |
Definition at line 21896 of file scip.c.
References checkStage(), Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_EXITPRESOLVE, SCIP_STAGE_PRESOLVED, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_TRANSFORMING, SCIPerrorMessage, SCIPvarAddObj(), SCIPvarIsTransformed(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by SCIPchgReoptObjective().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to adjust the bound for |
lb | lower bound value to adjust |
Definition at line 21947 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPvarAdjustLb(), Scip::set, and TRUE.
Referenced by analyzeConflict(), analyzeConflictLowerbound(), computeRelaxedLowerbound(), preprocessConstraintPairs(), propagateBoundsTightenVar(), propagateBoundsTightenVarLb(), propagateCons(), propagateRedcostVar(), resolvePropagation(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_PRESOLEXEC(), and updateBestCandidate().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to adjust the bound for |
ub | upper bound value to adjust |
Definition at line 21979 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPvarAdjustUb(), Scip::set, and TRUE.
Referenced by analyzeConflict(), analyzeConflictUpperbound(), computeRelaxedUpperbound(), preprocessConstraintPairs(), propagateBoundsTightenVarUb(), propagateCons(), propagateRedcostVar(), resolvePropagation(), SCIP_DECL_BRANCHEXECEXT(), SCIP_DECL_PRESOLEXEC(), and updateBestCandidate().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to change the bound for |
newbound | new value for bound |
Definition at line 22010 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Tree::root, 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, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLb(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, TRUE, and SCIP_Var::vartype.
Referenced by createCoveringProblem(), createIndicatorConstraint(), generateOddCycleCut(), predBndStr(), propagateCons(), propagateRedcostBinvar(), propagateRedcostVar(), propagateRootRedcostBinvar(), propCardinality(), readBinaries(), readBounds(), readSemicontinuous(), SCIP_DECL_PRESOLEXEC(), SCIPchgVarLbNode(), SCIPendStrongbranch(), SCIPfixVar(), SCIPinferBinvarCons(), SCIPinferBinvarProp(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), and setupProblem().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to change the bound for |
newbound | new value for bound |
Definition at line 22100 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Tree::root, 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, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUb(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, TRUE, and SCIP_Var::vartype.
Referenced by createIndicatorConstraint(), generateOddCycleCut(), predBndStr(), propagateCons(), propagateRedcostBinvar(), propagateRedcostVar(), propagateRootRedcostBinvar(), readBinaries(), readBounds(), SCIP_DECL_PRESOLEXEC(), SCIPchgVarUbNode(), SCIPendStrongbranch(), SCIPfixVar(), SCIPinferBinvarCons(), SCIPinferBinvarProp(), SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), SCIPsetSlackVarUb(), setupProblem(), and updateMIP().
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
scip
is in stage SCIP_STAGE_SOLVING 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 22180 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPchgVarLb(), SCIPgetStage(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPvarAdjustLb(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPwarningMessage(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by branchUnbalancedCardinality(), createNAryBranch(), enforceConflictgraph(), enforceIndicators(), fixVariableZeroNode(), performBranching(), and presolveCreateBenTalNemirovskiApproxDim3().
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
scip
is in stage SCIP_STAGE_SOLVING 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 22224 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_SOLVING, SCIPchgVarUb(), SCIPgetStage(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPvarAdjustUb(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPwarningMessage(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by createNAryBranch(), enforceConflictgraph(), enforceIndicators(), fixVariableZeroNode(), and performBranching().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to change the bound for |
newbound | new value for bound |
Definition at line 22276 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Tree::root, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLb(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, TRUE, and SCIP_Var::vartype.
Referenced by applyDomainChanges(), applyRepair(), createSubSCIP(), DECL_CHANGESUBSCIP(), fixDiscreteVars(), fixVariables(), freeMemory(), presolveCreateBenTalNemirovskiApproxDim3(), reboundIntegerVariables(), restrictToBinaryBounds(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIPapplyHeurDualval(), SCIPapplyHeurSubNlp(), SCIPapplyProximity(), SCIPresolveSolHeurSubNlp(), and setupAndSolveSubscip().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to change the bound for |
newbound | new value for bound |
Definition at line 22363 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Tree::root, SCIP_Bool, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_STAGE_TRANSFORMING, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUb(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, TRUE, and SCIP_Var::vartype.
Referenced by applyDomainChanges(), applyRepair(), createSubSCIP(), DECL_CHANGESUBSCIP(), fixDiscreteVars(), fixVariables(), freeMemory(), reboundIntegerVariables(), restrictToBinaryBounds(), SCIP_DECL_DIALOGEXEC(), SCIP_DECL_EVENTEXEC(), SCIPapplyHeurDualval(), SCIPapplyHeurSubNlp(), SCIPapplyProximity(), SCIPresolveSolHeurSubNlp(), and setupAndSolveSubscip().
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 enforced by constraints and the objective function; hence, these bounds do not need to be put into the LP explicitly.
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
lazylb | the lazy lower bound to be set |
Definition at line 22450 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPvarChgLbLazy(), Scip::set, and TRUE.
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 enforced by constraints and the objective function; hence, these bounds do not need to be put into the LP explicitly.
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
lazyub | the lazy lower bound to be set |
Definition at line 22483 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPvarChgUbLazy(), Scip::set, and TRUE.
Referenced by createInitialColumns(), and SCIP_DECL_PRICERREDCOST().
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
scip
is in one of the following stages:
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 22517 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Tree::root, 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, SCIPchgVarType(), SCIPcomputeVarLbLocal(), SCIPcomputeVarUbLocal(), SCIPerrorMessage, SCIPgetStage(), SCIPinDive(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPsetIsFeasGT(), SCIPsetIsLbBetter(), SCIPsetIsLE(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLb(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, TRUE, and SCIP_Var::vartype.
Referenced by adjustOversizedJobBounds(), applyBdchgs(), applyFixings(), applyProbing(), applyProbingVar(), checkSystemGF2(), enforceViolatedFixedNonlinear(), extractCycle(), fixAlmostFixedX(), performOrbitalFixing(), preprocessConstraintPairs(), presolveCreateGlineurApproxDim3(), presolveRemoveFixedVariables(), propagateBounds(), propagateBoundsTightenVar(), propagateBoundsTightenVarLb(), replaceByLinearConstraints(), replaceViolatedByLinearConstraints(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_PRESOLEXEC(), SCIPanalyzeDeductionsProbing(), SCIPselectVarStrongBranching(), separateCuts(), setupAndSolveSubscipRapidlearning(), solveAndEvalSubscip(), solveIndependentCons(), solveNlp(), tightenBounds(), tightenVarsBoundsSOS1(), and updateArcData().
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
scip
is in one of the following stages:
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 22633 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, MAX, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Tree::root, 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, SCIPchgVarType(), SCIPcomputeVarLbLocal(), SCIPcomputeVarUbLocal(), SCIPerrorMessage, SCIPgetStage(), SCIPinDive(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPsetIsFeasLT(), SCIPsetIsGE(), SCIPsetIsLE(), SCIPsetIsUbBetter(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUb(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, TRUE, and SCIP_Var::vartype.
Referenced by adjustOversizedJobBounds(), applyBdchgs(), applyFixings(), applyProbing(), applyProbingVar(), checkSystemGF2(), enforceViolatedFixedNonlinear(), extractCycle(), fixAlmostFixedX(), getCover(), performOrbitalFixing(), preprocessConstraintPairs(), presolveRemoveFixedVariables(), propagateBounds(), propagateBoundsTightenVar(), propagateBoundsTightenVarUb(), replaceByLinearConstraints(), replaceViolatedByLinearConstraints(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_PRESOLEXEC(), SCIPanalyzeDeductionsProbing(), SCIPselectVarStrongBranching(), setupAndSolveSubscipRapidlearning(), solveAndEvalSubscip(), solveIndependentCons(), solveNlp(), tightenBounds(), tightenVarsBoundsSOS1(), and updateArcData().
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
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 22744 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIPgetStage(), SCIPinferVarLbCons(), SCIPinferVarUbCons(), SCIPtreeGetCurrentDepth(), SCIPvarFix(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
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
scip
is in one of the following stages:
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 22813 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Tree::root, 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, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPnodeAddBoundinfer(), SCIPsetIsFeasGT(), SCIPsetIsLbBetter(), SCIPsetIsLE(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLb(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, TRUE, and SCIP_Var::vartype.
Referenced by consFixInteger(), coretimesUpdateLb(), inferboundsEdgeFinding(), inferVariableZero(), processWatchedVars(), propagateCons(), propagateTTEF(), propIndicator(), propVariableNonzero(), propVariables(), SCIPinferVarFixCons(), separateCons(), and tightenedIntvar().
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
scip
is in one of the following stages:
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 22926 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, MAX, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Tree::root, 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, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPnodeAddBoundinfer(), SCIPsetIsFeasLT(), SCIPsetIsGE(), SCIPsetIsLE(), SCIPsetIsUbBetter(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUb(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, TRUE, and SCIP_Var::vartype.
Referenced by consFixInteger(), coretimesUpdateUb(), inferboundsEdgeFinding(), inferVariableZero(), processWatchedVars(), propagateCons(), propagateTTEF(), propIndicator(), propVariableNonzero(), propVariables(), SCIPinferVarFixCons(), separateCons(), and tightenedIntvar().
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
scip
is in one of the following stages:
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 23033 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, 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, SCIPchgVarLb(), SCIPchgVarUb(), SCIPerrorMessage, SCIPnodeAddBoundinfer(), SCIPsetIsEQ(), SCIPsetIsLE(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarFix(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by analyzeZeroResultant(), consdataFixOperandsOne(), consdataFixResultantZero(), processBinvarFixings(), processFixings(), processIntegerBoundChg(), processWatchedVars(), propagateCons(), propagateFullOrbitope(), propagatePackingPartitioningCons(), and SCIP_DECL_CONSPROP().
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
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 23136 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIPgetStage(), SCIPinferVarLbProp(), SCIPinferVarUbProp(), SCIPtreeGetCurrentDepth(), SCIPvarFix(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
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
scip
is in one of the following stages:
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 23205 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Tree::root, 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, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPnodeAddBoundinfer(), SCIPsetIsFeasGT(), SCIPsetIsLbBetter(), SCIPsetIsLE(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLb(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, TRUE, and SCIP_Var::vartype.
Referenced by applyGenVBound(), propagateCutoffboundVar(), SCIPinferVarFixProp(), and tightenVarLb().
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
scip
is in one of the following stages:
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 23319 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, MAX, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Tree::root, 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, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPnodeAddBoundinfer(), SCIPsetIsFeasLT(), SCIPsetIsGE(), SCIPsetIsLE(), SCIPsetIsUbBetter(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUb(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, TRUE, and SCIP_Var::vartype.
Referenced by applyGenVBound(), propagateCutoffboundVar(), SCIPinferVarFixProp(), and tightenVarUb().
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
scip
is in one of the following stages:
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 23428 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, 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, SCIPchgVarLb(), SCIPchgVarUb(), SCIPerrorMessage, SCIPnodeAddBoundinfer(), SCIPsetIsEQ(), SCIPsetIsLE(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarFix(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
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
scip
is in one of the following stages:
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 23536 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Tree::root, 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, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPsetIsEQ(), SCIPsetIsFeasGT(), SCIPsetIsLbBetter(), SCIPsetIsLE(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustLb(), SCIPvarChgLbGlobal(), SCIPvarChgLbLocal(), SCIPvarChgLbOriginal(), SCIPvarGetLbGlobal(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbGlobal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, TRUE, and SCIP_Var::vartype.
Referenced by applyBoundChanges(), applyGenVBound(), objimplicsCreate(), propagateCutoffboundVar(), propagateLowerboundBinvar(), propagateLowerboundVar(), propagateRootRedcostVar(), tightenBounds(), tightenCoefs(), and tightenVarLb().
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
scip
is in one of the following stages:
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 23656 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, MAX, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Tree::root, 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, SCIPchgVarType(), SCIPerrorMessage, SCIPgetStage(), SCIPinProbing(), SCIPisInfinity(), SCIPnodeAddBoundchg(), SCIPsetIsEQ(), SCIPsetIsFeasLT(), SCIPsetIsLE(), SCIPsetIsUbBetter(), SCIPtreeGetCurrentDepth(), SCIPtreeGetCurrentNode(), SCIPvarAdjustUb(), SCIPvarChgUbGlobal(), SCIPvarChgUbLocal(), SCIPvarChgUbOriginal(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetUbGlobal(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsTransformed(), SCIPwarningMessage(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, TRUE, and SCIP_Var::vartype.
Referenced by applyBoundChanges(), applyGenVBound(), objimplicsCreate(), propagateCutoffboundVar(), propagateLowerboundVar(), propagateRootRedcostVar(), tightenBounds(), tightenCoefs(), and tightenVarUb().
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.
scip | SCIP data structure |
var | variable to compute the bound for |
Definition at line 23771 of file scip.c.
References SCIP_VARSTATUS_MULTAGGR, SCIPvarGetLbGlobal(), SCIPvarGetMultaggrLbGlobal(), SCIPvarGetStatus(), and Scip::set.
Referenced by applyGlobalBounds(), SCIP_DECL_QUADCONSUPGD(), and SCIPcreateConsSOC().
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.
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
scip | SCIP data structure |
var | variable to compute the bound for |
Definition at line 23792 of file scip.c.
References SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrUbGlobal(), SCIPvarGetStatus(), SCIPvarGetUbGlobal(), and Scip::set.
Referenced by applyGlobalBounds(), SCIP_DECL_QUADCONSUPGD(), and SCIPcreateConsSOC().
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.
scip | SCIP data structure |
var | variable to compute the bound for |
Definition at line 23813 of file scip.c.
References SCIP_VARSTATUS_MULTAGGR, SCIPvarGetLbLocal(), SCIPvarGetMultaggrLbLocal(), SCIPvarGetStatus(), and Scip::set.
Referenced by checkSystemGF2(), createNAryBranch(), isLiteralSatisfied(), isLiteralViolated(), propagateBounds(), registerBranchingCandidates(), SCIPcreateConsSOC(), SCIPtightenVarLb(), SCIPtightenVarUb(), and updateBestCandidate().
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.
scip | SCIP data structure |
var | variable to compute the bound for |
Definition at line 23834 of file scip.c.
References SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrUbLocal(), SCIPvarGetStatus(), SCIPvarGetUbLocal(), and Scip::set.
Referenced by checkSystemGF2(), createNAryBranch(), isLiteralSatisfied(), isLiteralViolated(), propagateBounds(), registerBranchingCandidates(), SCIPcreateConsSOC(), SCIPtightenVarLb(), SCIPtightenVarUb(), and updateBestCandidate().
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
scip | SCIP data structure |
var | variable to compute the bound for |
Definition at line 23854 of file scip.c.
References SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrLbGlobal(), SCIPvarGetStatus(), and Scip::set.
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
scip | SCIP data structure |
var | variable to compute the bound for |
Definition at line 23869 of file scip.c.
References SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrUbGlobal(), SCIPvarGetStatus(), and Scip::set.
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
scip | SCIP data structure |
var | variable to compute the bound for |
Definition at line 23884 of file scip.c.
References SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrLbLocal(), SCIPvarGetStatus(), and Scip::set.
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
scip | SCIP data structure |
var | variable to compute the bound for |
Definition at line 23899 of file scip.c.
References SCIP_VARSTATUS_MULTAGGR, SCIPvarGetMultaggrUbLocal(), SCIPvarGetStatus(), and Scip::set.
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
scip
is in stage SCIP_STAGE_SOLVING 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 23917 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPvarGetClosestVlb(), Scip::set, Scip::stat, and TRUE.
Referenced by findBestLb(), separateCuts(), setupAggregationData(), and transformNonIntegralRow().
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
scip
is in stage SCIP_STAGE_SOLVING 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 23940 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPvarGetClosestVub(), Scip::set, Scip::stat, and TRUE.
Referenced by findBestUb(), separateCuts(), setupAggregationData(), and transformNonIntegralRow().
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
scip
is in one of the following stages:
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 23969 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_CALL, SCIP_OKAY, SCIP_VARTYPE_CONTINUOUS, SCIPisZero(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarGetType(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by addVarbound(), SCIP_DECL_CONSPRESOL(), SCIPanalyzeDeductionsProbing(), and strengthenVarbounds().
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
scip
is in one of the following stages:
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 24028 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_CALL, SCIP_OKAY, SCIP_VARTYPE_CONTINUOUS, SCIPisZero(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarGetType(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by addVarbound(), SCIP_DECL_CONSPRESOL(), and SCIPanalyzeDeductionsProbing().
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
scip
is in one of the following stages:
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 24088 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Bool, SCIP_BOUNDTYPE_LOWER, SCIP_BOUNDTYPE_UPPER, SCIP_CALL, SCIP_INVALIDDATA, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_BINARY, SCIPaddClique(), SCIPerrorMessage, SCIPisFeasEQ(), SCIPisFeasZero(), SCIPisInfinity(), SCIPvarAddImplic(), SCIPvarAddVlb(), SCIPvarAddVub(), SCIPvarGetLbGlobal(), SCIPvarGetType(), SCIPvarGetUbGlobal(), SCIPvarIsBinary(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by addCliques(), preprocessConstraintPairs(), SCIP_DECL_CONSPRESOL(), SCIPanalyzeDeductionsProbing(), and SCIPcopyImplicationsCliques().
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
scip
is in one of the following stages:
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 24216 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_CALL, SCIP_OKAY, SCIPcliquetableAdd(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by addCliques(), fixDeleteOrUpgradeCons(), greedyCliqueAlgorithm(), SCIP_DECL_CONSPRESOL(), SCIPaddVarImplication(), and SCIPcopyImplicationsCliques().
SCIP_RETCODE SCIPcalcCliquePartition | ( | SCIP *const | scip, |
SCIP_VAR **const | vars, | ||
int const | nvars, | ||
int *const | cliquepartition, | ||
int *const | 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:
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;
scip
is in one of the following stages:
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 |
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 24553 of file scip.c.
References calcCliquePartitionGreedy(), checkStage(), Scip::cliquetable, FALSE, labelSortStable(), MAXNCLIQUEVARSCOMP, relabelOrderConsistent(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPblkmem(), SCIPcliquetableComputeCliqueComponents(), SCIPcliquetableGetVarComponentIdx(), SCIPcliquetableNeedsComponentUpdate(), SCIPgetNCliques(), SCIPgetVarsData(), SCIPsetAllocBufferArray, SCIPsetDuplicateBufferArray, SCIPsetFreeBufferArray, SCIPvarIsActive(), SCIPvarsGetProbvarBinary(), Scip::set, and TRUE.
Referenced by deleteRedundantVars(), preprocessCliques(), SCIPcalcNegatedCliquePartition(), and tightenWeights().
SCIP_RETCODE SCIPcalcNegatedCliquePartition | ( | SCIP *const | scip, |
SCIP_VAR **const | vars, | ||
int const | nvars, | ||
int *const | cliquepartition, | ||
int *const | 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;
scip
is in one of the following stages:
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 |
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 24773 of file scip.c.
References SCIP_CALL, SCIP_OKAY, SCIPcalcCliquePartition(), SCIPgetNegatedVar(), SCIPsetAllocBufferArray, SCIPsetFreeBufferArray, and Scip::set.
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()
scip
is in one of the following stages:
scip | SCIP data structure |
infeasible | pointer to store if cleanup detected infeasibility |
Definition at line 24830 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Mem::probmem, Scip::reopt, SCIP_Bool, SCIP_CALL, SCIP_CALL_ABORT, SCIP_OKAY, SCIP_STATUS_INFEASIBLE, SCIPcliquetableCleanup(), Scip::set, Scip::stat, SCIP_Stat::status, Scip::transprob, Scip::tree, and TRUE.
Referenced by SCIPshrinkDisjunctiveVarSet(), separateCuts(), and shortenConss().
int SCIPgetNCliques | ( | SCIP * | scip | ) |
gets the number of cliques in the clique table
scip
is in one of the following stages:
gets the number of cliques in the clique table
scip
is in one of the following stages:
scip | SCIP data structure |
Definition at line 24873 of file scip.c.
References checkStage(), Scip::cliquetable, FALSE, SCIP_CALL_ABORT, SCIPcliquetableGetNCliques(), and TRUE.
Referenced by applyCliqueFixings(), removeConstraintsDueToNegCliques(), SCIP_DECL_SEPAEXECLP(), SCIPcalcCliquePartition(), SCIPcopyImplicationsCliques(), SCIPwriteCliqueGraph(), separateCuts(), shortenConss(), tcliquegraphConstructCliqueTable(), and topologicalSort().
int SCIPgetNCliquesCreated | ( | SCIP * | scip | ) |
gets the number of cliques created so far by the cliquetable
scip
is in one of the following stages:
gets the number of cliques created so far by the cliquetable
scip
is in one of the following stages:
scip | SCIP data structure |
Definition at line 24900 of file scip.c.
References checkStage(), Scip::cliquetable, FALSE, SCIP_CALL_ABORT, SCIPcliquetableGetNCliquesCreated(), and TRUE.
SCIP_CLIQUE** SCIPgetCliques | ( | SCIP * | scip | ) |
gets the array of cliques in the clique table
scip
is in one of the following stages:
gets the array of cliques in the clique table
scip
is in one of the following stages:
scip | SCIP data structure |
Definition at line 24927 of file scip.c.
References checkStage(), Scip::cliquetable, FALSE, SCIP_CALL_ABORT, SCIPcliquetableGetCliques(), and TRUE.
Referenced by applyCliqueFixings(), SCIPcopyImplicationsCliques(), SCIPwriteCliqueGraph(), separateCuts(), and tcliquegraphConstructCliqueTable().
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
scip
is in one of the following stages:
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 24957 of file scip.c.
References checkStage(), Scip::cliquetable, FALSE, SCIP_CALL_ABORT, SCIPcliquetableGetNCliques(), SCIPvarGetNCliques(), SCIPvarIsActive(), SCIPvarIsBinary(), SCIPvarsHaveCommonClique(), and TRUE.
Referenced by getImpliedBounds(), and liftCliqueVariables().
SCIP_RETCODE SCIPwriteCliqueGraph | ( | SCIP * | scip, |
const char * | fname, | ||
SCIP_Bool | writenodeweights | ||
) |
writes the clique graph to a gml file
scip
is in one of the following stages:
If writenodeweights
is true, only nodes corresponding to variables that have a fractional value and only edges between such nodes are written.
scip | SCIP data structure |
fname | name of file |
writenodeweights | should we write weights of nodes? |
Definition at line 25009 of file scip.c.
References checkStage(), FALSE, SCIP_Bool, SCIP_CALL, SCIP_CALL_ABORT, SCIP_CALL_FINALLY, SCIP_INVALIDDATA, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPABORT, SCIPblkmem(), SCIPcliqueGetNVars(), SCIPcliqueGetValues(), SCIPcliqueGetVars(), SCIPerrorMessage, SCIPgetCliques(), SCIPgetNCliques(), SCIPgetSolVal(), SCIPgetVarsData(), SCIPgmlWriteArc(), SCIPgmlWriteClosing(), SCIPgmlWriteNode(), SCIPgmlWriteNodeWeight(), SCIPgmlWriteOpening(), SCIPhashmapCreate(), SCIPhashmapExists(), SCIPhashmapFree(), SCIPhashmapInsert(), SCIPisFeasIntegral(), SCIPsnprintf(), SCIPvarGetName(), SCIPvarGetProbindex(), and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC(), and separateGLS().
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.
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to remove from global structures |
Definition at line 25158 of file scip.c.
References checkStage(), Scip::cliquetable, FALSE, SCIP_CALL, SCIP_CALL_ABORT, SCIP_OKAY, SCIPblkmem(), SCIPvarMarkDeleteGlobalStructures(), SCIPvarRemoveCliquesImplicsVbs(), Scip::set, and TRUE.
Referenced by checkLocksAndRes().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
branchfactor | factor to weigh variable's branching score with |
Definition at line 25192 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPvarChgBranchFactor(), Scip::set, and TRUE.
SCIP_RETCODE SCIPscaleVarBranchFactor | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_Real | scale | ||
) |
scales the branch factor of the variable with the given value
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
scale | factor to scale variable's branching factor with |
Definition at line 25220 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPvarChgBranchFactor(), SCIPvarGetBranchFactor(), Scip::set, and TRUE.
SCIP_RETCODE SCIPaddVarBranchFactor | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_Real | addfactor | ||
) |
adds the given value to the branch factor of the variable
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
addfactor | value to add to the branch factor of the variable |
Definition at line 25248 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPvarChgBranchFactor(), SCIPvarGetBranchFactor(), Scip::set, and TRUE.
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
branchpriority | branch priority of the variable |
Definition at line 25279 of file scip.c.
References Scip::branchcand, checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPbranchcandUpdateVarBranchPriority(), SCIPisTransformed(), SCIPvarChgBranchPriority(), Scip::set, and TRUE.
Referenced by createAndAddAndCons(), SCIP_DECL_DIALOGEXEC(), SCIPtransformMinUC(), and setObjective().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
branchpriority | new branch priority of the variable, if it is larger than current priority |
Definition at line 25320 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPvarChgBranchPriority(), SCIPvarGetBranchPriority(), and TRUE.
SCIP_RETCODE SCIPaddVarBranchPriority | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
int | addpriority | ||
) |
adds the given value to the branch priority of the variable
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
addpriority | value to add to the branch priority of the variable |
Definition at line 25353 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPvarChgBranchPriority(), SCIPvarGetBranchPriority(), and TRUE.
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)
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
branchdirection | preferred branch direction of the variable (downwards, upwards, auto) |
Definition at line 25384 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPvarChgBranchDirection(), and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC().
SCIP_RETCODE SCIPchgVarType | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_VARTYPE | vartype, | ||
SCIP_Bool * | infeasible | ||
) |
changes type of variable in the problem;
scip
is in one of the following stages:
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 25473 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, FALSE, Scip::mem, Scip::origprob, SCIP_Mem::probmem, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIPchgVarType(), SCIPdebugMsg, SCIPerrorMessage, SCIPgetStage(), SCIPgetTransformedVar(), SCIPprobChgVarType(), SCIPvarChgType(), SCIPvarGetName(), SCIPvarGetNegationVar(), SCIPvarGetProbindex(), SCIPvarGetType(), SCIPvarIsNegated(), SCIPvarIsTransformed(), Scip::set, SCIP_Set::stage, tightenBounds(), Scip::transprob, and TRUE.
Referenced by applyRepair(), createIndicatorConstraint(), createSubSCIP(), readBinaries(), readBounds(), readGenerals(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_RELAXEXEC(), SCIPaddVarIndicator(), SCIPchgVarLb(), SCIPchgVarLbGlobal(), SCIPchgVarType(), SCIPchgVarUb(), SCIPchgVarUbGlobal(), SCIPcreateConsAnd(), SCIPinferVarLbCons(), SCIPinferVarLbProp(), SCIPinferVarUbCons(), SCIPinferVarUbProp(), SCIPtightenVarLb(), SCIPtightenVarLbGlobal(), SCIPtightenVarUb(), SCIPtightenVarUbGlobal(), setupAndSolveFiniteSolSubscip(), and setupAndSolveSubscipRapidlearning().
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
scip
is in one of the following stages:
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 25569 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_STAGE_PRESOLVING, SCIP_STAGE_PROBLEM, SCIP_STAGE_SOLVING, SCIP_VARSTATUS_FIXED, SCIP_VARSTATUS_ORIGINAL, SCIP_VARTYPE_CONTINUOUS, SCIPchgVarLb(), SCIPchgVarUb(), SCIPerrorMessage, SCIPsetIsFeasEQ(), SCIPsetIsFeasGT(), SCIPsetIsFeasIntegral(), SCIPsetIsFeasLT(), SCIPtreeGetCurrentDepth(), SCIPvarFix(), SCIPvarGetLbLocal(), SCIPvarGetStatus(), SCIPvarGetType(), SCIPvarGetUbLocal(), Scip::set, SCIP_Set::stage, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by aggregateVariables(), applyAlternativeBoundsFixing(), applyFixings(), applyFixingsAndAggregations(), applyProbing(), checkForOverlapping(), checkVariable(), cliquePresolve(), consdataLinearize(), copyVars(), dualPresolve(), dualPresolving(), fixDeleteOrUpgradeCons(), fixIntegerVariableLb(), fixIntegerVariableUb(), fixTriangle(), fixVariableZero(), liftCliqueVariables(), mergeMultiples(), performDualfix(), prepareCons(), preprocessConstraintPairs(), presolRoundCardinality(), presolRoundConsSOS1(), presolRoundIndicator(), presolRoundSOS2(), presolRoundVarsSOS1(), presolveConsEst(), presolveConsLct(), presolveDual(), presolveFindDuplicates(), presolvePropagateCons(), presolveRemoveFixedVariables(), processNlRow(), propagateCons(), readSol(), removeDoubleAndSingletonsAndPerformDualpresolve(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_PRESOLEXEC(), SCIPanalyzeDeductionsProbing(), SCIPselectVarPseudoStrongBranching(), setupAndSolveFiniteSolSubscip(), shortenConss(), solveAndEvalSubscip(), solveIndependentCons(), tightenBounds(), tryFixVar(), tryUpgradingLogicor(), and tryUpgradingSetppc().
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:
scip
is in stage SCIP_STAGE_PRESOLVING 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 25678 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventfilter, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, SCIP_Set::presol_donotaggr, Scip::primal, SCIP_Mem::probmem, Scip::reopt, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_MULTAGGR, SCIPerrorMessage, SCIPsetIsZero(), SCIPtreeGetCurrentDepth(), SCIPtreeProbing(), SCIPvarFix(), SCIPvarGetProbvarSum(), SCIPvarGetStatus(), SCIPvarTryAggregateVars(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by addExtendedAsymmetricFormulation(), addExtendedFlowFormulation(), aggregateVariables(), applyFixings(), applyFixingsAndAggregations(), checkCons(), cliquePresolve(), detectRedundantConstraints(), dualPresolve(), findAggregation(), multiAggregateBinvar(), performAggregations(), preprocessConstraintPairs(), presolveFindDuplicates(), presolveFindDuplicatesUpgradeCons(), presolvePropagateCons(), presolveSolve(), removeDoubleAndSingletonsAndPerformDualpresolve(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRESOLEXEC(), SCIPanalyzeDeductionsProbing(), tightenCoefs(), and upgradeConss().
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();
The output flags have the following meaning:
scip
is in stage SCIP_STAGE_PRESOLVING 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 25812 of file scip.c.
References Scip::branchcand, checkStage(), Scip::cliquetable, Scip::eventfilter, Scip::eventqueue, FALSE, Scip::lp, Scip::mem, Scip::origprob, Scip::primal, SCIP_Mem::probmem, Scip::reopt, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPtreeGetCurrentDepth(), SCIPtreeProbing(), SCIPvarMultiaggregate(), Scip::set, Scip::stat, Scip::transprob, Scip::tree, and TRUE.
Referenced by disaggregate(), multiAggregateBinvar(), SCIP_DECL_PRESOLEXEC(), and SCIP_DECL_QUADCONSUPGD().
returns whether aggregation of variables is not allowed
scip | SCIP data structure |
Definition at line 25842 of file scip.c.
References SCIP_Set::presol_donotaggr, and Scip::set.
Referenced by applyFixings(), checkForOverlapping(), detectRedundantConstraints(), preprocessCliques(), preprocessConstraintPairs(), presolvePropagateCons(), removeDoubleAndSingletonsAndPerformDualpresolve(), SCIP_DECL_CONSPRESOL(), and SCIP_DECL_PRESOLEXEC().
returns whether multi-aggregation is disabled
scip | SCIP data structure |
Definition at line 25852 of file scip.c.
References SCIP_Set::presol_donotmultaggr, and Scip::set.
Referenced by removeDoubleAndSingletonsAndPerformDualpresolve().
returns whether variable is not allowed to be multi-aggregated
scip | SCIP data structure |
var | variable x to aggregate |
Definition at line 25862 of file scip.c.
References SCIP_Set::presol_donotmultaggr, SCIP_Var::scip, SCIPvarDoNotMultaggr(), and Scip::set.
returns whether dual reduction are allowed during propagation and presolving
scip | SCIP data structure |
Definition at line 25879 of file scip.c.
References SCIP_Set::misc_allowdualreds, SCIP_Set::reopt_enable, and Scip::set.
Referenced by enforceIndicators(), presolveCons(), propagateFullOrbitopeCons(), propagatePackingPartitioningCons(), SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSRESPROP(), SCIP_DECL_PRESOLEXEC(), SCIP_DECL_PROPEXEC(), and SCIP_DECL_PROPPRESOL().
returns whether propagation w.r.t. current objective is allowed
scip | SCIP data structure |
Definition at line 25889 of file scip.c.
References SCIP_Set::misc_allowobjprop, SCIP_Set::reopt_enable, and Scip::set.
Referenced by SCIP_DECL_CONSPRESOL(), SCIP_DECL_CONSPROP(), SCIP_DECL_CONSRESPROP(), and SCIP_DECL_PROPEXEC().
unsigned int SCIPinitializeRandomSeed | ( | SCIP * | scip, |
int | initialseedvalue | ||
) |
modifies an initial seed value with the global shift of random seeds
scip | SCIP data structure |
initialseedvalue | initial seed value to be modified |
Definition at line 25899 of file scip.c.
References SCIPsetInitializeRandomSeed(), and Scip::set.
Referenced by SCIPcreateBanditEpsgreedy(), SCIPcreateBanditExp3(), SCIPcreateBanditUcb(), SCIPcreateRandom(), SCIPresetBandit(), SCIPsetRandomSeed(), and setupAndSolveSubscipCrossover().
SCIP_RETCODE SCIPmarkDoNotMultaggrVar | ( | SCIP * | scip, |
SCIP_VAR * | var | ||
) |
marks the variable that it must not be multi-aggregated
scip
is in one of the following stages:
scip | SCIP data structure |
var | variable to delete |
Definition at line 25926 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL, SCIP_OKAY, SCIPvarMarkDoNotMultaggr(), and TRUE.
Referenced by checkFixedVariables(), computeSymmetryGroup(), consdataCreate(), createConstraints(), handleNewVariableCardinality(), handleNewVariableSOS1(), reformNode2Var(), removeFixedVariables(), SCIP_DECL_CONSACTIVE(), SCIP_DECL_CONSTRANS(), SCIP_DECL_QUADCONSUPGD(), SCIPcreateConsAbspower(), SCIPcreateConsIndicator(), SCIPcreateConsIndicatorLinCons(), and SCIPcreateConsSOS1().
void SCIPenableVarHistory | ( | SCIP * | scip | ) |
enables the collection of statistics for a variable
scip
is in one of the following stages:
scip | SCIP data structure |
Definition at line 25952 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPstatEnableVarHistory(), Scip::stat, and TRUE.
Referenced by applyVbounds(), performRandRounding(), SCIP_DECL_HEUREXEC(), SCIPapplyProbingVar(), and SCIPperformGenericDivingAlgorithm().
void SCIPdisableVarHistory | ( | SCIP * | scip | ) |
disables the collection of any statistic for a variable
scip
is in one of the following stages:
scip | SCIP data structure |
Definition at line 25971 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPstatDisableVarHistory(), Scip::stat, and TRUE.
Referenced by SCIP_DECL_HEUREXEC().
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
scip
is in one of the following stages:
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 25991 of file scip.c.
References SCIP_Set::branch_divingpscost, checkStage(), SCIP_Lp::diving, FALSE, Scip::lp, SCIP_CALL, SCIP_OKAY, SCIPsetIsInfinity(), SCIPtreeProbing(), SCIPvarUpdatePseudocost(), Scip::set, Scip::stat, Scip::tree, and TRUE.
Referenced by execRelpscost(), SCIPperformGenericDivingAlgorithm(), SCIPselectVarPseudoStrongBranching(), and SCIPselectVarStrongBranching().
gets the variable's pseudo cost value for the given change of the variable's LP value
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
solvaldelta | difference of variable's new LP value - old LP value |
Definition at line 26025 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPvarGetPseudocost(), Scip::stat, and TRUE.
Referenced by calcPscostQuot(), getVariablePscostScore(), and updateBestCandidate().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
solvaldelta | difference of variable's new LP value - old LP value |
Definition at line 26053 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPvarGetPseudocostCurrentRun(), Scip::stat, and TRUE.
SCIP_Real SCIPgetVarPseudocost | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_BRANCHDIR | dir | ||
) |
gets the variable's pseudo cost value for the given direction
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 26079 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIPvarGetPseudocost(), Scip::stat, and TRUE.
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 26107 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIPvarGetPseudocostCurrentRun(), Scip::stat, and TRUE.
Referenced by execRelpscost().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 26133 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIPvarGetPseudocostCount(), and TRUE.
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 26161 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIPvarGetPseudocostCountCurrentRun(), and TRUE.
Referenced by execRelpscost().
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
scip
is in one of the following stages:
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 26187 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIPvarGetPseudocostVariance(), and TRUE.
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.
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 26209 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPvarCalcPscostConfidenceBound(), Scip::set, and TRUE.
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.
onesided
to 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.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 26240 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPvarSignificantPscostDifference(), Scip::set, Scip::stat, and TRUE.
Referenced by execRelpscost().
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
.
clevel
to adjust the level of confidence. For SCIP_CONFIDENCELEVEL_MIN, the method returns TRUE if the estimated probability to exceed threshold
is less than 25 %.threshold
at the given confidence level clevel
. 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 26270 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPvarPscostThresholdProbabilityTest(), Scip::set, Scip::stat, and TRUE.
Referenced by execRelpscost().
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
threshold
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 26289 of file scip.c.
References checkStage(), FALSE, SCIP_CALL_ABORT, SCIPvarIsPscostRelerrorReliable(), Scip::set, Scip::stat, and TRUE.
Referenced by execRelpscost().
gets the variable's pseudo cost score value for the given LP solution value
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
solval | variable's LP solution value |
Definition at line 26314 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPsetFeasCeil(), SCIPsetFeasFloor(), SCIPvarGetPseudocost(), Scip::set, Scip::stat, and TRUE.
Referenced by execRelpscost(), and SCIP_DECL_BRANCHEXECLP().
gets the variable's pseudo cost score value for the given LP solution value, only using the pseudo cost information of the current run
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
solval | variable's LP solution value |
Definition at line 26352 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPsetFeasCeil(), SCIPsetFeasFloor(), SCIPvarGetPseudocostCurrentRun(), Scip::set, Scip::stat, and TRUE.
Referenced by execRelpscost().
SCIP_Real SCIPgetVarVSIDS | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_BRANCHDIR | dir | ||
) |
returns the variable's VSIDS value
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 26388 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_INVALID, SCIPerrorMessage, SCIPvarGetVSIDS(), Scip::stat, and TRUE.
Referenced by setupAndSolveSubscipRapidlearning().
SCIP_Real SCIPgetVarVSIDSCurrentRun | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_BRANCHDIR | dir | ||
) |
returns the variable's VSIDS value only using conflicts of the current run
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 26420 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_INVALID, SCIPerrorMessage, SCIPvarGetVSIDSCurrentRun(), Scip::stat, and TRUE.
returns the variable's conflict score value
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
Definition at line 26452 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPvarGetVSIDS(), Scip::set, Scip::stat, and TRUE.
Referenced by computeFixingOrder(), execRelpscost(), getAggrScore(), and performBranching().
returns the variable's conflict score value only using conflicts of the current run
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
Definition at line 26483 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPvarGetVSIDSCurrentRun(), Scip::set, Scip::stat, and TRUE.
returns the variable's conflict length score
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
Definition at line 26514 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPvarGetAvgConflictlength(), Scip::set, and TRUE.
Referenced by execRelpscost().
returns the variable's conflict length score only using conflicts of the current run
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
Definition at line 26545 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPvarGetAvgConflictlengthCurrentRun(), Scip::set, and TRUE.
SCIP_Real SCIPgetVarAvgConflictlength | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
SCIP_BRANCHDIR | dir | ||
) |
returns the variable's average conflict length
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 26576 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPvarGetAvgConflictlength(), and TRUE.
Referenced by setupAndSolveSubscipRapidlearning().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 26602 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPvarGetAvgConflictlengthCurrentRun(), and TRUE.
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 26630 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPvarGetAvgInferences(), Scip::stat, and TRUE.
Referenced by changeSubvariableObjective(), and setupAndSolveSubscipRapidlearning().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 26658 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPvarGetAvgInferencesCurrentRun(), Scip::stat, and TRUE.
returns the variable's average inference score value
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
Definition at line 26684 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPvarGetAvgInferences(), Scip::set, Scip::stat, and TRUE.
Referenced by execRelpscost(), fixVariable(), and performBranching().
returns the variable's average inference score value only using inferences of the current run
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
Definition at line 26715 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPvarGetAvgInferencesCurrentRun(), Scip::set, Scip::stat, and TRUE.
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
scip
is in one of the following stages:
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 26748 of file scip.c.
References checkStage(), FALSE, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL, SCIP_OKAY, SCIP_UNKNOWN, SCIPisFeasZero(), SCIPvarIncCutoffSum(), SCIPvarIncInferenceSum(), SCIPvarIncNActiveConflicts(), SCIPvarIncNBranchings(), SCIPvarIncVSIDS(), SCIPvarUpdatePseudocost(), Scip::set, Scip::stat, and TRUE.
Referenced by setupAndSolveSubscipRapidlearning().
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)
scip
is in one of the following stages:
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 26819 of file scip.c.
References checkStage(), FALSE, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL, SCIP_OKAY, SCIPblkmem(), SCIPisFeasZero(), SCIPvarIncCutoffSum(), SCIPvarIncInferenceSum(), SCIPvarIncNActiveConflicts(), SCIPvarIncNBranchings(), SCIPvarIncVSIDS(), Scip::set, Scip::stat, and TRUE.
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 26884 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPvarGetAvgCutoffs(), Scip::stat, and TRUE.
Referenced by SCIPgetVarStrongbranchWithPropagation().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
dir | branching direction (downwards, or upwards) |
Definition at line 26912 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_CALL_ABORT, SCIPvarGetAvgCutoffsCurrentRun(), Scip::stat, and TRUE.
returns the variable's average cutoff score value
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
Definition at line 26938 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPvarGetAvgCutoffs(), Scip::set, Scip::stat, and TRUE.
Referenced by execRelpscost().
returns the variable's average cutoff score value, only using cutoffs of the current run
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
Definition at line 26969 of file scip.c.
References checkStage(), FALSE, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPvarGetAvgCutoffsCurrentRun(), Scip::set, Scip::stat, and TRUE.
returns the variable's average inference/cutoff score value, weighting the cutoffs of the variable with the given factor
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
cutoffweight | factor to weigh average number of cutoffs in branching score |
Definition at line 27001 of file scip.c.
References checkStage(), FALSE, SCIP_Stat::glbhistory, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPhistoryGetAvgInferences(), SCIPvarGetAvgCutoffs(), SCIPvarGetAvgInferences(), Scip::set, Scip::stat, and TRUE.
Referenced by computeFixingOrder(), getAggrScore(), and performBranching().
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
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
cutoffweight | factor to weigh average number of cutoffs in branching score |
Definition at line 27045 of file scip.c.
References checkStage(), FALSE, SCIP_Stat::glbhistorycrun, SCIP_Var::scip, SCIP_BRANCHDIR_DOWNWARDS, SCIP_BRANCHDIR_UPWARDS, SCIP_CALL_ABORT, SCIP_Real, SCIPbranchGetScore(), SCIPhistoryGetAvgInferences(), SCIPvarGetAvgCutoffsCurrentRun(), SCIPvarGetAvgInferencesCurrentRun(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPprintVar | ( | SCIP * | scip, |
SCIP_VAR * | var, | ||
FILE * | file | ||
) |
outputs variable information to file stream via the message system
scip
is in one of the following stages:
scip | SCIP data structure |
var | problem variable |
file | output file (or NULL for standard output) |
Definition at line 27096 of file scip.c.
References checkStage(), FALSE, Scip::messagehdlr, SCIP_CALL, SCIP_OKAY, SCIPvarPrint(), Scip::set, and TRUE.
Referenced by checkBounddisjunction(), checkKnapsack(), computeAndConstraintInfos(), consdataCheck(), createVariable(), getFixedVariable(), getVariable(), SCIP_DECL_LINCONSUPGD(), SCIP_DECL_PRICERREDCOST(), SCIP_DECL_READERWRITE(), SCIPcreateVarBinpacking(), and SCIPwriteOpb().