read comand line arguments
Definition in file readargs.h.
Go to the source code of this file.
Functions | |
int | getProblemName (const char *filename, char *probname, int maxsize) |
SCIP_RETCODE | readArguments (int argc, char **argv, const char **filename, const char **settingsname, SCIP_Real *timelimit, SCIP_Real *memlimit, SCIP_Longint *nodelimit, int *dispfreq) |
int getProblemName | ( | const char * | filename, |
char * | probname, | ||
int | maxsize ) |
get problem name
Returns 0 if maxsize is not sufficient and 1 otherwise.
filename | file name |
probname | name of problem (output) |
maxsize | max length of problem name |
Definition at line 37 of file readargs.c.
References assert(), i, and result.
Referenced by solveClassification(), and solveMinIISC().
SCIP_RETCODE readArguments | ( | int | argc, |
char ** | argv, | ||
const char ** | filename, | ||
const char ** | settingsname, | ||
SCIP_Real * | timelimit, | ||
SCIP_Real * | memlimit, | ||
SCIP_Longint * | nodelimit, | ||
int * | dispfreq ) |
read comand line arguments
argc | number of shell parameters |
argv | array with shell parameters |
filename | file name from arguments |
settingsname | name of settings file |
timelimit | time limit read from arguments |
memlimit | memory limit read from arguments |
nodelimit | node limit read from arguments |
dispfreq | display frequency |
Definition at line 95 of file readargs.c.
References assert(), i, NULL, SCIP_ERROR, SCIP_INVALIDDATA, SCIP_Longint, SCIP_LONGINT_MAX, SCIP_MAXSTRLEN, SCIP_OKAY, SCIP_Real, and SCIPsnprintf().
Referenced by main().