39 #include "scip/dialog_default.h"
47 SCIPdialogMessage(scip, NULL,
"Not available in the master problem\n");
49 *nextdialog = SCIPdialogGetParent(dialog);
60 SCIP_CALL( SCIPincludeDialog(scip, root,
61 NULL, SCIPdialogExecMenuLazy, NULL, NULL,
62 "GCG (master)",
"GCG's master main menu", TRUE, NULL) );
64 SCIP_CALL( SCIPsetRootDialog(scip, *root) );
65 SCIP_CALL( SCIPreleaseDialog(scip, root) );
66 *root = SCIPgetRootDialog(scip);
81 root = SCIPgetRootDialog(scip);
88 if( !SCIPdialogHasEntry(root,
"change") )
90 SCIP_CALL( SCIPincludeDialog(scip, &dialog,
92 GCGmasterDialogExecNotAvailable, NULL, NULL,
93 "change",
"(not available in master problem)", FALSE, NULL) );
94 SCIP_CALL( SCIPaddDialogEntry(scip, root, dialog) );
95 SCIP_CALL( SCIPreleaseDialog(scip, &dialog) );
99 if( !SCIPdialogHasEntry(root,
"free") )
101 SCIP_CALL( SCIPincludeDialog(scip, &dialog,
103 GCGmasterDialogExecNotAvailable, NULL, NULL,
104 "free",
"(not available in master problem)", FALSE, NULL) );
105 SCIP_CALL( SCIPaddDialogEntry(scip, root, dialog) );
106 SCIP_CALL( SCIPreleaseDialog(scip, &dialog) );
110 if( !SCIPdialogHasEntry(root,
"newstart") )
112 SCIP_CALL( SCIPincludeDialog(scip, &dialog,
114 GCGmasterDialogExecNotAvailable, NULL, NULL,
115 "newstart",
"(not available in master problem)", FALSE, NULL) );
116 SCIP_CALL( SCIPaddDialogEntry(scip, root, dialog) );
117 SCIP_CALL( SCIPreleaseDialog(scip, &dialog) );
121 if( !SCIPdialogHasEntry(root,
"optimize") )
123 SCIP_CALL( SCIPincludeDialog(scip, &dialog,
125 GCGmasterDialogExecNotAvailable, NULL, NULL,
126 "optimize",
"(not available in master problem)", FALSE, NULL) );
127 SCIP_CALL( SCIPaddDialogEntry(scip, root, dialog) );
128 SCIP_CALL( SCIPreleaseDialog(scip, &dialog) );
132 if( !SCIPdialogHasEntry(root,
"presolve") )
134 SCIP_CALL( SCIPincludeDialog(scip, &dialog,
136 GCGmasterDialogExecNotAvailable, NULL, NULL,
137 "presolve",
"(not available in master problem)", FALSE, NULL) );
138 SCIP_CALL( SCIPaddDialogEntry(scip, root, dialog) );
139 SCIP_CALL( SCIPreleaseDialog(scip, &dialog) );
143 if( !SCIPdialogHasEntry(root,
"read") )
145 SCIP_CALL( SCIPincludeDialog(scip, &dialog,
147 GCGmasterDialogExecNotAvailable, NULL, NULL,
148 "read",
"(not available in master problem)", FALSE, NULL) );
149 SCIP_CALL( SCIPaddDialogEntry(scip, root, dialog) );
150 SCIP_CALL( SCIPreleaseDialog(scip, &dialog) );
154 if( !SCIPdialogHasEntry(root,
"quit") )
156 SCIP_CALL( SCIPincludeDialog(scip, &dialog,
158 SCIPdialogExecQuit, NULL, NULL,
159 "quit",
"switch back to the original problem's dialog", FALSE, NULL) );
160 SCIP_CALL( SCIPaddDialogEntry(scip, root, dialog) );
161 SCIP_CALL( SCIPreleaseDialog(scip, &dialog) );
165 if( !SCIPdialogHasEntry(root,
"validatesolve") )
167 SCIP_CALL( SCIPincludeDialog(scip, &dialog,
169 GCGmasterDialogExecNotAvailable, NULL, NULL,
170 "validatesolve",
"(not available in master problem)", FALSE, NULL) );
171 SCIP_CALL( SCIPaddDialogEntry(scip, root, dialog) );
172 SCIP_CALL( SCIPreleaseDialog(scip, &dialog) );
176 if( !SCIPdialogHasEntry(root,
"concurrentopt") )
178 SCIP_CALL( SCIPincludeDialog(scip, &dialog,
180 GCGmasterDialogExecNotAvailable, NULL, NULL,
181 "concurrentopt",
"(not available in master problem)", FALSE, NULL) );
182 SCIP_CALL( SCIPaddDialogEntry(scip, root, dialog) );
183 SCIP_CALL( SCIPreleaseDialog(scip, &dialog) );
186 SCIP_CALL( SCIPincludeDialogDefaultBasic(scip) );