Detailed Description
classifies constraints according to their nonzero entries
Definition in file clscons_nnonzeros.cpp.
#include "gcg/clscons_nnonzeros.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_conspartition.h"#include "gcg/scip_misc.h"Go to the source code of this file.
Data Structures | |
| struct | GCG_ClassifierData |
Macros | |
| #define | CLSCONS_NAME "nnonzeros" |
| #define | CLSCONS_DESC "nnonezero entries" |
| #define | CLSCONS_PRIORITY 0 |
| #define | CLSCONS_ENABLED TRUE |
| #define | classifierFree NULL |
Functions | |
| static | GCG_DECL_CONSCLASSIFY (classifierClassify) |
| SCIP_RETCODE | GCGincludeConsClassifierNNonzeros (GCG *gcg) |
Macro Definition Documentation
◆ CLSCONS_NAME
| #define CLSCONS_NAME "nnonzeros" |
name of classifier
Definition at line 49 of file clscons_nnonzeros.cpp.
◆ CLSCONS_DESC
| #define CLSCONS_DESC "nnonezero entries" |
short description of classification
Definition at line 50 of file clscons_nnonzeros.cpp.
◆ CLSCONS_PRIORITY
| #define CLSCONS_PRIORITY 0 |
Definition at line 51 of file clscons_nnonzeros.cpp.
◆ CLSCONS_ENABLED
| #define CLSCONS_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
◆ GCG_DECL_CONSCLASSIFY()
|
static |
Definition at line 81 of file clscons_nnonzeros.cpp.
References gcg::DETPROBDATA::addConsPartition(), gcg::ConsPartition::assignConsToClass(), c, GCG_DECL_CONSCLASSIFY, GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), GCGgetOrigprob(), gcg::IndexPartition::getName(), gcg::IndexPartition::getNClasses(), gcg::ConsPartition::getNConss(), gcg::DETPROBDATA::getNConss(), gcg::DETPROBDATA::getNVarsForCons(), i, origprob, gcg::IndexPartition::setClassDescription(), and gcg::IndexPartition::setClassName().
◆ GCGincludeConsClassifierNNonzeros()
| SCIP_RETCODE GCGincludeConsClassifierNNonzeros | ( | GCG * | gcg | ) |
creates the handler for classifier for Nnonzeros and includes it in SCIP
creates the classifier for NNonzeros and includes it in SCIP
- Parameters
-
gcg GCG data structure
Definition at line 158 of file clscons_nnonzeros.cpp.
References classifierFree, CLSCONS_DESC, CLSCONS_ENABLED, CLSCONS_NAME, CLSCONS_PRIORITY, GCGincludeConsClassifier(), GCGincludeConsClassifierNNonzeros(), and SCIP_CALL().
Referenced by GCGincludeConsClassifierNNonzeros(), and GCGincludeGcgPlugins().