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-2019 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 scip.zib.de. */
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 extern
32 int getProblemName(
33  const char* filename, /**< file name */
34  char* probname, /**< name of problem (output) */
35  int maxsize /**< max length of problem name */
36  );
37 
38 /** read comand line arguments */
39 extern
41  int argc, /**< number of shell parameters */
42  char** argv, /**< array with shell parameters */
43  const char** filename, /**< file name from arguments */
44  const char** settingsname, /**< name of settings file */
45  SCIP_Real* timelimit, /**< time limit read from arguments */
46  SCIP_Real* memlimit, /**< memory limit read from arguments */
47  SCIP_Longint* nodelimit, /**< node limit read from arguments */
48  int* dispfreq /**< display frequency */
49  );
50 
51 #endif
enum SCIP_Retcode SCIP_RETCODE
Definition: type_retcode.h:53
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:157
int getProblemName(const char *filename, char *probname, int maxsize)
Definition: readargs.c:28
#define SCIP_Longint
Definition: def.h:142
SCIP callable library.