GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches

Detailed Description

primal heuristic interface for LP diving heuristics on the original variables

Author
Christian Puchert

Definition in file heur_origdiving.h.

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

Go to the source code of this file.

Functions

GCG_EXPORT GCG_DIVINGDATA * GCGheurGetDivingDataOrig (SCIP_HEUR *heur)
GCG_EXPORT void GCGheurSetDivingDataOrig (SCIP_HEUR *heur, GCG_DIVINGDATA *divingdata)
GCG_EXPORT SCIP_RETCODE GCGincludeDivingHeurOrig (GCG *gcg, SCIP_HEUR **heur, const char *name, const char *desc, char dispchar, int priority, int freq, int freqofs, int maxdepth, GCG_DECL_DIVINGFREE((*divingfree)), GCG_DECL_DIVINGINIT((*divinginit)), GCG_DECL_DIVINGEXIT((*divingexit)), GCG_DECL_DIVINGINITSOL((*divinginitsol)), GCG_DECL_DIVINGEXITSOL((*divingexitsol)), GCG_DECL_DIVINGINITEXEC((*divinginitexec)), GCG_DECL_DIVINGEXITEXEC((*divingexitexec)), GCG_DECL_DIVINGSELECTVAR((*divingselectvar)), GCG_DIVINGDATA *divingdata)
GCG_EXPORT SCIP_RETCODE GCGincludeEventHdlrOrigdiving (GCG *gcg)

Function Documentation

◆ GCGheurGetDivingDataOrig()

GCG_EXPORT GCG_DIVINGDATA * GCGheurGetDivingDataOrig ( SCIP_HEUR * heur)

gets diving rule specific data of a diving heuristic

Parameters
heurprimal heuristic

Definition at line 1092 of file heur_origdiving.c.

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

Referenced by assert(), and GCGheurGetDivingDataOrig().

◆ GCGheurSetDivingDataOrig()

GCG_EXPORT void GCGheurSetDivingDataOrig ( SCIP_HEUR * heur,
GCG_DIVINGDATA * divingdata )

sets diving rule specific data of a diving heuristic

Parameters
heurprimal heuristic
divingdatadiving rule specific data

Definition at line 1108 of file heur_origdiving.c.

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

◆ GCGincludeDivingHeurOrig()

GCG_EXPORT SCIP_RETCODE GCGincludeDivingHeurOrig ( GCG * gcg,
SCIP_HEUR ** heur,
const char * name,
const char * desc,
char dispchar,
int priority,
int freq,
int freqofs,
int maxdepth,
GCG_DECL_DIVINGFREE((*divingfree)) ,
GCG_DECL_DIVINGINIT((*divinginit)) ,
GCG_DECL_DIVINGEXIT((*divingexit)) ,
GCG_DECL_DIVINGINITSOL((*divinginitsol)) ,
GCG_DECL_DIVINGEXITSOL((*divingexitsol)) ,
GCG_DECL_DIVINGINITEXEC((*divinginitexec)) ,
GCG_DECL_DIVINGEXITEXEC((*divingexitexec)) ,
GCG_DECL_DIVINGSELECTVAR((*divingselectvar)) ,
GCG_DIVINGDATA * divingdata )

creates an original 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 1125 of file heur_origdiving.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_OTHERDIRECTION, DEFAULT_USEFARKASONLY, divingdata, SCIP_HeurData::divingdata, EVENTHDLR_NAME, SCIP_HeurData::gcg, GCG_DECL_DIVINGEXIT, GCG_DECL_DIVINGEXITEXEC, GCG_DECL_DIVINGEXITSOL, GCG_DECL_DIVINGFREE, GCG_DECL_DIVINGINIT, GCG_DECL_DIVINGINITEXEC, GCG_DECL_DIVINGINITSOL, GCG_DECL_DIVINGSELECTVAR, GCGgetMasterprob(), GCGgetOrigprob(), GCGincludeDivingHeurOrig(), 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, origprob, SCIP_HeurData::otherdirection, SCIP_CALL(), and SCIP_HeurData::usefarkasonly.

Referenced by GCGincludeDivingHeurOrig(), GCGincludeHeurGcgcoefdiving(), GCGincludeHeurGcgfracdiving(), GCGincludeHeurGcgguideddiving(), GCGincludeHeurGcglinesdiving(), GCGincludeHeurGcgpscostdiving(), and GCGincludeHeurGcgveclendiving().

◆ GCGincludeEventHdlrOrigdiving()

GCG_EXPORT SCIP_RETCODE GCGincludeEventHdlrOrigdiving ( GCG * gcg)

creates event handler for origdiving event

creates event handler for origdiving event and includes it in the master problem

Parameters
gcgGCG data structure

Definition at line 1289 of file heur_origdiving.c.

References assert(), EVENTHDLR_DESC, EVENTHDLR_NAME, GCGgetMasterprob(), GCGincludeEventHdlrOrigdiving(), masterprob, and SCIP_CALL().

Referenced by GCGincludeEventHdlrOrigdiving(), and GCGincludeGcgPlugins().