GCG 4.1.1 (dev)

Generic Column Generation

Loading...
Searching...
No Matches
reader_gp.h File Reference

Detailed Description

GP file reader writing decompositions to gnuplot files.

Author
Martin Bergner
Hanna Franzen

This reader can write visualizations of partialdecs to a .gp file.

Definition in file reader_gp.h.

#include "scip/scip.h"
#include "gcg/gcg.h"

Go to the source code of this file.

Functions

GCG_EXPORT SCIP_RETCODE GCGincludeReaderGp (GCG *gcg)
GCG_EXPORT SCIP_RETCODE GCGwriteGpVisualizationFormat (GCG *gcg, const char *filename, const char *outputname, int partialdecid, GP_OUTPUT_FORMAT outputformat)
GCG_EXPORT SCIP_RETCODE GCGwriteGpVisualization (GCG *gcg, const char *filename, const char *outputname, int partialdecid)
GCG_EXPORT SCIP_RETCODE GCGWriteGpDecompMatrix (GCG *gcg, const char *filename, const char *workfolder, SCIP_Bool originalmatrix)

Typedef Documentation

◆ GP_OUTPUT_FORMAT

Definition at line 58 of file reader_gp.h.

Enumeration Type Documentation

◆ GPOutputFormat

Output format of gnuplot. Specifies the output format that gnuplot will produce.

Enumerator
GP_OUTPUT_FORMAT_PDF 
GP_OUTPUT_FORMAT_PNG 
GP_OUTPUT_FORMAT_SVG 

Definition at line 52 of file reader_gp.h.

Function Documentation

◆ GCGincludeReaderGp()

GCG_EXPORT SCIP_RETCODE GCGincludeReaderGp ( GCG * gcg)

Includes the gp file reader into SCIP

Returns
SCIP status
Parameters
gcgGCG data structure

Definition at line 554 of file reader_gp.cpp.

References assert(), SCIP_ReaderData::gcg, GCGgetOrigprob(), GCGincludeReaderGp(), origprob, READER_DESC, READER_EXTENSION, READER_NAME, and SCIP_CALL().

Referenced by GCGincludeGcgPlugins(), and GCGincludeReaderGp().

◆ GCGwriteGpVisualizationFormat()

GCG_EXPORT SCIP_RETCODE GCGwriteGpVisualizationFormat ( GCG * gcg,
const char * filename,
const char * outputname,
int partialdecid,
GP_OUTPUT_FORMAT outputformat )
Parameters
gcgGCG data structure
filenamefilename (including path) to write to
outputnamefilename for compiled output file
partialdecidid of partialdec to visualize
outputformatthe output format which gnuplot should emit

Definition at line 476 of file reader_gp.cpp.

References GCGconshdlrDecompGetPartialdecFromID(), GCGwriteGpVisualizationFormat(), gcg::PARTIALDECOMP::getDetprobdata(), writeGpHeader(), and writeGpPartialdec().

Referenced by GCGwriteGpVisualization(), GCGwriteGpVisualizationFormat(), and gcg::PARTIALDECOMP::writeVisualizationFile().

◆ GCGwriteGpVisualization()

GCG_EXPORT SCIP_RETCODE GCGwriteGpVisualization ( GCG * gcg,
const char * filename,
const char * outputname,
int partialdecid )

Writes a visualization as .pdf file for the given partialdec

Returns
SCIP status
Parameters
gcgGCG data structure
filenamefilename (including path), location of the output
outputnameoutputname is the name of the file for the compiled gnuplot output file
partialdecidid of partialdec to visualize

Definition at line 510 of file reader_gp.cpp.

References GCGwriteGpVisualization(), GCGwriteGpVisualizationFormat(), and GP_OUTPUT_FORMAT_PDF.

Referenced by gcg::PARTIALDECOMP::exportVisualization(), GCGWriteGpDecompMatrix(), GCGwriteGpVisualization(), GCGwriteTexReport(), GCGwriteTexVisualization(), and SCIP_DECL_READERWRITE().

◆ GCGWriteGpDecompMatrix()

GCG_EXPORT SCIP_RETCODE GCGWriteGpDecompMatrix ( GCG * gcg,
const char * filename,
const char * workfolder,
SCIP_Bool originalmatrix )

Creates a block matrix and outputs its visualization as .pdf file

Returns
SCIP return code
Parameters
gcgGCG data structure
filenamefilename the output should be written to (including directory)
workfolderdirectory in which should be worked
originalmatrixshould the original (or transformed) matrix be written

Definition at line 523 of file reader_gp.cpp.

References GCGconshdlrDecompAddMatrixPartialdec(), GCGconshdlrDecompGetPartialdecFromID(), GCGgetOrigprob(), GCGgetVisualizationFilename(), GCGWriteGpDecompMatrix(), and GCGwriteGpVisualization().

Referenced by GCGWriteGpDecompMatrix(), and writeMatrix().