GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
miscvisualization.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 miscvisualization.h
30 * @brief miscellaneous methods for visualizations
31 * @author Hanna Franzen
32 *
33 */
34
35/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
36
37#ifndef GCG_MISCVISUALIZATION_H__
38#define GCG_MISCVISUALIZATION_H__
39
40#include <iostream>
41#include <string>
42#include <fstream>
43
45
46using namespace gcg;
47
48/** Gives a consistent filename for a (single) partialdec visualization that includes the probname and partialdecID.
49 *
50 */
52 GCG* gcg, /**< GCG data structure */
53 PARTIALDECOMP* partialdec, /**< partialdec that is to be visualized */
54 const char* extension, /**< future file extension (to be included in the name) */
55 char* filename /**< filename output */
56 );
57
58
59/** Gives the path of the provided file.
60 *
61 */
63 FILE* file, /**< file */
64 char* path /**< buffer containing the path afterward, must be of length PATH_MAX! */
65 );
66
67#endif /* SRC_MISCVISUALIZATION_H_ */
class storing partialdecs and the problem matrix
class to manage partial decompositions
void GCGgetFilePath(FILE *file, char *path)
void GCGgetVisualizationFilename(GCG *gcg, PARTIALDECOMP *partialdec, const char *extension, char *filename)
struct Gcg GCG
Definition type_gcg.h:44