Scippy

GCG

Branch-and-Price & Column Generation for Everyone

params_visu.h File Reference
#include "scip/scip.h"
#include "gcg/gcg.h"

Go to the source code of this file.

Typedefs

typedef enum Colorscheme VISU_COLORSCHEME
 

Enumerations

enum  Colorscheme {
  COLORSCHEME_DEFAULT = 0 ,
  COLORSCHEME_GREY = 1 ,
  COLORSCHEME_MANUAL = 2
}
 

Functions

GCG_EXPORT SCIP_RETCODE GCGcreateParamsVisu (GCG *gcg, GCG_PARAMDATA **paramdata)
 
GCG_EXPORT SCIP_Bool GCGvisuGetDraftmode (GCG *gcg)
 
GCG_EXPORT void GCGvisuSetDraftmode (GCG *gcg, SCIP_Bool setmode)
 
GCG_EXPORT VISU_COLORSCHEME GCGvisuGetColorscheme (GCG *gcg)
 
GCG_EXPORT void GCGvisuSetColorscheme (GCG *gcg, VISU_COLORSCHEME newscheme)
 
GCG_EXPORT void GCGvisuSetColorManMasterconss (GCG *gcg, const char *newcolor)
 
GCG_EXPORT void GCGvisuSetColorManMastervars (GCG *gcg, const char *newcolor)
 
GCG_EXPORT void GCGvisuSetColorManLinking (GCG *gcg, const char *newcolor)
 
GCG_EXPORT void GCGvisuSetColorManStairlinking (GCG *gcg, const char *newcolor)
 
GCG_EXPORT void GCGvisuSetColorManBlock (GCG *gcg, const char *newcolor)
 
GCG_EXPORT void GCGvisuSetColorManOpen (GCG *gcg, const char *newcolor)
 
GCG_EXPORT void GCGvisuSetColorManNonzero (GCG *gcg, const char *newcolor)
 
GCG_EXPORT void GCGvisuSetColorManLine (GCG *gcg, const char *newcolor)
 
GCG_EXPORT const char * GCGvisuGetColorMasterconss (GCG *gcg)
 
GCG_EXPORT const char * GCGvisuGetColorMastervars (GCG *gcg)
 
GCG_EXPORT const char * GCGvisuGetColorLinking (GCG *gcg)
 
GCG_EXPORT const char * GCGvisuGetColorStairlinking (GCG *gcg)
 
GCG_EXPORT const char * GCGvisuGetColorBlock (GCG *gcg)
 
GCG_EXPORT const char * GCGvisuGetColorOpen (GCG *gcg)
 
GCG_EXPORT const char * GCGvisuGetColorNonzero (GCG *gcg)
 
GCG_EXPORT const char * GCGvisuGetColorLine (GCG *gcg)
 
GCG_EXPORT float GCGvisuGetNonzeroRadius (GCG *gcg, int maxindx, int maxindy, float scalingfactor)
 
GCG_EXPORT SCIP_Bool GCGgetUseGp (GCG *gcg)
 
GCG_EXPORT const char * GCGVisuGetPdfReader (GCG *gcg)
 
GCG_EXPORT int GCGreportGetMaxNDecomps (GCG *gcg)
 
GCG_EXPORT GCG_DECTYPE GCGreportGetDecompTypeToShow (GCG *gcg)
 
GCG_EXPORT SCIP_Bool GCGreportGetShowTitlepage (GCG *gcg)
 
GCG_EXPORT SCIP_Bool GCGreportGetShowToc (GCG *gcg)
 
GCG_EXPORT SCIP_Bool GCGreportGetShowStatistics (GCG *gcg)
 
GCG_EXPORT void GCGVisuFreeParams (GCG *gcg, GCG_PARAMDATA *paramdata)
 

Typedef Documentation

◆ VISU_COLORSCHEME

visualization colorscheme type

Definition at line 57 of file params_visu.h.

Enumeration Type Documentation

◆ Colorscheme

Colorscheme selection for the visualizations

Enumerator
COLORSCHEME_DEFAULT 

default colors (supposedly eye-friendly)

COLORSCHEME_GREY 

on a range from black to white

COLORSCHEME_MANUAL 

take user-defined input

Definition at line 50 of file params_visu.h.

Function Documentation

◆ GCGcreateParamsVisu()

◆ GCGvisuGetDraftmode()

GCG_EXPORT SCIP_Bool GCGvisuGetDraftmode ( GCG *  gcg)

gets whether draftmode is on draftmode lets visualizations omit nonzeros

Returns
true if draftmode is on
Parameters
gcgGCG data structure

Definition at line 156 of file params_visu.c.

References GCGgetParamsVisu(), NULL, SCIP_Bool, and GCG_ParamData::visudraftmode.

Referenced by writeGpPartialdec(), and writeTexPartialdec().

◆ GCGvisuSetDraftmode()

GCG_EXPORT void GCGvisuSetDraftmode ( GCG *  gcg,
SCIP_Bool  setmode 
)

sets draftmode draftmode lets visualizations omit nonzeros

Parameters
gcgGCG data structure
setmodetrue iff draftmode should be on

Definition at line 173 of file params_visu.c.

References GCGgetParamsVisu(), NULL, and GCG_ParamData::visudraftmode.

◆ GCGvisuGetColorscheme()

GCG_EXPORT VISU_COLORSCHEME GCGvisuGetColorscheme ( GCG *  gcg)

gets the colorscheme for visualizations

Returns
current colorscheme
Parameters
gcgGCG data structure

Definition at line 188 of file params_visu.c.

References GCGgetParamsVisu(), NULL, and GCG_ParamData::visucolorscheme.

Referenced by GCGvisuGetColorBlock(), GCGvisuGetColorLine(), GCGvisuGetColorLinking(), GCGvisuGetColorMasterconss(), GCGvisuGetColorMastervars(), GCGvisuGetColorNonzero(), GCGvisuGetColorOpen(), and GCGvisuGetColorStairlinking().

◆ GCGvisuSetColorscheme()

GCG_EXPORT void GCGvisuSetColorscheme ( GCG *  gcg,
VISU_COLORSCHEME  newscheme 
)

sets colorscheme for visualizations

Parameters
gcgGCG data structure
newschemenew colorscheme

Definition at line 204 of file params_visu.c.

References GCGgetParamsVisu(), NULL, and GCG_ParamData::visucolorscheme.

◆ GCGvisuSetColorManMasterconss()

GCG_EXPORT void GCGvisuSetColorManMasterconss ( GCG *  gcg,
const char *  newcolor 
)

sets color for mastercons block in current color scheme

Parameters
gcgGCG data structure
newcolornew color

Definition at line 435 of file params_visu.c.

References GCGgetParamsVisu(), GCG_ParamData::mancolormasterconss, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().

◆ GCGvisuSetColorManMastervars()

GCG_EXPORT void GCGvisuSetColorManMastervars ( GCG *  gcg,
const char *  newcolor 
)

sets manual color for mastervar block in current color scheme

Parameters
gcgGCG data structure
newcolornew color

Definition at line 450 of file params_visu.c.

References GCGgetParamsVisu(), GCG_ParamData::mancolormastervars, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().

◆ GCGvisuSetColorManLinking()

GCG_EXPORT void GCGvisuSetColorManLinking ( GCG *  gcg,
const char *  newcolor 
)

sets manual color for linking blocks in current color scheme

Parameters
gcgGCG data structure
newcolornew color

Definition at line 465 of file params_visu.c.

References GCGgetParamsVisu(), GCG_ParamData::mancolorlinking, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().

◆ GCGvisuSetColorManStairlinking()

GCG_EXPORT void GCGvisuSetColorManStairlinking ( GCG *  gcg,
const char *  newcolor 
)

sets manual color for stairlinking blocks in current color scheme

Parameters
gcgGCG data structure
newcolornew color

Definition at line 480 of file params_visu.c.

References GCGgetParamsVisu(), GCG_ParamData::mancolorstairlinking, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().

◆ GCGvisuSetColorManBlock()

GCG_EXPORT void GCGvisuSetColorManBlock ( GCG *  gcg,
const char *  newcolor 
)

sets manual color for normal decomp blocks in current color scheme

Parameters
gcgGCG data structure
newcolornew color

Definition at line 495 of file params_visu.c.

References GCGgetParamsVisu(), GCG_ParamData::mancolorblock, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().

◆ GCGvisuSetColorManOpen()

GCG_EXPORT void GCGvisuSetColorManOpen ( GCG *  gcg,
const char *  newcolor 
)

sets manual color for open blocks in current color scheme

Parameters
gcgGCG data structure
newcolornew color

Definition at line 510 of file params_visu.c.

References GCGgetParamsVisu(), GCG_ParamData::mancoloropen, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().

◆ GCGvisuSetColorManNonzero()

GCG_EXPORT void GCGvisuSetColorManNonzero ( GCG *  gcg,
const char *  newcolor 
)

sets manual color for non-zero points in current color scheme

Parameters
gcgGCG data structure
newcolornew color

Definition at line 524 of file params_visu.c.

References GCGgetParamsVisu(), GCG_ParamData::mancolornonzero, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().

◆ GCGvisuSetColorManLine()

GCG_EXPORT void GCGvisuSetColorManLine ( GCG *  gcg,
const char *  newcolor 
)

sets manual color for lines in current color scheme

Parameters
gcgGCG data structure
newcolornew color

Definition at line 539 of file params_visu.c.

References GCGgetParamsVisu(), GCG_ParamData::mancolorline, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().

◆ GCGvisuGetColorMasterconss()

GCG_EXPORT const char * GCGvisuGetColorMasterconss ( GCG *  gcg)

gets color for mastercons block in current color scheme

Returns
mastercons color
Parameters
gcgGCG data structure

Definition at line 220 of file params_visu.c.

References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_MASTERCONSS, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolormasterconss, GCG_ParamData::mancolormasterconss, and NULL.

Referenced by writeGpPartialdec(), and writeTexHeader().

◆ GCGvisuGetColorMastervars()

GCG_EXPORT const char * GCGvisuGetColorMastervars ( GCG *  gcg)

gets color for mastervar block in current color scheme

Returns
mastervar color
Parameters
gcgGCG data structure

Definition at line 247 of file params_visu.c.

References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_MASTERVARS, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolormastervars, GCG_ParamData::mancolormastervars, and NULL.

Referenced by writeTexHeader().

◆ GCGvisuGetColorLinking()

GCG_EXPORT const char * GCGvisuGetColorLinking ( GCG *  gcg)

gets color for linking blocks in current color scheme

Returns
linking color
Parameters
gcgGCG data structure

Definition at line 274 of file params_visu.c.

References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_LINKING, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolorlinking, GCG_ParamData::mancolorlinking, and NULL.

Referenced by writeGpPartialdec(), and writeTexHeader().

◆ GCGvisuGetColorStairlinking()

GCG_EXPORT const char * GCGvisuGetColorStairlinking ( GCG *  gcg)

gets color for stairlinking blocks in current color scheme

Returns
stairlinking color
Parameters
gcgGCG data structure

Definition at line 301 of file params_visu.c.

References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_STAIRLINKING, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolorstairlinking, GCG_ParamData::mancolorstairlinking, and NULL.

Referenced by writeGpPartialdec(), and writeTexHeader().

◆ GCGvisuGetColorBlock()

GCG_EXPORT const char * GCGvisuGetColorBlock ( GCG *  gcg)

gets color for normal decomp blocks in current color scheme

Returns
block color
Parameters
gcgGCG data structure

Definition at line 328 of file params_visu.c.

References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_BLOCK, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolorblock, GCG_ParamData::mancolorblock, and NULL.

Referenced by writeGpPartialdec(), and writeTexHeader().

◆ GCGvisuGetColorOpen()

GCG_EXPORT const char * GCGvisuGetColorOpen ( GCG *  gcg)

gets color for open blocks in current color scheme

Returns
open color
Parameters
gcgGCG data structure

Definition at line 355 of file params_visu.c.

References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_OPEN, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycoloropen, GCG_ParamData::mancoloropen, and NULL.

Referenced by writeGpPartialdec(), and writeTexHeader().

◆ GCGvisuGetColorNonzero()

GCG_EXPORT const char * GCGvisuGetColorNonzero ( GCG *  gcg)

gets color for non-zero points in current color scheme

Returns
non-zero color
Parameters
gcgGCG data structure

Definition at line 382 of file params_visu.c.

References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_NONZERO, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolornonzero, GCG_ParamData::mancolornonzero, and NULL.

Referenced by writeGpNonzeros(), and writeTexHeader().

◆ GCGvisuGetColorLine()

GCG_EXPORT const char * GCGvisuGetColorLine ( GCG *  gcg)

gets color for lines in current color scheme

Returns
line color
Parameters
gcgGCG data structure

Definition at line 409 of file params_visu.c.

References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_LINE, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolorline, GCG_ParamData::mancolorline, and NULL.

Referenced by drawGpBox(), and writeTexHeader().

◆ GCGvisuGetNonzeroRadius()

GCG_EXPORT float GCGvisuGetNonzeroRadius ( GCG *  gcg,
int  maxindx,
int  maxindy,
float  scalingfactor 
)

gets appropriate radius for nonzeros needs highest indices of both axes for scaling

Returns
radius
Parameters
gcgGCG data structure
maxindxhighest index x-axis
maxindyhighest index y-axis
scalingfactorpercentage to scale radius, 1 if no scaling

Definition at line 555 of file params_visu.c.

References GCGgetParamsVisu(), NULL, and GCG_ParamData::visuradius.

Referenced by writeGpPartialdec(), and writeTexPartialdec().

◆ GCGgetUseGp()

GCG_EXPORT SCIP_Bool GCGgetUseGp ( GCG *  gcg)

if true gp reader should be used for sub-visualizations, otherwise tex reader

Returns
true if gp reader should be used, false if tex reader should be used
Parameters
gcgGCG data structure

Definition at line 593 of file params_visu.c.

References GCGgetParamsVisu(), NULL, SCIP_Bool, and GCG_ParamData::visuusegp.

Referenced by reportAllDecompositions(), and writeTexHeader().

◆ GCGVisuGetPdfReader()

GCG_EXPORT const char * GCGVisuGetPdfReader ( GCG *  gcg)

gets the name of the pdf reader that should be used

Returns
name of pdf reader
Parameters
gcgGCG data structure

Definition at line 610 of file params_visu.c.

References GCGgetParamsVisu(), NULL, and GCG_ParamData::pdfreader.

Referenced by gcg::PARTIALDECOMP::showVisualization().

◆ GCGreportGetMaxNDecomps()

GCG_EXPORT int GCGreportGetMaxNDecomps ( GCG *  gcg)

gets the max number of decomps to be included in reports

Returns
max number of decomps
Parameters
gcgGCG data structure

Definition at line 627 of file params_visu.c.

References GCGgetParamsVisu(), max(), NULL, and GCG_ParamData::rep_maxndecomps.

Referenced by GCGwriteTexReport().

◆ GCGreportGetDecompTypeToShow()

GCG_EXPORT GCG_DECTYPE GCGreportGetDecompTypeToShow ( GCG *  gcg)

gets what type of decomps to show in reports (where 0 corresponds to 'show all')

Returns
type of decomps
Parameters
gcgGCG data structure

References SCIP_Bool.

◆ GCGreportGetShowTitlepage()

GCG_EXPORT SCIP_Bool GCGreportGetShowTitlepage ( GCG *  gcg)

gets whether a titlepage should be included in reports

Returns
true iff title page should be generated
Parameters
gcgGCG data structure

Definition at line 644 of file params_visu.c.

References GCGgetParamsVisu(), NULL, GCG_ParamData::rep_showtitle, and SCIP_Bool.

Referenced by reportAllDecompositions().

◆ GCGreportGetShowToc()

GCG_EXPORT SCIP_Bool GCGreportGetShowToc ( GCG *  gcg)

gets whether a table of contents should be included in reports

Returns
true iff table of contents should be generated
Parameters
gcgGCG data structure

Definition at line 661 of file params_visu.c.

References GCGgetParamsVisu(), NULL, GCG_ParamData::rep_showtoc, and SCIP_Bool.

Referenced by reportAllDecompositions().

◆ GCGreportGetShowStatistics()

GCG_EXPORT SCIP_Bool GCGreportGetShowStatistics ( GCG *  gcg)

gets whether statistics should be included for each decomp in reports

Returns
true iff statistics for each decomp should be generated
Parameters
gcgGCG data structure

Definition at line 678 of file params_visu.c.

References GCGgetParamsVisu(), NULL, GCG_ParamData::rep_statistics, and SCIP_Bool.

Referenced by reportAllDecompositions().

◆ GCGVisuFreeParams()

GCG_EXPORT void GCGVisuFreeParams ( GCG *  gcg,
GCG_PARAMDATA *  paramdata 
)