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 |
Enumerations | |
| enum | GCG_CLSVAR_VARTYPE_CLASS { GCG_CLSVAR_VARTYPE_CLASS_BINARY = 0 , GCG_CLSVAR_VARTYPE_CLASS_INTEGER = 1 , GCG_CLSVAR_VARTYPE_CLASS_CONTINUOUS_IMPLINT = 2 , GCG_CLSVAR_VARTYPE_CLASS_CONTINUOUS = 3 , GCG_CLSVAR_VARTYPE_CLASS_UNKNOWN = 4 } |
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(), gcg::VarPartition::assignVarToClass(), gcg::BLOCK, 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, GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), GCGgetOrigprob(), gcg::IndexPartition::getName(), gcg::IndexPartition::getNClasses(), gcg::DETPROBDATA::getNVars(), gcg::VarPartition::getNVars(), gcg::DETPROBDATA::getVar(), gcg::LINKING, NULL, SCIP_Bool, SCIP_IMPLINTTYPE_NONE, SCIP_OKAY, SCIP_VARTYPE_BINARY, SCIP_VARTYPE_CONTINUOUS, SCIP_VARTYPE_INTEGER, SCIP_VERBLEVEL_HIGH, SCIPgetBoolParam(), SCIPvarGetImplType(), SCIPvarGetType(), SCIPverbMessage(), SCIPwarningMessage(), gcg::VarPartition::setClassDecompInfo(), gcg::IndexPartition::setClassDescription(), and gcg::IndexPartition::setClassName().
◆ 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(), NULL, SCIP_CALL, and SCIP_OKAY.
Referenced by GCGincludeGcgPlugins().