Scippy

GCG

Branch-and-Price & Column Generation for Everyone

struct_extendedmasterconsdata.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_extendedmasterconsdata.h
30 * @ingroup DATASTRUCTURES
31 * @brief data structures for GCG extended master cons data
32 * @author Til Mohr
33 * @author Erik Muehmer
34 */
35
36/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
37
38#ifndef GCG_STRUCT_EXTENDEDMASTERCONSDATA_H_
39#define GCG_STRUCT_EXTENDEDMASTERCONSDATA_H_
40
41#include <scip/def.h>
42#include <scip/type_cons.h>
43#include <scip/type_lp.h>
44#include <scip/type_var.h>
46#include "gcg/type_branchgcg.h"
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52
53/** data for a pricing problem modification */
55{
56 int blocknr; /**< block number of the extended master cons */
57 SCIP_VAR* coefvar; /**< variable in the pricing problem inferred from the extended master cons
58 * always has the objective coefficient of the negated dual value of the extended master cons
59 * its solution value corresponds to the coefficient of the new mastervariable in the extended master cons */
60 SCIP_VAR** additionalvars; /**< array of additional variables with no objective coefficient in the pricing programs inferred from the extended master cons */
61 int nadditionalvars; /**< number of additional variables in the pricing programs */
62 SCIP_CONS** additionalconss; /**< array of additional constraints in the pricing programs inferred from the extended master cons */
63 int nadditionalconss; /**< number of additional constraints in the pricing programs */
64};
65
66/** cut of the extended master cons */
68{
69 SCIP_CONS* cons; /**< constraint in the master problem that represents the extended master cons, iff type == Cons */
70 SCIP_ROW* row; /**< row in the master problem that represents the extended master cons, iff type == Row */
71};
72
73/** data for extended master conss */
75{
76 GCG_EXTENDEDMASTERCONSTYPE type; /**< type of the extended master cons */
77 GCG_EXTENDEDMASTERCONS cons; /**< constraint or row in the master problem that represents the extended master cons */
78 GCG_PRICINGMODIFICATION** pricingmodifications; /**< array of pricing modifications for the extended master cons */
79 int npricingmodifications; /**< number of pricing modifications for the extended master cons */
80 union {
81 GCG_BRANCHCONSDATA* branchconsdata; /**< branchconsdata in case the extended master cons is of type GCG_EXTENDEDMASTERCONSTYPE_BRANCH_CONS */
82 GCG_MASTERSEPACUT* mastersepacut; /**< mastersepacut in case the extended master cons is of type GCG_EXTENDEDMASTERCONSTYPE_SEPA_ROW */
83 } data; /**< data required to calculate the coefficient of a column solution */
84};
85
86#ifdef __cplusplus
87}
88#endif
89
90#endif
GCG_PRICINGMODIFICATION ** pricingmodifications
union GCG_ExtendedMasterConsData::@0 data
type definitions for branching rules in GCG projects
type definitions for extended master conss in GCG projects
enum GCG_ExtendedMasterConsType GCG_EXTENDEDMASTERCONSTYPE
type definitions for master separator cuts