GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
struct_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 struct_pricingcb.h
30 * @ingroup INTERNALAPI
31 * @brief data structure for pricing callbacks
32 * @author Stephen J. Maher
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef __SCIP_STRUCT_PRICINGCB_H__
38#define __SCIP_STRUCT_PRICINGCB_H__
39
40
41#include "scip/def.h"
42#include "scip/type_clock.h"
43#include "gcg/type_pricingcb.h"
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
49/** pricing callbacks data */
51{
52 SCIP_Longint nprepricingcalls; /**< number of times, the pre-pricing method was called */
53 SCIP_Longint npostpricingcalls; /**< number of times, the post-pricing method was called */
54 char* name; /**< name of the pricing callback */
55 char* desc; /**< description of the pricing callback */
56 GCG_DECL_PRICINGCBCOPY((*pricingcbcopy));/**< copy method of the pricing callback or NULL if you don't want to copy your plugin into sub-SCIPs */
57 GCG_DECL_PRICINGCBFREE((*pricingcbfree));/**< destructor of the pricing callback */
58 GCG_DECL_PRICINGCBINIT((*pricingcbinit));/**< initialize the pricing callback */
59 GCG_DECL_PRICINGCBEXIT((*pricingcbexit));/**< deinitialize the pricing callback */
60 GCG_DECL_PRICINGCBINITSOL((*pricingcbinitsol));/**< solving process initialization method of the pricing callback */
61 GCG_DECL_PRICINGCBEXITSOL((*pricingcbexitsol));/**< solving process deinitialization method of the pricing callback */
62 GCG_DECL_PRICINGCBPREPRICING((*pricingcbprepricing));/**< the pre-pricing method of the pricing callback */
63 GCG_DECL_PRICINGCBPOSTPRICING((*pricingcbpostpricing));/**< the post-pricing method of the pricing callback */
64 GCG_PRICINGCBDATA* pricingcbdata; /**< pricing callbacks local data */
65 SCIP_CLOCK* setuptime; /**< time spend for setting up the pricing callback plugin */
66 SCIP_CLOCK* pricingcbclock; /**< the execution time of the pricing callback plugin */
67 int priority; /**< priority of the pricing callbacks */
68
69 /* additional pricing callback parameters */
70 SCIP_Bool enabled; /**< is this pricing callback enabled? */
71 SCIP_Bool exclusive; /**< is this pricing callback executed exclusively? (must be highest priority) */
72};
73
74#ifdef __cplusplus
75}
76#endif
77
78#endif
#define SCIP_Longint
#define SCIP_Bool
GCG_DECL_PRICINGCBEXIT((*pricingcbexit))
SCIP_Longint nprepricingcalls
SCIP_Bool exclusive
GCG_DECL_PRICINGCBCOPY((*pricingcbcopy))
GCG_DECL_PRICINGCBINITSOL((*pricingcbinitsol))
SCIP_CLOCK * setuptime
GCG_DECL_PRICINGCBFREE((*pricingcbfree))
SCIP_CLOCK * pricingcbclock
SCIP_Longint npostpricingcalls
GCG_DECL_PRICINGCBINIT((*pricingcbinit))
GCG_DECL_PRICINGCBPREPRICING((*pricingcbprepricing))
GCG_DECL_PRICINGCBEXITSOL((*pricingcbexitsol))
GCG_DECL_PRICINGCBPOSTPRICING((*pricingcbpostpricing))
GCG_PRICINGCBDATA * pricingcbdata
struct SCIP_Clock SCIP_CLOCK
type definitions for the pricing callback plugin
struct GCG_PricingcbData GCG_PRICINGCBDATA