Scippy

SCIP

Solving Constraint Integer Programs

readargs.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2022 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not visit scipopt.org. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file readargs.h
17  * @brief read comand line arguments
18  * @author Marc Pfetsch
19  */
20 
21 #ifndef __READARGS_H__
22 #define __READARGS_H__
23 
24 #include <scip/scip.h>
25 #include <string.h>
26 
27 /** get problem name
28  *
29  * Returns 0 if maxsize is not sufficient and 1 otherwise.
30  */
31 int getProblemName(
32  const char* filename, /**< file name */
33  char* probname, /**< name of problem (output) */
34  int maxsize /**< max length of problem name */
35  );
36 
37 /** read comand line arguments */
39  int argc, /**< number of shell parameters */
40  char** argv, /**< array with shell parameters */
41  const char** filename, /**< file name from arguments */
42  const char** settingsname, /**< name of settings file */
43  SCIP_Real* timelimit, /**< time limit read from arguments */
44  SCIP_Real* memlimit, /**< memory limit read from arguments */
45  SCIP_Longint* nodelimit, /**< node limit read from arguments */
46  int* dispfreq /**< display frequency */
47  );
48 
49 #endif
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:54
SCIP_RETCODE readArguments(int argc, char **argv, const char **filename, const char **settingsname, SCIP_Real *timelimit, SCIP_Real *memlimit, SCIP_Longint *nodelimit, int *dispfreq)
Definition: readargs.c:86
#define SCIP_Real
Definition: def.h:177
int getProblemName(const char *filename, char *probname, int maxsize)
Definition: readargs.c:28
#define SCIP_Longint
Definition: def.h:162
SCIP callable library.