GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
clsvar.c
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2/* */
3/* This file is part of the program and library */
4/* GCG --- Generic Column Generation */
5/* a Dantzig-Wolfe decomposition based extension */
6/* of the branch-cut-and-price framework */
7/* SCIP --- Solving Constraint Integer Programs */
8/* */
9/* Copyright (C) 2010-2026 Operations Research, RWTH Aachen University */
10/* Zuse Institute Berlin (ZIB) */
11/* */
12/* Licensed under the Apache License, Version 2.0 (the "License"); */
13/* you may not use this file except in compliance with the License. */
14/* You may obtain a copy of the License at */
15/* */
16/* http://www.apache.org/licenses/LICENSE-2.0 */
17/* */
18/* Unless required by applicable law or agreed to in writing, software */
19/* distributed under the License is distributed on an "AS IS" BASIS, */
20/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
21/* See the License for the specific language governing permissions and */
22/* limitations under the License. */
23/* */
24/* You should have received a copy of the Apache-2.0 license */
25/* along with GCG; see the file LICENSE. If not visit gcg.or.rwth-aachen.de.*/
26/* */
27/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
28
29/**@file clsvar.c
30 * @ingroup DECOMP
31 * @brief interface for variable classifier
32 * @author Jurgen Lentz
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#include <assert.h>
38
39#include "scip/scip.h"
40
42#include "gcg/pub_clsvar.h"
43
44
45/** gets user data of variable classifier */
47 GCG_VARCLASSIFIER* varClassifier /**< variable classifier data structure */
48 )
49{
50 assert(varClassifier != NULL);
51
52 return varClassifier->clsdata;
53}
54
55/** sets user data of variable classifier; user has to free old data in advance! */
57 GCG_VARCLASSIFIER* varClassifier, /**< variable classifier data structure */
58 GCG_CLASSIFIERDATA* clsdata /**< new variable classifier user data */
59 )
60{
61 assert(varClassifier != NULL);
62
63 varClassifier->clsdata = clsdata;
64}
65
66/** gets name of variable classifier */
68 GCG_VARCLASSIFIER* varClassifier /**< variable classifier data structure */
69 )
70{
71 assert(varClassifier != NULL);
72
73 return varClassifier->name;
74}
75
76/** gets priority of variable classifier */
78 GCG_VARCLASSIFIER* varClassifier /**< variable classifier data structure */
79 )
80{
81 assert(varClassifier != NULL);
82
83 return varClassifier->priority;
84}
85
86/** returns True iff variable classifier is enabled */
88 GCG_VARCLASSIFIER* varClassifier /**< variable classifier data structure */
89 )
90{
91 assert(varClassifier != NULL);
92
93 return varClassifier->enabled;
94}
95
96/** gets description of constraint classifier */
98 GCG_VARCLASSIFIER* varClassifier /**< variable classifier data structure */
99 )
100{
101 assert(varClassifier != NULL);
102
103 return varClassifier->description;
104}
#define SCIP_Bool
GCG_CLASSIFIERDATA * GCGvarClassifierGetData(GCG_VARCLASSIFIER *varClassifier)
Definition clsvar.c:46
const char * GCGvarClassifierGetName(GCG_VARCLASSIFIER *varClassifier)
Definition clsvar.c:67
const char * GCGvarClassifierGetDesc(GCG_VARCLASSIFIER *varClassifier)
Definition clsvar.c:97
int GCGvarClassifierGetPriority(GCG_VARCLASSIFIER *varClassifier)
Definition clsvar.c:77
SCIP_Bool GCGvarClassifierIsEnabled(GCG_VARCLASSIFIER *varClassifier)
Definition clsvar.c:87
void GCGvarClassifierSetData(GCG_VARCLASSIFIER *varClassifier, GCG_CLASSIFIERDATA *clsdata)
Definition clsvar.c:56
static assert(heur !=NULL)
#define NULL
public methods for variable classifiers
GCG_CLASSIFIERDATA * clsdata
data structures for variable classifiers
struct GCG_ClassifierData GCG_CLASSIFIERDATA
struct GCG_VarClassifier GCG_VARCLASSIFIER