Detailed Description
gamssymbol constraint classifier (classifies by corresponding GAMS symbol)
Definition in file clscons_gamssymbol.cpp.
#include "gcg/clscons_gamssymbol.h"#include "gcg/cons_decomp.h"#include "gcg/cons_decomp.hpp"#include <vector>#include <string>#include <map>#include <stdio.h>#include <sstream>#include "gcg/class_detprobdata.h"#include "gcg/class_conspartition.h"#include "gcg/scip_misc.h"Go to the source code of this file.
Data Structures | |
| struct | GCG_ClassifierData |
Macros | |
| #define | SCIP_DEBUG |
| #define | CLSCONS_NAME "gamssymbol" |
| #define | CLSCONS_DESC "symbol in GAMS file" |
| #define | CLSCONS_PRIORITY 0 |
| #define | CLSCONS_ENABLED TRUE |
Functions | |
| static | GCG_DECL_FREECONSCLASSIFIER (classifierFree) |
| static | GCG_DECL_CONSCLASSIFY (classifierClassify) |
| SCIP_RETCODE | GCGconsClassifierGamssymbolAddEntry (GCG_CONSCLASSIFIER *classifier, SCIP_CONS *cons, int symbolIdx) |
| SCIP_RETCODE | GCGincludeConsClassifierGamssymbol (GCG *gcg) |
Macro Definition Documentation
◆ SCIP_DEBUG
| #define SCIP_DEBUG |
Definition at line 36 of file clscons_gamssymbol.cpp.
◆ CLSCONS_NAME
| #define CLSCONS_NAME "gamssymbol" |
name of classifier
Definition at line 53 of file clscons_gamssymbol.cpp.
◆ CLSCONS_DESC
| #define CLSCONS_DESC "symbol in GAMS file" |
short description of classification
Definition at line 54 of file clscons_gamssymbol.cpp.
◆ CLSCONS_PRIORITY
| #define CLSCONS_PRIORITY 0 |
Definition at line 55 of file clscons_gamssymbol.cpp.
◆ CLSCONS_ENABLED
| #define CLSCONS_ENABLED TRUE |
Definition at line 57 of file clscons_gamssymbol.cpp.
Function Documentation
◆ GCG_DECL_FREECONSCLASSIFIER()
|
static |
destructor of classifier to free user data (called when GCG is exiting)
Definition at line 81 of file clscons_gamssymbol.cpp.
References assert(), classifierFree, CLSCONS_NAME, GCG_ClassifierData::constosymbol, GCG_DECL_FREECONSCLASSIFIER, GCGconsClassifierGetData(), GCGconsClassifierGetName(), GCGgetOrigprob(), and origprob.
◆ GCG_DECL_CONSCLASSIFY()
|
static |
Definition at line 100 of file clscons_gamssymbol.cpp.
References gcg::DETPROBDATA::addConsPartition(), assert(), gcg::ConsPartition::assignConsToClass(), c, CLSCONS_NAME, GCG_ClassifierData::constosymbol, GCG_DECL_CONSCLASSIFY, GCGconsClassifierGetData(), GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), GCGfindConsClassifier(), GCGgetOrigprob(), gcg::DETPROBDATA::getCons(), gcg::IndexPartition::getName(), gcg::IndexPartition::getNClasses(), gcg::ConsPartition::getNConss(), gcg::DETPROBDATA::getNConss(), i, origprob, partition(), gcg::IndexPartition::setClassDescription(), and gcg::IndexPartition::setClassName().
◆ GCGconsClassifierGamssymbolAddEntry()
| SCIP_RETCODE GCGconsClassifierGamssymbolAddEntry | ( | GCG_CONSCLASSIFIER * | classifier, |
| SCIP_CONS * | cons, | ||
| int | symbolIdx ) |
adds an entry to clsdata->constosymbol
Definition at line 200 of file clscons_gamssymbol.cpp.
References assert(), GCG_ClassifierData::constosymbol, GCGconsClassifierGamssymbolAddEntry(), and GCGconsClassifierGetData().
Referenced by GCGconsClassifierGamssymbolAddEntry().
◆ GCGincludeConsClassifierGamssymbol()
| SCIP_RETCODE GCGincludeConsClassifierGamssymbol | ( | GCG * | gcg | ) |
creates the handler for gamssymbol classifier and includes it in SCIP
creates the gamssymbol classifier and includes it in SCIP
- Parameters
-
gcg GCG data structure
Definition at line 217 of file clscons_gamssymbol.cpp.
References assert(), classifierFree, CLSCONS_DESC, CLSCONS_ENABLED, CLSCONS_NAME, CLSCONS_PRIORITY, GCG_ClassifierData::constosymbol, GCGgetOrigprob(), GCGincludeConsClassifier(), GCGincludeConsClassifierGamssymbol(), origprob, and SCIP_CALL().
Referenced by GCGincludeConsClassifierGamssymbol(), and GCGincludeGcgPlugins().