SCIP Doxygen Documentation
 
Loading...
Searching...
No Matches
readargs.c File Reference

Detailed Description

read comand line arguments

Author
Marc Pfetsch

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
filenamefile name
probnamename of problem (output)
maxsizemax length of problem name

Definition at line 37 of file readargs.c.

References assert(), i, and result.

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
argcnumber of shell parameters
argvarray with shell parameters
filenamefile name from arguments
settingsnamename of settings file
timelimittime limit read from arguments
memlimitmemory limit read from arguments
nodelimitnode limit read from arguments
dispfreqdisplay 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().