Detailed Description
variables which have the same symbol are put into same class
Definition in file clsvar_gamssymbol.cpp.
#include "gcg/clsvar_gamssymbol.h"#include "gcg/cons_decomp.h"#include "gcg/cons_decomp.hpp"#include <vector>#include <stdio.h>#include <sstream>#include "gcg/class_detprobdata.h"#include "gcg/class_varpartition.h"#include "gcg/scip_misc.h"Go to the source code of this file.
Data Structures | |
| struct | GCG_ClassifierData |
Macros | |
| #define | CLSVAR_NAME "gamssymbol" |
| #define | CLSVAR_DESC "symbol in gams file" |
| #define | CLSVAR_PRIORITY 0 |
| #define | CLSVAR_ENABLED TRUE |
Functions | |
| static | GCG_DECL_FREEVARCLASSIFIER (classifierFree) |
| static | GCG_DECL_VARCLASSIFY (classifierClassify) |
| SCIP_RETCODE | GCGvarClassifierGamssymbolAddEntry (GCG_VARCLASSIFIER *classifier, SCIP_VAR *var, int symbolIdx) |
| SCIP_RETCODE | GCGincludeVarClassifierGamssymbol (GCG *gcg) |
Macro Definition Documentation
◆ CLSVAR_NAME
| #define CLSVAR_NAME "gamssymbol" |
name of classifier
Definition at line 50 of file clsvar_gamssymbol.cpp.
◆ CLSVAR_DESC
| #define CLSVAR_DESC "symbol in gams file" |
short description of classification
Definition at line 51 of file clsvar_gamssymbol.cpp.
◆ CLSVAR_PRIORITY
| #define CLSVAR_PRIORITY 0 |
priority of this classifier
Definition at line 52 of file clsvar_gamssymbol.cpp.
◆ CLSVAR_ENABLED
| #define CLSVAR_ENABLED TRUE |
Definition at line 54 of file clsvar_gamssymbol.cpp.
Function Documentation
◆ GCG_DECL_FREEVARCLASSIFIER()
|
static |
destructor of classifier to free user data (called when GCG is exiting)
Definition at line 80 of file clsvar_gamssymbol.cpp.
References CLSVAR_NAME, GCGgetOrigprob(), GCGvarClassifierGetData(), GCGvarClassifierGetName(), NULL, SCIP_OKAY, SCIPfreeMemory, and GCG_ClassifierData::vartosymbol.
◆ GCG_DECL_VARCLASSIFY()
|
static |
Definition at line 94 of file clsvar_gamssymbol.cpp.
References gcg::DETPROBDATA::addVarPartition(), CLSVAR_NAME, GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), GCGfindVarClassifier(), GCGgetOrigprob(), GCGvarClassifierGetData(), gcg::DETPROBDATA::getNVars(), gcg::DETPROBDATA::getVar(), NULL, partition(), SCIP_OKAY, SCIP_VERBLEVEL_HIGH, SCIPvarGetName(), SCIPverbMessage(), and GCG_ClassifierData::vartosymbol.
◆ GCGvarClassifierGamssymbolAddEntry()
| SCIP_RETCODE GCGvarClassifierGamssymbolAddEntry | ( | GCG_VARCLASSIFIER * | classifier, |
| SCIP_VAR * | var, | ||
| int | symbolIdx | ||
| ) |
adds an entry to clsdata->vartosymbol
Definition at line 194 of file clsvar_gamssymbol.cpp.
References GCGvarClassifierGetData(), NULL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPsnprintf(), SCIPvarGetName(), and GCG_ClassifierData::vartosymbol.
◆ GCGincludeVarClassifierGamssymbol()
| SCIP_RETCODE GCGincludeVarClassifierGamssymbol | ( | GCG * | gcg | ) |
creates the handler for gamssymbol classifier and includes it in SCIP
- Parameters
-
gcg GCG data structure
Definition at line 215 of file clsvar_gamssymbol.cpp.
References classifierFree, CLSVAR_DESC, CLSVAR_ENABLED, CLSVAR_NAME, CLSVAR_PRIORITY, GCGgetOrigprob(), GCGincludeVarClassifier(), NULL, SCIP_CALL, SCIP_OKAY, SCIPallocMemory, and GCG_ClassifierData::vartosymbol.
Referenced by GCGincludeGcgPlugins().