Scippy

GCG

Branch-and-Price & Column Generation for Everyone

event_mastersepacut.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 event_mastersepacut.h
30 * @ingroup EVENTS
31 * @brief event handler which manages the active master separator cuts
32 * @author Chantal Reinartz Groba
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef __SCIP_EVENT_MASTERSEPACUTS_H__
38#define __SCIP_EVENT_MASTERSEPACUTS_H__
39
40
41#include <scip/scip.h>
42
43#include "gcg/gcg.h"
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
49
50/** creates event handler for managing the additional data of the mastercuts generated by master separators */
53 GCG* gcg /**< GCG data structure */
54 );
55
56/** removes the mastersepacuts which were applied at current node, but have already been removed from the LP */
58 GCG* gcg, /**< GCG data structure */
59 SCIP_EVENTHDLR* eventhdlr, /**< mastersepacut event handler */
60 int startidx /**< indicate the first new mastersepacut */
61 );
62
63/** removes all mastersepacuts after given index from active cuts */
65 GCG* gcg, /**< GCG data structure */
66 SCIP_EVENTHDLR* eventhdlr, /**< mastersepacuts event handler */
67 int newnrows /**< index to which active cuts should be shrunk to */
68 );
69
70/** adds a mastercut generated by a master separator to active cuts */
72 GCG* gcg, /**< GCG data structure */
73 SCIP_EVENTHDLR* eventhdlr, /**< mastersepacut event handler */
74 GCG_EXTENDEDMASTERCONSDATA* mastersepacut /**< mastersepacut */
75 );
76
77/** return number of active master separator cuts */
79 GCG* gcg, /**< GCG data structure */
80 SCIP_EVENTHDLR* eventhdlr /**< masterepacut event handler */
81 );
82
83/** returns active master separator cuts */
85 GCG* gcg, /**< GCG data structure */
86 SCIP_EVENTHDLR* eventhdlr /**< mastersepacut event handler*/
87 );
88
89#ifdef __cplusplus
90}
91#endif
92
93#endif
#define GCG_EXPORT
Definition: def.h:59
int GCGeventmastersepacutGetNActiveMastersepacuts(GCG *gcg, SCIP_EVENTHDLR *eventhdlr)
SCIP_RETCODE GCGeventmastersepacutAddActiveMastersepacut(GCG *gcg, SCIP_EVENTHDLR *eventhdlr, GCG_EXTENDEDMASTERCONSDATA *mastersepacut)
SCIP_RETCODE GCGeventmastersepacutShrinkActiveMastersepacuts(GCG *gcg, SCIP_EVENTHDLR *eventhdlr, int newnrows)
SCIP_RETCODE GCGeventmastersepacutRemoveNewInactiveMastersepacuts(GCG *gcg, SCIP_EVENTHDLR *eventhdlr, int startidx)
GCG_EXTENDEDMASTERCONSDATA ** GCGeventmastersepacutGetActiveMastersepacuts(GCG *gcg, SCIP_EVENTHDLR *eventhdlr)
GCG_EXPORT SCIP_RETCODE GCGincludeEventHdlrSepaCuts(GCG *gcg)
GCG interface methods.
Definition: struct_gcg.h:55
enum SCIP_Retcode SCIP_RETCODE