Scippy

GCG

Branch-and-Price & Column Generation for Everyone

pub_pricingjob.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program */
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-2021 Operations Research, RWTH Aachen University */
10 /* Zuse Institute Berlin (ZIB) */
11 /* */
12 /* This program is free software; you can redistribute it and/or */
13 /* modify it under the terms of the GNU Lesser General Public License */
14 /* as published by the Free Software Foundation; either version 3 */
15 /* of the License, or (at your option) any later version. */
16 /* */
17 /* This program is distributed in the hope that it will be useful, */
18 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
19 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
20 /* GNU Lesser General Public License for more details. */
21 /* */
22 /* You should have received a copy of the GNU Lesser General Public License */
23 /* along with this program; if not, write to the Free Software */
24 /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.*/
25 /* */
26 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
27 
28 /**@file pub_pricingjob.h
29  * @ingroup PUBLICCOREAPI
30  * @brief public methods for working with pricing jobs
31  * @author Christian Puchert
32  */
33 
34 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
35 #ifndef GCG_PUB_PRICINGJOB_H__
36 #define GCG_PUB_PRICINGJOB_H__
37 
38 #include "type_pricingjob.h"
39 #include "scip/type_scip.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 /*
46  * GCG Pricing Job
47  */
48 
49 /**
50  * @ingroup PRICINGJOB
51  *
52  * @{
53  */
54 
55 
56 /** get the pricing problem structure associated with a pricing job */
57 SCIP_EXPORT
59  GCG_PRICINGJOB* pricingjob /**< pricing job */
60  );
61 
62 /** get the pricing solver with which the pricing job is to be performed */
63 SCIP_EXPORT
65  GCG_PRICINGJOB* pricingjob /**< pricing job */
66  );
67 
68 /** get the chunk of a pricing job */
69 SCIP_EXPORT
70 SCIP_Real GCGpricingjobGetChunk(
71  GCG_PRICINGJOB* pricingjob /**< pricing job */
72  );
73 
74 /** get the score of a pricing job */
75 SCIP_EXPORT
76 SCIP_Real GCGpricingjobGetScore(
77  GCG_PRICINGJOB* pricingjob /**< pricing job */
78  );
79 
80 /** return whether the pricing job is to be performed heuristically */
81 SCIP_EXPORT
82 SCIP_Bool GCGpricingjobIsHeuristic(
83  GCG_PRICINGJOB* pricingjob /**< pricing job */
84  );
85 
86 /** get the number of heuristic pricing iterations of the pricing job */
87 SCIP_EXPORT
89  GCG_PRICINGJOB* pricingjob /**< pricing job */
90  );
91 
92 /**@} */
93 #ifdef __cplusplus
94 }
95 #endif
96 #endif
SCIP_EXPORT int GCGpricingjobGetNHeurIters(GCG_PRICINGJOB *pricingjob)
Definition: pricingjob.c:259
SCIP_EXPORT GCG_PRICINGPROB * GCGpricingjobGetPricingprob(GCG_PRICINGJOB *pricingjob)
Definition: pricingjob.c:126
SCIP_EXPORT SCIP_Real GCGpricingjobGetScore(GCG_PRICINGJOB *pricingjob)
Definition: pricingjob.c:214
SCIP_EXPORT SCIP_Real GCGpricingjobGetChunk(GCG_PRICINGJOB *pricingjob)
Definition: pricingjob.c:206
SCIP_EXPORT SCIP_Bool GCGpricingjobIsHeuristic(GCG_PRICINGJOB *pricingjob)
Definition: pricingjob.c:222
SCIP_EXPORT GCG_SOLVER * GCGpricingjobGetSolver(GCG_PRICINGJOB *pricingjob)
Definition: pricingjob.c:133
type definitions for pricing job data structure