All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
heur_shiftandpropagate.c File Reference Detailed Descriptionshiftandpropagate primal heuristic Definition in file heur_shiftandpropagate.c. Go to the source code of this file.
Macro Definition Documentation
Definition at line 28 of file heur_shiftandpropagate.c. Referenced by SCIP_DECL_HEURCOPY(), and SCIPincludeHeurShiftandpropagate().
Definition at line 29 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
Definition at line 30 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
Definition at line 31 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
Definition at line 32 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
Definition at line 33 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
Definition at line 34 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
Definition at line 35 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
does the heuristic use a secondary SCIP instance? Definition at line 36 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
the heuristic row weight for inequalities Definition at line 38 of file heur_shiftandpropagate.c. Referenced by SCIP_DECL_HEUREXEC().
the heuristic row weight for equations Definition at line 39 of file heur_shiftandpropagate.c. Referenced by SCIP_DECL_HEUREXEC().
Should continuous variables be relaxed from the problem? Definition at line 40 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
Is propagation of solution values enabled? Definition at line 41 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
Should heuristic only be executed if no primal solution was found, yet? Definition at line 42 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
The default number of propagation rounds for each propagation used Definition at line 43 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
fixed maximum number of propagations Definition at line 44 of file heur_shiftandpropagate.c. Referenced by SCIP_DECL_HEUREXEC().
fixed maximum number of allowed cutoffs before the heuristic stops Definition at line 45 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
the default random seed for random number generation Definition at line 46 of file heur_shiftandpropagate.c. Referenced by SCIP_DECL_HEURINIT().
the default key for variable sorting Definition at line 47 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
should variables be processed in sorted order? Definition at line 48 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
should variable statistics be collected during probing? Definition at line 49 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
Should the heuristic stop calculating optimal shift values when no more rows are violated? Definition at line 50 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
Should binary variables be shifted first? Definition at line 51 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
options sorting key: (n)orms down, norms (u)p, (v)iolated rows decreasing, viola(t)ed rows increasing, or (r)andom Definition at line 52 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
should variables with a zero shifting value be delayed instead of being fixed? Definition at line 54 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
should binary variables with no locks in one direction be fixed to that direction? Definition at line 55 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
should coefficients and left/right hand sides be normalized by max row coeff? Definition at line 56 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
should row weight be increased every time the row is violated? Definition at line 57 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
should implicit integer variables be treated as continuous variables? Definition at line 58 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate().
Definition at line 60 of file heur_shiftandpropagate.c. Referenced by SCIP_DECL_EVENTEXEC(), and SCIPincludeHeurShiftandpropagate().
Definition at line 61 of file heur_shiftandpropagate.c. Referenced by SCIPincludeHeurShiftandpropagate(). Typedef Documentation
Definition at line 112 of file heur_shiftandpropagate.c.
Definition at line 135 of file heur_shiftandpropagate.c. Enumeration Type Documentation
status of a variable in heuristic transformation
Definition at line 105 of file heur_shiftandpropagate.c. Function Documentationreturns whether a given variable is counted as discrete, depending on the parameter impliscontinuous
Definition at line 156 of file heur_shiftandpropagate.c. References SCIP_VARTYPE_IMPLINT, SCIPvarGetType(), and SCIPvarIsIntegral(). Referenced by initMatrix(), and SCIP_DECL_HEUREXEC(). returns whether a given column is counted as discrete, depending on the parameter impliscontinuous
Definition at line 166 of file heur_shiftandpropagate.c. References SCIP_VARTYPE_IMPLINT, SCIPcolGetVar(), SCIPcolIsIntegral(), and SCIPvarGetType(). Referenced by initMatrix().
returns nonzero values and corresponding columns of given row
Definition at line 176 of file heur_shiftandpropagate.c. References NULL. Referenced by checkViolations(), and relaxVar().
returns nonzero values and corresponding rows of given column
Definition at line 212 of file heur_shiftandpropagate.c. References NULL. Referenced by getOptimalShiftingValue(), transformVariable(), and updateTransformation().
relaxes a continuous variable from all its rows, which has influence on both the left and right hand side of the constraint.
Definition at line 245 of file heur_shiftandpropagate.c. References getRowData(), NULL, SCIP_Real, SCIP_VARSTATUS_COLUMN, SCIPcolGetNLPNonz(), SCIPcolGetRows(), SCIPcolGetVals(), SCIPdebugMessage, SCIPgetRowMaxCoef(), SCIPinfinity(), SCIPisFeasGT(), SCIPisFeasNegative(), SCIPisFeasPositive(), SCIPisInfinity(), SCIProwGetLPPos(), SCIProwGetName(), SCIPvarGetCol(), SCIPvarGetLbGlobal(), SCIPvarGetName(), SCIPvarGetStatus(), and SCIPvarGetUbGlobal(). Referenced by initMatrix().
transforms bounds of a given variable s.t. its lower bound equals zero afterwards. If the variable already has lower bound zero, the variable is not transformed, if not, the variable's bounds are changed w.r.t. the smaller absolute value of its bounds in order to avoid numerical inaccuracies. If both lower and upper bound of the variable differ from infinity, there are two cases. If |lb| <= |ub|, the bounds are shifted by -lb, else a new variable ub - x replaces x. The transformation is memorized by the transform status of the variable s.t. retransformation is possible.
Definition at line 348 of file heur_shiftandpropagate.c. References FALSE, getColumnData(), NULL, SCIP_Bool, SCIP_Real, SCIPcolGetVar(), SCIPcolIsInLP(), SCIPdebugMessage, SCIPinfinity(), SCIPisFeasLE(), SCIPisFeasZero(), SCIPisInfinity(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetUbLocal(), SCIPvarIsIntegral(), TRANSFORMSTATUS_FREE, TRANSFORMSTATUS_LB, TRANSFORMSTATUS_NEG, and TRUE. Referenced by initMatrix(), and updateTransformation().
initializes copy of the original coefficient matrix and applies heuristic specific adjustments: normalizing row vectors, transforming variable domains such that lower bound is zero, and relaxing continuous variables.
Definition at line 456 of file heur_shiftandpropagate.c. References colIsDiscrete(), FALSE, MAX, NULL, relaxVar(), SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocMemoryArray, SCIPcolGetLPPos(), SCIPcolGetNLPNonz(), SCIPcolGetRows(), SCIPcolGetVals(), SCIPcolGetVar(), SCIPdebug, SCIPdebugMessage, SCIPgetLPRowsData(), SCIPgetRowMaxCoef(), SCIPinfinity(), SCIPisFeasGT(), SCIPisFeasNegative(), SCIPisFeasPositive(), SCIPisFeasZero(), SCIPisInfinity(), SCIPprintRow(), SCIProwGetCols(), SCIProwGetConstant(), SCIProwGetLhs(), SCIProwGetLPPos(), SCIProwGetName(), SCIProwGetNLPNonz(), SCIProwGetRhs(), SCIProwGetVals(), TRANSFORMSTATUS_NONE, transformVariable(), TRUE, and varIsDiscrete(). Referenced by SCIP_DECL_HEUREXEC().
frees all members of the heuristic matrix
Definition at line 708 of file heur_shiftandpropagate.c. References NULL, SCIPfreeBuffer, and SCIPfreeMemoryArray. Referenced by SCIP_DECL_HEUREXEC().
collects the necessary information about row violations for the zero-solution. That is, all solution values in heuristic transformation are zero.
Definition at line 757 of file heur_shiftandpropagate.c. References getRowData(), NULL, SCIP_Real, SCIPdebugMessage, SCIPisFeasGE(), SCIPisFeasGT(), SCIPisFeasLT(), and SCIPisInfinity(). Referenced by SCIP_DECL_HEUREXEC(), and updateTransformation().
retransforms solution values of variables according to their transformation status
Definition at line 829 of file heur_shiftandpropagate.c. References NULL, SCIPisInfinity(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), TRANSFORMSTATUS_LB, TRANSFORMSTATUS_NEG, and TRANSFORMSTATUS_NONE. Referenced by SCIP_DECL_HEUREXEC().
determines the best shifting value of a variable
Definition at line 863 of file heur_shiftandpropagate.c. References FALSE, getColumnData(), NULL, SCIP_Bool, SCIP_OKAY, SCIP_Real, SCIPfeasCeil(), SCIPfeasFloor(), SCIPinfinity(), SCIPisFeasGT(), SCIPisFeasLE(), SCIPisFeasLT(), SCIPisInfinity(), SCIPsortRealInt(), and TRUE. Referenced by SCIP_DECL_HEUREXEC().
updates the information about a row whenever violation status changes
Definition at line 1039 of file heur_shiftandpropagate.c. References NULL, and SCIPisFeasLT(). Referenced by updateTransformation().
updates transformation of a given variable by taking into account current local bounds. if the bounds have changed since last update, updating the heuristic specific upper bound of the variable, its current transformed solution value and all affected rows is necessary.
Definition at line 1091 of file heur_shiftandpropagate.c. References checkViolations(), getColumnData(), NULL, SCIP_Bool, SCIP_Real, SCIPdebugMessage, SCIPinfinity(), SCIPisFeasLE(), SCIPisFeasLT(), SCIPisFeasZero(), SCIPisInfinity(), TRANSFORMSTATUS_FREE, TRANSFORMSTATUS_LB, TRANSFORMSTATUS_NEG, transformVariable(), and updateViolations(). Referenced by SCIP_DECL_EVENTEXEC(), and SCIP_DECL_HEUREXEC().
comparison method for columns; binary < integer < implicit < continuous variables Definition at line 1219 of file heur_shiftandpropagate.c. References NULL, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_CONTINUOUS, SCIP_VARTYPE_IMPLINT, SCIP_VARTYPE_INTEGER, SCIPABORT, SCIPcolGetVar(), SCIPerrorMessage, and SCIPvarGetType().
deinitialization method of primal heuristic(called before transformed problem is freed) Definition at line 1288 of file heur_shiftandpropagate.c. References NULL, SCIP_OKAY, SCIPheurGetData(), SCIPstatistic, and SCIPstatisticMessage.
initialization method of primal heuristic(called after problem was transformed). We only need this method for statistic mode of heuristic. Definition at line 1318 of file heur_shiftandpropagate.c. References DEFAULT_RANDSEED, NULL, SCIP_LPSOLSTAT_NOTSOLVED, SCIP_OKAY, SCIPheurGetData(), and SCIPstatistic.
destructor of primal heuristic to free user data(called when SCIP is exiting) Definition at line 1343 of file heur_shiftandpropagate.c. References NULL, SCIP_OKAY, SCIPeventhdlrGetData(), SCIPfreeMemory, SCIPheurGetData(), and SCIPheurSetData().
copy method for primal heuristic plugins(called when SCIP copies plugins) Definition at line 1368 of file heur_shiftandpropagate.c. References HEUR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPheurGetName(), and SCIPincludeHeurShiftandpropagate().
execution method of primal heuristic Definition at line 1382 of file heur_shiftandpropagate.c. References BMSclearMemoryArray, BMScopyMemoryArray, checkViolations(), DEFAULT_PROPBREAKER, DEFAULT_WEIGHT_EQUALITY, DEFAULT_WEIGHT_INEQUALITY, FALSE, freeMatrix(), getOptimalShiftingValue(), initMatrix(), NULL, retransformVariable(), SCIP_Bool, SCIP_CALL, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_EVENTTYPE_BOUNDCHANGED, SCIP_FOUNDSOL, SCIP_Longint, SCIP_LPSOLSTAT_OPTIMAL, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_INTEGER, SCIPallocBuffer, SCIPallocBufferArray, SCIPbacktrackProbing(), SCIPcatchVarEvent(), SCIPchgVarLbProbing(), SCIPchgVarUbProbing(), SCIPcolGetLPPos(), SCIPcolGetVar(), SCIPconstructLP(), SCIPcreateSol(), SCIPdebug, SCIPdebugMessage, SCIPdisableVarHistory(), SCIPdropVarEvent(), SCIPenableVarHistory(), SCIPendProbing(), SCIPeventhdlrGetData(), SCIPfixVarProbing(), SCIPflushLP(), SCIPfreeBuffer, SCIPfreeBufferArray, SCIPfreeSol(), SCIPgetBestSol(), SCIPgetLPColsData(), SCIPgetLPSolstat(), SCIPgetNContVars(), SCIPgetNLPIterations(), SCIPgetNLPRows(), SCIPgetNVars(), SCIPgetProbingDepth(), SCIPgetSolOrigObj(), SCIPgetVars(), SCIPhasCurrentNodeLP(), SCIPheurGetData(), SCIPisFeasEQ(), SCIPisFeasGE(), SCIPisFeasLE(), SCIPisFeasZero(), SCIPisInfinity(), SCIPisLE(), SCIPisLPConstructed(), SCIPisStopped(), SCIPlinkLPSol(), SCIPnewProbingNode(), SCIPpermuteIntArray(), SCIPprintSol(), SCIPpropagateProbing(), SCIPsetSolVal(), SCIPsolSetHeur(), SCIPsolveProbingLP(), SCIPsortDownIntInt(), SCIPsortDownRealInt(), SCIPsortIntInt(), SCIPsortPtr(), SCIPsortRealInt(), SCIPstartProbing(), SCIPstatistic, SCIPstatisticMessage, SCIPtrySol(), SCIPvarGetCol(), SCIPvarGetLbLocal(), SCIPvarGetName(), SCIPvarGetNLocksDown(), SCIPvarGetNLocksUp(), SCIPvarGetType(), SCIPvarGetUbLocal(), SCIPvarIsBinary(), SCIPvarIsInLP(), SCIPvarIsIntegral(), SCIPwarningMessage(), TRANSFORMSTATUS_FREE, TRUE, updateTransformation(), and varIsDiscrete().
event handler execution method for the heuristic which catches all events in which a lower or upper bound were tightened Definition at line 2125 of file heur_shiftandpropagate.c. References EVENTHDLR_NAME, NULL, SCIP_OKAY, SCIP_Real, SCIPcolGetVar(), SCIPeventhdlrGetData(), SCIPeventhdlrGetName(), SCIPvarGetLbLocal(), SCIPvarGetUbLocal(), and updateTransformation().
creates the shiftandpropagate primal heuristic and includes it in SCIP
Definition at line 2169 of file heur_shiftandpropagate.c. References DEFAULT_COLLECTSTATS, DEFAULT_CUTOFFBREAKER, DEFAULT_FIXBINLOCKS, DEFAULT_IMPLISCONTINUOUS, DEFAULT_NORMALIZE, DEFAULT_NOZEROFIXING, DEFAULT_NPROPROUNDS, DEFAULT_ONLYWITHOUTSOL, DEFAULT_PREFERBINARIES, DEFAULT_PROBING, DEFAULT_RELAX, DEFAULT_SORTKEY, DEFAULT_SORTVARS, DEFAULT_STOPAFTERFEASIBLE, DEFAULT_UPDATEWEIGHTS, EVENTHDLR_DESC, EVENTHDLR_NAME, HEUR_DESC, HEUR_DISPCHAR, HEUR_FREQ, HEUR_FREQOFS, HEUR_MAXDEPTH, HEUR_NAME, HEUR_PRIORITY, HEUR_TIMING, HEUR_USESSUBSCIP, NULL, SCIP_CALL, SCIP_OKAY, SCIPaddBoolParam(), SCIPaddCharParam(), SCIPaddIntParam(), SCIPallocMemory, SCIPincludeEventhdlrBasic(), SCIPincludeHeurBasic(), SCIPsetHeurCopy(), SCIPsetHeurExit(), SCIPsetHeurFree(), SCIPsetHeurInit(), SORTKEYS, and TRUE. Referenced by SCIP_DECL_HEURCOPY(), and SCIPincludeDefaultPlugins(). |