Detailed Description
classifies variables according to their objective function value signs
Definition in file clsvar_objvaluesigns.cpp.
#include "gcg/clsvar_objvaluesigns.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 "objectivevaluesigns" |
| #define | CLSVAR_DESC "objective function value signs" |
| #define | CLSVAR_PRIORITY 0 |
| #define | CLSVAR_ENABLED TRUE |
| #define | classifierFree NULL |
Functions | |
| static | GCG_DECL_VARCLASSIFY (classifierClassify) |
| SCIP_RETCODE | GCGincludeVarClassifierObjValueSigns (GCG *gcg) |
Macro Definition Documentation
◆ CLSVAR_NAME
| #define CLSVAR_NAME "objectivevaluesigns" |
name of classifier
Definition at line 49 of file clsvar_objvaluesigns.cpp.
◆ CLSVAR_DESC
| #define CLSVAR_DESC "objective function value signs" |
short description of classification
Definition at line 50 of file clsvar_objvaluesigns.cpp.
◆ CLSVAR_PRIORITY
| #define CLSVAR_PRIORITY 0 |
Definition at line 51 of file clsvar_objvaluesigns.cpp.
◆ CLSVAR_ENABLED
| #define CLSVAR_ENABLED TRUE |
Definition at line 53 of file clsvar_objvaluesigns.cpp.
◆ classifierFree
| #define classifierFree NULL |
destructor of classifier to free user data (called when GCG is exiting)
Definition at line 78 of file clsvar_objvaluesigns.cpp.
Function Documentation
◆ GCG_DECL_VARCLASSIFY()
|
static |
Definition at line 81 of file clsvar_objvaluesigns.cpp.
References gcg::DETPROBDATA::addVarPartition(), gcg::ALL, assert(), gcg::VarPartition::assignVarToClass(), GCG_DECL_VARCLASSIFY, GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), GCGgetOrigprob(), gcg::IndexPartition::getName(), gcg::IndexPartition::getNClasses(), gcg::DETPROBDATA::getNVars(), gcg::DETPROBDATA::getVar(), gcg::MASTER, origprob, gcg::IndexPartition::removeEmptyClasses(), gcg::VarPartition::setClassDecompInfo(), gcg::IndexPartition::setClassDescription(), and gcg::IndexPartition::setClassName().
◆ GCGincludeVarClassifierObjValueSigns()
| SCIP_RETCODE GCGincludeVarClassifierObjValueSigns | ( | GCG * | gcg | ) |
- Parameters
-
gcg GCG data structure
Definition at line 144 of file clsvar_objvaluesigns.cpp.
References classifierFree, CLSVAR_DESC, CLSVAR_ENABLED, CLSVAR_NAME, CLSVAR_PRIORITY, GCGincludeVarClassifier(), GCGincludeVarClassifierObjValueSigns(), and SCIP_CALL().
Referenced by GCGincludeGcgPlugins(), and GCGincludeVarClassifierObjValueSigns().