Detailed Description
classifies constraints according to their nonzero entries
Definition in file clscons_nnonzeros.cpp.
#include "clscons_nnonzeros.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 "nnonzeros" |
#define | DEC_DESC "nnonezero entries" |
#define | DEC_PRIORITY 0 |
#define | DEC_ENABLED TRUE |
#define | classifierFree NULL |
Functions | |
static | DEC_DECL_CONSCLASSIFY (classifierClassify) |
SCIP_RETCODE | SCIPincludeConsClassifierNNonzeros (SCIP *scip) |
Macro Definition Documentation
◆ DEC_CLASSIFIERNAME
#define DEC_CLASSIFIERNAME "nnonzeros" |
name of classifier
Definition at line 49 of file clscons_nnonzeros.cpp.
◆ DEC_DESC
#define DEC_DESC "nnonezero entries" |
short description of classification
Definition at line 50 of file clscons_nnonzeros.cpp.
◆ DEC_PRIORITY
#define DEC_PRIORITY 0 |
Definition at line 51 of file clscons_nnonzeros.cpp.
◆ DEC_ENABLED
#define DEC_ENABLED TRUE |
Definition at line 53 of file clscons_nnonzeros.cpp.
◆ classifierFree
#define classifierFree NULL |
destructor of classifier to free user data (called when GCG is exiting)
Definition at line 78 of file clscons_nnonzeros.cpp.
Function Documentation
◆ DEC_DECL_CONSCLASSIFY()
|
static |
Definition at line 81 of file clscons_nnonzeros.cpp.
References gcg::DETPROBDATA::addConsPartition(), gcg::ConsPartition::assignConsToClass(), GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), gcg::IndexPartition::getName(), gcg::IndexPartition::getNClasses(), gcg::ConsPartition::getNConss(), gcg::DETPROBDATA::getNConss(), gcg::DETPROBDATA::getNVarsForCons(), gcg::IndexPartition::setClassDescription(), and gcg::IndexPartition::setClassName().
◆ SCIPincludeConsClassifierNNonzeros()
SCIP_RETCODE SCIPincludeConsClassifierNNonzeros | ( | SCIP * | scip | ) |
creates the handler for classifier for Nnonzeros and includes it in SCIP
- Parameters
-
scip SCIP data structure
Definition at line 157 of file clscons_nnonzeros.cpp.
References classifierFree, DEC_CLASSIFIERNAME, DEC_DESC, DEC_ENABLED, DEC_PRIORITY, and DECincludeConsClassifier().
Referenced by SCIPincludeGcgPlugins().