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;
172 for( i = 1; i < argc; ++i )
174 if( strcmp(argv[i],
"-l") == 0 )
181 printf(
"missing log filename after parameter '-l'\n");
185 else if( strcmp(argv[i],
"-q") == 0 )
187 else if( strcmp(argv[i],
"-v") == 0 )
189 else if( strcmp(argv[i],
"--version") == 0 )
191 else if( strcmp(argv[i],
"-s") == 0 )
195 settingsname = argv[i];
198 printf(
"missing settings filename after parameter '-s'\n");
202 else if( strcmp(argv[i],
"-f") == 0 )
209 printf(
"missing problem filename after parameter '-f'\n");
213 else if( strcmp(argv[i],
"-c") == 0 )
223 printf(
"missing command line after parameter '-c'\n");
227 else if( strcmp(argv[i],
"-b") == 0 )
237 printf(
"cannot read command batch file <%s>\n", argv[i]);
247 (void)
SCIPfgets(buffer, (
int)
sizeof(buffer), file);
248 if( buffer[0] !=
'\0' )
259 printf(
"missing command batch filename after parameter '-b'\n");
265 printf(
"invalid parameter <%s>\n", argv[i]);
269 if( interactive && probname !=
NULL )
271 printf(
"cannot mix batch mode '-c' and '-b' with file mode '-f'\n");
286 if( logname !=
NULL )
312 if( settingsname !=
NULL )
316 else if( defaultsetname !=
NULL )
325 if( probname !=
NULL )
337 printf(
"\nsyntax: %s [-l <logfile>] [-q] [-s <settings>] [-f <problem>] [-b <batchfile>] [-c \"command\"]\n" 338 " -v, --version : print version and build options\n" 339 " -l <logfile> : copy output into log file\n" 340 " -q : suppress screen messages\n" 341 " -s <settings> : load parameter settings (.set) file\n" 342 " -f <problem> : load and solve problem file\n" 343 " -b <batchfile>: load and execute dialog command batch file (can be used multiple times)\n" 344 " -c \"command\" : execute single line of dialog commands (can be used multiple times)\n\n",
357 const char* defaultsetname
SCIP_RETCODE SCIPprintBestSol(SCIP *scip, FILE *file, SCIP_Bool printzeros)
#define BMScheckEmptyMemory()
#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)
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)