Scippy

GCG

Branch-and-Price & Column Generation for Everyone

pub_pricingcb.h
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 pub_pricingcb.h
30 * @ingroup PUBLICCOREAPI
31 * @brief public methods for pricing callback plugins
32 * @author Stephen J. Maher
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef __SCIP_PUB_PRICINGCB_H__
38#define __SCIP_PUB_PRICINGCB_H__
39
40#include "scip/def.h"
41#include "scip/type_retcode.h"
42#include "gcg/type_pricingcb.h"
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
48/**@addtogroup PublicBenderscutsMethods
49 *
50 * @{
51 */
52
53/** compares two pricing callback plugins w. r. to their priority */
55SCIP_DECL_SORTPTRCOMP(GCGpricingcbComp);
56
57/** comparison method for sorting pricing callback plugins w.r.t. to their name */
59SCIP_DECL_SORTPTRCOMP(GCGpricingcbCompName);
60
61/** gets user data of the pricing callback plugin */
64 GCG_PRICINGCB* pricingcb /**< pricing callback */
65 );
66
67/** sets user data of the pricing callback plugin; user has to free old data in advance! */
70 GCG_PRICINGCB* pricingcb, /**< pricing callback */
71 GCG_PRICINGCBDATA* pricingcbdata /**< new pricing callback plugin user data */
72 );
73
74/** gets name of the pricing callback plugin */
76const char* GCGpricingcbGetName(
77 GCG_PRICINGCB* pricingcb /**< pricing callback */
78 );
79
80/** gets description of the pricing callback plugin */
82const char* GCGpricingcbGetDesc(
83 GCG_PRICINGCB* pricingcb /**< pricing callback */
84 );
85
86/** gets priority of the pricing callback plugin */
89 GCG_PRICINGCB* pricingcb /**< pricing callback */
90 );
91
92/** gets the number of times the pre-pricing method of the pricing callback plugin was called */
95 GCG_PRICINGCB* pricingcb /**< pricing callback */
96 );
97
98/** gets the number of times the post-pricing method of the pricing callback plugin was called */
101 GCG_PRICINGCB* pricingcb /**< pricing callback */
102 );
103
104/** gets time in seconds used in this pricing callback plugin for setting up for next stages */
107 GCG* gcg, /**< GCG data structure */
108 GCG_PRICINGCB* pricingcb /**< pricing callback */
109 );
110
111/** gets time in seconds used in this pricing callback plugin */
114 GCG* gcg, /**< GCG data structure */
115 GCG_PRICINGCB* pricingcb /**< pricing callback */
116 );
117
118/** sets the enabled flag of the pricing callback plugin method */
121 GCG_PRICINGCB* pricingcb, /**< pricing callback */
122 SCIP_Bool enabled /**< flag to indicate whether the pricing callback plugin is enabled */
123 );
124
125/** sets the exclusive flag of the pricing callback plugin method */
128 GCG_PRICINGCB* pricingcb, /**< pricing callback */
129 SCIP_Bool exclusive /**< flag to indicate whether the pricing callback plugin is executed exclusively */
130 );
131
132/** returns whether the pricing callback is enabled */
135 GCG_PRICINGCB* pricingcb /**< pricing callback */
136 );
137
138/** returns whether the methods of this pricing callback should be executed exclusively */
141 GCG_PRICINGCB* pricingcb /**< pricing callback */
142 );
143
144
145/** @} */
146
147#ifdef __cplusplus
148}
149#endif
150
151#endif
#define GCG_EXPORT
Definition: def.h:59
#define SCIP_Longint
#define SCIP_Bool
#define SCIP_Real
GCG_EXPORT SCIP_Real GCGpricingcbGetSetupTime(GCG *gcg, GCG_PRICINGCB *pricingcb)
Definition: pricingcb.c:548
GCG_EXPORT void GCGpricingcbSetExclusive(GCG_PRICINGCB *pricingcb, SCIP_Bool exclusive)
Definition: pricingcb.c:581
GCG_EXPORT SCIP_Real GCGpricingcbGetTime(GCG *gcg, GCG_PRICINGCB *pricingcb)
Definition: pricingcb.c:559
GCG_EXPORT const char * GCGpricingcbGetDesc(GCG_PRICINGCB *pricingcb)
Definition: pricingcb.c:508
GCG_EXPORT SCIP_Bool GCGpricingcbIsEnabled(GCG_PRICINGCB *pricingcb)
Definition: pricingcb.c:592
GCG_EXPORT void GCGpricingcbSetData(GCG_PRICINGCB *pricingcb, GCG_PRICINGCBDATA *pricingcbdata)
Definition: pricingcb.c:420
GCG_EXPORT SCIP_Bool GCGpricingcbIsExclusive(GCG_PRICINGCB *pricingcb)
Definition: pricingcb.c:602
GCG_EXPORT const char * GCGpricingcbGetName(GCG_PRICINGCB *pricingcb)
Definition: pricingcb.c:498
GCG_EXPORT SCIP_Longint GCGpricingcbGetNPostpricingCalls(GCG_PRICINGCB *pricingcb)
Definition: pricingcb.c:538
GCG_EXPORT GCG_PRICINGCBDATA * GCGpricingcbGetData(GCG_PRICINGCB *pricingcb)
Definition: pricingcb.c:410
GCG_EXPORT SCIP_DECL_SORTPTRCOMP(GCGpricingcbComp)
Definition: pricingcb.c:57
GCG_EXPORT int GCGpricingcbGetPriority(GCG_PRICINGCB *pricingcb)
Definition: pricingcb.c:518
GCG_EXPORT SCIP_Longint GCGpricingcbGetNPrepricingCalls(GCG_PRICINGCB *pricingcb)
Definition: pricingcb.c:528
GCG_EXPORT void GCGpricingcbSetEnabled(GCG_PRICINGCB *pricingcb, SCIP_Bool enabled)
Definition: pricingcb.c:570
Definition: struct_gcg.h:55
type definitions for the pricing callback plugin
struct GCG_PricingcbData GCG_PRICINGCBDATA