GCG 4.1.1 (dev)

Generic Column Generation

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

Detailed Description

variables which have the same symbol are put into same class

Author
Stefanie Koß

Definition in file clsvar_gamssymbol.cpp.

#include "gcg/clsvar_gamssymbol.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_varpartition.h"
#include "gcg/scip_misc.h"

Go to the source code of this file.

Data Structures

struct  GCG_ClassifierData

Macros

#define CLSVAR_NAME   "gamssymbol"
#define CLSVAR_DESC   "symbol in gams file"
#define CLSVAR_PRIORITY   0
#define CLSVAR_ENABLED   TRUE

Functions

static GCG_DECL_FREEVARCLASSIFIER (classifierFree)
static GCG_DECL_VARCLASSIFY (classifierClassify)
SCIP_RETCODE GCGvarClassifierGamssymbolAddEntry (GCG_VARCLASSIFIER *classifier, SCIP_VAR *var, int symbolIdx)
SCIP_RETCODE GCGincludeVarClassifierGamssymbol (GCG *gcg)

Macro Definition Documentation

◆ CLSVAR_NAME

#define CLSVAR_NAME   "gamssymbol"

name of classifier

Definition at line 50 of file clsvar_gamssymbol.cpp.

◆ CLSVAR_DESC

#define CLSVAR_DESC   "symbol in gams file"

short description of classification

Definition at line 51 of file clsvar_gamssymbol.cpp.

◆ CLSVAR_PRIORITY

#define CLSVAR_PRIORITY   0

priority of this classifier

Definition at line 52 of file clsvar_gamssymbol.cpp.

◆ CLSVAR_ENABLED

#define CLSVAR_ENABLED   TRUE

Definition at line 54 of file clsvar_gamssymbol.cpp.

Function Documentation

◆ GCG_DECL_FREEVARCLASSIFIER()

GCG_DECL_FREEVARCLASSIFIER ( classifierFree )
static

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

Definition at line 80 of file clsvar_gamssymbol.cpp.

References assert(), classifierFree, CLSVAR_NAME, GCG_DECL_FREEVARCLASSIFIER, GCGgetOrigprob(), GCGvarClassifierGetData(), GCGvarClassifierGetName(), SCIPfreeMemory(), and GCG_ClassifierData::vartosymbol.

◆ GCG_DECL_VARCLASSIFY()

◆ GCGvarClassifierGamssymbolAddEntry()

SCIP_RETCODE GCGvarClassifierGamssymbolAddEntry ( GCG_VARCLASSIFIER * classifier,
SCIP_VAR * var,
int symbolIdx )

adds an entry to clsdata->vartosymbol

Definition at line 194 of file clsvar_gamssymbol.cpp.

References assert(), GCGvarClassifierGamssymbolAddEntry(), GCGvarClassifierGetData(), var, and GCG_ClassifierData::vartosymbol.

Referenced by GCGvarClassifierGamssymbolAddEntry().

◆ GCGincludeVarClassifierGamssymbol()

SCIP_RETCODE GCGincludeVarClassifierGamssymbol ( GCG * gcg)

creates the handler for gamssymbol classifier and includes it in SCIP

creates the gamssymbol classifier and includes it in SCIP

Parameters
gcgGCG data structure

Definition at line 215 of file clsvar_gamssymbol.cpp.

References assert(), classifierFree, CLSVAR_DESC, CLSVAR_ENABLED, CLSVAR_NAME, CLSVAR_PRIORITY, GCGgetOrigprob(), GCGincludeVarClassifier(), GCGincludeVarClassifierGamssymbol(), SCIP_CALL(), and GCG_ClassifierData::vartosymbol.

Referenced by GCGincludeGcgPlugins(), and GCGincludeVarClassifierGamssymbol().