Detailed Description
miscellaneous methods for visualizations
Definition in file miscvisualization.cpp.
#include "gcg/cons_decomp.h"#include "gcg/miscvisualization.h"#include "gcg/class_detprobdata.h"#include "gcg/class_partialdecomp.h"#include "scip/scip.h"#include <unistd.h>#include <stdlib.h>#include <sstream>Go to the source code of this file.
Functions | |
| void | GCGgetVisualizationFilename (GCG *gcg, PARTIALDECOMP *partialdec, const char *extension, char *filename) |
| void | GCGgetFilePath (FILE *file, char *path) |
Function Documentation
◆ GCGgetVisualizationFilename()
| void GCGgetVisualizationFilename | ( | GCG * | gcg, |
| PARTIALDECOMP * | partialdec, | ||
| const char * | extension, | ||
| char * | filename | ||
| ) |
Gives a consistent filename for a (single) partialdec visualization that includes the probname and partialdecID.
- Parameters
-
gcg GCG data structure partialdec partialdec that is to be visualized extension future file extension (to be included in the name) filename filename output
Definition at line 61 of file miscvisualization.cpp.
References gcg::PARTIALDECOMP::buildDecChainString(), GCGgetOrigprob(), gcg::PARTIALDECOMP::getID(), gcg::PARTIALDECOMP::getNBlocks(), NULL, SCIP_MAXSTRLEN, SCIPgetProbName(), SCIPsnprintf(), and SCIPsplitFilename().
Referenced by gcg::PARTIALDECOMP::exportVisualization(), GCGwriteAllDecomps(), GCGWriteGpDecompMatrix(), GCGwriteSelectedDecomps(), GCGwriteTexReport(), GCGwriteTexVisualization(), SCIP_DECL_READERWRITE(), and gcg::PARTIALDECOMP::showVisualization().
◆ GCGgetFilePath()
| void GCGgetFilePath | ( | FILE * | file, |
| char * | path | ||
| ) |
Gives the path of the provided file.
- Parameters
-
file file path buffer containing the path afterward, must be of length PATH_MAX!
Definition at line 113 of file miscvisualization.cpp.
References SCIP_MAXSTRLEN, SCIPerrorMessage, and SCIPsnprintf().
Referenced by GCGtexWriteMakefileAndReadme(), GCGwriteTexReport(), and SCIP_DECL_READERWRITE().