GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
reader_dec.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_dec.h
30 * @brief DEC file reader for structure information
31 * @author Martin Bergner
32 * @author Lukas Kirchhart
33 * @author Micahel Bastubbe
34 * @ingroup FILEREADERS-GCG
35
36 * This reader reads and write files in .dec format. A data format to pass a (possibly partial) decomposition to GCG, prerequisite is a given MIP, whose constraints and variables are referred to by name
37 * – everything behind a backslash (“\”) is a comment and is ignored
38 * – information is given section-wise
39 * – sections are started by key words (ignoring the case of the characters) and finished by starting a new section or reaching end of file
40 * – each line in a section provides one value
41 * – key words for sections are:
42 * – consdefaultmaster:
43 * – optional; followed by line with possible values: {0, 1}; default: 1; description: if set to 1 then (directly after file is read) each unassigned constraint is assigned to the master (needed for backward compatibility)
44 * – presolved:
45 * – mandatory; followed by line with possible values: {0, 1}; description: if set to 0 (1) then the decomposition is considered for the unpresolved (presolved) problem
46 * – nblocks
47 * – mandatory; possible values: N; description: number of (possibly empty) blocks this decomposition file has information for
48 * – block (alternatives: blockconss or blockcons)
49 * – optional; directly followed by block index (starting with 1); each following line contains name of a constraint belonging to this block
50 * – masterconss (alternative: mastercons)
51 * + optional; each following line contains name of a constraint belonging to the master
52 * – blockvars
53 * + optional; directly followed by block index (starting with 1); each following line contains name of a variable belonging to this block
54 * – mastervars (alternative: mastervar)
55 * + optional; each following line contains name of a master variable; (belongs explicitly only to master constraints)
56 * – linkingvars (alternative: linkingvar)
57 * + optional; each following line contains name of a linking variable
58 * – decomposition is rejected if there are any inconsistencies
59 * – after reading (and and possibly assigning unassigned constraints because of consdefaultmaster, see above) implicit assignments are made:
60 * – unassigned constraints hitting at least two blocks -> assign to master;
61 * – unassigned variables hitting at least two blocks -> assign to linking ;
62 * – all constraints of an unassigned variable are master constraints -> variable is master variable;
63 *
64 */
65
66/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
67
68#ifndef GCG_READER_DEC_H__
69#define GCG_READER_DEC_H__
70
71
72#include "scip/scip.h"
73#include "gcg/gcg.h"
74
75#ifdef __cplusplus
76extern "C" {
77#endif
78
79/** includes the dec file reader into SCIP */
82 GCG* gcg /**< GCG data structure */
83 );
84
85#ifdef __cplusplus
86}
87#endif
88
89#endif
#define GCG_EXPORT
Definition def.h:59
GCG interface methods.
SCIP_RETCODE GCGincludeReaderDec(GCG *gcg)
struct Gcg GCG
Definition type_gcg.h:44
enum SCIP_Retcode SCIP_RETCODE