Detailed Description
GCG user interface dialog.
Definition in file dialog_gcg.c.
#include <sys/stat.h>#include <assert.h>#include <string.h>#include "scip/pub_dialog.h"#include "scip/type_dialog.h"#include "scip/dialog_default.h"#include "gcg/gcg.h"#include "gcg/dialog_gcg.h"#include "gcg/relax_gcg.h"#include "gcg/pricer_gcg.h"#include "gcg/cons_decomp.h"#include "gcg/pub_gcgheur.h"#include "gcg/pub_gcgsepa.h"#include "gcg/stat.h"#include "gcg/reader_tex.h"#include "gcg/reader_gp.h"#include "gcg/params_visu.h"#include "gcg/dialog_explore.h"Go to the source code of this file.
Functions | |
| static void | displayReaders (SCIP *scip, SCIP_Bool reader, SCIP_Bool writer) |
| static SCIP_RETCODE | writeAllDecompositions (GCG *gcg, SCIP_DIALOG *dialog, SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG **nextdialog, SCIP_Bool original, SCIP_Bool presolved) |
| static SCIP_RETCODE | writeSelectedDecompositions (GCG *gcg, SCIP_DIALOG *dialog, SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG **nextdialog) |
| static SCIP_RETCODE | writeMatrix (GCG *gcg, SCIP_DIALOG *dialog, SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG **nextdialog, SCIP_Bool originalmatrix) |
| static SCIP_RETCODE | reportAllDecompositions (GCG *gcg, SCIP_DIALOG *dialog, SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG **nextdialog) |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecDisplayStatistics) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecPrintDetectionInformation) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecChangeAddBlocknr) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecDisplayDecomposition) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecDisplayNBlockcandidates) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecDisplayAdditionalStatistics) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecDisplayDetectors) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecDisplayConsClassifiers) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecDisplayVarClassifiers) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecDisplayScores) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecDisplaySolvers) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecSetMaster) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecSetLoadmaster) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecTransform) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecPresolve) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecDetect) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecSelect) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecOptimize) | |
| static | SCIP_DECL_DIALOGEXEC (GCGdialogExecWriteAllDecompositions) |
| static | SCIP_DECL_DIALOGEXEC (GCGdialogExecWriteSelectedDecompositions) |
| static | SCIP_DECL_DIALOGEXEC (GCGdialogExecWriteOrigMatrix) |
| static | SCIP_DECL_DIALOGEXEC (GCGdialogExecWriteTransMatrix) |
| static | SCIP_DECL_DIALOGEXEC (GCGdialogExecReportAllDecompositions) |
| static | SCIP_DECL_DIALOGEXEC (GCGdialogExecWriteStatistics) |
| SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetDetectorsAggressive) | |
| SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetDetectorsDefault) | |
| SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetDetectorsOff) | |
| SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetDetectorsFast) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecSetHeuristicsAggressive) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecSetHeuristicsOff) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecSetHeuristicsFast) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecSetSeparatorsDefault) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecSetSeparatorsAggressive) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecSetSeparatorsOff) | |
| SCIP_DECL_DIALOGEXEC (GCGdialogExecSetSeparatorsFast) | |
| static SCIP_RETCODE | createRootDialog (SCIP *scip, SCIP_DIALOG **root) |
| static SCIP_RETCODE | createEmphasisSubmenu (SCIP *scip, SCIP_DIALOG *root, SCIP_DIALOG **submenu) |
| SCIP_RETCODE | GCGincludeDialogGcg (GCG *gcg) |
Function Documentation
◆ displayReaders()
display the reader information
- Parameters
-
scip SCIP data structure reader display reader which can read writer display reader which can write
Definition at line 69 of file dialog_gcg.c.
References assert(), and displayReaders().
Referenced by displayReaders(), writeAllDecompositions(), and writeSelectedDecompositions().
◆ writeAllDecompositions()
|
static |
writes out all decompositions currently known to cons_decomp
- Returns
- SCIP return code
- Parameters
-
gcg GCG data structure dialog dialog menu dialoghdlr dialog handler nextdialog pointer to store next dialog to execute original should decomps for original problem be written presolved should decomps for presolved problem be written
Definition at line 107 of file dialog_gcg.c.
References displayReaders(), GCGconshdlrDecompGetNDecomps(), GCGgetOrigprob(), GCGwriteAllDecomps(), retcode, SCIP_CALL(), SCIPdebugMessage(), and writeAllDecompositions().
Referenced by SCIP_DECL_DIALOGEXEC(), and writeAllDecompositions().
◆ writeSelectedDecompositions()
|
static |
writes out all decompositions currently known to cons_decomp
- Parameters
-
gcg GCG data structure dialog dialog menu dialoghdlr dialog handler nextdialog pointer to store next dialog to execute
Definition at line 197 of file dialog_gcg.c.
References displayReaders(), GCGconshdlrDecompGetNDecomps(), GCGgetOrigprob(), GCGwriteSelectedDecomps(), retcode, SCIP_CALL(), SCIPdebugMessage(), and writeSelectedDecompositions().
Referenced by SCIP_DECL_DIALOGEXEC(), and writeSelectedDecompositions().
◆ writeMatrix()
|
static |
writes a block matrix to the location specified by the user
- Returns
- SCIP return code
- Parameters
-
gcg GCG data structure dialog dialog menu dialoghdlr dialog handler nextdialog pointer to store next dialog to execute originalmatrix should the original (or transformed) matrix be written
Definition at line 284 of file dialog_gcg.c.
References GCGgetOrigprob(), GCGWriteGpDecompMatrix(), i, retcode, SCIP_CALL(), and writeMatrix().
Referenced by SCIP_DECL_DIALOGEXEC(), SCIP_DECL_DIALOGEXEC(), and writeMatrix().
◆ reportAllDecompositions()
|
static |
writes out visualizations and statistics of all decompositions currently known to cons_decomp to a PDF file
- Returns
- SCIP return code
- Parameters
-
gcg GCG data structure dialog dialog menu dialoghdlr dialog handler nextdialog pointer to store next dialog to execute
Definition at line 364 of file dialog_gcg.c.
References GCGconshdlrDecompGetFinishedPartialdecsList(), GCGconshdlrDecompGetNDecomps(), GCGgetOrigprob(), GCGgetUseGp(), GCGreportGetShowStatistics(), GCGreportGetShowTitlepage(), GCGreportGetShowToc(), GCGwriteTexReport(), reportAllDecompositions(), and SCIP_CALL().
Referenced by reportAllDecompositions(), and SCIP_DECL_DIALOGEXEC().
◆ SCIP_DECL_DIALOGEXEC() [1/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecDisplayStatistics | ) |
dialog execution method for the display statistics command
Definition at line 446 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGprintStatistics(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [2/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecPrintDetectionInformation | ) |
dialog execution method print complete detection information
Definition at line 460 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGprintCompleteDetectionStatistics(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [3/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecChangeAddBlocknr | ) |
dialog execution method for adding block number candidate
Definition at line 474 of file dialog_gcg.c.
References GCGconshdlrDecompAddUserCandidatesNBlocks(), GCGorigGetGcg(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [4/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecDisplayDecomposition | ) |
dialog execution method for the display decomposition command
Definition at line 511 of file dialog_gcg.c.
References SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [5/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecDisplayNBlockcandidates | ) |
dialog execution method for the display block number candidates
dialog execution method for the display nblockscandidates command
Definition at line 528 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGprintBlockcandidateInformation(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [6/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecDisplayAdditionalStatistics | ) |
dialog execution method for the display additionalstatistics command
Definition at line 542 of file dialog_gcg.c.
References GCG_DECTYPE_DIAGONAL, GCGdecompFree(), GCGdecompGetType(), GCGgetBestDecomp(), GCGgetMasterprob(), GCGorigGetGcg(), GCGpricerPrintStatistics(), GCGwriteDecompositionData(), GCGwriteVarCreationDetails(), masterprob, and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [7/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecDisplayDetectors | ) |
dialog execution method for the display detectors command
Definition at line 586 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGprintListOfDetectors(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [8/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecDisplayConsClassifiers | ) |
dialog execution method for the display constraint classifiers command
Definition at line 601 of file dialog_gcg.c.
References GCGconsClassifierGetDesc(), GCGconsClassifierGetName(), GCGconsClassifierGetPriority(), GCGconsClassifierIsEnabled(), GCGconshdlrDecompGetConsClassifiers(), GCGconshdlrDecompGetNConsClassifiers(), GCGorigGetGcg(), i, and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [9/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecDisplayVarClassifiers | ) |
dialog execution method for the display variable classifiers command
Definition at line 637 of file dialog_gcg.c.
References GCGconshdlrDecompGetNVarClassifiers(), GCGconshdlrDecompGetVarClassifiers(), GCGorigGetGcg(), GCGvarClassifierGetDesc(), GCGvarClassifierGetName(), GCGvarClassifierGetPriority(), GCGvarClassifierIsEnabled(), i, and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [10/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecDisplayScores | ) |
dialog execution method for the display scores command
Definition at line 673 of file dialog_gcg.c.
References GCGgetNScores(), GCGgetScores(), GCGorigGetGcg(), GCGscoreGetDesc(), GCGscoreGetName(), GCGscoreGetShortname(), i, and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [11/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecDisplaySolvers | ) |
dialog execution method for the display solvers command
Definition at line 707 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGpricerPrintListOfSolvers(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [12/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecSetMaster | ) |
dialog execution method for the master command
Definition at line 721 of file dialog_gcg.c.
References GCGgetMasterprob(), GCGorigGetGcg(), masterprob, and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [13/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecSetLoadmaster | ) |
dialog execution method for the set loadmaster command
Definition at line 746 of file dialog_gcg.c.
References assert(), GCGgetMasterprob(), GCGorigGetGcg(), masterprob, and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [14/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecTransform | ) |
dialog execution method for the transform command
Definition at line 785 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGtransformProb(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [15/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecPresolve | ) |
dialog execution method for the presolve command
Definition at line 829 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGpresolve(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [16/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecDetect | ) |
dialog execution method for the detect command
Definition at line 876 of file dialog_gcg.c.
References GCGdetect(), GCGorigGetGcg(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [17/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecSelect | ) |
dialog execution method for the displaying and selecting decompositions command
dialog execution method for the select command
Definition at line 917 of file dialog_gcg.c.
References GCGdialogExecExplore(), GCGorigGetGcg(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [18/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecOptimize | ) |
dialog execution method for the optimize command
Definition at line 932 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGsolve(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [19/35]
|
static |
dialog execution method for writing all known decompositions
Definition at line 977 of file dialog_gcg.c.
References GCGorigGetGcg(), SCIP_CALL(), and writeAllDecompositions().
◆ SCIP_DECL_DIALOGEXEC() [20/35]
|
static |
dialog execution method for writing selected decompositions
Definition at line 996 of file dialog_gcg.c.
References GCGorigGetGcg(), SCIP_CALL(), and writeSelectedDecompositions().
◆ SCIP_DECL_DIALOGEXEC() [21/35]
|
static |
dialog execution method for writing the original matrix
Definition at line 1015 of file dialog_gcg.c.
References GCGorigGetGcg(), SCIP_CALL(), and writeMatrix().
◆ SCIP_DECL_DIALOGEXEC() [22/35]
|
static |
dialog execution method for writing the transformed matrix
Definition at line 1034 of file dialog_gcg.c.
References GCGorigGetGcg(), SCIP_CALL(), and writeMatrix().
◆ SCIP_DECL_DIALOGEXEC() [23/35]
|
static |
dialog execution method for reporting all known decompositions in a PDF file
Definition at line 1055 of file dialog_gcg.c.
References GCGorigGetGcg(), reportAllDecompositions(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [24/35]
|
static |
dialog execution method for writing problem statistics
Definition at line 1073 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGprintStatistics(), retcode, and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [25/35]
| SCIP_DECL_DIALOGEXEC | ( | SCIPdialogExecSetDetectorsAggressive | ) |
dialog execution method for the set detectors aggressive command
Definition at line 1124 of file dialog_gcg.c.
References GCGconshdlrDecompSetDetection(), GCGorigGetGcg(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [26/35]
| SCIP_DECL_DIALOGEXEC | ( | SCIPdialogExecSetDetectorsDefault | ) |
dialog execution method for the set detectors default command
Definition at line 1136 of file dialog_gcg.c.
References GCGconshdlrDecompSetDetection(), GCGorigGetGcg(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [27/35]
| SCIP_DECL_DIALOGEXEC | ( | SCIPdialogExecSetDetectorsOff | ) |
dialog execution method for the set detectors off command
Definition at line 1148 of file dialog_gcg.c.
References GCGconshdlrDecompSetDetection(), GCGorigGetGcg(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [28/35]
| SCIP_DECL_DIALOGEXEC | ( | SCIPdialogExecSetDetectorsFast | ) |
dialog execution method for the set detectors fast command
Definition at line 1160 of file dialog_gcg.c.
References GCGconshdlrDecompSetDetection(), GCGorigGetGcg(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [29/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecSetHeuristicsAggressive | ) |
dialog execution method for the set heuristics aggressive command
Definition at line 1172 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGsetHeuristics(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [30/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecSetHeuristicsOff | ) |
dialog execution method for the set heuristics off command
Definition at line 1185 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGsetHeuristics(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [31/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecSetHeuristicsFast | ) |
dialog execution method for the set heuristics fast command
Definition at line 1198 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGsetHeuristics(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [32/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecSetSeparatorsDefault | ) |
dialog execution method for the set gcg separators default command
dialog execution method for the set separators default command
Definition at line 1211 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGsetSeparators(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [33/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecSetSeparatorsAggressive | ) |
dialog execution method for the set gcg separators aggressive command
dialog execution method for the set separators aggressive command
Definition at line 1223 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGsetSeparators(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [34/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecSetSeparatorsOff | ) |
dialog execution method for the set gcg separators off command
dialog execution method for the set separators off command
Definition at line 1235 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGsetSeparators(), and SCIP_CALL().
◆ SCIP_DECL_DIALOGEXEC() [35/35]
| SCIP_DECL_DIALOGEXEC | ( | GCGdialogExecSetSeparatorsFast | ) |
dialog execution method for the set gcg separators fast command
dialog execution method for the set separators fast command
Definition at line 1247 of file dialog_gcg.c.
References GCGorigGetGcg(), GCGsetSeparators(), and SCIP_CALL().
◆ createRootDialog()
|
static |
creates a root dialog
- Returns
- SCIP return code
- Parameters
-
scip SCIP data structure root pointer to store the root dialog
Definition at line 1261 of file dialog_gcg.c.
References createRootDialog(), and SCIP_CALL().
Referenced by createRootDialog(), and GCGincludeDialogGcg().
◆ createEmphasisSubmenu()
|
static |
create an "emphasis" sub menu
- Returns
- SCIP return code
- Parameters
-
scip SCIP data structure root the menu to add the empty sub menu submenu pointer to store the created emphasis sub menu
Definition at line 1279 of file dialog_gcg.c.
References assert(), createEmphasisSubmenu(), and SCIP_CALL().
Referenced by createEmphasisSubmenu(), and GCGincludeDialogGcg().
◆ GCGincludeDialogGcg()
| SCIP_RETCODE GCGincludeDialogGcg | ( | GCG * | gcg | ) |
includes or updates the GCG dialog menus in SCIP
- Returns
- SCIP return code
includes or updates the GCG dialog menus in SCIP
- Parameters
-
gcg GCG data structure
Definition at line 1306 of file dialog_gcg.c.
References assert(), createEmphasisSubmenu(), createRootDialog(), GCGgetOrigprob(), GCGincludeDialogGcg(), origprob, and SCIP_CALL().
Referenced by GCGincludeDialogGcg(), and GCGincludeGcgPlugins().