Detailed Description
classifies variables according to their scip vartypes
Definition in file clsvar_scipvartypes.cpp.
#include "gcg/clsvar_scipvartypes.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 "scipvartype" |
| #define | CLSVAR_DESC "scipvartypes" |
| #define | CLSVAR_PRIORITY 0 |
| #define | CLSVAR_ENABLED TRUE |
| #define | classifierFree NULL |
Functions | |
| static | GCG_DECL_VARCLASSIFY (classifierClassify) |
| SCIP_RETCODE | GCGincludeVarClassifierScipVartypes (GCG *gcg) |
Macro Definition Documentation
◆ CLSVAR_NAME
| #define CLSVAR_NAME "scipvartype" |
name of classifier
Definition at line 49 of file clsvar_scipvartypes.cpp.
◆ CLSVAR_DESC
| #define CLSVAR_DESC "scipvartypes" |
short description of classification
Definition at line 50 of file clsvar_scipvartypes.cpp.
◆ CLSVAR_PRIORITY
| #define CLSVAR_PRIORITY 0 |
Definition at line 51 of file clsvar_scipvartypes.cpp.
◆ CLSVAR_ENABLED
| #define CLSVAR_ENABLED TRUE |
Definition at line 53 of file clsvar_scipvartypes.cpp.
◆ classifierFree
| #define classifierFree NULL |
destructor of classifier to free user data (called when GCG is exiting)
Definition at line 88 of file clsvar_scipvartypes.cpp.
Enumeration Type Documentation
◆ GCG_CLSVAR_VARTYPE_CLASS
| Enumerator | |
|---|---|
| GCG_CLSVAR_VARTYPE_CLASS_BINARY | |
| GCG_CLSVAR_VARTYPE_CLASS_INTEGER | |
| GCG_CLSVAR_VARTYPE_CLASS_CONTINUOUS_IMPLINT | |
| GCG_CLSVAR_VARTYPE_CLASS_CONTINUOUS | |
| GCG_CLSVAR_VARTYPE_CLASS_UNKNOWN | |
Definition at line 66 of file clsvar_scipvartypes.cpp.
Function Documentation
◆ GCG_DECL_VARCLASSIFY()
|
static |
Definition at line 91 of file clsvar_scipvartypes.cpp.
References gcg::DETPROBDATA::addVarPartition(), assert(), gcg::VarPartition::assignVarToClass(), gcg::BLOCK, c, GCG_CLSVAR_VARTYPE_CLASS_BINARY, GCG_CLSVAR_VARTYPE_CLASS_CONTINUOUS, GCG_CLSVAR_VARTYPE_CLASS_CONTINUOUS_IMPLINT, GCG_CLSVAR_VARTYPE_CLASS_INTEGER, GCG_CLSVAR_VARTYPE_CLASS_UNKNOWN, GCG_DECL_VARCLASSIFY, GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), GCGgetOrigprob(), gcg::IndexPartition::getName(), gcg::IndexPartition::getNClasses(), gcg::DETPROBDATA::getNVars(), gcg::VarPartition::getNVars(), gcg::DETPROBDATA::getVar(), i, j, gcg::LINKING, origprob, gcg::VarPartition::setClassDecompInfo(), gcg::IndexPartition::setClassDescription(), gcg::IndexPartition::setClassName(), and var.
◆ GCGincludeVarClassifierScipVartypes()
| SCIP_RETCODE GCGincludeVarClassifierScipVartypes | ( | GCG * | gcg | ) |
- Parameters
-
gcg GCG data structure
Definition at line 230 of file clsvar_scipvartypes.cpp.
References classifierFree, CLSVAR_DESC, CLSVAR_ENABLED, CLSVAR_NAME, CLSVAR_PRIORITY, GCGincludeVarClassifier(), GCGincludeVarClassifierScipVartypes(), and SCIP_CALL().
Referenced by GCGincludeGcgPlugins(), and GCGincludeVarClassifierScipVartypes().