GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
struct_pricestore_gcg.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_pricestore_gcg.h
30 * @ingroup DATASTRUCTURES
31 * @brief datastructures for storing priced cols
32 * @author Jonas Witt
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef __GCG_STRUCT_PRICESTORE_H__
38#define __GCG_STRUCT_PRICESTORE_H__
39
40
41#include "scip/def.h"
42#include "scip/type_lp.h"
43#include "scip/type_var.h"
45#include "gcg/pub_gcgcol.h"
46#include "gcg/type_gcgcol.h"
47#include "gcg/type_locks.h"
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52
53/** storage for priced cols */
55{
56 GCG* gcg; /**< GCG data structure */
57 SCIP* masterprob; /**< SCIP data structure */
58 GCG_COL*** cols; /**< array with priced cols sorted by score */
59 SCIP_HASHTABLE* hashtable; /**< hashtable that maps the cols to their indices in the cols array */
60 SCIP_Real** objparallelisms; /**< parallelism of col to the objective function */
61 SCIP_Real** orthogonalities; /**< minimal orthogonality of col with all other cols of larger score */
62 SCIP_Real** scores; /**< score for each priced col: weighted sum of efficacy and orthogonality */
63 int* colssize; /**< size of cols and score arrays */
64 int* ncols; /**< number of priced cols per problem */
65 int* nforcedcols; /**< number of forced priced cols (first positions in cols array) */
66 int ncolstotal; /**< number of priced cols (max. is set->price_maxcols) */
67 int ncolsfound; /**< total number of cols found so far */
68 int ncolsfoundround; /**< number of cols found so far in this pricing round */
69 int ncolsapplied; /**< total number of cols applied to the LPs */
70 int narrays; /**< number of allocated arrays (i.e., size of cols, scores, etc.) */
71 SCIP_Bool infarkas; /**< is the price storage currently being filled with the columns from farkas pricing? */
72 SCIP_Bool forcecols; /**< should the cols be used despite the number of cols parameter limit? */
73 SCIP_Real efficiacyfac; /**< factor of efficiacy in score function */
74 SCIP_Real objparalfac; /**< factor of objective parallelism in score function */
75 SCIP_Real orthofac; /**< factor of orthogonalities in score function */
76 SCIP_Real mincolorth; /**< minimal orthogonality of columns to add
77 (with respect to columns added in the current round) */
78 GCG_EFFICIACYCHOICE efficiacychoice; /**< choice to base efficiacy on */
79
80#ifdef _OPENMP
81 GCG_LOCKS* locks; /**< OpenMP locks */
82#endif
83};
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif
#define SCIP_Bool
#define SCIP_Real
public methods for working with gcg columns
GCG_EFFICIACYCHOICE efficiacychoice
SCIP_Real ** objparallelisms
SCIP_HASHTABLE * hashtable
SCIP_Real ** orthogonalities
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 locks data structure
void GCG_LOCKS
Definition type_locks.h:66
struct SCIP_HashTable SCIP_HASHTABLE
type definitions for storing priced cols
enum GCG_Efficiacychoice GCG_EFFICIACYCHOICE
struct Scip SCIP