GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
params_visu.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 parameter settings for visualization readers
31 * @author Hanna Franzen
32
33 * This file provides universally used parameters for visualizations.
34
35 */
36
37/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
38
39#ifndef GCG_PARAMS_VISU_H__
40#define GCG_PARAMS_VISU_H__
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46#include "scip/scip.h"
47#include "gcg/gcg.h"
48
49/** Colorscheme selection for the visualizations */
51{
52 COLORSCHEME_DEFAULT = 0, /**< default colors (supposedly eye-friendly) */
53 COLORSCHEME_GREY = 1, /**< on a range from black to white */
54 COLORSCHEME_MANUAL = 2 /**< take user-defined input */
55};
56
57typedef enum Colorscheme VISU_COLORSCHEME; /**< visualization colorscheme type */
58
59/** includes the visualization parameters into GCG
60 * @returns SCIP return code */
63 GCG* gcg, /**< GCG data structure */
64 GCG_PARAMDATA** paramdata /**< input empty paramdata, oputput new set of param data */
65 );
66
67/** gets whether draftmode is on
68 * draftmode lets visualizations omit nonzeros
69 * @returns true if draftmode is on */
72 GCG* gcg /**< GCG data structure */
73 );
74
75/** sets draftmode
76 * draftmode lets visualizations omit nonzeros
77 */
80 GCG* gcg, /**< GCG data structure */
81 SCIP_Bool setmode /**< true iff draftmode should be on */
82 );
83
84/** gets the colorscheme for visualizations
85 * @returns current colorscheme */
88 GCG* gcg /**< GCG data structure */
89 );
90
91/** sets colorscheme for visualizations
92 *
93 */
96 GCG* gcg, /**< GCG data structure */
97 VISU_COLORSCHEME newscheme /**< new colorscheme */
98 );
99
100/** sets color for mastercons block in current color scheme
101 *
102 */
105 GCG* gcg, /**< GCG data structure */
106 const char* newcolor /**< new color */
107 );
108
109/** sets manual color for mastervar block in current color scheme
110 *
111 */
114 GCG* gcg, /**< GCG data structure */
115 const char* newcolor /**< new color */
116 );
117
118/** sets manual color for linking blocks in current color scheme
119 *
120 */
123 GCG* gcg, /**< GCG data structure */
124 const char* newcolor /**< new color */
125 );
126
127/** sets manual color for stairlinking blocks in current color scheme
128 *
129 */
132 GCG* gcg, /**< GCG data structure */
133 const char* newcolor /**< new color */
134 );
135
136/** sets manual color for normal decomp blocks in current color scheme
137 *
138 */
141 GCG* gcg, /**< GCG data structure */
142 const char* newcolor /**< new color */
143 );
144
145/** sets manual color for open blocks in current color scheme
146 *
147 */
150 GCG* gcg, /**< GCG data structure */
151 const char* newcolor /**< new color */
152 );
153
154/** sets manual color for non-zero points in current color scheme
155 *
156 */
159 GCG* gcg, /**< GCG data structure */
160 const char* newcolor /**< new color */
161 );
162
163/** sets manual color for lines in current color scheme
164 *
165 */
168 GCG* gcg, /**< GCG data structure */
169 const char* newcolor /**< new color */
170 );
171
172/** gets color for mastercons block in current color scheme
173 * @returns mastercons color */
176 GCG* gcg /**< GCG data structure */
177 );
178
179/** gets color for mastervar block in current color scheme
180 * @returns mastervar color */
182const char* GCGvisuGetColorMastervars(
183 GCG* gcg /**< GCG data structure */
184 );
185
186/** gets color for linking blocks in current color scheme
187 * @returns linking color */
189const char* GCGvisuGetColorLinking(
190 GCG* gcg /**< GCG data structure */
191 );
192
193/** gets color for stairlinking blocks in current color scheme
194 * @returns stairlinking color */
197 GCG* gcg /**< GCG data structure */
198 );
199
200/** gets color for normal decomp blocks in current color scheme
201 * @returns block color */
203const char* GCGvisuGetColorBlock(
204 GCG* gcg /**< GCG data structure */
205 );
206
207/** gets color for open blocks in current color scheme
208 * @returns open color */
210const char* GCGvisuGetColorOpen(
211 GCG* gcg /**< GCG data structure */
212 );
213
214/** gets color for non-zero points in current color scheme
215 * @returns non-zero color */
217const char* GCGvisuGetColorNonzero(
218 GCG* gcg /**< GCG data structure */
219 );
220
221/** gets color for lines in current color scheme
222 * @returns line color */
224const char* GCGvisuGetColorLine(
225 GCG* gcg /**< GCG data structure */
226 );
227
228/** gets appropriate radius for nonzeros
229 * needs highest indices of both axes for scaling
230 * @returns radius */
233 GCG* gcg, /**< GCG data structure */
234 int maxindx, /**< highest index x-axis */
235 int maxindy, /**< highest index y-axis */
236 float scalingfactor /**< percentage to scale radius, 1 if no scaling */
237 );
238
239
240/** if true gp reader should be used for sub-visualizations, otherwise tex reader
241 * @returns true if gp reader should be used, false if tex reader should be used */
244 GCG* gcg /**< GCG data structure */
245 );
246
247/** gets the name of the pdf reader that should be used
248 * @returns name of pdf reader */
250const char* GCGVisuGetPdfReader(
251 GCG* gcg /**< GCG data structure */
252 );
253
254/** gets the max number of decomps to be included in reports
255 * @returns max number of decomps */
258 GCG* gcg /**< GCG data structure */
259 );
260
261/** gets what type of decomps to show in reports (where 0 corresponds to 'show all')
262 * @returns type of decomps */
265 GCG* gcg /**< GCG data structure */
266 );
267
268/** gets whether a titlepage should be included in reports
269 * @returns true iff title page should be generated */
272 GCG* gcg /**< GCG data structure */
273 );
274
275/** gets whether a table of contents should be included in reports
276 * @returns true iff table of contents should be generated */
279 GCG* gcg /**< GCG data structure */
280 );
281
282/** gets whether statistics should be included for each decomp in reports
283 * @returns true iff statistics for each decomp should be generated */
286 GCG* gcg /**< GCG data structure */
287 );
288
289/** frees all visualization parameters
290 *
291 */
294 GCG* gcg, /**< GCG data structure */
295 GCG_PARAMDATA* paramdata /**< input empty paramdata, oputput new set of param data */
296 );
297
298#ifdef __cplusplus
299}
300#endif
301
302#endif
#define GCG_EXPORT
Definition def.h:59
#define SCIP_Bool
GCG interface methods.
SCIP_Real scalingfactor
SCIP_Bool GCGreportGetShowTitlepage(GCG *gcg)
SCIP_Bool GCGreportGetShowStatistics(GCG *gcg)
const char * GCGvisuGetColorStairlinking(GCG *gcg)
const char * GCGvisuGetColorMastervars(GCG *gcg)
const char * GCGVisuGetPdfReader(GCG *gcg)
SCIP_Bool GCGgetUseGp(GCG *gcg)
void GCGvisuSetColorManOpen(GCG *gcg, const char *newcolor)
SCIP_Bool GCGvisuGetDraftmode(GCG *gcg)
void GCGvisuSetColorManLinking(GCG *gcg, const char *newcolor)
SCIP_RETCODE GCGcreateParamsVisu(GCG *gcg, GCG_PARAMDATA **paramdata)
int GCGreportGetMaxNDecomps(GCG *gcg)
void GCGvisuSetDraftmode(GCG *gcg, SCIP_Bool setmode)
void GCGvisuSetColorManLine(GCG *gcg, const char *newcolor)
const char * GCGvisuGetColorNonzero(GCG *gcg)
void GCGVisuFreeParams(GCG *gcg, GCG_PARAMDATA *paramdata)
void GCGvisuSetColorManStairlinking(GCG *gcg, const char *newcolor)
void GCGvisuSetColorManBlock(GCG *gcg, const char *newcolor)
float GCGvisuGetNonzeroRadius(GCG *gcg, int maxindx, int maxindy, float scalingfactor)
SCIP_Bool GCGreportGetShowToc(GCG *gcg)
const char * GCGvisuGetColorLinking(GCG *gcg)
const char * GCGvisuGetColorBlock(GCG *gcg)
void GCGvisuSetColorManMasterconss(GCG *gcg, const char *newcolor)
void GCGvisuSetColorManMastervars(GCG *gcg, const char *newcolor)
const char * GCGvisuGetColorLine(GCG *gcg)
VISU_COLORSCHEME GCGvisuGetColorscheme(GCG *gcg)
void GCGvisuSetColorscheme(GCG *gcg, VISU_COLORSCHEME newscheme)
void GCGvisuSetColorManNonzero(GCG *gcg, const char *newcolor)
const char * GCGvisuGetColorOpen(GCG *gcg)
const char * GCGvisuGetColorMasterconss(GCG *gcg)
enum Colorscheme VISU_COLORSCHEME
Definition params_visu.h:57
GCG_EXPORT GCG_DECTYPE GCGreportGetDecompTypeToShow(GCG *gcg)
Colorscheme
Definition params_visu.h:51
@ COLORSCHEME_DEFAULT
Definition params_visu.h:52
@ COLORSCHEME_GREY
Definition params_visu.h:53
@ COLORSCHEME_MANUAL
Definition params_visu.h:54
enum Dectype GCG_DECTYPE
Definition type_decomp.h:57
struct Gcg GCG
Definition type_gcg.h:44
struct GCG_ParamData GCG_PARAMDATA
enum SCIP_Retcode SCIP_RETCODE