readargs.c File Reference
Detailed Description
read comand line arguments
Definition in file readargs.c.
#include "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) |
Function Documentation
◆ getProblemName()
int getProblemName | ( | const char * | filename, |
char * | probname, | ||
int | maxsize | ||
) |
get problem name
Returns 0 if maxsize is not sufficient and 1 otherwise.
- Parameters
-
filename file name probname name of problem (output) maxsize max length of problem name
Definition at line 37 of file readargs.c.
Referenced by solveClassification(), and solveMinIISC().
◆ readArguments()
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
- Parameters
-
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 NULL, SCIP_ERROR, SCIP_INVALIDDATA, SCIP_LONGINT_MAX, SCIP_MAXSTRLEN, SCIP_OKAY, and SCIPsnprintf().
Referenced by main().