Scippy

GCG

Branch-and-Price & Column Generation for Everyone

reader_tex.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_tex.h
30 * @brief tex file reader for writing decomposition details to LaTeX files
31 * @author Hanna Franzen
32 * @ingroup FILEREADERS-GCG
33
34 * This reader can write visualizations, family trees and reports of partialdecs to a .tex LaTeX file.
35 * The gp reader might be required for visualizations.
36
37 */
38
39/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
40
41#ifndef GCG_READER_TEX_H__
42#define GCG_READER_TEX_H__
43
44#include "scip/scip.h"
45
46#include "gcg/type_decomp.h"
47#include "gcg/cons_decomp.h"
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52
53
54/** Includes the tex file reader into SCIP
55 *
56 * @returns SCIP status */
59 GCG* gcg /**< GCG data structure */
60 );
61
62/** Writes visualization LaTeX code for the given partialdec
63 *
64 * @returns SCIP status */
67 GCG* gcg, /**< GCG data structure */
68 FILE* file, /**< file in which to write the LaTeX code */
69 int partialdecid, /**< id of partialdec to visualize */
70 SCIP_Bool statistics, /**< additionally to picture show statistics */
71 SCIP_Bool usegp /**< true if the gp reader should be used for the image generation (instead of tikz) */
72 );
73
74/** Writes a report for the given partialdecs
75 *
76 * @note *npartialdecs will be set to the number of actually written decompositions.
77 * @returns SCIP status */
80 GCG* gcg, /**< GCG data structure */
81 FILE* file, /**< file in which to put the LaTeX code */
82 int* partialdecids, /**< ids of partialdecs to visualize */
83 int* npartialdecs, /**< number of partialdecs to visualize */
84 SCIP_Bool titlepage, /**< true if a title page should be included in the document */
85 SCIP_Bool toc, /**< true if an interactive table of contents should be included */
86 SCIP_Bool statistics, /**< true if statistics for each partialdec should be included */
87 SCIP_Bool usegp /**< true if the gp reader should be used for the image generation */
88 );
89
90/** Makes a new makefile and readme for the given .tex file
91 *
92 * @returns SCIP status */
95 GCG* gcg, /**< SCIP data structure */
96 FILE* file, /**< tex file for which the makefile & readme are generated */
97 SCIP_Bool usegp, /**< true if the gp reader was used for creation of images */
98 SCIP_Bool compiletex /**< true if there are tex files to be compiled before main document */
99 );
100
101#ifdef __cplusplus
102}
103#endif
104
105
106#endif /* GCG_READER_TEX_H__ */
107
constraint handler for structure detection
#define GCG_EXPORT
Definition: def.h:59
GCG_EXPORT SCIP_RETCODE GCGtexWriteMakefileAndReadme(GCG *gcg, FILE *file, SCIP_Bool usegp, SCIP_Bool compiletex)
Definition: reader_tex.cpp:832
GCG_EXPORT SCIP_RETCODE GCGwriteTexReport(GCG *gcg, FILE *file, int *partialdecids, int *npartialdecs, SCIP_Bool titlepage, SCIP_Bool toc, SCIP_Bool statistics, SCIP_Bool usegp)
Definition: reader_tex.cpp:693
GCG_EXPORT SCIP_RETCODE GCGincludeReaderTex(GCG *gcg)
Definition: reader_tex.cpp:959
GCG_EXPORT SCIP_RETCODE GCGwriteTexVisualization(GCG *gcg, FILE *file, int partialdecid, SCIP_Bool statistics, SCIP_Bool usegp)
Definition: reader_tex.cpp:785
Definition: struct_gcg.h:55
type definitions for decomposition information in GCG projects
enum SCIP_Retcode SCIP_RETCODE