Scippy

GCG

Branch-and-Price & Column Generation for Everyone

struct_colpool.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_colpool.h
29  * @ingroup DATASTRUCTURES
30  * @brief data structures for storing cols in a col pool
31  * @author Jonas Witt
32  */
33 
34 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
35 
36 #ifndef __SCIP_STRUCT_COLPOOL_H__
37 #define __SCIP_STRUCT_COLPOOL_H__
38 
39 
40 #include "scip/def.h"
41 #include "scip/type_clock.h"
42 #include "scip/type_misc.h"
43 #include "scip/type_lp.h"
44 #include "type_colpool.h"
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 /** storage for pooled cols */
52 {
53  SCIP* scip; /**< SCIP data structure */
54  SCIP_Longint nodenr; /**< node at which columns in colpool respect branching decisions */
55  SCIP_Bool infarkas; /**< in Farkas pricing? */
56  SCIP_Longint ncalls; /**< number of times, the colpool was separated */
57  SCIP_Longint ncolsfound; /**< total number of cols that were separated from the pool */
58  SCIP_CLOCK* poolclock; /**< pricing time */
59  SCIP_HASHTABLE* hashtable; /**< hash table to identify already stored cols */
60  GCG_COL** cols; /**< stored cols of the pool */
61  SCIP_Longint processedlp; /**< last LP that has been processed for separating the LP */
62  SCIP_Longint processedlpsol; /**< last LP that has been processed for separating other solutions */
63  int colssize; /**< size of cols array */
64  int ncols; /**< number of cols stored in the pool */
65  int agelimit; /**< maximum age a col can reach before it is deleted from the pool */
66  int firstunprocessed; /**< first col that has not been processed in the last LP */
67  int firstunprocessedsol;/**< first col that has not been processed in the last LP when separating other solutions */
68  int maxncols; /**< maximal number of cols stored in the pool at the same time */
69  SCIP_Bool globalcolpool; /**< is this the global col pool of SCIP? */
70 };
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif
int firstunprocessedsol
SCIP_Longint processedlpsol
int firstunprocessed
GCG_COL ** cols
SCIP_Longint ncalls
SCIP_Longint ncolsfound
SCIP_Longint nodenr
type definitions for storing cols in a col pool
SCIP_CLOCK * poolclock
SCIP_HASHTABLE * hashtable
SCIP_Bool globalcolpool
SCIP_Longint processedlp
SCIP_Bool infarkas