Scippy

GCG

Branch-and-Price & Column Generation for Everyone

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