Detailed Description
master LP diving heuristic that chooses fixings w.r.t. the matrix coefficients
Definition in file heur_mastercoefdiving.c.
#include <assert.h>#include <string.h>#include "gcg/heur_mastercoefdiving.h"#include "gcg/heur_masterdiving.h"Go to the source code of this file.
Macros | |
| #define | HEUR_NAME "mastercoefdiving" |
| #define | HEUR_DESC "master LP diving heuristic that chooses fixings w.r.t. the matrix coefficients" |
| #define | HEUR_DISPCHAR 'c' |
| #define | HEUR_PRIORITY -1001000 |
| #define | HEUR_FREQ 10 |
| #define | HEUR_FREQOFS 1 |
| #define | HEUR_MAXDEPTH -1 |
Functions | |
| assert (masterprob !=NULL) | |
| assert (heur !=NULL) | |
| assert (bestcand !=NULL) | |
| assert (bestcandmayround !=NULL) | |
| SCIP_CALL (SCIPgetLPBranchCands(masterprob, &lpcands, &lpcandssol, &lpcandsfrac, &nlpcands, NULL, NULL)) | |
| assert (lpcands !=NULL) | |
| assert (lpcandsfrac !=NULL) | |
| assert (lpcandssol !=NULL) | |
| for (c=0;c< nlpcands;++c) | |
| SCIP_RETCODE | GCGincludeHeurMastercoefdiving (GCG *gcg) |
Variables | |
| static SCIP_Real * | lpcandssol |
| SCIP_Real * | lpcandsfrac |
| int | nlpcands |
| SCIP_Bool | bestcandmayrounddown = TRUE |
| SCIP_Bool | bestcandmayroundup = TRUE |
| int | bestnviolrows = INT_MAX |
| SCIP_Real | bestcandfrac = SCIP_INVALID |
| int | c |
| SCIP * | masterprob = GCGgetMasterprob(gcg) |
| * | bestcandmayround = bestcandmayroundup || bestcandmayrounddown |
| return | SCIP_OKAY |
Macro Definition Documentation
◆ HEUR_NAME
| #define HEUR_NAME "mastercoefdiving" |
Definition at line 45 of file heur_mastercoefdiving.c.
◆ HEUR_DESC
| #define HEUR_DESC "master LP diving heuristic that chooses fixings w.r.t. the matrix coefficients" |
Definition at line 46 of file heur_mastercoefdiving.c.
◆ HEUR_DISPCHAR
| #define HEUR_DISPCHAR 'c' |
Definition at line 47 of file heur_mastercoefdiving.c.
◆ HEUR_PRIORITY
| #define HEUR_PRIORITY -1001000 |
Definition at line 48 of file heur_mastercoefdiving.c.
◆ HEUR_FREQ
| #define HEUR_FREQ 10 |
Definition at line 49 of file heur_mastercoefdiving.c.
◆ HEUR_FREQOFS
| #define HEUR_FREQOFS 1 |
Definition at line 50 of file heur_mastercoefdiving.c.
◆ HEUR_MAXDEPTH
| #define HEUR_MAXDEPTH -1 |
Definition at line 51 of file heur_mastercoefdiving.c.
Function Documentation
◆ assert() [1/7]
| assert | ( | masterprob ! | = NULL | ) |
References assert(), and masterprob.
◆ assert() [2/7]
◆ assert() [3/7]
◆ assert() [4/7]
| assert | ( | bestcandmayround ! | = NULL | ) |
References assert(), and bestcandmayround.
◆ SCIP_CALL()
| SCIP_CALL | ( | SCIPgetLPBranchCands(masterprob, &lpcands, &lpcandssol, &lpcandsfrac, &nlpcands, NULL, NULL) | ) |
References lpcands, lpcandsfrac, lpcandssol, masterprob, nlpcands, and SCIP_CALL().
◆ assert() [5/7]
◆ assert() [6/7]
| assert | ( | lpcandsfrac ! | = NULL | ) |
References assert(), and lpcandsfrac.
◆ assert() [7/7]
| assert | ( | lpcandssol ! | = NULL | ) |
References assert(), bestcandfrac, bestcandmayrounddown, bestcandmayroundup, bestnviolrows, and lpcandssol.
◆ for()
| for | ( | ) |
Definition at line 98 of file heur_mastercoefdiving.c.
References assert(), bestcandfrac, bestcandmayrounddown, bestcandmayroundup, bestnviolrows, c, frac, i, lpcands, lpcandsfrac, nlpcands, nviolrows, tabulist, and var.
◆ GCGincludeHeurMastercoefdiving()
| SCIP_RETCODE GCGincludeHeurMastercoefdiving | ( | GCG * | gcg | ) |
creates the mastercoefdiving heuristic and includes it in GCG
- Parameters
-
gcg GCG data structure
Definition at line 189 of file heur_mastercoefdiving.c.
References assert(), GCGincludeDivingHeurMaster(), GCGincludeHeurMastercoefdiving(), HEUR_DESC, HEUR_DISPCHAR, HEUR_FREQ, HEUR_FREQOFS, HEUR_MAXDEPTH, HEUR_NAME, HEUR_PRIORITY, and SCIP_CALL().
Referenced by GCGincludeHeurMastercoefdiving(), and GCGincludeMasterPlugins().
Variable Documentation
◆ lpcandssol
| SCIP_Real* lpcandssol |
variable selection method of diving heuristic; finds best candidate variable w.r.t. locking numbers:
- prefer variables that may not be rounded without destroying LP feasibility:
- of these variables, round variable with least number of locks in corresponding direction
- if all remaining fractional variables may be rounded without destroying LP feasibility:
- round variable with least number of locks in opposite of its feasible rounding direction
- binary variables are preferred
Definition at line 70 of file heur_mastercoefdiving.c.
◆ lpcandsfrac
| SCIP_Real* lpcandsfrac |
Definition at line 71 of file heur_mastercoefdiving.c.
◆ nlpcands
| int nlpcands |
Definition at line 72 of file heur_mastercoefdiving.c.
◆ bestcandmayrounddown
| bestcandmayrounddown = TRUE |
Definition at line 73 of file heur_mastercoefdiving.c.
◆ bestcandmayroundup
| bestcandmayroundup = TRUE |
Definition at line 74 of file heur_mastercoefdiving.c.
◆ bestnviolrows
| bestnviolrows = INT_MAX |
Definition at line 75 of file heur_mastercoefdiving.c.
◆ bestcandfrac
| bestcandfrac = SCIP_INVALID |
Definition at line 76 of file heur_mastercoefdiving.c.
◆ c
| int c |
Definition at line 77 of file heur_mastercoefdiving.c.
◆ masterprob
| SCIP* masterprob = GCGgetMasterprob(gcg) |
Definition at line 78 of file heur_mastercoefdiving.c.
◆ bestcandmayround
| * bestcandmayround = bestcandmayroundup || bestcandmayrounddown |
Definition at line 178 of file heur_mastercoefdiving.c.
◆ SCIP_OKAY
| return SCIP_OKAY |
Definition at line 180 of file heur_mastercoefdiving.c.