Scippy

GCG

Branch-and-Price & Column Generation for Everyone

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 pricingprob.h
30 * @ingroup PRICING_PRIV
31 * @brief private methods for working with pricing problems, to be used by the pricing controller only
32 * @author Christian Puchert
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36#ifndef GCG_PRICINGPROB_H__
37#define GCG_PRICINGPROB_H__
38
39
42
43#include "gcg/pricer_gcg.h"
44#include "gcg/type_colpool.h"
46#include "gcg/type_pricingjob.h"
47#include "gcg/type_solver.h"
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52
53/** create a pricing problem */
55 GCG* gcg, /**< GCG data structure (master problem) */
56 GCG_PRICINGPROB** pricingprob, /**< pricing problem to be created */
57 SCIP* pricingscip, /**< SCIP data structure of the corresponding pricing problem */
58 int probnr, /**< index of the corresponding pricing problem */
59 int nroundscol /**< number of previous pricing rounds for which the number of improving columns should be counted */
60);
61
62/** free a pricing problem */
64 GCG* gcg, /**< GCG data structure (master problem) */
65 GCG_PRICINGPROB** pricingprob /**< pricing problem to be freed */
66);
67
68/** initialize pricing problem at the beginning of the pricing round */
70 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
71 );
72
73/** uninitialize pricing problem at the beginning of the pricing round */
75 GCG_PRICINGPROB* pricingprob, /**< pricing problem structure */
76 int nroundscol /**< number of previous pricing rounds for which the number of improving columns should be counted */
77 );
78
79/** add generic branching data (constraint and dual value) to the current pricing problem */
81 GCG* gcg, /**< GCG data structure (master problem) */
82 GCG_PRICINGPROB* pricingprob, /**< pricing problem structure */
83 SCIP_CONS* branchcons, /**< generic branching constraint */
84 SCIP_Real branchdual /**< corresponding dual solution value */
85 );
86
87/** reset the pricing problem statistics for the current pricing round */
89 GCG* gcg, /**< GCG data structure (master problem) */
90 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
91 );
92
93/** update solution information of a pricing problem */
95 GCG* gcg, /**< GCG data structure (master problem) */
96 GCG_PRICINGPROB* pricingprob, /**< pricing problem structure */
97 GCG_PRICINGSTATUS status, /**< status of last pricing job */
98 SCIP_Real lowerbound, /**< new lower bound */
99 int nimpcols /**< number of new improving columns */
100 );
101
102/** add the information that the next branching constraint must be added */
104 GCG_PRICINGPROB* pricingprob /**< pricing problem structure */
105 );
106
107/** set the lower bound of a pricing job */
109 GCG_PRICINGJOB* pricingjob, /**< pricing job */
110 SCIP_Real lowerbound /**< new lower bound */
111 );
112
113#ifdef __cplusplus
114}
115#endif
116
117#endif
GCG variable pricer.
void GCGpricingprobUpdate(GCG *gcg, GCG_PRICINGPROB *pricingprob, GCG_PRICINGSTATUS status, SCIP_Real lowerbound, int nimpcols)
Definition: pricingprob.c:178
void GCGpricingprobNextBranchcons(GCG_PRICINGPROB *pricingprob)
Definition: pricingprob.c:264
void GCGpricingprobInitPricing(GCG_PRICINGPROB *pricingprob)
Definition: pricingprob.c:98
void GCGpricingprobReset(GCG *gcg, GCG_PRICINGPROB *pricingprob)
Definition: pricingprob.c:164
void GCGpricingprobFree(GCG *gcg, GCG_PRICINGPROB **pricingprob)
Definition: pricingprob.c:84
SCIP_RETCODE GCGpricingprobAddGenericBranchData(GCG *gcg, GCG_PRICINGPROB *pricingprob, SCIP_CONS *branchcons, SCIP_Real branchdual)
Definition: pricingprob.c:125
void GCGpricingjobSetLowerbound(GCG_PRICINGJOB *pricingjob, SCIP_Real lowerbound)
SCIP_RETCODE GCGpricingprobCreate(GCG *gcg, GCG_PRICINGPROB **pricingprob, SCIP *pricingscip, int probnr, int nroundscol)
Definition: pricingprob.c:52
void GCGpricingprobExitPricing(GCG_PRICINGPROB *pricingprob, int nroundscol)
Definition: pricingprob.c:110
Definition: struct_gcg.h:55
data structure to store pricing problem information
type definitions for storing cols in a col pool
type definitions for storing priced cols
type definitions for pricing job data structure
type definitions for pricing problem data structure
enum GCG_PricingStatus GCG_PRICINGSTATUS
enum SCIP_Retcode SCIP_RETCODE
type definitions for pricing problem solvers in GCG project