Scippy

SCIP

Solving Constraint Integer Programs

heur_reoptsols.c File Reference

Detailed Description

reoptsols primal heuristic

Author
Jakob Witzig

Definition in file heur_reoptsols.c.

#include <assert.h>
#include <string.h>
#include "scip/heur_reoptsols.h"
#include "scip/reopt.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   'J'
 
#define HEUR_PRIORITY   40000
 
#define HEUR_FREQ   -1
 
#define HEUR_FREQOFS   0
 
#define HEUR_MAXDEPTH   0
 
#define HEUR_TIMING   SCIP_HEURTIMING_BEFOREPRESOL
 
#define HEUR_USESSUBSCIP   FALSE
 
#define heurInitsolReoptsols   NULL
 
#define heurExitsolReoptsols   NULL
 
#define heurExitReoptsols   NULL
 

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

#define HEUR_DESC   "primal heuristic updating solutions found in a previous optimization round"

Definition at line 31 of file heur_reoptsols.c.

Referenced by SCIPincludeHeurReoptsols().

#define HEUR_DISPCHAR   'J'

Definition at line 32 of file heur_reoptsols.c.

Referenced by SCIPincludeHeurReoptsols().

#define HEUR_PRIORITY   40000

Definition at line 33 of file heur_reoptsols.c.

Referenced by SCIPincludeHeurReoptsols().

#define HEUR_FREQ   -1

Definition at line 34 of file heur_reoptsols.c.

Referenced by SCIPincludeHeurReoptsols().

#define HEUR_FREQOFS   0

Definition at line 35 of file heur_reoptsols.c.

Referenced by SCIPincludeHeurReoptsols().

#define HEUR_MAXDEPTH   0

Definition at line 36 of file heur_reoptsols.c.

Referenced by SCIPincludeHeurReoptsols().

#define HEUR_TIMING   SCIP_HEURTIMING_BEFOREPRESOL

Definition at line 37 of file heur_reoptsols.c.

Referenced by SCIPincludeHeurReoptsols().

#define HEUR_USESSUBSCIP   FALSE

does the heuristic use a secondary SCIP instance?

Definition at line 38 of file heur_reoptsols.c.

Referenced by SCIPincludeHeurReoptsols().

#define heurInitsolReoptsols   NULL

Definition at line 63 of file heur_reoptsols.c.

Referenced by SCIPincludeHeurReoptsols().

#define heurExitsolReoptsols   NULL

Definition at line 64 of file heur_reoptsols.c.

Referenced by SCIPincludeHeurReoptsols().

#define heurExitReoptsols   NULL

Definition at line 65 of file heur_reoptsols.c.

Referenced by SCIPincludeHeurReoptsols().

Function Documentation

static SCIP_RETCODE createNewSol ( SCIP scip,
SCIP_HEUR heur,
SCIP_SOL sol,
SCIP_Bool success 
)
static

creates a new solution for the original problem by copying the solution of the subproblem

Parameters
sciporiginal SCIP data structure
heurthe current heuristic
solsolution of the subproblem
successused to store whether new solution was found or not

Definition at line 69 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().

static SCIP_DECL_HEURCOPY ( heurCopyReoptsols  )
static

copy method for primal heuristic plugins (called when SCIP copies plugins)

Definition at line 105 of file heur_reoptsols.c.

References HEUR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPheurGetName(), and SCIPincludeHeurReoptsols().

static SCIP_DECL_HEURFREE ( heurFreeReoptsols  )
static

Definition at line 119 of file heur_reoptsols.c.

References NULL, SCIP_OKAY, SCIPfreeMemory, SCIPheurGetData(), and SCIPheurSetData().

static SCIP_DECL_HEURINIT ( heurInitReoptsols  )
static

Definition at line 137 of file heur_reoptsols.c.

References NULL, SCIP_OKAY, and SCIPheurGetData().

int SCIPreoptsolsGetNCheckedsols ( SCIP scip)

Definition at line 302 of file heur_reoptsols.c.

References HEUR_NAME, NULL, SCIPfindHeur(), and SCIPheurGetData().

int SCIPreoptsolsGetNImprovingsols ( SCIP scip)

Definition at line 321 of file heur_reoptsols.c.

References HEUR_NAME, NULL, SCIPfindHeur(), and SCIPheurGetData().