GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
pricingjob.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 pricingjob.h
30 * @ingroup PRICING_PRIV
31 * @brief private methods for working with pricing jobs, 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_PRICINGJOB_H__
37#define GCG_PRICINGJOB_H__
38
39
40#include "gcg/gcg.h"
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46/** create a pricing job */
48 GCG* gcg, /**< GCG data structure */
49 GCG_PRICINGJOB** pricingjob, /**< pricing job to be created */
50 GCG_PRICINGPROB* pricingprob, /**< data structure of the corresponding pricing problem */
51 GCG_SOLVER* solver, /**< pricing solver responsible for the pricing job */
52 int chunk /**< chunk that the pricing problem should belong to */
53);
54
55/** free a pricing job */
57 GCG* gcg, /**< GCG data structure */
58 GCG_PRICINGJOB** pricingjob /**< pricing job to be freed */
59);
60
61/** setup a pricing job at the beginning of the pricing loop */
63 GCG* gcg, /**< GCG data structure */
64 GCG_PRICINGJOB* pricingjob, /**< pricing job */
65 SCIP_Bool heuristic, /**< shall the pricing job be performed heuristically? */
66 int scoring, /**< scoring parameter */
67 int nroundscol, /**< number of previous pricing rounds for which the number of improving columns should be counted */
68 SCIP_Real dualsolconv, /**< dual solution value of corresponding convexity constraint */
69 int npointsprob, /**< total number of extreme points generated so far by the pricing problem */
70 int nraysprob /**< total number of extreme rays generated so far by the pricing problem */
71 );
72
73/** reset the pricing solver to be used to the one with the highest priority */
75 GCG* gcg, /**< GCG data structure */
76 GCG_PRICINGJOB* pricingjob /**< pricing job */
77 );
78
79/** get the next pricing solver to be used, or NULL of there is none */
81 GCG* gcg, /**< GCG data structure */
82 GCG_PRICINGJOB* pricingjob /**< pricing job */
83 );
84
85/** set the pricing job to be performed exactly */
87 GCG_PRICINGJOB* pricingjob /**< pricing job */
88 );
89
90/** reset number of heuristic pricing iterations of a pricing job */
92 GCG_PRICINGJOB* pricingjob /**< pricing job */
93 );
94
95/** update number of heuristic pricing iterations of a pricing job */
97 GCG_PRICINGJOB* pricingjob /**< pricing job */
98 );
99
100#ifdef __cplusplus
101}
102#endif
103
104#endif
#define SCIP_Bool
#define SCIP_Real
GCG interface methods.
void GCGpricingjobSetExact(GCG_PRICINGJOB *pricingjob)
Definition pricingjob.c:256
SCIP_RETCODE GCGpricingjobSetup(GCG *gcg, GCG_PRICINGJOB *pricingjob, SCIP_Bool heuristic, int scoring, int nroundscol, SCIP_Real dualsolconv, int npointsprob, int nraysprob)
Definition pricingjob.c:91
void GCGpricingjobResetHeuristic(GCG_PRICINGJOB *pricingjob)
Definition pricingjob.c:264
void GCGpricingjobNextSolver(GCG *gcg, GCG_PRICINGJOB *pricingjob)
Definition pricingjob.c:180
void GCGpricingjobFree(GCG *gcg, GCG_PRICINGJOB **pricingjob)
Definition pricingjob.c:75
SCIP_RETCODE GCGpricingjobCreate(GCG *gcg, GCG_PRICINGJOB **pricingjob, GCG_PRICINGPROB *pricingprob, GCG_SOLVER *solver, int chunk)
Definition pricingjob.c:52
void GCGpricingjobResetSolver(GCG *gcg, GCG_PRICINGJOB *pricingjob)
Definition pricingjob.c:150
void GCGpricingjobIncreaseNHeurIters(GCG_PRICINGJOB *pricingjob)
Definition pricingjob.c:276
struct Gcg GCG
Definition type_gcg.h:44
struct GCG_PricingJob GCG_PRICINGJOB
struct GCG_PricingProb GCG_PRICINGPROB
enum SCIP_Retcode SCIP_RETCODE
struct GCG_Solver GCG_SOLVER
Definition type_solver.h:51