Detailed Description
detector compgreedily (assigns the open cons and open vars of the partialdec greedily)
Definition in file dec_compgreedily.cpp.
#include "dec_compgreedily.h"
#include "cons_decomp.h"
#include "class_partialdecomp.h"
#include "class_detprobdata.h"
#include "scip/clock.h"
#include <iostream>
Go to the source code of this file.
Data Structures | |
struct | DEC_DetectorData |
Macros | |
#define | DEC_DETECTORNAME "compgreedily" |
#define | DEC_DESC "detector compgreedily" |
#define | DEC_FREQCALLROUND 1 /** frequency the detector gets called in detection loop ,ie it is called in round r if and only if minCallRound <= r <= maxCallRound AND (r - minCallRound) mod freqCallRound == 0 */ |
#define | DEC_MAXCALLROUND INT_MAX /** last round the detector gets called */ |
#define | DEC_MINCALLROUND 0 /** first round the detector gets called */ |
#define | DEC_FREQCALLROUNDORIGINAL 1 /** frequency the detector gets called in detection loop while detecting the original problem */ |
#define | DEC_MAXCALLROUNDORIGINAL INT_MAX /** last round the detector gets called while detecting the original problem */ |
#define | DEC_MINCALLROUNDORIGINAL 0 /** first round the detector gets called while detecting the original problem */ |
#define | DEC_PRIORITY 0 |
#define | DEC_DECCHAR 'g' |
#define | DEC_ENABLED FALSE |
#define | DEC_ENABLEDFINISHING FALSE |
#define | DEC_ENABLEDPOSTPROCESSING FALSE |
#define | DEC_SKIP FALSE |
#define | DEC_USEFULRECALL FALSE |
#define | DEFAULT_LIMITHALFPERIMETERENABLEDFINISHING 20000 /** limit in terms of nrows + ncols for enabling finishing */ |
#define | DEFAULT_LIMITHALFPERIMETERENABLEDORIGINAL 10000 /** limit in terms of nrows + ncols for enabling in detecting for unpresolved problem */ |
#define | freeCompgreedily NULL |
#define | exitCompgreedily NULL |
#define | initCompgreedily NULL |
#define | detectorPostprocessPartialdecCompgreedily NULL |
Functions | |
static | DEC_DECL_PROPAGATEPARTIALDEC (propagatePartialdecCompgreedily) |
static | DEC_DECL_FINISHPARTIALDEC (finishPartialdecCompgreedily) |
static | DEC_DECL_SETPARAMAGGRESSIVE (setParamAggressiveCompgreedily) |
static | DEC_DECL_SETPARAMDEFAULT (setParamDefaultCompgreedily) |
static | DEC_DECL_SETPARAMFAST (setParamFastCompgreedily) |
SCIP_RETCODE | SCIPincludeDetectorCompgreedily (SCIP *scip) |
Macro Definition Documentation
◆ DEC_DETECTORNAME
#define DEC_DETECTORNAME "compgreedily" |
name of detector
Definition at line 44 of file dec_compgreedily.cpp.
◆ DEC_DESC
#define DEC_DESC "detector compgreedily" |
description of detector
Definition at line 45 of file dec_compgreedily.cpp.
◆ DEC_FREQCALLROUND
#define DEC_FREQCALLROUND 1 /** frequency the detector gets called in detection loop ,ie it is called in round r if and only if minCallRound <= r <= maxCallRound AND (r - minCallRound) mod freqCallRound == 0 */ |
Definition at line 46 of file dec_compgreedily.cpp.
◆ DEC_MAXCALLROUND
#define DEC_MAXCALLROUND INT_MAX /** last round the detector gets called */ |
Definition at line 47 of file dec_compgreedily.cpp.
◆ DEC_MINCALLROUND
#define DEC_MINCALLROUND 0 /** first round the detector gets called */ |
Definition at line 48 of file dec_compgreedily.cpp.
◆ DEC_FREQCALLROUNDORIGINAL
#define DEC_FREQCALLROUNDORIGINAL 1 /** frequency the detector gets called in detection loop while detecting the original problem */ |
Definition at line 49 of file dec_compgreedily.cpp.
◆ DEC_MAXCALLROUNDORIGINAL
#define DEC_MAXCALLROUNDORIGINAL INT_MAX /** last round the detector gets called while detecting the original problem */ |
Definition at line 50 of file dec_compgreedily.cpp.
◆ DEC_MINCALLROUNDORIGINAL
#define DEC_MINCALLROUNDORIGINAL 0 /** first round the detector gets called while detecting the original problem */ |
Definition at line 51 of file dec_compgreedily.cpp.
◆ DEC_PRIORITY
#define DEC_PRIORITY 0 |
priority of the constraint handler for separation
Definition at line 52 of file dec_compgreedily.cpp.
◆ DEC_DECCHAR
#define DEC_DECCHAR 'g' |
display character of detector
Definition at line 53 of file dec_compgreedily.cpp.
◆ DEC_ENABLED
#define DEC_ENABLED FALSE |
should the detection be enabled
Definition at line 54 of file dec_compgreedily.cpp.
◆ DEC_ENABLEDFINISHING
#define DEC_ENABLEDFINISHING FALSE |
should the finishing be enabled
Definition at line 55 of file dec_compgreedily.cpp.
◆ DEC_ENABLEDPOSTPROCESSING
#define DEC_ENABLEDPOSTPROCESSING FALSE |
should the finishing be enabled
Definition at line 56 of file dec_compgreedily.cpp.
◆ DEC_SKIP
#define DEC_SKIP FALSE |
should detector be skipped if other detectors found decompositions
Definition at line 57 of file dec_compgreedily.cpp.
◆ DEC_USEFULRECALL
#define DEC_USEFULRECALL FALSE |
is it useful to call this detector on a descendant of the propagated partialdec
Definition at line 58 of file dec_compgreedily.cpp.
◆ DEFAULT_LIMITHALFPERIMETERENABLEDFINISHING
#define DEFAULT_LIMITHALFPERIMETERENABLEDFINISHING 20000 /** limit in terms of nrows + ncols for enabling finishing */ |
parameter limits for emphasis default
Definition at line 62 of file dec_compgreedily.cpp.
◆ DEFAULT_LIMITHALFPERIMETERENABLEDORIGINAL
#define DEFAULT_LIMITHALFPERIMETERENABLEDORIGINAL 10000 /** limit in terms of nrows + ncols for enabling in detecting for unpresolved problem */ |
Definition at line 63 of file dec_compgreedily.cpp.
◆ freeCompgreedily
#define freeCompgreedily NULL |
destructor of detector to free user data (called when GCG is exiting)
Definition at line 90 of file dec_compgreedily.cpp.
◆ exitCompgreedily
#define exitCompgreedily NULL |
destructor of detector to free detector data (called before the solving process begins)
Definition at line 94 of file dec_compgreedily.cpp.
◆ initCompgreedily
#define initCompgreedily NULL |
Definition at line 96 of file dec_compgreedily.cpp.
◆ detectorPostprocessPartialdecCompgreedily
#define detectorPostprocessPartialdecCompgreedily NULL |
Definition at line 166 of file dec_compgreedily.cpp.
Function Documentation
◆ DEC_DECL_PROPAGATEPARTIALDEC()
|
static |
Definition at line 99 of file dec_compgreedily.cpp.
References gcg::PARTIALDECOMP::addClockTime(), and gcg::PARTIALDECOMP::completeGreedily().
◆ DEC_DECL_FINISHPARTIALDEC()
|
static |
Definition at line 133 of file dec_compgreedily.cpp.
References gcg::PARTIALDECOMP::addDetectorChainInfo(), and gcg::PARTIALDECOMP::completeGreedily().
◆ DEC_DECL_SETPARAMAGGRESSIVE()
|
static |
Definition at line 170 of file dec_compgreedily.cpp.
References DECdetectorGetName().
◆ DEC_DECL_SETPARAMDEFAULT()
|
static |
Definition at line 187 of file dec_compgreedily.cpp.
References DEC_ENABLED, DEC_ENABLEDFINISHING, and DECdetectorGetName().
◆ DEC_DECL_SETPARAMFAST()
|
static |
Definition at line 203 of file dec_compgreedily.cpp.
References DECdetectorGetName().
◆ SCIPincludeDetectorCompgreedily()
SCIP_RETCODE SCIPincludeDetectorCompgreedily | ( | SCIP * | scip | ) |
creates the handler for compgreedily detector and includes it in SCIP
- Parameters
-
scip SCIP data structure
Definition at line 225 of file dec_compgreedily.cpp.
References DEC_DECCHAR, DEC_DESC, DEC_DETECTORNAME, DEC_ENABLED, DEC_ENABLEDFINISHING, DEC_ENABLEDPOSTPROCESSING, DEC_FREQCALLROUND, DEC_FREQCALLROUNDORIGINAL, DEC_MAXCALLROUND, DEC_MAXCALLROUNDORIGINAL, DEC_MINCALLROUND, DEC_MINCALLROUNDORIGINAL, DEC_PRIORITY, DEC_SKIP, DEC_USEFULRECALL, DECincludeDetector(), detectorPostprocessPartialdecCompgreedily, exitCompgreedily, freeCompgreedily, and initCompgreedily.
Referenced by SCIPincludeGcgPlugins().