GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
reader_gp.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_gp.h
30 * @brief GP file reader writing decompositions to gnuplot files
31 * @author Martin Bergner
32 * @author Hanna Franzen
33 * @ingroup FILEREADERS-GCG
34 *
35 * This reader can write visualizations of partialdecs to a .gp file.
36 */
37
38/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
39
40#ifndef GCG_READER_GP_H__
41#define GCG_READER_GP_H__
42
43#include "scip/scip.h"
44#include "gcg/gcg.h"
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50
51/** Output format of gnuplot. Specifies the output format that gnuplot will produce. */
59
60/** Includes the gp file reader into SCIP
61 * @returns SCIP status */
64 GCG* gcg /**< GCG data structure */
65 );
66
67/* Writes a visualization for the given partialdec */
70 GCG* gcg, /**< GCG data structure */
71 const char* filename, /**< filename (including path) to write to */
72 const char* outputname, /**< filename for compiled output file */
73 int partialdecid, /**< id of partialdec to visualize */
74 GP_OUTPUT_FORMAT outputformat /**< the output format which gnuplot should emit */
75 );
76
77/** Writes a visualization as .pdf file for the given partialdec
78 * @returns SCIP status */
81 GCG* gcg, /**< GCG data structure */
82 const char* filename, /**< filename (including path), location of the output*/
83 const char* outputname, /**< outputname is the name of the file for the compiled gnuplot output file */
84 int partialdecid /**< id of partialdec to visualize */
85 );
86
87/** Creates a block matrix and outputs its visualization as .pdf file
88 * @returns SCIP return code
89 * */
92 GCG* gcg, /**< GCG data structure */
93 const char* filename, /**< filename the output should be written to (including directory) */
94 const char* workfolder, /**< directory in which should be worked */
95 SCIP_Bool originalmatrix /**< should the original (or transformed) matrix be written */
96);
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif
#define GCG_EXPORT
Definition def.h:59
#define SCIP_Bool
GCG interface methods.
SCIP_RETCODE GCGWriteGpDecompMatrix(GCG *gcg, const char *filename, const char *workfolder, SCIP_Bool originalmatrix)
SCIP_RETCODE GCGwriteGpVisualization(GCG *gcg, const char *filename, const char *outputname, int partialdecid)
SCIP_RETCODE GCGincludeReaderGp(GCG *gcg)
SCIP_RETCODE GCGwriteGpVisualizationFormat(GCG *gcg, const char *filename, const char *outputname, int partialdecid, GP_OUTPUT_FORMAT outputformat)
GPOutputFormat
Definition reader_gp.h:53
@ GP_OUTPUT_FORMAT_SVG
Definition reader_gp.h:56
@ GP_OUTPUT_FORMAT_PDF
Definition reader_gp.h:54
@ GP_OUTPUT_FORMAT_PNG
Definition reader_gp.h:55
enum GPOutputFormat GP_OUTPUT_FORMAT
Definition reader_gp.h:58
struct Gcg GCG
Definition type_gcg.h:44
enum SCIP_Retcode SCIP_RETCODE