Scippy

SCIP

Solving Constraint Integer Programs

Detailed Description

primal heuristic that adds solutions from synchronization

Author
Leona Gottwald

This heuristic takes solutions during synchronization and then adds them.

Definition in file heur_sync.c.

#include <assert.h>
#include <string.h>
#include "scip/heur_sync.h"
#include "scip/scip.h"

Go to the source code of this file.

Macros

#define HEUR_NAME   "sync"
 
#define HEUR_DESC   "heuristic for synchronizing solution"
 
#define HEUR_DISPCHAR   'S'
 
#define HEUR_PRIORITY   -3000000 /* should process after all other heuristics */
 
#define HEUR_FREQ   -1
 
#define HEUR_FREQOFS   0
 
#define HEUR_MAXDEPTH   -1
 
#define HEUR_TIMING   SCIP_HEURTIMING_DURINGLPLOOP | SCIP_HEURTIMING_BEFOREPRESOL | SCIP_HEURTIMING_BEFORENODE
 
#define HEUR_USESSUBSCIP   FALSE
 

Functions

static SCIP_DECL_HEURFREE (heurFreeSync)
 
static SCIP_DECL_HEUREXITSOL (heurExitSync)
 
static SCIP_DECL_HEUREXEC (heurExecSync)
 
SCIP_RETCODE SCIPincludeHeurSync (SCIP *scip)
 
SCIP_RETCODE SCIPheurSyncPassSol (SCIP *scip, SCIP_HEUR *heur, SCIP_SOL *sol)
 

Macro Definition Documentation

◆ HEUR_NAME

#define HEUR_NAME   "sync"

◆ HEUR_DESC

#define HEUR_DESC   "heuristic for synchronizing solution"

Definition at line 43 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_DISPCHAR

#define HEUR_DISPCHAR   'S'

Definition at line 44 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_PRIORITY

#define HEUR_PRIORITY   -3000000 /* should process after all other heuristics */

Definition at line 45 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_FREQ

#define HEUR_FREQ   -1

Definition at line 46 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_FREQOFS

#define HEUR_FREQOFS   0

Definition at line 47 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_MAXDEPTH

#define HEUR_MAXDEPTH   -1

Definition at line 48 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_TIMING

Definition at line 49 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_USESSUBSCIP

#define HEUR_USESSUBSCIP   FALSE

does the heuristic use a secondary SCIP instance?

Definition at line 50 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

Function Documentation

◆ SCIP_DECL_HEURFREE()

static SCIP_DECL_HEURFREE ( heurFreeSync  )
static

destructor of primal heuristic to free user data (called when SCIP is exiting)

Definition at line 73 of file heur_sync.c.

References HEUR_NAME, NULL, SCIP_OKAY, SCIPdebugMessage, SCIPfreeBlockMemory, SCIPfreeBlockMemoryArray, SCIPheurGetData(), and SCIPheurGetName().

◆ SCIP_DECL_HEUREXITSOL()

static SCIP_DECL_HEUREXITSOL ( heurExitSync  )
static

deinitialization method of primal heuristic (called before transformed problem is freed)

Definition at line 96 of file heur_sync.c.

References HEUR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPdebugMessage, SCIPfreeSol(), SCIPheurGetData(), and SCIPheurGetName().

◆ SCIP_DECL_HEUREXEC()

static SCIP_DECL_HEUREXEC ( heurExecSync  )
static