Detailed DescriptionLNS heuristic that tries to randomly mutate the incumbent solution. Definition in file heur_mutation.c. #include <assert.h> #include <string.h> #include "scip/scip.h" #include "scip/scipdefplugins.h" #include "scip/cons_linear.h" #include "scip/heur_mutation.h" #include "scip/pub_misc.h" Go to the source code of this file.
Macro Definition Documentation
Definition at line 31 of file heur_mutation.c. Referenced by SCIP_DECL_HEURCOPY(), and SCIPincludeHeurMutation().
Definition at line 32 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 33 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 34 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 35 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 36 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 37 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 38 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
does the heuristic use a secondary SCIP instance? Definition at line 39 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 41 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 42 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 43 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 44 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 45 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 46 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
Definition at line 47 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
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 48 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation().
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 50 of file heur_mutation.c. Referenced by SCIPincludeHeurMutation(). Function Documentation
creates a subproblem for subscip by fixing a number of variables
Definition at line 83 of file heur_mutation.c. References BMSclearMemoryArray, FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPaddCons(), SCIPallocBufferArray, SCIPceil(), SCIPchgVarLbGlobal(), SCIPchgVarUbGlobal(), SCIPcolGetVar(), SCIPcreateConsLinear(), SCIPfloor(), SCIPfreeBufferArray, SCIPgetBestSol(), SCIPgetLPRowsData(), SCIPgetRandomInt(), SCIPgetSolVal(), SCIPgetVarsData(), SCIPisGT(), SCIPisInfinity(), SCIPisLE(), SCIPisLT(), SCIPreleaseCons(), SCIProwGetCols(), SCIProwGetConstant(), SCIProwGetLhs(), SCIProwGetName(), SCIProwGetNNonz(), SCIProwGetRhs(), SCIProwGetVals(), SCIProwIsLocal(), SCIPvarGetLbGlobal(), SCIPvarGetProbindex(), SCIPvarGetUbGlobal(), and TRUE. Referenced by SCIP_DECL_HEUREXEC().
creates a new solution for the original problem by copying the solution of the subproblem
Definition at line 246 of file heur_mutation.c. References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPcreateSol(), SCIPfreeBufferArray, SCIPgetNOrigVars(), SCIPgetSolVals(), SCIPgetVarsData(), SCIPsetSolVals(), SCIPtrySolFree(), and TRUE. Referenced by SCIP_DECL_HEUREXEC().
copy method for primal heuristic plugins (called when SCIP copies plugins) Definition at line 296 of file heur_mutation.c. References HEUR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPheurGetName(), and SCIPincludeHeurMutation().
destructor of primal heuristic to free user data (called when SCIP is exiting) Definition at line 310 of file heur_mutation.c. References NULL, SCIP_OKAY, SCIPfreeMemory, SCIPheurGetData(), and SCIPheurSetData().
initialization method of primal heuristic (called after problem was transformed) Definition at line 330 of file heur_mutation.c. References NULL, SCIP_OKAY, and SCIPheurGetData().
execution method of primal heuristic Definition at line 351 of file heur_mutation.c. References createNewSol(), createSubproblem(), FALSE, MIN, NULL, SCIP_Bool, SCIP_CALL, SCIP_DELAYED, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_FOUNDSOL, SCIP_Longint, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PARAMSETTING_FAST, SCIP_PARAMSETTING_OFF, SCIP_Real, SCIPallocBufferArray, SCIPblkmem(), SCIPcalcHashtableSize(), SCIPcopy(), SCIPcopyCuts(), SCIPcopyVars(), SCIPcreate(), SCIPcreateProb(), SCIPdebugMessage, SCIPfindBranchrule(), SCIPfindConshdlr(), SCIPfindNodesel(), SCIPfree(), SCIPfreeBufferArray, SCIPgetBestSol(), SCIPgetLowerbound(), SCIPgetMemExternEstim(), SCIPgetMemUsed(), SCIPgetNBinVars(), SCIPgetNIntVars(), SCIPgetNNodes(), SCIPgetNSols(), SCIPgetProbName(), SCIPgetRealParam(), SCIPgetSolNodenum(), SCIPgetSols(), SCIPgetSolvingTime(), SCIPgetUpperbound(), SCIPgetVarsData(), SCIPhashmapCreate(), SCIPhashmapFree(), SCIPhashmapGetImage(), SCIPheurGetData(), SCIPheurGetNBestSolsFound(), SCIPheurGetNCalls(), SCIPincludeDefaultPlugins(), SCIPinfinity(), SCIPisInfinity(), SCIPisParamFixed(), SCIPisStopped(), SCIPmergeVariableStatistics(), SCIPsetBoolParam(), SCIPsetIntParam(), SCIPsetLongintParam(), SCIPsetObjlimit(), SCIPsetPresolving(), SCIPsetRealParam(), SCIPsetSeparating(), SCIPsetSubscipsOff(), SCIPsnprintf(), SCIPsolIsOriginal(), SCIPsolve(), SCIPsumepsilon(), SCIPwarningMessage(), and TRUE.
creates the mutation primal heuristic and includes it in SCIP
Definition at line 643 of file heur_mutation.c. References DEFAULT_COPYCUTS, DEFAULT_MAXNODES, DEFAULT_MINFIXINGRATE, DEFAULT_MINIMPROVE, DEFAULT_MINNODES, DEFAULT_NODESOFS, DEFAULT_NODESQUOT, DEFAULT_NWAITINGNODES, 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_OKAY, SCIPaddBoolParam(), SCIPaddIntParam(), SCIPaddRealParam(), SCIPallocMemory, SCIPincludeHeurBasic(), SCIPsetHeurCopy(), SCIPsetHeurFree(), SCIPsetHeurInit(), SCIPsumepsilon(), and TRUE. Referenced by SCIP_DECL_HEURCOPY(), and SCIPincludeDefaultPlugins(). |