Detailed DescriptionLNS heuristic that finds the optimal rounding to a given point. Definition in file heur_rens.c. #include <assert.h> #include <string.h> #include <stdio.h> #include "scip/scip.h" #include "scip/heur_rens.h" #include "scip/scipdefplugins.h" #include "scip/cons_linear.h" #include "scip/pub_misc.h" Go to the source code of this file.
Macro Definition Documentation
Definition at line 33 of file heur_rens.c. Referenced by SCIP_DECL_HEURCOPY(), SCIPapplyRens(), and SCIPincludeHeurRens().
Definition at line 34 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 35 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 36 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 37 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 38 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 39 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 40 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
does the heuristic use a secondary SCIP instance? Definition at line 41 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 44 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 45 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 46 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 47 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 48 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 49 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 50 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 51 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 52 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 53 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Value:
FALSE /* should subproblem be created out of the rows in the LP rows, * otherwise, the copy constructors of the constraints handlers are used */
Definition at line 54 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Value:
TRUE /* if DEFAULT_USELPROWS is FALSE, then should all active cuts from the cutpool * of the original scip be copied to constraints of the subscip */
Definition at line 56 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Value:
FALSE /* should the RENS sub-CIP get its own full time limit? This is only * implemented for testing and not recommended to be used! */
Definition at line 59 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 62 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Value:
FALSE /* should the RENS sub-CIP be solved with full-scale SCIP settings, including * techniques that merely work on the dual bound, e.g., cuts? This is only * implemented for testing and not recommended to be used! */
Definition at line 64 of file heur_rens.c. Referenced by SCIPincludeHeurRens().
Definition at line 70 of file heur_rens.c. Referenced by SCIP_DECL_EVENTEXEC(), and SCIPapplyRens().
Definition at line 71 of file heur_rens.c. Referenced by SCIPapplyRens(). Function Documentation
compute the number of initial fixings and check whether the fixing rate exceeds the minimum fixing rate
Definition at line 109 of file heur_rens.c. References FALSE, MAX, NULL, SCIP_CALL, SCIP_NLPPAR_VERBLEVEL, SCIP_NLPSOLSTAT_FEASIBLE, SCIP_NLPSOLSTAT_GLOBOPT, SCIP_NLPSOLSTAT_LOCOPT, SCIP_OKAY, SCIP_Real, SCIPdebug, SCIPdebugMessage, SCIPgetNLPBranchCands(), SCIPgetNLPIntPar(), SCIPgetNLPSolstat(), SCIPgetNPseudoBranchCands(), SCIPgetVarsData(), SCIPisFeasIntegral(), SCIPisNLPConstructed(), SCIPsetNLPInitialGuessSol(), SCIPsetNLPIntPar(), SCIPsolveNLP(), SCIPvarGetNLPSol(), and TRUE. Referenced by SCIPapplyRens().
creates a subproblem by fixing a number of variables
Definition at line 208 of file heur_rens.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaddCons(), SCIPallocBufferArray, SCIPchgVarLbGlobal(), SCIPchgVarUbGlobal(), SCIPcolGetVar(), SCIPcreateConsLinear(), SCIPfeasCeil(), SCIPfeasFloor(), SCIPfloor(), SCIPfreeBufferArray, SCIPgetLPRowsData(), SCIPgetVarsData(), SCIPisFeasIntegral(), SCIPreleaseCons(), SCIProwGetCols(), SCIProwGetConstant(), SCIProwGetLhs(), SCIProwGetName(), SCIProwGetNNonz(), SCIProwGetRhs(), SCIProwGetVals(), SCIProwIsLocal(), SCIPvarGetLbGlobal(), SCIPvarGetLPSol(), SCIPvarGetNLPSol(), SCIPvarGetProbindex(), SCIPvarGetUbGlobal(), and TRUE. Referenced by SCIPapplyRens().
creates a new solution for the original problem by copying the solution of the subproblem
Definition at line 328 of file heur_rens.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPcreateSol(), SCIPfreeBufferArray, SCIPgetNOrigVars(), SCIPgetSolVals(), SCIPgetVarsData(), SCIPsetSolVals(), SCIPtrySolFree(), and TRUE. Referenced by SCIPapplyRens().
Definition at line 379 of file heur_rens.c. References EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_EVENTTYPE_LPSOLVED, SCIP_OKAY, SCIPdebugMessage, SCIPeventGetType(), SCIPeventhdlrGetName(), SCIPgetNLPs(), and SCIPinterruptSolve().
main procedure of the RENS heuristic, creates and solves a sub-SCIP
Definition at line 405 of file heur_rens.c. References computeFixingrate(), createNewSol(), createSubproblem(), EVENTHDLR_DESC, EVENTHDLR_NAME, FALSE, HEUR_NAME, MAX, MIN, NULL, SCIP_Bool, SCIP_CALL, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_EVENTTYPE_LPSOLVED, SCIP_FOUNDSOL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPallocBufferArray, SCIPblkmem(), SCIPcalcHashtableSize(), SCIPcatchEvent(), SCIPcopy(), SCIPcopyCuts(), SCIPcopyVars(), SCIPcreate(), SCIPcreateProb(), SCIPdebug, SCIPdebugMessage, SCIPdropEvent(), SCIPerrorMessage, SCIPfindBranchrule(), SCIPfindConshdlr(), SCIPfindNodesel(), SCIPfree(), SCIPfreeBufferArray, SCIPgetBestSol(), SCIPgetLowerbound(), SCIPgetMemExternEstim(), SCIPgetMemUsed(), SCIPgetNConss(), SCIPgetNNodes(), SCIPgetNOrigVars(), SCIPgetNSols(), SCIPgetNVars(), SCIPgetPrimalbound(), SCIPgetProbName(), SCIPgetRealParam(), SCIPgetSols(), SCIPgetSolvingTime(), SCIPgetUpperbound(), SCIPgetVarsData(), SCIPhashmapCreate(), SCIPhashmapFree(), SCIPhashmapGetImage(), SCIPheurGetData(), SCIPincludeDefaultPlugins(), SCIPincludeEventhdlrBasic(), SCIPinfinity(), SCIPisInfinity(), SCIPisParamFixed(), SCIPmergeVariableStatistics(), SCIPpresolve(), SCIPprintStatistics(), SCIPsetBoolParam(), SCIPsetIntParam(), SCIPsetLongintParam(), SCIPsetObjlimit(), SCIPsetPresolving(), SCIPsetRealParam(), SCIPsetSeparating(), SCIPsetSubscipsOff(), SCIPsnprintf(), SCIPsolGetNodenum(), SCIPsolve(), SCIPstatisticPrintf, SCIPsumepsilon(), SCIPtransformProb(), SCIPwarningMessage(), and TRUE. Referenced by SCIP_DECL_HEUREXEC().
copy method for primal heuristic plugins (called when SCIP copies plugins) Definition at line 748 of file heur_rens.c. References HEUR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPheurGetName(), and SCIPincludeHeurRens().
destructor of primal heuristic to free user data (called when SCIP is exiting) Definition at line 762 of file heur_rens.c. References NULL, SCIP_OKAY, SCIPfreeMemory, SCIPheurGetData(), and SCIPheurSetData().
initialization method of primal heuristic (called after problem was transformed) Definition at line 782 of file heur_rens.c. References NULL, SCIP_OKAY, and SCIPheurGetData().
execution method of primal heuristic Definition at line 802 of file heur_rens.c. References MIN, NULL, SCIP_CALL, SCIP_DELAYED, SCIP_DIDNOTRUN, SCIP_Longint, SCIP_LPSOLSTAT_OPTIMAL, SCIP_OKAY, SCIPapplyRens(), SCIPdebugMessage, SCIPgetCutoffbound(), SCIPgetLPObjval(), SCIPgetLPSolstat(), SCIPgetNLPBranchCands(), SCIPgetNNlpis(), SCIPgetNNodes(), SCIPhasCurrentNodeLP(), SCIPheurGetData(), SCIPheurGetNBestSolsFound(), SCIPheurGetNCalls(), SCIPisGE(), and SCIPisStopped().
creates the rens primal heuristic and includes it in SCIP
Definition at line 875 of file heur_rens.c. References DEFAULT_ADDALLSOLS, DEFAULT_BINARYBOUNDS, DEFAULT_COPYCUTS, DEFAULT_EXTRATIME, DEFAULT_FULLSCALE, DEFAULT_LPLIMFAC, DEFAULT_MAXNODES, DEFAULT_MINFIXINGRATE, DEFAULT_MINIMPROVE, DEFAULT_MINNODES, DEFAULT_NODESOFS, DEFAULT_NODESQUOT, DEFAULT_STARTSOL, DEFAULT_USELPROWS, FALSE, HEUR_DESC, HEUR_DISPCHAR, HEUR_FREQ, HEUR_FREQOFS, HEUR_MAXDEPTH, HEUR_NAME, HEUR_PRIORITY, HEUR_TIMING, HEUR_USESSUBSCIP, NULL, SCIP_CALL, SCIP_LONGINT_MAX, SCIP_OKAY, SCIP_REAL_MAX, SCIPaddBoolParam(), SCIPaddCharParam(), SCIPaddLongintParam(), SCIPaddRealParam(), SCIPallocMemory, SCIPincludeHeurBasic(), SCIPsetHeurCopy(), SCIPsetHeurFree(), SCIPsetHeurInit(), STARTSOL_CHOICES, and TRUE. Referenced by SCIP_DECL_HEURCOPY(), and SCIPincludeDefaultPlugins(). |