Detailed Description
variables which have the same symbol are put into same class
Definition in file clsvar_gamssymbol.cpp.
#include "clsvar_gamssymbol.h"
#include "cons_decomp.h"
#include "cons_decomp.hpp"
#include <vector>
#include <stdio.h>
#include <sstream>
#include "class_detprobdata.h"
#include "class_varpartition.h"
#include "scip_misc.h"
Go to the source code of this file.
Data Structures | |
struct | DEC_ClassifierData |
Macros | |
#define | DEC_CLASSIFIERNAME "gamssymbol" |
#define | DEC_DESC "symbol in gams file" |
#define | DEC_PRIORITY 0 |
#define | DEC_ENABLED TRUE |
Functions | |
static | DEC_DECL_FREEVARCLASSIFIER (classifierFree) |
static | DEC_DECL_VARCLASSIFY (classifierClassify) |
SCIP_RETCODE | DECvarClassifierGamssymbolAddEntry (DEC_VARCLASSIFIER *classifier, SCIP_VAR *var, int symbolIdx) |
SCIP_RETCODE | SCIPincludeVarClassifierGamssymbol (SCIP *scip) |
Macro Definition Documentation
◆ DEC_CLASSIFIERNAME
#define DEC_CLASSIFIERNAME "gamssymbol" |
name of classifier
Definition at line 49 of file clsvar_gamssymbol.cpp.
◆ DEC_DESC
#define DEC_DESC "symbol in gams file" |
short description of classification
Definition at line 50 of file clsvar_gamssymbol.cpp.
◆ DEC_PRIORITY
#define DEC_PRIORITY 0 |
priority of this classifier
Definition at line 51 of file clsvar_gamssymbol.cpp.
◆ DEC_ENABLED
#define DEC_ENABLED TRUE |
Definition at line 53 of file clsvar_gamssymbol.cpp.
Function Documentation
◆ DEC_DECL_FREEVARCLASSIFIER()
|
static |
destructor of classifier to free user data (called when GCG is exiting)
Definition at line 79 of file clsvar_gamssymbol.cpp.
References DEC_CLASSIFIERNAME, DECvarClassifierGetData(), DECvarClassifierGetName(), and DEC_ClassifierData::vartosymbol.
◆ DEC_DECL_VARCLASSIFY()
|
static |
Definition at line 95 of file clsvar_gamssymbol.cpp.
References gcg::DETPROBDATA::addVarPartition(), DEC_CLASSIFIERNAME, DECfindVarClassifier(), DECvarClassifierGetData(), GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), gcg::DETPROBDATA::getNVars(), gcg::DETPROBDATA::getVar(), partition(), and DEC_ClassifierData::vartosymbol.
◆ DECvarClassifierGamssymbolAddEntry()
SCIP_RETCODE DECvarClassifierGamssymbolAddEntry | ( | DEC_VARCLASSIFIER * | classifier, |
SCIP_VAR * | var, | ||
int | symbolIdx | ||
) |
adds an entry to clsdata->vartosymbol
Definition at line 194 of file clsvar_gamssymbol.cpp.
References DECvarClassifierGetData(), and DEC_ClassifierData::vartosymbol.
◆ SCIPincludeVarClassifierGamssymbol()
SCIP_RETCODE SCIPincludeVarClassifierGamssymbol | ( | SCIP * | scip | ) |
creates the handler for gamssymbol classifier and includes it in SCIP
- Parameters
-
scip SCIP data structure
Definition at line 215 of file clsvar_gamssymbol.cpp.
References classifierFree, DEC_CLASSIFIERNAME, DEC_DESC, DEC_ENABLED, DEC_PRIORITY, DECincludeVarClassifier(), and DEC_ClassifierData::vartosymbol.
Referenced by SCIPincludeGcgPlugins().