Scippy

GCG

Branch-and-Price & Column Generation for Everyone

reader_blk.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 reader_blk.h
29  * @brief BLK file reader for structure information
30  * @author Gerald Gamrath
31  * @author Martin Bergner
32  * @ingroup FILEREADERS
33  *
34  * This reader reads in a blk-file that defines the structur to be used for the decomposition.
35  * The structure is defined variable-wise, i.e., the number of blocks and the variables belonging to each block are
36  * defined. Afterwards, each constraint that has only variables of one block is added to that block,
37  * constraints having variables of more than one block go into the master. If needed, constraints can also be
38  * forced into the master, even if they could be transferred to one block.
39  *
40  * The keywords are:
41  * - Presolved: to be followed by either 0 or 1 indicating that the decomposition is for the presolved or unpresolved problem
42  * - NBlocks: to be followed by a line giving the number of blocks
43  * - Block i with 1 <= i <= nblocks: to be followed by the names of the variables belonging to block i, one per line.
44  * - Masterconss: to be followed by names of constraints, one per line, that should go into the master,
45  * even if they only contain variables of one block and could thus be added to this block.
46  */
47 
48 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
49 
50 #ifndef GCG_READER_BLK_H__
51 #define GCG_READER_BLK_H__
52 
53 
54 #include "scip/scip.h"
55 
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59 
60 /** includes the blk file reader into SCIP */
61 extern
62 SCIP_RETCODE SCIPincludeReaderBlk(
63  SCIP* scip /**< SCIP data structure */
64  );
65 
66 
67 /* reads problem from file */
68 extern
69 SCIP_RETCODE SCIPreadBlk(
70  SCIP* scip, /**< SCIP data structure */
71  const char* filename, /**< full path and name of file to read, or NULL if stdin should be used */
72  SCIP_RESULT* result /**< pointer to store the result of the file reading call */
73  );
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif
SCIP_RETCODE SCIPincludeReaderBlk(SCIP *scip)
SCIP_RETCODE SCIPreadBlk(SCIP *scip, const char *filename, SCIP_RESULT *result)