GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
struct_pricingprob.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_pricingprob.h
30 * @ingroup DATASTRUCTURES
31 * @brief data structure to store pricing problem information
32 * @author Christian Puchert
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef GCG_STRUCT_PRICINGPROB_H_
38#define GCG_STRUCT_PRICINGPROB_H_
39
40#include "scip/def.h"
41#include "scip/type_misc.h"
42#include "scip/scip.h"
43
45#include "gcg/type_gcgcol.h"
46#include "gcg/type_solver.h"
47
48#ifdef __cplusplus
49extern "C" {
50#endif
51
52/** pricing problem data structure */
54{
55 /* problem data */
56 SCIP* pricingscip; /**< SCIP data structure */
57 int probnr; /**< (block) index of the corresponding pricing problem */
58
59 /* generic branching information */
60 SCIP_CONS** branchconss; /**< stack of generic branching constraints */
61 SCIP_Real* branchduals; /**< corresponding dual solution values */
62 int nbranchconss; /**< number of generic branching constraints */
63 int branchconsssize; /**< size of generic branching constraints array */
64 int branchconsidx; /**< lowest index generic branching constraint that is considered */
65 SCIP_Bool consisadded; /**< flag to indicate whether this constraint has already been added */
66
67 /* result values */
68 GCG_PRICINGSTATUS status; /**< current status of the pricing problem */
69 SCIP_Real lowerbound; /**< lower bound obtained by solving the pricing problem */
70 int nimpcols; /**< number of improving columns found in the current pricing round */
71
72 /* statistics */
73 int nsolves; /**< number of times the pricing problem was solved during the loop */
74 int* ncolsround; /**< number of improving columns found in the last rounds */
75 int maxcolsround; /**< capacity of ncolsround */
76};
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* STRUCT_PRICINGPROB_H_ */
#define SCIP_Bool
#define SCIP_Real
GCG_PRICINGSTATUS status
SCIP_Real * branchduals
SCIP_CONS ** branchconss
struct SCIP_Cons SCIP_CONS
type definitions for gcg data structure
type definitions for pricing problem data structure
enum GCG_PricingStatus GCG_PRICINGSTATUS
struct Scip SCIP
type definitions for pricing problem solvers in GCG project