Scippy

GCG

Branch-and-Price & Column Generation for Everyone

sepa_basis.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 sepa_basis.h
30 * @ingroup SEPARATORS
31 * @brief basis separator
32 * @author Jonas Witt
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef __SCIP_SEPA_BASIS_H__
38#define __SCIP_SEPA_BASIS_H__
39
40
41#include "scip/scip.h"
42#include "gcg/gcg.h"
43
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
49/** creates the basis separator and includes it in SCIP */
52 GCG* gcg /**< GCG data structure */
53 );
54
55/** returns the array of original cuts saved in the separator data */
58 GCG* gcg /**< GCG data structure */
59 );
60
61/** returns the number of original cuts saved in the separator data */
64 GCG* gcg /**< GCG data structure */
65 );
66
67/** returns the array of master cuts saved in the separator data */
70 GCG* gcg /**< GCG data structure */
71 );
72
73/** returns the number of master cuts saved in the separator data */
76 GCG* gcg /**< GCG data structure */
77 );
78
79/** transforms cut in pricing variables to cut in original variables and adds it to newcuts array */
82 GCG* gcg, /**< GCG data structure */
83 int ppnumber, /**< number of pricing problem */
84 SCIP_ROW* cut /**< cut to be added */
85 );
86
87/** add cuts which are due to the latest objective function of the pricing problems
88 * (reduced cost non-negative) */
91 GCG* gcg, /**< GCG data structure */
92 int ppnumber, /**< number of pricing problem */
93 SCIP_Real dualsolconv, /**< dual solution corresponding to convexity constraint */
94 SCIP_Bool newcuts /**< add cut to newcuts in sepadata? (otherwise add it just to the cutpool) */
95 );
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif
#define GCG_EXPORT
Definition: def.h:59
GCG interface methods.
GCG_EXPORT SCIP_ROW ** GCGsepaBasisGetOrigcuts(GCG *gcg)
Definition: sepa_basis.c:1702
GCG_EXPORT int GCGsepaBasisGetNOrigcuts(GCG *gcg)
Definition: sepa_basis.c:1721
GCG_EXPORT SCIP_ROW ** GCGsepaBasisGetMastercuts(GCG *gcg)
Definition: sepa_basis.c:1740
GCG_EXPORT SCIP_RETCODE SCIPsepaBasisAddPPObjConss(GCG *gcg, int ppnumber, SCIP_Real dualsolconv, SCIP_Bool newcuts)
Definition: sepa_basis.c:1889
GCG_EXPORT int GCGsepaBasisGetNMastercuts(GCG *gcg)
Definition: sepa_basis.c:1759
GCG_EXPORT SCIP_RETCODE GCGincludeSepaBasis(GCG *gcg)
Definition: sepa_basis.c:1608
GCG_EXPORT SCIP_RETCODE GCGsepaBasisAddPricingCut(GCG *gcg, int ppnumber, SCIP_ROW *cut)
Definition: sepa_basis.c:1778
Definition: struct_gcg.h:55
enum SCIP_Retcode SCIP_RETCODE