Scippy

GCG

Branch-and-Price & Column Generation for Everyone

clsvar_gamsdomain.cpp File Reference

Detailed Description

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

Author
Stefanie Koß

Definition in file clsvar_gamsdomain.cpp.

#include "clsvar_gamsdomain.h"
#include "cons_decomp.h"
#include "cons_decomp.hpp"
#include <map>
#include <set>
#include <stdio.h>
#include <sstream>
#include <vector>
#include "class_detprobdata.h"
#include "class_varpartition.h"
#include "scip_misc.h"

Go to the source code of this file.

Data Structures

struct  DEC_ClassifierData
 

Macros

#define DEC_CLASSIFIERNAME   "gamsdomain"
 
#define DEC_DESC   "domain in gams file"
 
#define DEC_PRIORITY   0
 
#define DEC_ENABLED   TRUE
 

Functions

static DEC_DECL_FREEVARCLASSIFIER (classifierFree)
 
static DEC_DECL_VARCLASSIFY (classifierClassify)
 
SCIP_RETCODE DECvarClassifierGamsdomainAddEntry (DEC_VARCLASSIFIER *classifier, SCIP_VAR *var, int symDomIdx[], int *symDim)
 
SCIP_RETCODE SCIPincludeVarClassifierGamsdomain (SCIP *scip)
 

Macro Definition Documentation

◆ DEC_CLASSIFIERNAME

#define DEC_CLASSIFIERNAME   "gamsdomain"

name of classifier

Definition at line 51 of file clsvar_gamsdomain.cpp.

◆ DEC_DESC

#define DEC_DESC   "domain in gams file"

short description of classification

Definition at line 52 of file clsvar_gamsdomain.cpp.

◆ DEC_PRIORITY

#define DEC_PRIORITY   0

priority of this classifier

Definition at line 53 of file clsvar_gamsdomain.cpp.

◆ DEC_ENABLED

#define DEC_ENABLED   TRUE

Definition at line 55 of file clsvar_gamsdomain.cpp.

Function Documentation

◆ DEC_DECL_FREEVARCLASSIFIER()

static DEC_DECL_FREEVARCLASSIFIER ( classifierFree  )
static

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

Definition at line 81 of file clsvar_gamsdomain.cpp.

References DEC_CLASSIFIERNAME, DECvarClassifierGetData(), DECvarClassifierGetName(), and DEC_ClassifierData::vartodomain.

◆ DEC_DECL_VARCLASSIFY()

◆ DECvarClassifierGamsdomainAddEntry()

SCIP_RETCODE DECvarClassifierGamsdomainAddEntry ( DEC_VARCLASSIFIER classifier,
SCIP_VAR *  var,
int  symDomIdx[],
int *  symDim 
)

adds an entry to clsdata->vartodomain

Definition at line 202 of file clsvar_gamsdomain.cpp.

References DECvarClassifierGetData(), and DEC_ClassifierData::vartodomain.

◆ SCIPincludeVarClassifierGamsdomain()

SCIP_RETCODE SCIPincludeVarClassifierGamsdomain ( SCIP *  scip)

creates the handler for gamsdomain classifier and includes it in SCIP

Parameters
scipSCIP data structure

Definition at line 229 of file clsvar_gamsdomain.cpp.

References classifierFree, DEC_CLASSIFIERNAME, DEC_DESC, DEC_ENABLED, DEC_PRIORITY, DECincludeVarClassifier(), and DEC_ClassifierData::vartodomain.

Referenced by SCIPincludeGcgPlugins().