Detailed Description
gamssymbol constraint classifier (classifies by corresponding GAMS symbol)
Definition in file clscons_gamssymbol.cpp.
#include "clscons_gamssymbol.h"#include "cons_decomp.h"#include "cons_decomp.hpp"#include <vector>#include <string>#include <map>#include <stdio.h>#include <sstream>#include "class_detprobdata.h"#include "class_conspartition.h"#include "scip_misc.h"Go to the source code of this file.
Data Structures | |
| struct | DEC_ClassifierData |
Macros | |
| #define | SCIP_DEBUG |
| #define | DEC_CLASSIFIERNAME "gamssymbol" |
| #define | DEC_DESC "symbol in GAMS file" |
| #define | DEC_PRIORITY 0 |
| #define | DEC_ENABLED TRUE |
Functions | |
| static | DEC_DECL_FREECONSCLASSIFIER (classifierFree) |
| static | DEC_DECL_CONSCLASSIFY (classifierClassify) |
| SCIP_RETCODE | DECconsClassifierGamssymbolAddEntry (DEC_CONSCLASSIFIER *classifier, SCIP_CONS *cons, int symbolIdx) |
| SCIP_RETCODE | SCIPincludeConsClassifierGamssymbol (SCIP *scip) |
Macro Definition Documentation
◆ SCIP_DEBUG
| #define SCIP_DEBUG |
Definition at line 35 of file clscons_gamssymbol.cpp.
◆ DEC_CLASSIFIERNAME
| #define DEC_CLASSIFIERNAME "gamssymbol" |
name of classifier
Definition at line 52 of file clscons_gamssymbol.cpp.
◆ DEC_DESC
| #define DEC_DESC "symbol in GAMS file" |
short description of classification
Definition at line 53 of file clscons_gamssymbol.cpp.
◆ DEC_PRIORITY
| #define DEC_PRIORITY 0 |
Definition at line 54 of file clscons_gamssymbol.cpp.
◆ DEC_ENABLED
| #define DEC_ENABLED TRUE |
Definition at line 56 of file clscons_gamssymbol.cpp.
Function Documentation
◆ DEC_DECL_FREECONSCLASSIFIER()
|
static |
destructor of classifier to free user data (called when GCG is exiting)
Definition at line 80 of file clscons_gamssymbol.cpp.
References DEC_ClassifierData::constosymbol, DEC_CLASSIFIERNAME, DECconsClassifierGetData(), and DECconsClassifierGetName().
◆ DEC_DECL_CONSCLASSIFY()
|
static |
Definition at line 98 of file clscons_gamssymbol.cpp.
References gcg::DETPROBDATA::addConsPartition(), DEC_ClassifierData::constosymbol, DEC_CLASSIFIERNAME, DECconsClassifierGetData(), DECfindConsClassifier(), GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), gcg::DETPROBDATA::getCons(), gcg::DETPROBDATA::getNConss(), and partition().
◆ DECconsClassifierGamssymbolAddEntry()
| SCIP_RETCODE DECconsClassifierGamssymbolAddEntry | ( | DEC_CONSCLASSIFIER * | classifier, |
| SCIP_CONS * | cons, | ||
| int | symbolIdx | ||
| ) |
adds an entry to clsdata->constosymbol
Definition at line 197 of file clscons_gamssymbol.cpp.
References DEC_ClassifierData::constosymbol, and DECconsClassifierGetData().
◆ SCIPincludeConsClassifierGamssymbol()
| SCIP_RETCODE SCIPincludeConsClassifierGamssymbol | ( | SCIP * | scip | ) |
creates the handler for gamssymbol classifier and includes it in SCIP
- Parameters
-
scip SCIP data structure
Definition at line 214 of file clscons_gamssymbol.cpp.
References classifierFree, DEC_ClassifierData::constosymbol, DEC_CLASSIFIERNAME, DEC_DESC, DEC_ENABLED, DEC_PRIORITY, and DECincludeConsClassifier().
Referenced by SCIPincludeGcgPlugins().
