Scippy

GCG

Branch-and-Price & Column Generation for Everyone

benders_gcg.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2021 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not email to scip@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file benders_gcg.h
17  * @ingroup BENDERS
18  * @brief GCG Benders' decomposition
19  * @author Stephen J. Maher
20  */
21 
22 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
23 
24 #ifndef __SCIP_BENDERS_GCG_H__
25 #define __SCIP_BENDERS_GCG_H__
26 
27 
28 #include "scip/scip.h"
29 #include "scip/bendersdefcuts.h"
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 /** creates the GCG Benders' decomposition and includes it in SCIP
36  *
37  * @ingroup BendersIncludes
38  */
39 SCIP_EXPORT
40 SCIP_RETCODE SCIPincludeBendersGcg(
41  SCIP* scip, /**< SCIP data structure */
42  SCIP* origprob /**< the SCIP instance of the original problem */
43  );
44 
45 /**@addtogroup BENDERS
46  *
47  * @{
48  */
49 
50 /** returns the last relaxation solution */
51 SCIP_EXPORT
52 SCIP_SOL* SCIPbendersGetRelaxSol(
53  SCIP_BENDERS* benders /**< the Benders' decomposition structure */
54  );
55 
56 /** returns the original problem for the given master problem */
57 SCIP_EXPORT
59  SCIP* masterprob /**< the master problem SCIP instance */
60  );
61 
62 /** @} */
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif
SCIP_EXPORT SCIP_SOL * SCIPbendersGetRelaxSol(SCIP_BENDERS *benders)
Definition: benders_gcg.c:753
SCIP_EXPORT SCIP * GCGbendersGetOrigprob(SCIP *masterprob)
Definition: benders_gcg.c:768
SCIP_EXPORT SCIP_RETCODE SCIPincludeBendersGcg(SCIP *scip, SCIP *origprob)
Definition: benders_gcg.c:719