Scippy

GCG

Branch-and-Price & Column Generation for Everyone

decomp.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program */
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-2021 Operations Research, RWTH Aachen University */
10 /* Zuse Institute Berlin (ZIB) */
11 /* */
12 /* This program is free software; you can redistribute it and/or */
13 /* modify it under the terms of the GNU Lesser General Public License */
14 /* as published by the Free Software Foundation; either version 3 */
15 /* of the License, or (at your option) any later version. */
16 /* */
17 /* This program is distributed in the hope that it will be useful, */
18 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
19 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
20 /* GNU Lesser General Public License for more details. */
21 /* */
22 /* You should have received a copy of the GNU Lesser General Public License */
23 /* along with this program; if not, write to the Free Software */
24 /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.*/
25 /* */
26 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
27 
28 /**@file decomp.h
29  * @ingroup DECOMP
30  * @brief private methods for working with decomp structures
31  * @author Martin Bergner
32  */
33 
34 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
35 #ifndef GCG_DECOMP_H__
36 #define GCG_DECOMP_H__
37 
38 #include "type_decomp.h"
39 #include "type_detector.h"
40 #include "scip/scip.h"
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 /** sets the detectors for the given decomposition
47  *
48  * @note make sure you know what you are doing, only use at initialization
49 */
50 extern
51 SCIP_RETCODE DECdecompSetDetectorChain(
52  SCIP* scip, /**< SCIP data structure */
53  DEC_DECOMP* decomp, /**< decomposition data structure */
54  DEC_DETECTOR** detectors, /**< new detector chain */
55  int ndetectors /**< number of new detectors (i.e. length of the detector array) */
56  );
57 
58 /** sets the id of the original partialdec */
59 extern
61  DEC_DECOMP* decomp, /**< decomposition data structure */
62  int id /**< ID of partialdec */
63  );
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif
type definitions for detectors in GCG projects
SCIP_RETCODE DECdecompSetDetectorChain(SCIP *scip, DEC_DECOMP *decomp, DEC_DETECTOR **detectors, int ndetectors)
Definition: decomp.c:1610
type definitions for decomposition information in GCG projects
void DECdecompSetPartialdecID(DEC_DECOMP *decomp, int id)
Definition: decomp.c:1648