GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
pub_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 pub_colpool.h
30 * @ingroup PUBLICCOREAPI
31 * @brief public methods for storing cols in a col pool
32 * @author Tobias Achterberg
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef __SCIP_PUB_COLPOOL_H__
38#define __SCIP_PUB_COLPOOL_H__
39
40
41
42#include "scip/def.h"
43#include "scip/type_scip.h"
44#include "scip/type_retcode.h"
45#include "scip/type_sol.h"
46#include "gcg/def.h"
47#include "gcg/type_gcgcol.h"
48#include "gcg/type_colpool.h"
50#include "gcg/type_gcg.h"
52
53
54#ifdef __cplusplus
55extern "C" {
56#endif
57
58/**@defgroup GCG_COLPOOL GCG Column Pool
59 * @ingroup DATASTRUCTURES
60 * @{
61 */
62
63/** gets array of cols in the col pool */
66 GCG_COLPOOL* colpool /**< col pool */
67 );
68
69/** get number of cols in the col pool */
72 GCG_COLPOOL* colpool /**< col pool */
73 );
74
75/** get maximum number of cols that were stored in the col pool at the same time */
78 GCG_COLPOOL* colpool /**< col pool */
79 );
80
81/** gets time in seconds used for pricing cols from the pool */
84 GCG_COLPOOL* colpool /**< col pool */
85 );
86
87/** get number of times, the col pool was separated */
90 GCG_COLPOOL* colpool /**< col pool */
91 );
92
93/** get total number of cols that were priced from the col pool */
96 GCG_COLPOOL* colpool /**< col pool */
97 );
98
99/** creates col pool */
102 GCG* gcg, /**< GCG data structure */
103 GCG_COLPOOL** colpool, /**< pointer to store col pool */
104 int agelimit /**< maximum age a col can reach before it is deleted from the pool */
105 );
106
107/** frees col pool */
110 GCG_COLPOOL** colpool /**< pointer to store col pool */
111 );
112
113/** removes all cols from the col pool */
116 GCG_COLPOOL* colpool /**< col pool */
117 );
118
119/** if not already existing, adds col to col pool and captures it */
122 GCG_COLPOOL* colpool, /**< col pool */
123 GCG_COL* col, /**< column to add */
124 SCIP_Bool freeduplicate /**< shouldl the col be freed if it is a duplicate? */
125 );
126
127/** adds col to col pool and captures it; doesn't check for multiple cols */
130 GCG_COLPOOL* colpool, /**< col pool */
131 GCG_COL* col /**< column to add */
132 );
133
134/** removes the col from the col pool */
137 GCG_COLPOOL* colpool, /**< col pool */
138 GCG_COL* col, /**< col to remove */
139 SCIP_Bool freecol /**< should the col be freed? */
140 );
141
142/** update node at which columns of column pool are feasible */
145 GCG_COLPOOL* colpool /**< col pool */
146 );
147
148/** update reduced cost of columns in column pool */
151 GCG_COLPOOL* colpool /**< col pool */
152 );
153
154/** gets number of cols in the col pool */
157 GCG_COLPOOL* colpool /**< col pool */
158 );
159
160/** gets number of cols in the col pool */
163 GCG_COLPOOL* colpool /**< col pool */
164 );
165
166/** prices cols of the col pool */
169 GCG_COLPOOL* colpool, /**< col pool */
170 SCIP_SOL* sol, /**< solution to be separated (or NULL for LP-solution) */
171 int* nfoundvars /**< pointer to store the result of the separation call */
172 );
173
174/** removes cols that violate global bounds */
177 GCG_COLPOOL* colpool /**< col pool */
178 );
179
180/** @} */
181
182#ifdef __cplusplus
183}
184#endif
185
186#endif
common defines and data types used in all packages of GCG
#define GCG_EXPORT
Definition def.h:59
#define SCIP_Longint
#define SCIP_Bool
#define SCIP_Real
void GCGcolpoolEndFarkas(GCG_COLPOOL *colpool)
Definition colpool.c:418
SCIP_Real GCGcolpoolGetTime(GCG_COLPOOL *colpool)
Definition colpool.c:457
void GCGcolpoolStartFarkas(GCG_COLPOOL *colpool)
Definition colpool.c:410
SCIP_RETCODE GCGcolpoolUpdateNode(GCG_COLPOOL *colpool)
Definition colpool.c:358
SCIP_RETCODE GCGcolpoolAddCol(GCG_COLPOOL *colpool, GCG_COL *col, SCIP_Bool freeduplicate)
Definition colpool.c:215
SCIP_RETCODE GCGcolpoolCreate(GCG *gcg, GCG_COLPOOL **colpool, int agelimit)
Definition colpool.c:89
SCIP_RETCODE GCGcolpoolFree(GCG_COLPOOL **colpool)
Definition colpool.c:127
SCIP_RETCODE GCGcolpoolDelCol(GCG_COLPOOL *colpool, GCG_COL *col, SCIP_Bool freecol)
Definition colpool.c:264
GCG_COL ** GCGcolpoolGetCols(GCG_COLPOOL *colpool)
Definition colpool.c:427
SCIP_RETCODE GCGcolpoolPrice(GCG_COLPOOL *colpool, SCIP_SOL *sol, int *nfoundvars)
Definition colpool.c:288
int GCGcolpoolGetMaxNCols(GCG_COLPOOL *colpool)
Definition colpool.c:447
SCIP_RETCODE GCGcolpoolPropagateGlobalBounds(GCG_COLPOOL *colpool)
Definition colpool.c:486
SCIP_Longint GCGcolpoolGetNColsFound(GCG_COLPOOL *colpool)
Definition colpool.c:477
SCIP_Longint GCGcolpoolGetNCalls(GCG_COLPOOL *colpool)
Definition colpool.c:467
SCIP_RETCODE GCGcolpoolUpdateRedcost(GCG_COLPOOL *colpool)
Definition colpool.c:380
int GCGcolpoolGetNCols(GCG_COLPOOL *colpool)
Definition colpool.c:437
SCIP_RETCODE GCGcolpoolClear(GCG_COLPOOL *colpool)
Definition colpool.c:196
SCIP_RETCODE GCGcolpoolAddNewCol(GCG_COLPOOL *colpool, GCG_COL *col)
Definition colpool.c:239
SCIP_SOL * sol
type definitions for storing cols in a col pool
struct GCG_Colpool GCG_COLPOOL
type definitions for extended master conss in GCG projects
struct Gcg GCG
Definition type_gcg.h:44
type definitions for gcg data structure
struct GCG_Col GCG_COL
Definition type_gcgcol.h:44
type definitions for storing priced cols
enum SCIP_Retcode SCIP_RETCODE
struct SCIP_Sol SCIP_SOL