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