Detailed DescriptionOFINS - Objective Function Induced Neighborhood Search - a primal heuristic for reoptimization. Definition in file heur_ofins.c. #include <assert.h> #include <string.h> #include <stdio.h> #include "scip/heur_ofins.h" #include "scip/scipdefplugins.h" #include "scip/pub_misc.h" Go to the source code of this file.
Macro Definition Documentation
Definition at line 31 of file heur_ofins.c. Referenced by applyOfins(), SCIP_DECL_HEURCOPY(), and SCIPincludeHeurOfins().
Definition at line 32 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
Definition at line 33 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
Definition at line 34 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
Definition at line 35 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
Definition at line 36 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
Definition at line 37 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
Definition at line 38 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
does the heuristic use a secondary SCIP instance? Definition at line 39 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
maximum number of nodes to regard in the subproblem Definition at line 42 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
maximum percentage of changed objective coefficients Definition at line 43 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
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 44 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
maximal rate of change per coefficient to get fixed Definition at line 47 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
factor by which OFINS should at least improve the incumbent Definition at line 48 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
should all subproblem solutions be added to the original SCIP? Definition at line 49 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
minimum number of nodes to regard in the subproblem Definition at line 50 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
number of nodes added to the contingent of the total nodes Definition at line 51 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
subproblem nodes in relation to nodes of the original problem Definition at line 52 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
factor by which the limit on the number of LP depends on the node limit Definition at line 53 of file heur_ofins.c. Referenced by SCIPincludeHeurOfins().
Definition at line 56 of file heur_ofins.c. Referenced by applyOfins(), and SCIP_DECL_EVENTEXEC().
Definition at line 57 of file heur_ofins.c. Referenced by applyOfins(). Function Documentation
Definition at line 83 of file heur_ofins.c. References createSubproblem(), EVENTHDLR_NAME, NULL, SCIP_CALL, SCIP_EVENTTYPE_LPSOLVED, SCIP_OKAY, SCIPdebugMessage, SCIPeventGetType(), SCIPeventhdlrGetName(), SCIPgetNLPs(), and SCIPinterruptSolve().
creates a subproblem by fixing a number of variables
Definition at line 108 of file heur_ofins.c. References createNewSol(), NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPchgVarLbGlobal(), SCIPchgVarUbGlobal(), SCIPdebugMessage, SCIPgetNBinVars(), SCIPgetReoptLastOptSol(), SCIPgetSolVal(), SCIPgetUpperbound(), SCIPgetVars(), and SCIPsetObjlimit(). Referenced by applyOfins(), and SCIP_DECL_EVENTEXEC().
creates a new solution for the original problem by copying the solution of the subproblem
Definition at line 158 of file heur_ofins.c. References applyOfins(), FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPcreateSol(), SCIPfreeBufferArray, SCIPgetNOrigVars(), SCIPgetSolVals(), SCIPgetVarsData(), SCIPsetSolVals(), SCIPtrySolFree(), and TRUE. Referenced by applyOfins(), and createSubproblem().
main procedure of the OFINS heuristic, creates and solves a sub-SCIP
Definition at line 204 of file heur_ofins.c. References createNewSol(), createSubproblem(), EVENTHDLR_DESC, EVENTHDLR_NAME, FALSE, HEUR_NAME, NULL, SCIP_Bool, SCIP_CALL, SCIP_DECL_HEURCOPY(), SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_EVENTTYPE_LPSOLVED, SCIP_FOUNDSOL, SCIP_OKAY, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, SCIP_PLUGINNOTFOUND, SCIP_Real, SCIPallocBufferArray, SCIPblkmem(), SCIPcalcHashtableSize(), SCIPcatchEvent(), SCIPcopy(), SCIPcopyCuts(), SCIPcreate(), SCIPdebug, SCIPdebugMessage, SCIPdropEvent(), SCIPerrorMessage, SCIPfindBranchrule(), SCIPfindNodesel(), SCIPfree(), SCIPfreeBufferArray, SCIPgetBestSol(), SCIPgetMemExternEstim(), SCIPgetMemUsed(), SCIPgetNConss(), SCIPgetNNodes(), SCIPgetNSols(), SCIPgetNVars(), SCIPgetPrimalbound(), SCIPgetRealParam(), SCIPgetReoptLastOptSol(), SCIPgetSols(), SCIPgetSolvingTime(), SCIPgetVars(), SCIPhashmapCreate(), SCIPhashmapFree(), SCIPhashmapGetImage(), SCIPincludeEventhdlrBasic(), SCIPinfinity(), SCIPisInfinity(), SCIPisParamFixed(), SCIPpresolve(), SCIPprintStatistics(), SCIPsetBoolParam(), SCIPsetIntParam(), SCIPsetLongintParam(), SCIPsetPresolving(), SCIPsetRealParam(), SCIPsetSeparating(), SCIPsetSubscipsOff(), SCIPsolGetNodenum(), SCIPsolve(), SCIPstatisticPrintf, SCIPtransformProb(), SCIPwarningMessage(), and TRUE. Referenced by createNewSol(), and SCIP_DECL_HEUREXEC().
copy method for primal heuristic plugins (called when SCIP copies plugins) Definition at line 441 of file heur_ofins.c. References HEUR_NAME, NULL, SCIP_CALL, SCIP_DECL_HEURFREE(), SCIP_OKAY, SCIPheurGetName(), and SCIPincludeHeurOfins(). Referenced by applyOfins().
destructor of primal heuristic to free user data (called when SCIP is exiting) Definition at line 455 of file heur_ofins.c. References NULL, SCIP_DECL_HEUREXEC(), SCIP_OKAY, SCIPfreeMemory, SCIPheurGetData(), and SCIPheurSetData(). Referenced by SCIP_DECL_HEURCOPY().
execution method of primal heuristic Definition at line 475 of file heur_ofins.c. References applyOfins(), FALSE, MAX, MIN, NULL, SCIP_Bool, SCIP_CALL, SCIP_DELAYED, SCIP_DIDNOTRUN, SCIP_INVALID, SCIP_Longint, SCIP_OKAY, SCIP_Real, SCIP_VARSTATUS_ORIGINAL, SCIPallocBufferArray, SCIPdebugMessage, SCIPfreeBufferArray, SCIPgetNBinVars(), SCIPgetNNodes(), SCIPgetNReoptRuns(), SCIPgetReoptOldObjCoef(), SCIPgetVars(), SCIPheurGetData(), SCIPheurGetNBestSolsFound(), SCIPheurGetNCalls(), SCIPincludeHeurOfins(), SCIPisNegative(), SCIPisPositive(), SCIPisReoptEnabled(), SCIPisStopped(), SCIPisZero(), SCIPvarGetObj(), SCIPvarGetOrigvarSum(), SCIPvarGetStatus(), SCIPvarIsActive(), and TRUE. Referenced by SCIP_DECL_HEURFREE().
creates the ofins primal heuristic and includes it in SCIP
Definition at line 630 of file heur_ofins.c. References DEFAULT_ADDALLSOLS, DEFAULT_COPYCUTS, DEFAULT_LPLIMFAC, DEFAULT_MAXCHANGE, DEFAULT_MAXCHGRATE, DEFAULT_MAXNODES, DEFAULT_MINIMPROVE, DEFAULT_MINNODES, DEFAULT_NODESOFS, DEFAULT_NODESQUOT, 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(), SCIPaddLongintParam(), SCIPaddRealParam(), SCIPallocMemory, SCIPincludeHeurBasic(), SCIPsetHeurCopy(), SCIPsetHeurFree(), and TRUE. Referenced by SCIP_DECL_HEURCOPY(), SCIP_DECL_HEUREXEC(), and SCIPincludeDefaultPlugins(). |