Scippy

SCIP

Solving Constraint Integer Programs

heur_sync.c File Reference

Detailed Description

primal heuristic that adds solutions from synchronization

Author
Robert Lion 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   '$'
 
#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 33 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_DISPCHAR

#define HEUR_DISPCHAR   '$'

Definition at line 34 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_PRIORITY

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

Definition at line 35 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_FREQ

#define HEUR_FREQ   -1

Definition at line 36 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_FREQOFS

#define HEUR_FREQOFS   0

Definition at line 37 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_MAXDEPTH

#define HEUR_MAXDEPTH   -1

Definition at line 38 of file heur_sync.c.

Referenced by SCIPincludeHeurSync().

◆ HEUR_TIMING

Definition at line 39 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 40 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 63 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 86 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