GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
clscons_gamsdomain.cpp File Reference

Detailed Description

Classifies by domains from which constraints are created TODO: what is together in one class?

Author
Stefanie Koß

Definition in file clscons_gamsdomain.cpp.

#include "gcg/clscons_gamsdomain.h"
#include "gcg/cons_decomp.h"
#include "gcg/cons_decomp.hpp"
#include <vector>
#include <string>
#include <set>
#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 SCIP_DEBUG
#define CLSCONS_NAME   "gamsdomain"
#define CLSCONS_DESC   "domain in GAMS file"
#define CLSCONS_PRIORITY   0
#define CLSCONS_ENABLED   TRUE

Functions

static GCG_DECL_FREECONSCLASSIFIER (classifierFree)
static GCG_DECL_CONSCLASSIFY (classifierClassify)
SCIP_RETCODE GCGconsClassifierGamsdomainAddEntry (GCG_CONSCLASSIFIER *classifier, SCIP_CONS *cons, int symDomIdx[], int *symDim)
SCIP_RETCODE GCGincludeConsClassifierGamsdomain (GCG *gcg)

Macro Definition Documentation

◆ SCIP_DEBUG

#define SCIP_DEBUG

Definition at line 36 of file clscons_gamsdomain.cpp.

◆ CLSCONS_NAME

#define CLSCONS_NAME   "gamsdomain"

name of classifier

Definition at line 53 of file clscons_gamsdomain.cpp.

◆ CLSCONS_DESC

#define CLSCONS_DESC   "domain in GAMS file"

short description of classification

Definition at line 54 of file clscons_gamsdomain.cpp.

◆ CLSCONS_PRIORITY

#define CLSCONS_PRIORITY   0

Definition at line 55 of file clscons_gamsdomain.cpp.

◆ CLSCONS_ENABLED

#define CLSCONS_ENABLED   TRUE

Definition at line 57 of file clscons_gamsdomain.cpp.

Function Documentation

◆ GCG_DECL_FREECONSCLASSIFIER()

GCG_DECL_FREECONSCLASSIFIER ( classifierFree )
static

◆ GCG_DECL_CONSCLASSIFY()

◆ GCGconsClassifierGamsdomainAddEntry()

SCIP_RETCODE GCGconsClassifierGamsdomainAddEntry ( GCG_CONSCLASSIFIER * classifier,
SCIP_CONS * cons,
int symDomIdx[],
int * symDim )

adds an entry to clsdata->constodomain

Definition at line 203 of file clscons_gamsdomain.cpp.

References assert(), GCG_ClassifierData::constodomain, GCGconsClassifierGamsdomainAddEntry(), GCGconsClassifierGetData(), and i.

Referenced by GCGconsClassifierGamsdomainAddEntry().

◆ GCGincludeConsClassifierGamsdomain()

SCIP_RETCODE GCGincludeConsClassifierGamsdomain ( GCG * gcg)

creates the handler for gamsdomain classifier and includes it in SCIP

creates the gamsdomain classifier and includes it in SCIP

Parameters
gcgGCG data structure

Definition at line 226 of file clscons_gamsdomain.cpp.

References assert(), classifierFree, CLSCONS_DESC, CLSCONS_ENABLED, CLSCONS_NAME, CLSCONS_PRIORITY, GCG_ClassifierData::constodomain, GCGincludeConsClassifier(), GCGincludeConsClassifierGamsdomain(), origprob, and SCIP_CALL().

Referenced by GCGincludeConsClassifierGamsdomain(), and GCGincludeGcgPlugins().