dialog_gcg.c
Go to the documentation of this file.
38/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
272 SCIPdialogMessage(scip, NULL, "All selected decompositions were written (directory: %s, format: %s).\n",
304 SCIP_CALL( SCIPdialoghdlrGetWord(dialoghdlr, dialog,"Enter directory for output (e.g. ../path/to/directory):\n",
361/** writes out visualizations and statistics of all decompositions currently known to cons_decomp to a PDF file
398 SCIP_CALL( SCIPdialoghdlrGetWord(dialoghdlr, dialog, "enter a directory: ", &tmpstring, &endoffile) );
418 (void) SCIPsnprintf(outname, SCIP_MAXSTRLEN, "%s/%s%s.%s", dirname, nameinfix, pname, extension);
432 GCGwriteTexReport(gcg, file, decids, &ndecswritten, GCGreportGetShowTitlepage(gcg), GCGreportGetShowToc(gcg),
440 "Report on %d decompositions is written to file '%s'.\nFor compilation read the README in the same folder.\n", ndecswritten, outname);
486 (void) SCIPsnprintf(tempstr, SCIP_MAXSTRLEN, "Please type the block number candidates you want to add (as white space separated list): ");
487 SCIP_CALL( SCIPdialoghdlrGetLine(dialoghdlr, dialog, (char*)tempstr, &blocknrchar, &endoffile) );
554 SCIPmessageFPrintInfo(SCIPgetMessagehdlr(scip), NULL, "No Dantzig-Wolfe reformulation applied. No decomposition statistics available.\n");
625 SCIPdialogMessage(scip, NULL, "%7s ", GCGconsClassifierIsEnabled(consclss[i]) ? "TRUE" : "FALSE");
661 SCIPdialogMessage(scip, NULL, "%7s ", GCGvarClassifierIsEnabled(varclss[i]) ? "TRUE" : "FALSE");
729 SCIPverbMessage(scip, SCIP_VERBLEVEL_DIALOG, NULL, "switching to the master problem shell is only possible before the solving process is started\n");
756 SCIP_CALL( SCIPdialoghdlrGetWord(dialoghdlr, dialog, "enter filename: ", &filename, &endoffile) );
983 SCIP_CALL( writeAllDecompositions(GCGorigGetGcg(scip), dialog, dialoghdlr, nextdialog, TRUE, TRUE) );
1002 SCIP_CALL( writeSelectedDecompositions(GCGorigGetGcg(scip), dialog, dialoghdlr, nextdialog ) );
1081 SCIP_CALL( SCIPdialoghdlrGetWord(dialoghdlr, dialog, "enter filename: ", &filename, &endoffile) );
1130 SCIP_CALL( GCGconshdlrDecompSetDetection(GCGorigGetGcg(scip), SCIP_PARAMSETTING_AGGRESSIVE, FALSE) );
1142 SCIP_CALL( GCGconshdlrDecompSetDetection(GCGorigGetGcg(scip), SCIP_PARAMSETTING_DEFAULT, FALSE) );
1166 SCIP_CALL( GCGconshdlrDecompSetDetection(GCGorigGetGcg(scip), SCIP_PARAMSETTING_FAST, FALSE) );
1345 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecDisplayStatistics, NULL, NULL,
1353 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecPrintDetectionInformation, NULL, NULL,
1362 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecDisplayDecomposition, NULL, NULL,
1371 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecDisplayNBlockcandidates, NULL, NULL,
1380 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecDisplayAdditionalStatistics, NULL, NULL,
1398 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecDisplayDetectors, NULL, NULL,
1407 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecDisplayConsClassifiers, NULL, NULL,
1416 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecDisplayVarClassifiers, NULL, NULL,
1745 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecWriteAllDecompositions, NULL, NULL,
1747 "write all known decompositions to files (format is given by file extension, e.g. {dec,blk,ref,gp,tex})",
1756 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecWriteSelectedDecompositions, NULL, NULL,
1758 "write selected (in \"explore\" submenu) decompositions to files (format is given by file extension, e.g. {dec,blk,ref,gp,tex})",
1767 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecWriteOrigMatrix, NULL, NULL,
1778 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecWriteTransMatrix, NULL, NULL,
1789 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecReportAllDecompositions, NULL, NULL,
1800 SCIP_CALL( SCIPincludeDialog(origprob, &dialog, NULL, GCGdialogExecWriteStatistics, NULL, NULL,
SCIP_Real * r
int GCGconshdlrDecompGetNVarClassifiers(GCG *gcg)
Gets the number of all variable classifiers.
Definition: cons_decomp.cpp:4081
SCIP_RETCODE GCGwriteAllDecomps(GCG *gcg, char *directory, char *extension, SCIP_Bool original, SCIP_Bool presolved)
write out all known decompositions
Definition: cons_decomp.cpp:2893
SCIP_RETCODE GCGconshdlrDecompSetDetection(GCG *gcg, SCIP_PARAMSETTING paramsetting, SCIP_Bool quiet)
sets detector parameters values
Definition: cons_decomp.cpp:4598
SCIP_RETCODE GCGwriteSelectedDecomps(GCG *gcg, char *directory, char *extension)
writes all selected decompositions
Definition: cons_decomp.cpp:2964
GCG_VARCLASSIFIER ** GCGconshdlrDecompGetVarClassifiers(GCG *gcg)
gets an array of all variable classifier
Definition: cons_decomp.cpp:3951
void GCGconshdlrDecompAddUserCandidatesNBlocks(GCG *gcg, int candidate)
adds a candidate for block size given by the user
Definition: cons_decomp.cpp:3264
GCG_CONSCLASSIFIER ** GCGconshdlrDecompGetConsClassifiers(GCG *gcg)
gets an array of all constraint classifier
Definition: cons_decomp.cpp:3940
SCIP_RETCODE GCGconshdlrDecompGetFinishedPartialdecsList(GCG *gcg, int **idlist, int *listlength)
Gets a list of ids of the current partialdecs that are finished.
Definition: cons_decomp.cpp:3990
int GCGconshdlrDecompGetNConsClassifiers(GCG *gcg)
Gets the number of all constraint classifiers.
Definition: cons_decomp.cpp:4071
void GCGprintListOfDetectors(GCG *gcg)
writes out a list of all detectors
Definition: cons_decomp.cpp:2864
int GCGconshdlrDecompGetNDecomps(GCG *gcg)
gets the number of decompositions (= amount of finished partialdecs)
Definition: cons_decomp.cpp:4040
GCG_DECOMP * GCGgetBestDecomp(GCG *gcg, SCIP_Bool printwarnings)
Gets the best known decomposition.
Definition: cons_decomp.cpp:2413
constraint handler for structure detection
#define SCIP_MAXSTRLEN
#define SCIP_Bool
#define SCIP_CALL(x)
dialog menu for exploring decompositions
GCG_EXPORT SCIP_RETCODE GCGdialogExecExplore(GCG *gcg, SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG *dialog)
method to handle user input for "explore" command
SCIP_DECL_DIALOGEXEC(GCGdialogExecDisplayStatistics)
Definition: dialog_gcg.c:446
static SCIP_RETCODE writeAllDecompositions(GCG *gcg, SCIP_DIALOG *dialog, SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG **nextdialog, SCIP_Bool original, SCIP_Bool presolved)
Definition: dialog_gcg.c:107
static SCIP_RETCODE createEmphasisSubmenu(SCIP *scip, SCIP_DIALOG *root, SCIP_DIALOG **submenu)
Definition: dialog_gcg.c:1279
static SCIP_RETCODE writeMatrix(GCG *gcg, SCIP_DIALOG *dialog, SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG **nextdialog, SCIP_Bool originalmatrix)
Definition: dialog_gcg.c:284
static SCIP_RETCODE writeSelectedDecompositions(GCG *gcg, SCIP_DIALOG *dialog, SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG **nextdialog)
Definition: dialog_gcg.c:197
static void displayReaders(SCIP *scip, SCIP_Bool reader, SCIP_Bool writer)
Definition: dialog_gcg.c:69
static SCIP_RETCODE createRootDialog(SCIP *scip, SCIP_DIALOG **root)
Definition: dialog_gcg.c:1261
static SCIP_RETCODE reportAllDecompositions(GCG *gcg, SCIP_DIALOG *dialog, SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG **nextdialog)
Definition: dialog_gcg.c:364
GCG user interface dialog.
#define TRUE
#define FALSE
GCG interface methods.
SCIP_RETCODE SCIPincludeDialogDefaultBasic(SCIP *scip)
SCIP_Bool SCIPfileExists(const char *filename)
void SCIPsplitFilename(char *filename, char **path, char **name, char **extension, char **compression)
void GCGpricerPrintListOfSolvers(GCG *gcg)
Definition: pricer_gcg.cpp:5838
void GCGpricerPrintStatistics(GCG *gcg, FILE *file)
Definition: pricer_gcg.cpp:5916
SCIP_RETCODE GCGprintBlockcandidateInformation(GCG *gcg, FILE *file)
Definition: cons_decomp.cpp:1946
SCIP_RETCODE GCGprintCompleteDetectionStatistics(GCG *gcg, FILE *file)
Definition: misc.c:801
SCIP_STAGE SCIPgetStage(SCIP *scip)
const char * SCIPgetProbName(SCIP *scip)
SCIP_RETCODE SCIPwriteOrigProblem(SCIP *scip, const char *filename, const char *extension, SCIP_Bool genericnames)
SCIP_RETCODE SCIPwriteTransProblem(SCIP *scip, const char *filename, const char *extension, SCIP_Bool genericnames)
SCIP_RETCODE GCGsetHeuristics(GCG *gcg, SCIP_PARAMSETTING paramsetting)
Definition: gcgheur.c:153
void SCIPverbMessage(SCIP *scip, SCIP_VERBLEVEL msgverblevel, FILE *file, const char *formatstr,...)
SCIP_MESSAGEHDLR * SCIPgetMessagehdlr(SCIP *scip)
void SCIPdialogMessage(SCIP *scip, FILE *file, const char *formatstr,...)
SCIP_RETCODE SCIPsetHeuristics(SCIP *scip, SCIP_PARAMSETTING paramsetting, SCIP_Bool quiet)
SCIP_RETCODE SCIPreadParams(SCIP *scip, const char *filename)
const char * GCGconsClassifierGetName(GCG_CONSCLASSIFIER *consClassifier)
Definition: clscons.c:67
const char * GCGconsClassifierGetDesc(GCG_CONSCLASSIFIER *consClassifier)
Definition: clscons.c:97
SCIP_Bool GCGconsClassifierIsEnabled(GCG_CONSCLASSIFIER *consClassifier)
Definition: clscons.c:87
int GCGconsClassifierGetPriority(GCG_CONSCLASSIFIER *consClassifier)
Definition: clscons.c:77
void SCIPdialoghdlrClearBuffer(SCIP_DIALOGHDLR *dialoghdlr)
SCIP_RETCODE SCIPreleaseDialog(SCIP *scip, SCIP_DIALOG **dialog)
SCIP_DIALOG * SCIPdialoghdlrGetRoot(SCIP_DIALOGHDLR *dialoghdlr)
SCIP_Bool SCIPdialogHasEntry(SCIP_DIALOG *dialog, const char *entryname)
SCIP_RETCODE SCIPdialoghdlrAddHistory(SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG *dialog, const char *command, SCIP_Bool escapecommand)
SCIP_RETCODE SCIPincludeDialog(SCIP *scip, SCIP_DIALOG **dialog, SCIP_DECL_DIALOGCOPY((*dialogcopy)), SCIP_DECL_DIALOGEXEC((*dialogexec)), SCIP_DECL_DIALOGDESC((*dialogdesc)), SCIP_DECL_DIALOGFREE((*dialogfree)), const char *name, const char *desc, SCIP_Bool issubmenu, SCIP_DIALOGDATA *dialogdata)
SCIP_RETCODE SCIPaddDialogEntry(SCIP *scip, SCIP_DIALOG *dialog, SCIP_DIALOG *subdialog)
SCIP_RETCODE SCIPdialoghdlrGetWord(SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG *dialog, const char *prompt, char **inputword, SCIP_Bool *endoffile)
SCIP_RETCODE SCIPsetRootDialog(SCIP *scip, SCIP_DIALOG *dialog)
SCIP_RETCODE SCIPstartInteraction(SCIP *scip)
SCIP_DIALOG * SCIPgetRootDialog(SCIP *scip)
int SCIPdialogFindEntry(SCIP_DIALOG *dialog, const char *entryname, SCIP_DIALOG **subdialog)
SCIP_RETCODE SCIPdialoghdlrGetLine(SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG *dialog, const char *prompt, char **inputline, SCIP_Bool *endoffile)
#define SCIPfreeBlockMemoryArray(scip, ptr, num)
#define SCIPallocBlockMemoryArray(scip, ptr, num)
const char * SCIPreaderGetExtension(SCIP_READER *reader)
int SCIPgetNReaders(SCIP *scip)
const char * SCIPreaderGetName(SCIP_READER *reader)
SCIP_Bool SCIPreaderCanRead(SCIP_READER *reader)
SCIP_READER ** SCIPgetReaders(SCIP *scip)
SCIP_Bool SCIPreaderCanWrite(SCIP_READER *reader)
const char * SCIPreaderGetDesc(SCIP_READER *reader)
GCG_EXPORT const char * GCGscoreGetShortname(GCG_SCORE *score)
Definition: score.c:155
const char * GCGvarClassifierGetName(GCG_VARCLASSIFIER *varClassifier)
Definition: clsvar.c:67
const char * GCGvarClassifierGetDesc(GCG_VARCLASSIFIER *varClassifier)
Definition: clsvar.c:97
int GCGvarClassifierGetPriority(GCG_VARCLASSIFIER *varClassifier)
Definition: clsvar.c:77
SCIP_Bool GCGvarClassifierIsEnabled(GCG_VARCLASSIFIER *varClassifier)
Definition: clsvar.c:87
SCIP_RETCODE GCGsetSeparators(GCG *gcg, SCIP_PARAMSETTING paramsetting)
Definition: gcgsepa.c:187
int SCIPsnprintf(char *t, int len, const char *s,...)
void SCIPprintSysError(const char *message)
#define NULL
void SCIPmessageFPrintInfo(SCIP_MESSAGEHDLR *messagehdlr, FILE *file, const char *formatstr,...)
Definition: class_conspartition.cpp:44
SCIP_Bool GCGreportGetShowStatistics(GCG *gcg)
Definition: params_visu.c:678
GCG variable pricer.
public methods for GCG heuristics
public methods for GCG separators
#define SCIPerrorMessage
#define SCIPdebugMessage
SCIP_RETCODE GCGWriteGpDecompMatrix(GCG *gcg, const char *filename, const char *workfolder, SCIP_Bool originalmatrix)
Definition: reader_gp.cpp:523
GP file reader writing decompositions to gnuplot files.
SCIP_RETCODE GCGwriteTexReport(GCG *gcg, FILE *file, int *partialdecids, int *npartialdecs, SCIP_Bool titlepage, SCIP_Bool toc, SCIP_Bool statistics, SCIP_Bool usegp)
Definition: reader_tex.cpp:693
parameter settings for visualization readers
GCG relaxator.
Prints information about the best decomposition.
Definition: struct_consclassifier.h:44
Definition: struct_decomp.h:53
Definition: struct_score.h:49
Definition: struct_varclassifier.h:44
Definition: struct_gcg.h:55
SCIP_VERBLEVEL_DIALOG
SCIP_PARAMSETTING_OFF
SCIP_PARAMSETTING_AGGRESSIVE
SCIP_PARAMSETTING_DEFAULT
SCIP_PARAMSETTING_FAST
SCIP_FILECREATEERROR
SCIP_PLUGINNOTFOUND
SCIP_WRITEERROR
SCIP_OKAY
SCIP_INVALIDCALL
enum SCIP_Retcode SCIP_RETCODE
SCIP_STAGE_PROBLEM
SCIP_STAGE_INITPRESOLVE
SCIP_STAGE_SOLVED
SCIP_STAGE_PRESOLVING
SCIP_STAGE_TRANSFORMED
SCIP_STAGE_INITSOLVE
SCIP_STAGE_EXITPRESOLVE
SCIP_STAGE_EXITSOLVE
SCIP_STAGE_INIT
SCIP_STAGE_FREE
SCIP_STAGE_FREETRANS
SCIP_STAGE_SOLVING
SCIP_STAGE_TRANSFORMING
SCIP_STAGE_PRESOLVED