47 SCIPinfoMessage(scip,
NULL,
"user parameter file <%s> not found - using default parameters\n", filename);
114 if ( bestsol ==
NULL )
152 const char* defaultsetname
155 char* probname =
NULL;
156 char* settingsname =
NULL;
157 char* logname =
NULL;
164 const char* dualrefstring;
165 const char* primalrefstring;
176 primalrefstring =
NULL;
177 dualrefstring =
NULL;
179 for( i = 1; i < argc; ++i )
181 if( strcmp(argv[i],
"-l") == 0 )
188 printf(
"missing log filename after parameter '-l'\n");
192 else if( strcmp(argv[i],
"-q") == 0 )
194 else if( strcmp(argv[i],
"-v") == 0 )
196 else if( strcmp(argv[i],
"--version") == 0 )
198 else if( strcmp(argv[i],
"-s") == 0 )
202 settingsname = argv[i];
205 printf(
"missing settings filename after parameter '-s'\n");
209 else if( strcmp(argv[i],
"-f") == 0 )
216 printf(
"missing problem filename after parameter '-f'\n");
220 else if( strcmp(argv[i],
"-c") == 0 )
230 printf(
"missing command line after parameter '-c'\n");
234 else if( strcmp(argv[i],
"-b") == 0 )
244 printf(
"cannot read command batch file <%s>\n", argv[i]);
254 (void)
SCIPfgets(buffer, (
int)
sizeof(buffer), file);
255 if( buffer[0] !=
'\0' )
266 printf(
"missing command batch filename after parameter '-b'\n");
270 else if( strcmp(argv[i],
"-o") == 0 )
274 printf(
"wrong usage of reference objective parameter '-o': -o <primref> <dualref>\n");
280 primalrefstring = argv[i + 1];
281 dualrefstring = argv[i+2];
287 printf(
"invalid parameter <%s>\n", argv[i]);
292 if( interactive && probname !=
NULL )
294 printf(
"cannot mix batch mode '-c' and '-b' with file mode '-f'\n");
309 if( logname !=
NULL )
335 if( settingsname !=
NULL )
339 else if( defaultsetname !=
NULL )
348 if( probname !=
NULL )
352 if( primalrefstring !=
NULL && dualrefstring !=
NULL )
355 if( !
SCIPparseReal(scip, primalrefstring, &primalreference, &endptr) ||
356 !
SCIPparseReal(scip, dualrefstring, &dualreference, &endptr) )
358 printf(
"error parsing primal and dual reference values for validation: %s %s\n", primalrefstring, dualrefstring);
362 validatesolve =
TRUE;
380 printf(
"\nsyntax: %s [-l <logfile>] [-q] [-s <settings>] [-f <problem>] [-b <batchfile>] [-c \"command\"]\n" 381 " -v, --version : print version and build options\n" 382 " -l <logfile> : copy output into log file\n" 383 " -q : suppress screen messages\n" 384 " -s <settings> : load parameter settings (.set) file\n" 385 " -f <problem> : load and solve problem file\n" 386 " -o <primref> <dualref> : pass primal and dual objective reference values for validation at the end of the solve" 387 " -b <batchfile>: load and execute dialog command batch file (can be used multiple times)\n" 388 " -c \"command\" : execute single line of dialog commands (can be used multiple times)\n\n",
401 const char* defaultsetname
SCIP_RETCODE SCIPprintBestSol(SCIP *scip, FILE *file, SCIP_Bool printzeros)
#define BMScheckEmptyMemory()
SCIP_Real SCIPfeastol(SCIP *scip)
SCIP_Bool SCIPparseReal(SCIP *scip, const char *str, SCIP_Real *value, char **endptr)
#define SCIP_CALL_FINALLY(x, y)
static SCIP_RETCODE fromCommandLine(SCIP *scip, const char *filename)
void SCIPprintExternalCodes(SCIP *scip, FILE *file)
enum SCIP_Retcode SCIP_RETCODE
static SCIP_RETCODE readParams(SCIP *scip, const char *filename)
SCIP_RETCODE SCIPcreate(SCIP **scip)
SCIP_RETCODE SCIPprintStatistics(SCIP *scip, FILE *file)
void SCIPinfoMessage(SCIP *scip, FILE *file, const char *formatstr,...)
SCIP_Bool SCIPfileExists(const char *filename)
SCIP_FILE * SCIPfopen(const char *path, const char *mode)
SCIP_RETCODE SCIPcreateSolCopy(SCIP *scip, SCIP_SOL **sol, SCIP_SOL *sourcesol)
SCIP_RETCODE SCIPsolve(SCIP *scip)
SCIP command line interface.
SCIP_RETCODE SCIPreadProb(SCIP *scip, const char *filename, const char *extension)
int SCIPfeof(SCIP_FILE *stream)
struct SCIP_File SCIP_FILE
char * SCIPfgets(char *s, int size, SCIP_FILE *stream)
SCIP_RETCODE SCIPgetBoolParam(SCIP *scip, const char *name, SCIP_Bool *value)
SCIP_RETCODE SCIPrunShell(int argc, char **argv, const char *defaultsetname)
SCIP_RETCODE SCIPincludeDefaultPlugins(SCIP *scip)
void SCIPprintVersion(SCIP *scip, FILE *file)
void SCIPprintSysError(const char *message)
SCIP_RETCODE SCIPvalidateSolve(SCIP *scip, SCIP_Real primalreference, SCIP_Real dualreference, SCIP_Real reftol, SCIP_Bool quiet, SCIP_Bool *feasible, SCIP_Bool *primalboundcheck, SCIP_Bool *dualboundcheck)
void SCIPsetMessagehdlrQuiet(SCIP *scip, SCIP_Bool quiet)
SCIP_RETCODE SCIPfreeSol(SCIP *scip, SCIP_SOL **sol)
SCIP_RETCODE SCIPretransformSol(SCIP *scip, SCIP_SOL *sol)
SCIP_RETCODE SCIPprocessShellArguments(SCIP *scip, int argc, char **argv, const char *defaultsetname)
SCIP_RETCODE SCIPstartInteraction(SCIP *scip)
SCIP_SOL * SCIPgetBestSol(SCIP *scip)
void SCIPsetMessagehdlrLogfile(SCIP *scip, const char *filename)
SCIP_RETCODE SCIPreadParams(SCIP *scip, const char *filename)
int SCIPfclose(SCIP_FILE *fp)
void SCIPprintBuildOptions(SCIP *scip, FILE *file)
static SCIP_RETCODE interactive(SCIP *scip)
SCIP_RETCODE SCIPaddDialogInputLine(SCIP *scip, const char *inputline)
SCIP_RETCODE SCIPfree(SCIP **scip)
void SCIPenableDebugSol(SCIP *scip)
SCIP_RETCODE SCIPprintSol(SCIP *scip, SCIP_SOL *sol, FILE *file, SCIP_Bool printzeros)