Scippy

GCG

Branch-and-Price & Column Generation for Everyone

heur_gcgsimplerounding.c File Reference

Detailed Description

simple and fast LP rounding heuristic

Author
Tobias Achterberg
Christian Puchert

Definition in file heur_gcgsimplerounding.c.

#include <assert.h>
#include <string.h>
#include "gcg/heur_gcgsimplerounding.h"
#include "gcg/gcg.h"

Go to the source code of this file.

Data Structures

struct  SCIP_HeurData
 

Macros

#define HEUR_NAME   "gcgsimplerounding"
 
#define HEUR_DESC   "simple and fast LP rounding heuristic on original variables"
 
#define HEUR_DISPCHAR   'r'
 
#define HEUR_PRIORITY   0
 
#define HEUR_FREQ   1
 
#define HEUR_FREQOFS   0
 
#define HEUR_MAXDEPTH   -1
 
#define HEUR_TIMING   SCIP_HEURTIMING_AFTERNODE
 
#define HEUR_USESSUBSCIP   FALSE
 
#define heurCopyGcgsimplerounding   NULL
 
#define heurExitsolGcgsimplerounding   NULL
 

Functions

static SCIP_DECL_HEURFREE (heurFreeGcgsimplerounding)
 
static SCIP_DECL_HEURINIT (heurInitGcgsimplerounding)
 
static SCIP_DECL_HEUREXIT (heurExitGcgsimplerounding)
 
static SCIP_DECL_HEURINITSOL (heurInitsolGcgsimplerounding)
 
static SCIP_DECL_HEUREXEC (heurExecGcgsimplerounding)
 
SCIP_RETCODE GCGincludeHeurGcgsimplerounding (GCG *gcg)
 

Macro Definition Documentation

◆ HEUR_NAME

#define HEUR_NAME   "gcgsimplerounding"

Definition at line 44 of file heur_gcgsimplerounding.c.

◆ HEUR_DESC

#define HEUR_DESC   "simple and fast LP rounding heuristic on original variables"

Definition at line 45 of file heur_gcgsimplerounding.c.

◆ HEUR_DISPCHAR

#define HEUR_DISPCHAR   'r'

Definition at line 46 of file heur_gcgsimplerounding.c.

◆ HEUR_PRIORITY

#define HEUR_PRIORITY   0

Definition at line 47 of file heur_gcgsimplerounding.c.

◆ HEUR_FREQ

#define HEUR_FREQ   1

Definition at line 48 of file heur_gcgsimplerounding.c.

◆ HEUR_FREQOFS

#define HEUR_FREQOFS   0

Definition at line 49 of file heur_gcgsimplerounding.c.

◆ HEUR_MAXDEPTH

#define HEUR_MAXDEPTH   -1

Definition at line 50 of file heur_gcgsimplerounding.c.

◆ HEUR_TIMING

#define HEUR_TIMING   SCIP_HEURTIMING_AFTERNODE

Definition at line 51 of file heur_gcgsimplerounding.c.

◆ HEUR_USESSUBSCIP

#define HEUR_USESSUBSCIP   FALSE

Definition at line 52 of file heur_gcgsimplerounding.c.

◆ heurCopyGcgsimplerounding

#define heurCopyGcgsimplerounding   NULL

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

Definition at line 72 of file heur_gcgsimplerounding.c.

◆ heurExitsolGcgsimplerounding

#define heurExitsolGcgsimplerounding   NULL

solving process deinitialization method of primal heuristic (called before branch and bound process data is freed)

Definition at line 145 of file heur_gcgsimplerounding.c.

Function Documentation

◆ SCIP_DECL_HEURFREE()

static SCIP_DECL_HEURFREE ( heurFreeGcgsimplerounding  )
static

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

Definition at line 76 of file heur_gcgsimplerounding.c.

References HEUR_NAME, NULL, SCIP_OKAY, SCIPfreeMemory, SCIPheurGetData(), and SCIPheurGetName().

◆ SCIP_DECL_HEURINIT()

static SCIP_DECL_HEURINIT ( heurInitGcgsimplerounding  )
static

initialization method of primal heuristic (called after problem was transformed)

Definition at line 93 of file heur_gcgsimplerounding.c.

References HEUR_NAME, SCIP_HeurData::lastlp, SCIP_HeurData::nroundablevars, NULL, SCIP_CALL, SCIP_OKAY, SCIPcreateSol(), SCIPheurGetData(), SCIPheurGetName(), and SCIP_HeurData::sol.

◆ SCIP_DECL_HEUREXIT()

static SCIP_DECL_HEUREXIT ( heurExitGcgsimplerounding  )
static

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

Definition at line 113 of file heur_gcgsimplerounding.c.

References HEUR_NAME, NULL, SCIP_CALL, SCIP_OKAY, SCIPfreeSol(), SCIPheurGetData(), SCIPheurGetName(), and SCIP_HeurData::sol.

◆ SCIP_DECL_HEURINITSOL()

static SCIP_DECL_HEURINITSOL ( heurInitsolGcgsimplerounding  )
static

solving process initialization method of primal heuristic (called when branch and bound process is about to begin)

Definition at line 130 of file heur_gcgsimplerounding.c.

References HEUR_NAME, SCIP_HeurData::lastlp, NULL, SCIP_OKAY, SCIPheurGetData(), and SCIPheurGetName().

◆ SCIP_DECL_HEUREXEC()

◆ GCGincludeHeurGcgsimplerounding()

SCIP_RETCODE GCGincludeHeurGcgsimplerounding ( GCG *  gcg)

creates the GCG simple rounding heuristic and includes it in SCIP

Parameters
gcgGCG data structure

Definition at line 308 of file heur_gcgsimplerounding.c.

References SCIP_HeurData::gcg, GCGgetOrigprob(), HEUR_DESC, HEUR_DISPCHAR, HEUR_FREQ, HEUR_FREQOFS, HEUR_MAXDEPTH, HEUR_NAME, HEUR_PRIORITY, HEUR_TIMING, HEUR_USESSUBSCIP, heurCopyGcgsimplerounding, heurExitsolGcgsimplerounding, SCIP_CALL, SCIP_OKAY, SCIPallocMemory, and SCIPincludeHeur().

Referenced by GCGincludeGcgPlugins().