Detailed Description
reoptsols primal heuristic
Definition in file heur_reoptsols.c.
#include "blockmemshell/memory.h"
#include "scip/heur_reoptsols.h"
#include "scip/pub_heur.h"
#include "scip/pub_message.h"
#include "scip/scip_heur.h"
#include "scip/scip_mem.h"
#include "scip/scip_message.h"
#include "scip/scip_numerics.h"
#include "scip/scip_param.h"
#include "scip/scip_prob.h"
#include "scip/scip_reopt.h"
#include "scip/scip_sol.h"
#include "scip/scip_solve.h"
#include "scip/scip_solvingstats.h"
#include <string.h>
Go to the source code of this file.
Macros | |
#define | HEUR_NAME "reoptsols" |
#define | HEUR_DESC "primal heuristic updating solutions found in a previous optimization round" |
#define | HEUR_DISPCHAR SCIP_HEURDISPCHAR_PROP |
#define | HEUR_PRIORITY 40000 |
#define | HEUR_FREQ 0 |
#define | HEUR_FREQOFS 0 |
#define | HEUR_MAXDEPTH 0 |
#define | HEUR_TIMING SCIP_HEURTIMING_BEFORENODE |
#define | HEUR_USESSUBSCIP FALSE |
Functions | |
static SCIP_RETCODE | createNewSol (SCIP *scip, SCIP_HEUR *heur, SCIP_SOL *sol, SCIP_Bool *success) |
static | SCIP_DECL_HEURCOPY (heurCopyReoptsols) |
static | SCIP_DECL_HEURFREE (heurFreeReoptsols) |
static | SCIP_DECL_HEURINIT (heurInitReoptsols) |
static | SCIP_DECL_HEUREXEC (heurExecReoptsols) |
int | SCIPreoptsolsGetNCheckedsols (SCIP *scip) |
int | SCIPreoptsolsGetNImprovingsols (SCIP *scip) |
SCIP_RETCODE | SCIPincludeHeurReoptsols (SCIP *scip) |
Macro Definition Documentation
◆ HEUR_NAME
#define HEUR_NAME "reoptsols" |
Definition at line 50 of file heur_reoptsols.c.
◆ HEUR_DESC
#define HEUR_DESC "primal heuristic updating solutions found in a previous optimization round" |
Definition at line 51 of file heur_reoptsols.c.
◆ HEUR_DISPCHAR
#define HEUR_DISPCHAR SCIP_HEURDISPCHAR_PROP |
Definition at line 52 of file heur_reoptsols.c.
◆ HEUR_PRIORITY
#define HEUR_PRIORITY 40000 |
Definition at line 53 of file heur_reoptsols.c.
◆ HEUR_FREQ
#define HEUR_FREQ 0 |
Definition at line 54 of file heur_reoptsols.c.
◆ HEUR_FREQOFS
#define HEUR_FREQOFS 0 |
Definition at line 55 of file heur_reoptsols.c.
◆ HEUR_MAXDEPTH
#define HEUR_MAXDEPTH 0 |
Definition at line 56 of file heur_reoptsols.c.
◆ HEUR_TIMING
#define HEUR_TIMING SCIP_HEURTIMING_BEFORENODE |
Definition at line 57 of file heur_reoptsols.c.
◆ HEUR_USESSUBSCIP
#define HEUR_USESSUBSCIP FALSE |
does the heuristic use a secondary SCIP instance?
Definition at line 58 of file heur_reoptsols.c.
Function Documentation
◆ createNewSol()
|
static |
creates a new solution for the original problem by copying the solution of the subproblem
- Parameters
-
scip original SCIP data structure heur the current heuristic sol solution of the subproblem success used to store whether new solution was found or not
Definition at line 86 of file heur_reoptsols.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPcreateSol(), SCIPfreeBufferArray, SCIPgetSolVals(), SCIPgetVarsData(), SCIPsetSolVals(), SCIPtrySolFree(), and TRUE.
Referenced by SCIP_DECL_HEUREXEC().
◆ SCIP_DECL_HEURCOPY()
|
static |
copy method for primal heuristic plugins (called when SCIP copies plugins)
Definition at line 122 of file heur_reoptsols.c.
References HEUR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPheurGetName(), and SCIPincludeHeurReoptsols().
◆ SCIP_DECL_HEURFREE()
|
static |
Definition at line 136 of file heur_reoptsols.c.
References NULL, SCIP_OKAY, SCIPfreeBlockMemory, SCIPheurGetData(), and SCIPheurSetData().
◆ SCIP_DECL_HEURINIT()
|
static |
Definition at line 154 of file heur_reoptsols.c.
References NULL, SCIP_OKAY, and SCIPheurGetData().
◆ SCIP_DECL_HEUREXEC()
|
static |
execution method of primal heuristic
Definition at line 172 of file heur_reoptsols.c.
References createNewSol(), HEUR_NAME, MAX, NULL, SCIP_Bool, SCIP_CALL, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_FOUNDSOL, SCIP_INVALID, SCIP_INVALIDRESULT, SCIP_OKAY, SCIP_Real, SCIPallocBufferArray, SCIPdebugMsg, SCIPfreeBufferArray, SCIPgetBoolParam(), SCIPgetCutoffbound(), SCIPgetNReoptRuns(), SCIPgetRealParam(), SCIPgetReoptSimilarity(), SCIPgetReoptSolsRun(), SCIPgetSolTransObj(), SCIPheurGetData(), SCIPisFeasLT(), SCIPisInfinity(), SCIPisReoptEnabled(), SCIPreallocBufferArray, SCIPrecomputeSolObj(), and SCIPresetReoptSolMarks().