GCG 4.1.1 (dev)

Generic Column Generation

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

Detailed Description

classifies constraints according to names (without digits)

Definition in file clscons_consnamenonumbers.cpp.

#include "gcg/clscons_consnamenonumbers.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   "consnamenonumbers"
#define CLSCONS_DESC   "constraint names (remove digits; check for identity)"
#define CLSCONS_PRIORITY   0
#define CLSCONS_ENABLED   FALSE
#define classifierFree   NULL

Functions

void removeDigits (char *str, int *nremoved)
static GCG_DECL_CONSCLASSIFY (classifierClassify)
SCIP_RETCODE GCGincludeConsClassifierForConsnamesDigitFreeIdentical (GCG *gcg)

Macro Definition Documentation

◆ CLSCONS_NAME

#define CLSCONS_NAME   "consnamenonumbers"

name of classifier

Definition at line 49 of file clscons_consnamenonumbers.cpp.

◆ CLSCONS_DESC

#define CLSCONS_DESC   "constraint names (remove digits; check for identity)"

short description of classification

Definition at line 50 of file clscons_consnamenonumbers.cpp.

◆ CLSCONS_PRIORITY

#define CLSCONS_PRIORITY   0

Definition at line 51 of file clscons_consnamenonumbers.cpp.

◆ CLSCONS_ENABLED

#define CLSCONS_ENABLED   FALSE

Definition at line 53 of file clscons_consnamenonumbers.cpp.

◆ classifierFree

#define classifierFree   NULL

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

Definition at line 78 of file clscons_consnamenonumbers.cpp.

Function Documentation

◆ removeDigits()

void removeDigits ( char * str,
int * nremoved )

removes all digits from string str

Definition at line 81 of file clscons_consnamenonumbers.cpp.

References i, j, and removeDigits().

Referenced by GCG_DECL_CONSCLASSIFY(), and removeDigits().

◆ GCG_DECL_CONSCLASSIFY()

◆ GCGincludeConsClassifierForConsnamesDigitFreeIdentical()

SCIP_RETCODE GCGincludeConsClassifierForConsnamesDigitFreeIdentical ( GCG * gcg)