GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches

Detailed Description

primal heuristic interface for LP diving heuristics on the master variables

Author
Christian Puchert

Definition in file heur_masterdiving.h.

#include "scip/scip.h"
#include "gcg/gcg.h"

Go to the source code of this file.

Functions

GCG_EXPORT GCG_MASTER_DIVINGDATA * GCGheurGetDivingDataMaster (SCIP_HEUR *heur)
GCG_EXPORT void GCGheurSetDivingDataMaster (SCIP_HEUR *heur, GCG_MASTER_DIVINGDATA *divingdata)
GCG_EXPORT SCIP_RETCODE GCGincludeDivingHeurMaster (GCG *gcg, SCIP_HEUR **heur, const char *name, const char *desc, char dispchar, int priority, int freq, int freqofs, int maxdepth, GCG_DECL_MASTER_DIVINGFREE((*divingfree)), GCG_DECL_MASTER_DIVINGINIT((*divinginit)), GCG_DECL_MASTER_DIVINGEXIT((*divingexit)), GCG_DECL_MASTER_DIVINGINITSOL((*divinginitsol)), GCG_DECL_MASTER_DIVINGEXITSOL((*divingexitsol)), GCG_DECL_MASTER_DIVINGINITEXEC((*divinginitexec)), GCG_DECL_MASTER_DIVINGEXITEXEC((*divingexitexec)), GCG_DECL_MASTER_DIVINGSELECTVAR((*divingselectvar)), GCG_MASTER_DIVINGDATA *divingdata)
GCG_EXPORT SCIP_RETCODE GCGincludeEventHdlrMasterdiving (GCG *gcg)

Function Documentation

◆ GCGheurGetDivingDataMaster()

GCG_EXPORT GCG_MASTER_DIVINGDATA * GCGheurGetDivingDataMaster ( SCIP_HEUR * heur)

gets diving rule specific data of a diving heuristic

Parameters
heurprimal heuristic

Definition at line 972 of file heur_masterdiving.c.

References assert(), SCIP_HeurData::divingdata, GCGheurGetDivingDataMaster(), and heurdata.

Referenced by GCGheurGetDivingDataMaster().

◆ GCGheurSetDivingDataMaster()

GCG_EXPORT void GCGheurSetDivingDataMaster ( SCIP_HEUR * heur,
GCG_MASTER_DIVINGDATA * divingdata )

sets diving rule specific data of a diving heuristic

Parameters
heurprimal heuristic
divingdatadiving rule specific data

Definition at line 988 of file heur_masterdiving.c.

References assert(), divingdata, SCIP_HeurData::divingdata, GCGheurSetDivingDataMaster(), and heurdata.

Referenced by GCGheurSetDivingDataMaster().

◆ GCGincludeDivingHeurMaster()

GCG_EXPORT SCIP_RETCODE GCGincludeDivingHeurMaster ( GCG * gcg,
SCIP_HEUR ** heur,
const char * name,
const char * desc,
char dispchar,
int priority,
int freq,
int freqofs,
int maxdepth,
GCG_DECL_MASTER_DIVINGFREE((*divingfree)) ,
GCG_DECL_MASTER_DIVINGINIT((*divinginit)) ,
GCG_DECL_MASTER_DIVINGEXIT((*divingexit)) ,
GCG_DECL_MASTER_DIVINGINITSOL((*divinginitsol)) ,
GCG_DECL_MASTER_DIVINGEXITSOL((*divingexitsol)) ,
GCG_DECL_MASTER_DIVINGINITEXEC((*divinginitexec)) ,
GCG_DECL_MASTER_DIVINGEXITEXEC((*divingexitexec)) ,
GCG_DECL_MASTER_DIVINGSELECTVAR((*divingselectvar)) ,
GCG_MASTER_DIVINGDATA * divingdata )

creates a master diving heuristic and includes it in GCG

Parameters
gcgGCG data structure
heurpointer to diving heuristic
namename of primal heuristic
descdescription of primal heuristic
dispchardisplay character of primal heuristic
prioritypriority of the primal heuristic
freqfrequency for calling primal heuristic
freqofsfrequency offset for calling primal heuristic
maxdepthmaximal depth level to call heuristic at (-1: no limit)
-destructor of diving heuristic
-initialize diving heuristic
-deinitialize diving heuristic
-solving process initialization method of diving heuristic
-solving process deinitialization method of diving heuristic
-execution initialization method of diving heuristic
-execution deinitialization method of diving heuristic
-variable selection method of diving heuristic
divingdatadiving rule specific data (or NULL)

Definition at line 1005 of file heur_masterdiving.c.

References assert(), SCIP_HeurData::backtrack, DEFAULT_BACKTRACK, DEFAULT_MAXDISCDEPTH, DEFAULT_MAXDISCREPANCY, DEFAULT_MAXDIVEAVGQUOT, DEFAULT_MAXDIVEAVGQUOTNOSOL, DEFAULT_MAXDIVEUBQUOT, DEFAULT_MAXDIVEUBQUOTNOSOL, DEFAULT_MAXLPITEROFS, DEFAULT_MAXLPITERQUOT, DEFAULT_MAXPRICEROUNDS, DEFAULT_MAXRELDEPTH, DEFAULT_MINRELDEPTH, DEFAULT_USEFARKASONLY, divingdata, SCIP_HeurData::divingdata, EVENTHDLR_NAME, SCIP_HeurData::gcg, GCG_DECL_MASTER_DIVINGEXIT, GCG_DECL_MASTER_DIVINGEXITEXEC, GCG_DECL_MASTER_DIVINGEXITSOL, GCG_DECL_MASTER_DIVINGFREE, GCG_DECL_MASTER_DIVINGINIT, GCG_DECL_MASTER_DIVINGINITEXEC, GCG_DECL_MASTER_DIVINGINITSOL, GCG_DECL_MASTER_DIVINGSELECTVAR, GCGgetMasterprob(), GCGincludeDivingHeurMaster(), HEUR_TIMING, HEUR_USESSUBSCIP, heurdata, masterprob, maxdepth, SCIP_HeurData::maxdiscdepth, SCIP_HeurData::maxdiscrepancy, SCIP_HeurData::maxdiveavgquot, SCIP_HeurData::maxdiveavgquotnosol, SCIP_HeurData::maxdiveubquot, SCIP_HeurData::maxdiveubquotnosol, SCIP_HeurData::maxlpiterofs, SCIP_HeurData::maxlpiterquot, SCIP_HeurData::maxpricerounds, SCIP_HeurData::maxreldepth, SCIP_HeurData::minreldepth, SCIP_CALL(), and SCIP_HeurData::usefarkasonly.

Referenced by GCGincludeDivingHeurMaster(), GCGincludeHeurMastercoefdiving(), GCGincludeHeurMasterfracdiving(), GCGincludeHeurMasterlinesdiving(), and GCGincludeHeurMastervecldiving().

◆ GCGincludeEventHdlrMasterdiving()

GCG_EXPORT SCIP_RETCODE GCGincludeEventHdlrMasterdiving ( GCG * gcg)

creates event handler for masterdiving event

Parameters
gcgGCG data structure

Definition at line 1157 of file heur_masterdiving.c.

References assert(), EVENTHDLR_DESC, EVENTHDLR_NAME, GCGgetMasterprob(), GCGincludeEventHdlrMasterdiving(), and SCIP_CALL().

Referenced by GCGincludeEventHdlrMasterdiving(), and GCGincludeMasterPlugins().