default user interface dialog
Definition in file dialog_default.c.
Go to the source code of this file.
Functions | |
static SCIP_RETCODE | dialogExecMenu (SCIP *scip, SCIP_DIALOG *dialog, SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG **nextdialog) |
static SCIP_Bool | parseBoolValue (SCIP *scip, const char *valuestr, SCIP_Bool *error) |
static void | displayReaders (SCIP *scip, SCIP_Bool reader, SCIP_Bool writer) |
static SCIP_RETCODE | writeProblem (SCIP *scip, SCIP_DIALOG *dialog, SCIP_DIALOGHDLR *dialoghdlr, SCIP_DIALOG **nextdialog, SCIP_Bool transformed, SCIP_Bool genericnames) |
static | SCIP_DECL_DIALOGCOPY (dialogCopyDefault) |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecMenu) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecMenuLazy) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecChangeAddCons) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecChangeBounds) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecChangeFreetransproblem) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecChangeObjSense) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecChecksol) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecCliquegraph) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayBranching) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayRelaxators) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayConflict) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayConshdlrs) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayDisplaycols) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayHeuristics) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayMemory) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayNlpi) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayNodeselectors) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayParameters) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayPresolvers) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayPricers) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayProblem) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayPropagators) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayReaders) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplaySeparators) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplaySolution) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayFiniteSolution) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayDualSolution) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplaySolutionPool) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayStatistics) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayReoptStatistics) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayCompression) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayTransproblem) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayValue) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayVarbranchstatistics) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayLPSolutionQuality) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecHelp) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecDisplayTranssolution) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecFree) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecNewstart) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecTransform) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecConcurrentOpt) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecOptimize) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecPresolve) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecQuit) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecRead) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetDefault) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetLoad) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetSave) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetDiffsave) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetParam) | |
SCIP_DECL_DIALOGDESC (SCIPdialogDescSetParam) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecFixParam) | |
SCIP_DECL_DIALOGDESC (SCIPdialogDescFixParam) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetBranchingDirection) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetBranchingPriority) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetHeuristicsAggressive) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetHeuristicsDefault) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetHeuristicsFast) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetHeuristicsOff) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetPresolvingAggressive) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetPresolvingDefault) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetPresolvingFast) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetPresolvingOff) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetSeparatingAggressive) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetSeparatingDefault) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetSeparatingFast) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetSeparatingOff) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetEmphasisCounter) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetEmphasisCpsolver) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetEmphasisEasycip) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetEmphasisFeasibility) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetEmphasisHardlp) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetEmphasisOptimality) | |
SCIP_DECL_DIALOGEXEC (SCIPdialogExecSetLimitsObjective) | |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecWriteLp) |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecWriteMip) |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecWriteNlp) |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecWriteProblem) |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecWriteGenProblem) |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecWriteSolution) |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecWriteMIPStart) |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecWriteCommandHistory) |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecWriteFiniteSolution) |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecWriteStatistics) |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecWriteTransproblem) |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecWriteGenTransproblem) |
static | SCIP_DECL_DIALOGEXEC (SCIPdialogExecValidateSolve) |
SCIP_RETCODE | SCIPcreateRootDialog (SCIP *scip, SCIP_DIALOG **root) |
SCIP_RETCODE | SCIPincludeDialogDefault (SCIP *scip) |
static SCIP_RETCODE | addSetParamDialog (SCIP *scip, SCIP_DIALOG *menu, SCIP_PARAM *param, char *paramname) |
static SCIP_RETCODE | addFixParamDialog (SCIP *scip, SCIP_DIALOG *menu, SCIP_PARAM *param, char *paramname) |
static SCIP_RETCODE | createEmphasisSubmenu (SCIP *scip, SCIP_DIALOG *root, SCIP_DIALOG **submenu) |
SCIP_RETCODE | SCIPincludeDialogDefaultSet (SCIP *scip) |
SCIP_RETCODE | SCIPincludeDialogDefaultFix (SCIP *scip) |
|
static |
executes a menu dialog
scip | SCIP data structure |
dialog | dialog menu |
dialoghdlr | dialog handler |
nextdialog | pointer to store next dialog to execute |
Definition at line 35 of file dialog_default.c.
References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPdialogDisplayCompletions(), SCIPdialogFindEntry(), SCIPdialogGetParent(), SCIPdialoghdlrClearBuffer(), SCIPdialoghdlrGetRoot(), SCIPdialoghdlrGetWord(), SCIPdialogMessage(), and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC().
scip | SCIP data structure |
valuestr | string to parse |
error | pointer to store the error result |
Definition at line 100 of file dialog_default.c.
References FALSE, NULL, and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC().
scip | SCIP data structure |
reader | display reader which can read |
writer | display reader which can write |
Definition at line 137 of file dialog_default.c.
References NULL, SCIPdialogMessage(), SCIPgetNReaders(), SCIPgetReaders(), SCIPreaderCanRead(), SCIPreaderCanWrite(), SCIPreaderGetDesc(), SCIPreaderGetExtension(), and SCIPreaderGetName().
Referenced by SCIP_DECL_DIALOGEXEC(), and writeProblem().
|
static |
scip | SCIP data structure |
dialog | dialog menu |
dialoghdlr | dialog handler |
nextdialog | pointer to store next dialog to execute |
transformed | output the transformed problem? |
genericnames | using generic variable and constraint names? |
Definition at line 174 of file dialog_default.c.
References displayReaders(), FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_FILECREATEERROR, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIP_WRITEERROR, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrClearBuffer(), SCIPdialoghdlrGetWord(), SCIPdialogMessage(), SCIPduplicateBufferArray, SCIPfreeBufferArray, SCIPwriteOrigProblem(), SCIPwriteTransProblem(), and TRUE.
Referenced by SCIP_DECL_DIALOGEXEC().
|
static |
copy method for dialog plugins (called when SCIP copies plugins)
Definition at line 269 of file dialog_default.c.
References NULL, SCIP_CALL, SCIP_OKAY, and SCIPincludeDialogDefault().
|
static |
dialog execution method for the write LP command
Definition at line 2742 of file dialog_default.c.
References NULL, SCIP_Bool, SCIP_CALL, SCIP_FILECREATEERROR, SCIP_OKAY, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrGetRoot(), SCIPdialoghdlrGetWord(), SCIPdialogMessage(), SCIPgetStage(), SCIPwriteLP(), and TRUE.
|
static |
dialog execution method for the write MIP command
Definition at line 2797 of file dialog_default.c.
References FALSE, NULL, parseBoolValue(), SCIP_Bool, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrGetRoot(), SCIPdialoghdlrGetWord(), SCIPdialogMessage(), SCIPescapeString(), SCIPgetStage(), SCIPsnprintf(), and SCIPwriteMIP().
|
static |
dialog execution method for the write NLP command
Definition at line 2926 of file dialog_default.c.
References NULL, SCIP_Bool, SCIP_CALL, SCIP_FILECREATEERROR, SCIP_OKAY, SCIP_STAGE_SOLVED, SCIP_STAGE_SOLVING, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrGetRoot(), SCIPdialoghdlrGetWord(), SCIPdialogMessage(), SCIPgetStage(), SCIPisNLPConstructed(), SCIPwriteNLP(), and TRUE.
|
static |
dialog execution method for the write problem command
Definition at line 2987 of file dialog_default.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_PROBLEM, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrGetRoot(), SCIPdialogMessage(), SCIPgetStage(), and writeProblem().
|
static |
dialog execution method for the write generic problem command
Definition at line 3005 of file dialog_default.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_PROBLEM, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrGetRoot(), SCIPdialogMessage(), SCIPgetStage(), TRUE, and writeProblem().
|
static |
dialog execution method for the write solution command
Definition at line 3023 of file dialog_default.c.
References NULL, SCIP_Bool, SCIP_CALL, SCIP_CALL_FINALLY, SCIP_OKAY, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrClearBuffer(), SCIPdialoghdlrGetRoot(), SCIPdialoghdlrGetWord(), SCIPdialogMessage(), SCIPgetBoolParam(), SCIPinfoMessage(), SCIPprintBestSol(), SCIPprintStatus(), and TRUE.
|
static |
dialog execution method for the write mipstart command
Definition at line 3074 of file dialog_default.c.
References NULL, SCIP_Bool, SCIP_CALL, SCIP_CALL_FINALLY, SCIP_OKAY, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrClearBuffer(), SCIPdialoghdlrGetRoot(), SCIPdialoghdlrGetWord(), SCIPdialogMessage(), SCIPgetBestSol(), SCIPinfoMessage(), SCIPprintMIPStart(), and TRUE.
|
static |
dialog execution method for writing command line history
Definition at line 3131 of file dialog_default.c.
References NULL, SCIP_Bool, SCIP_CALL, SCIP_OKAY, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrClearBuffer(), SCIPdialoghdlrGetRoot(), SCIPdialoghdlrGetWord(), SCIPdialogMessage(), SCIPdialogWriteHistory(), and TRUE.
|
static |
dialog execution method for the write finitesolution command
Definition at line 3173 of file dialog_default.c.
References NULL, SCIP_Bool, SCIP_CALL, SCIP_CALL_FINALLY, SCIP_OKAY, SCIPcreateFiniteSolCopy(), SCIPdialoghdlrAddHistory(), SCIPdialoghdlrClearBuffer(), SCIPdialoghdlrGetRoot(), SCIPdialoghdlrGetWord(), SCIPdialogMessage(), SCIPfreeSol(), SCIPgetBestSol(), SCIPgetBoolParam(), SCIPgetMessagehdlr(), SCIPinfoMessage(), SCIPmessageFPrintInfo(), SCIPprintSol(), SCIPprintStatus(), and TRUE.
|
static |
dialog execution method for the write statistics command
Definition at line 3251 of file dialog_default.c.
References NULL, SCIP_Bool, SCIP_CALL, SCIP_CALL_FINALLY, SCIP_OKAY, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrClearBuffer(), SCIPdialoghdlrGetRoot(), SCIPdialoghdlrGetWord(), SCIPdialogMessage(), SCIPprintStatistics(), SCIPprintSysError(), and TRUE.
|
static |
dialog execution method for the write transproblem command
Definition at line 3295 of file dialog_default.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_TRANSFORMED, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrGetRoot(), SCIPdialogMessage(), SCIPgetStage(), TRUE, and writeProblem().
|
static |
dialog execution method for the write generic transproblem command
Definition at line 3313 of file dialog_default.c.
References FALSE, NULL, SCIP_CALL, SCIP_OKAY, SCIP_STAGE_TRANSFORMED, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrGetRoot(), SCIPdialogMessage(), SCIPgetStage(), TRUE, and writeProblem().
|
static |
dialog execution method for solution validation
Definition at line 3331 of file dialog_default.c.
References FALSE, NULL, SCIP_Bool, SCIP_CALL, SCIP_INVALID, SCIP_OKAY, SCIP_Real, SCIP_STAGE_PROBLEM, SCIP_UNKNOWN, SCIPdialoghdlrAddHistory(), SCIPdialoghdlrGetRoot(), SCIPdialoghdlrGetWord(), SCIPdialogMessage(), SCIPfeastol(), SCIPgetStage(), SCIPparseReal(), and SCIPvalidateSolve().
|
static |
if a '/' occurs in the parameter's name, adds a sub menu dialog to the given menu and inserts the parameter dialog recursively in the sub menu; if no '/' occurs in the name, adds a parameter change dialog into the given dialog menu
scip | SCIP data structure |
menu | dialog menu to insert the parameter into |
param | parameter to add a dialog for |
paramname | parameter name to parse |
Definition at line 4109 of file dialog_default.c.
References FALSE, NULL, paramname, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPaddDialogEntry(), SCIPdialogFindEntry(), SCIPdialogHasEntry(), SCIPerrorMessage, SCIPincludeDialog(), SCIPparamGetDesc(), SCIPparamIsAdvanced(), SCIPreleaseDialog(), SCIPsnprintf(), and TRUE.
Referenced by SCIPincludeDialogDefaultSet().
|
static |
if a '/' occurs in the parameter's name, adds a sub menu dialog to the given menu and inserts the parameter dialog recursively in the sub menu; if no '/' occurs in the name, adds a fix parameter dialog into the given dialog menu
scip | SCIP data structure |
menu | dialog menu to insert the parameter into |
param | parameter to add a dialog for |
paramname | parameter name to parse |
Definition at line 4220 of file dialog_default.c.
References FALSE, NULL, paramname, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPaddDialogEntry(), SCIPdialogFindEntry(), SCIPdialogHasEntry(), SCIPerrorMessage, SCIPincludeDialog(), SCIPparamGetDesc(), SCIPparamIsAdvanced(), SCIPreleaseDialog(), SCIPsnprintf(), and TRUE.
Referenced by SCIPincludeDialogDefaultFix().
|
static |
create a "emphasis" sub menu
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 4329 of file dialog_default.c.
References NULL, SCIP_CALL, SCIP_OKAY, SCIP_PLUGINNOTFOUND, SCIPaddDialogEntry(), SCIPdialogFindEntry(), SCIPdialogHasEntry(), SCIPerrorMessage, SCIPincludeDialog(), SCIPreleaseDialog(), and TRUE.
Referenced by SCIPincludeDialogDefaultSet().