Detailed Description
Classifies by domains from which constraints are created TODO: what is together in one class?
Definition in file clscons_gamsdomain.cpp.
#include "clscons_gamsdomain.h"#include "cons_decomp.h"#include "cons_decomp.hpp"#include <vector>#include <string>#include <set>#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 "gamsdomain" |
| #define | DEC_DESC "domain in GAMS file" |
| #define | DEC_PRIORITY 0 |
| #define | DEC_ENABLED TRUE |
Functions | |
| static | DEC_DECL_FREECONSCLASSIFIER (classifierFree) |
| static | DEC_DECL_CONSCLASSIFY (classifierClassify) |
| SCIP_RETCODE | DECconsClassifierGamsdomainAddEntry (DEC_CONSCLASSIFIER *classifier, SCIP_CONS *cons, int symDomIdx[], int *symDim) |
| SCIP_RETCODE | SCIPincludeConsClassifierGamsdomain (SCIP *scip) |
Macro Definition Documentation
◆ SCIP_DEBUG
| #define SCIP_DEBUG |
Definition at line 35 of file clscons_gamsdomain.cpp.
◆ DEC_CLASSIFIERNAME
| #define DEC_CLASSIFIERNAME "gamsdomain" |
name of classifier
Definition at line 52 of file clscons_gamsdomain.cpp.
◆ DEC_DESC
| #define DEC_DESC "domain in GAMS file" |
short description of classification
Definition at line 53 of file clscons_gamsdomain.cpp.
◆ DEC_PRIORITY
| #define DEC_PRIORITY 0 |
Definition at line 54 of file clscons_gamsdomain.cpp.
◆ DEC_ENABLED
| #define DEC_ENABLED TRUE |
Definition at line 56 of file clscons_gamsdomain.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_gamsdomain.cpp.
References DEC_ClassifierData::constodomain, DEC_CLASSIFIERNAME, DECconsClassifierGetData(), and DECconsClassifierGetName().
◆ DEC_DECL_CONSCLASSIFY()
|
static |
Definition at line 98 of file clscons_gamsdomain.cpp.
References gcg::DETPROBDATA::addConsPartition(), DEC_ClassifierData::constodomain, DEC_CLASSIFIERNAME, DECconsClassifierGetData(), DECfindConsClassifier(), GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), gcg::DETPROBDATA::getCons(), gcg::DETPROBDATA::getNConss(), and partition().
◆ DECconsClassifierGamsdomainAddEntry()
| SCIP_RETCODE DECconsClassifierGamsdomainAddEntry | ( | DEC_CONSCLASSIFIER * | classifier, |
| SCIP_CONS * | cons, | ||
| int | symDomIdx[], | ||
| int * | symDim | ||
| ) |
adds an entry to clsdata->constodomain
Definition at line 203 of file clscons_gamsdomain.cpp.
References DEC_ClassifierData::constodomain, and DECconsClassifierGetData().
◆ SCIPincludeConsClassifierGamsdomain()
| SCIP_RETCODE SCIPincludeConsClassifierGamsdomain | ( | SCIP * | scip | ) |
creates the handler for gamsdomain classifier and includes it in SCIP
- Parameters
-
scip SCIP data structure
Definition at line 226 of file clscons_gamsdomain.cpp.
References classifierFree, DEC_ClassifierData::constodomain, DEC_CLASSIFIERNAME, DEC_DESC, DEC_ENABLED, DEC_PRIORITY, and DECincludeConsClassifier().
Referenced by SCIPincludeGcgPlugins().
