Scippy

GCG

Branch-and-Price & Column Generation for Everyone

clscons_miplibconstypes.cpp File Reference

Detailed Description

classifies constraints according to their miplib constypes

Definition in file clscons_miplibconstypes.cpp.

#include "gcg/clscons_miplibconstypes.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   "miplibconstype"
 
#define CLSCONS_DESC   "miplib constypes"
 
#define CLSCONS_PRIORITY   0
 
#define CLSCONS_ENABLED   TRUE
 
#define classifierFree   NULL
 

Functions

static GCG_DECL_CONSCLASSIFY (classifierClassify)
 
SCIP_RETCODE GCGincludeConsClassifierMiplibConstypes (GCG *gcg)
 

Macro Definition Documentation

◆ CLSCONS_NAME

#define CLSCONS_NAME   "miplibconstype"

name of classifier

Definition at line 49 of file clscons_miplibconstypes.cpp.

◆ CLSCONS_DESC

#define CLSCONS_DESC   "miplib constypes"

short description of classification

Definition at line 50 of file clscons_miplibconstypes.cpp.

◆ CLSCONS_PRIORITY

#define CLSCONS_PRIORITY   0

Definition at line 51 of file clscons_miplibconstypes.cpp.

◆ CLSCONS_ENABLED

#define CLSCONS_ENABLED   TRUE

Definition at line 53 of file clscons_miplibconstypes.cpp.

◆ classifierFree

#define classifierFree   NULL

destructor of classifier to free user data (called when GCG is exiting)

Definition at line 78 of file clscons_miplibconstypes.cpp.

Function Documentation

◆ GCG_DECL_CONSCLASSIFY()

static GCG_DECL_CONSCLASSIFY ( classifierClassify  )
static

Definition at line 81 of file clscons_miplibconstypes.cpp.

References gcg::DETPROBDATA::addConsPartition(), gcg::ConsPartition::assignConsToClass(), b, FALSE, GCGconsGetLhs(), GCGconsGetNVars(), GCGconsGetRhs(), GCGconsGetVals(), GCGconsGetVars(), GCGconshdlrDecompGetDetprobdataOrig(), GCGconshdlrDecompGetDetprobdataPresolved(), GCGgetOrigprob(), gcg::DETPROBDATA::getCons(), gcg::IndexPartition::getName(), gcg::IndexPartition::getNClasses(), gcg::ConsPartition::getNConss(), gcg::DETPROBDATA::getNConss(), gcg::DETPROBDATA::isFiniteNonnegativeIntegral(), gcg::DETPROBDATA::isRangedRow(), NULL, REALABS, gcg::IndexPartition::removeEmptyClasses(), SCIP_Bool, SCIP_CALL_ABORT, SCIP_CONSTYPE_AGGREGATION, SCIP_CONSTYPE_BINPACKING, SCIP_CONSTYPE_CARDINALITY, SCIP_CONSTYPE_EMPTY, SCIP_CONSTYPE_EQKNAPSACK, SCIP_CONSTYPE_FREE, SCIP_CONSTYPE_GENERAL, SCIP_CONSTYPE_INTKNAPSACK, SCIP_CONSTYPE_INVKNAPSACK, SCIP_CONSTYPE_KNAPSACK, SCIP_CONSTYPE_MIXEDBINARY, SCIP_CONSTYPE_SETCOVERING, SCIP_CONSTYPE_SETPACKING, SCIP_CONSTYPE_SETPARTITION, SCIP_CONSTYPE_SINGLETON, SCIP_CONSTYPE_VARBOUND, SCIP_OKAY, SCIP_Real, SCIP_VARTYPE_CONTINUOUS, SCIP_VERBLEVEL_HIGH, SCIPallocBufferArray, SCIPdebugMsg, SCIPdebugPrintCons, SCIPfreeBufferArray, SCIPinfinity(), SCIPisEQ(), SCIPisGE(), SCIPisInfinity(), SCIPisIntegral(), SCIPisLE(), SCIPisNegative(), SCIPisZero(), SCIPvarGetLbGlobal(), SCIPvarGetType(), SCIPvarGetUbGlobal(), SCIPverbMessage(), gcg::IndexPartition::setClassDescription(), gcg::IndexPartition::setClassName(), and TRUE.

◆ GCGincludeConsClassifierMiplibConstypes()

SCIP_RETCODE GCGincludeConsClassifierMiplibConstypes ( GCG *  gcg)

creates the miplibconstypes classifier and includes it in SCIP

Parameters
gcgGCG data structure

Definition at line 520 of file clscons_miplibconstypes.cpp.

References classifierFree, CLSCONS_DESC, CLSCONS_ENABLED, CLSCONS_NAME, CLSCONS_PRIORITY, GCGincludeConsClassifier(), NULL, SCIP_CALL, and SCIP_OKAY.

Referenced by GCGincludeGcgPlugins().