Detailed Description
classifies constraints according to their scip constypes
Definition in file clscons_scipconstypes.cpp.
#include "gcg/clscons_scipconstypes.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 "scipconstype" |
| #define | CLSCONS_DESC "scip constypes" |
| #define | CLSCONS_PRIORITY 0 |
| #define | CLSCONS_ENABLED TRUE |
| #define | classifierFree NULL |
Functions | |
| static | GCG_DECL_CONSCLASSIFY (classifierClassify) |
| SCIP_RETCODE | GCGincludeConsClassifierScipConstypes (GCG *gcg) |
Macro Definition Documentation
◆ CLSCONS_NAME
| #define CLSCONS_NAME "scipconstype" |
name of classifier
Definition at line 49 of file clscons_scipconstypes.cpp.
◆ CLSCONS_DESC
| #define CLSCONS_DESC "scip constypes" |
short description of classification
Definition at line 50 of file clscons_scipconstypes.cpp.
◆ CLSCONS_PRIORITY
| #define CLSCONS_PRIORITY 0 |
Definition at line 51 of file clscons_scipconstypes.cpp.
◆ CLSCONS_ENABLED
| #define CLSCONS_ENABLED TRUE |
Definition at line 53 of file clscons_scipconstypes.cpp.
◆ classifierFree
| #define classifierFree NULL |
destructor of classifier to free user data (called when GCG is exiting)
Definition at line 78 of file clscons_scipconstypes.cpp.
Function Documentation
◆ GCG_DECL_CONSCLASSIFY()
|
static |
Definition at line 81 of file clscons_scipconstypes.cpp.
References gcg::DETPROBDATA::addConsPartition(), gcg::ConsPartition::assignConsToClass(), c, GCG_DECL_CONSCLASSIFY, GCGconsGetType(), GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), GCGgetOrigprob(), gcg::DETPROBDATA::getCons(), gcg::IndexPartition::getName(), gcg::IndexPartition::getNClasses(), gcg::ConsPartition::getNConss(), gcg::DETPROBDATA::getNConss(), i, knapsack, linear, logicor, nconsTypeItems, origprob, gcg::IndexPartition::setClassDescription(), gcg::IndexPartition::setClassName(), setcovering, setpacking, setpartitioning, sos1, sos2, unknown, and varbound.
◆ GCGincludeConsClassifierScipConstypes()
| SCIP_RETCODE GCGincludeConsClassifierScipConstypes | ( | GCG * | gcg | ) |
creates the handler for XYZ classifier and includes it in SCIP
creates the scip constypes classifier and includes it in SCIP
- Parameters
-
gcg GCG data structure
Definition at line 189 of file clscons_scipconstypes.cpp.
References classifierFree, CLSCONS_DESC, CLSCONS_ENABLED, CLSCONS_NAME, CLSCONS_PRIORITY, GCGincludeConsClassifier(), GCGincludeConsClassifierScipConstypes(), and SCIP_CALL().
Referenced by GCGincludeConsClassifierScipConstypes(), and GCGincludeGcgPlugins().