Scippy

SCIP

Solving Constraint Integer Programs

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 28 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
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 86 of file readargs.c.

References NULL, SCIP_ERROR, SCIP_INVALIDDATA, SCIP_LONGINT_MAX, SCIP_MAXSTRLEN, SCIP_OKAY, and SCIPsnprintf().

Referenced by main().