GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
pub_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 pub_pricingprob.h
30 * @ingroup PUBLICCOREAPI
31 * @brief public methods for working with pricing problems
32 * @author Christian Puchert
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36#ifndef GCG_PUB_PRICINGPROB_H__
37#define GCG_PUB_PRICINGPROB_H__
38
39
41#include "scip/type_scip.h"
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47/*
48 * GCG Pricing Problem
49 */
50
51/**
52 * @ingroup PRICINGPROB
53 * @{
54 */
55
56
57/** get the SCIP instance corresponding to the pricing problem */
60 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
61 );
62
63/** get the index of the corresponding pricing problem */
66 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
67 );
68
69/** get generic branching data corresponding to the pricing problem */
72 GCG_PRICINGPROB* pricingprob, /**< pricing problem structure */
73 SCIP_CONS*** branchconss, /**< pointer to store branching constraints array, or NULL */
74 SCIP_Real** branchduals, /**< pointer to store array of corresponding dual values, or NULL */
75 int* nbranchconss /**< pointer to store number of generic branching constraints, or NULL */
76 );
77
78/** get the number of generic branching constraints corresponding to the pricing problem */
81 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
82 );
83
84/** get index of current generic branching constraint considered the pricing problem */
87 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
88 );
89
90/** check if the current generic branching constraint has already been added */
93 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
94 );
95
96/** mark the current generic branching constraint to be added */
99 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
100 );
101
102/** get the status of a pricing problem */
105 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
106 );
107
108/** get the lower bound of a pricing problem */
111 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
112 );
113
114/** get the number of improving columns found for this pricing problem */
117 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
118 );
119
120/** get the number of times the pricing problem was solved during the loop */
123 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
124 );
125
126/** get the total number of improving colums found in the last pricing rounds */
129 GCG_PRICINGPROB* pricingprob, /**< pricing problem structure */
130 int nroundscol /**< number of previous pricing rounds for which the number of improving columns should be counted */
131 );
132
133/**@} */
134
135#ifdef __cplusplus
136}
137#endif
138#endif
#define GCG_EXPORT
Definition def.h:59
#define SCIP_Bool
#define SCIP_Real
SCIP * GCGpricingprobGetPricingscip(GCG_PRICINGPROB *pricingprob)
void GCGpricingprobMarkBranchconsAdded(GCG_PRICINGPROB *pricingprob)
int GCGpricingprobGetBranchconsIdx(GCG_PRICINGPROB *pricingprob)
SCIP_Real GCGpricingprobGetLowerbound(GCG_PRICINGPROB *pricingprob)
void GCGpricingprobGetGenericBranchData(GCG_PRICINGPROB *pricingprob, SCIP_CONS ***branchconss, SCIP_Real **branchduals, int *nbranchconss)
int GCGpricingprobGetNImpCols(GCG_PRICINGPROB *pricingprob)
SCIP_Bool GCGpricingprobBranchconsIsAdded(GCG_PRICINGPROB *pricingprob)
GCG_PRICINGSTATUS GCGpricingprobGetStatus(GCG_PRICINGPROB *pricingprob)
int GCGpricingprobGetProbnr(GCG_PRICINGPROB *pricingprob)
int GCGpricingprobGetNGenericBranchconss(GCG_PRICINGPROB *pricingprob)
int GCGpricingprobGetNSolves(GCG_PRICINGPROB *pricingprob)
int GCGpricingprobGetNColsLastRounds(GCG_PRICINGPROB *pricingprob, int nroundscol)
struct SCIP_Cons SCIP_CONS
type definitions for pricing problem data structure
struct GCG_PricingProb GCG_PRICINGPROB
enum GCG_PricingStatus GCG_PRICINGSTATUS
struct Scip SCIP