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