Detailed Description
simple and fast LP rounding heuristic
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 |
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 |
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 |
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 |
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()
|
static |
execution method of primal heuristic
Definition at line 150 of file heur_gcgsimplerounding.c.
References FALSE, SCIP_HeurData::gcg, GCGgetMasterprob(), HEUR_NAME, SCIP_HeurData::lastlp, SCIP_HeurData::nroundablevars, NULL, SCIP_Bool, SCIP_CALL, SCIP_DIDNOTFIND, SCIP_DIDNOTRUN, SCIP_FOUNDSOL, SCIP_Longint, SCIP_LPSOLSTAT_OPTIMAL, SCIP_OKAY, SCIP_Real, SCIP_STAGE_SOLVING, SCIP_VARSTATUS_COLUMN, SCIPdebugMessage, SCIPfeasCeil(), SCIPfeasFloor(), SCIPgetExternBranchCands(), SCIPgetLPSolstat(), SCIPgetNBinVars(), SCIPgetNIntVars(), SCIPgetNLPs(), SCIPgetStage(), SCIPgetVars(), SCIPheurGetData(), SCIPheurGetName(), SCIPisFeasIntegral(), SCIPisRelaxSolValid(), SCIPlinkRelaxSol(), SCIPprintSol(), SCIPsetSolVal(), SCIPtrySol(), SCIPvarGetName(), SCIPvarGetObj(), SCIPvarGetStatus(), SCIPvarMayRoundDown(), SCIPvarMayRoundUp(), and SCIP_HeurData::sol.
◆ GCGincludeHeurGcgsimplerounding()
| SCIP_RETCODE GCGincludeHeurGcgsimplerounding | ( | GCG * | gcg | ) |
creates the GCG simple rounding heuristic and includes it in SCIP
- Parameters
-
gcg GCG 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().