Detailed Description
classifies constraints according to names (without digits)
Definition in file clscons_consnamenonumbers.cpp.
#include "clscons_consnamenonumbers.h"#include "cons_decomp.h"#include "cons_decomp.hpp"#include <vector>#include <stdio.h>#include <sstream>#include "class_detprobdata.h"#include "class_conspartition.h"#include "scip_misc.h"Go to the source code of this file.
Data Structures | |
| struct | DEC_ClassifierData |
Macros | |
| #define | DEC_CLASSIFIERNAME "consnamenonumbers" |
| #define | DEC_DESC "constraint names (remove digits; check for identity)" |
| #define | DEC_PRIORITY 0 |
| #define | DEC_ENABLED FALSE |
| #define | classifierFree NULL |
Functions | |
| void | removeDigits (char *str, int *nremoved) |
| static | DEC_DECL_CONSCLASSIFY (classifierClassify) |
| SCIP_RETCODE | SCIPincludeConsClassifierForConsnamesDigitFreeIdentical (SCIP *scip) |
Macro Definition Documentation
◆ DEC_CLASSIFIERNAME
| #define DEC_CLASSIFIERNAME "consnamenonumbers" |
name of classifier
Definition at line 49 of file clscons_consnamenonumbers.cpp.
◆ DEC_DESC
| #define DEC_DESC "constraint names (remove digits; check for identity)" |
short description of classification
Definition at line 50 of file clscons_consnamenonumbers.cpp.
◆ DEC_PRIORITY
| #define DEC_PRIORITY 0 |
Definition at line 51 of file clscons_consnamenonumbers.cpp.
◆ DEC_ENABLED
| #define DEC_ENABLED FALSE |
Definition at line 53 of file clscons_consnamenonumbers.cpp.
◆ classifierFree
| #define classifierFree NULL |
destructor of classifier to free user data (called when GCG is exiting)
Definition at line 78 of file clscons_consnamenonumbers.cpp.
Function Documentation
◆ removeDigits()
| void removeDigits | ( | char * | str, |
| int * | nremoved | ||
| ) |
removes all digits from string str
Definition at line 81 of file clscons_consnamenonumbers.cpp.
Referenced by DEC_DECL_CONSCLASSIFY().
◆ DEC_DECL_CONSCLASSIFY()
|
static |
Definition at line 111 of file clscons_consnamenonumbers.cpp.
References gcg::DETPROBDATA::addConsPartition(), gcg::ConsPartition::assignConsToClass(), GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), gcg::DETPROBDATA::getCons(), gcg::IndexPartition::getName(), gcg::IndexPartition::getNClasses(), gcg::ConsPartition::getNConss(), gcg::DETPROBDATA::getNConss(), removeDigits(), gcg::IndexPartition::setClassDescription(), and gcg::IndexPartition::setClassName().
◆ SCIPincludeConsClassifierForConsnamesDigitFreeIdentical()
| SCIP_RETCODE SCIPincludeConsClassifierForConsnamesDigitFreeIdentical | ( | SCIP * | scip | ) |
creates the scip consnames no numbers classifier and includes it in SCIP
- Parameters
-
scip SCIP data structure
Definition at line 191 of file clscons_consnamenonumbers.cpp.
References classifierFree, DEC_CLASSIFIERNAME, DEC_DESC, DEC_ENABLED, DEC_PRIORITY, and DECincludeConsClassifier().
Referenced by SCIPincludeGcgPlugins().
