GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
type_sepagcg.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 type_sepagcg.h
30 * @ingroup TYPEDEFINITIONS
31 * @brief type definitions for separators for master problem in GCG projects
32 * @author Chantal Reinartz Groba
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef GCG_TYPE_SEPAGCG_H__
38#define GCG_TYPE_SEPAGCG_H__
39
40#include <scip/def.h>
41#include <scip/type_lp.h>
42#include <scip/type_result.h>
43#include <scip/type_scip.h>
44#include <scip/type_var.h>
45
46#include "type_gcgcol.h"
47#include "type_mastersepacut.h"
48
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
54
55typedef struct GCG_Sepa GCG_SEPA; /**< separator for master problem*/
56
57
58/** method for computing the column coefficient for a cut
59 *
60 * input:
61 * gcg : GCG main data structure
62 * sepa : the gcg separator itself
63 * cut : cut which has to be altered
64 * vars : the column representing a new master variable which should be included in cut
65 * vals : stores the computed coefficient
66 * gcgcol : the column representing a new master variable which should be included in cut
67 * coef : stores the computed coefficient
68 */
69#define GCG_DECL_SEPAGETCOLCOEFFICIENT(x) SCIP_RETCODE x (GCG* gcg, GCG_SEPA* sepa, GCG_EXTENDEDMASTERCONSDATA* cut, SCIP_VAR** vars, SCIP_Real* vals, int nvars, int probnr, GCG_COL* gcgcol, SCIP_Real* coef)
70
71/** callback to delete the sepamastercutdata
72 *
73 * input:
74 * gcg : GCG main data structure
75 * sepa : the gcg separator itself
76 * cut : corresponding cut
77 * data : mastersepacutdata that has to be deleted
78 */
79#define GCG_DECL_SEPAMASTERCUTDELETE(x) SCIP_RETCODE x (GCG* gcg, GCG_SEPA* sepa, GCG_EXTENDEDMASTERCONSDATA* cut, GCG_MASTERSEPACUTDATA** data)
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif
type definitions for gcg data structure
type definitions for master separator cuts
struct GCG_Sepa GCG_SEPA