Toggle navigation
SCIP Optimization Suite
SCIP
SoPlex
ZIMPL
UG
GCG
Documentation
SCIP 9.2.0
SCIP 8.1.0
SCIP 7.0.3
SCIP 6.0.2
SCIP 5.0.1
SCIP 4.0.1
SCIP 3.2.1
SCIP
Solving Constraint Integer Programs
src/cppmain.cpp
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-2017 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 email to scip@zib.de. */
13
/* */
14
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15
16
/**@file cppmain.cpp
17
* @brief main file for C++ compilation
18
* @author Tobias Achterberg
19
*/
20
21
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
22
23
#include <stdio.h>
24
25
#include "
scip/scip.h
"
26
#include "
scip/scipshell.h
"
27
28
/** main method starting SCIP */
29
int
main
(
30
int
argc,
/**< number of arguments from the shell */
31
char
** argv
/**< array of shell arguments */
32
)
33
{
34
SCIP_RETCODE
retcode;
35
36
/* run interactive shell */
37
retcode =
SCIPrunShell
(argc, argv,
"scip.set"
);
38
39
/* evaluate retrun code of the SCIP process */
40
if
( retcode !=
SCIP_OKAY
)
41
{
42
/* write error back trace */
43
SCIPprintError
(retcode);
44
return
-1;
45
}
46
47
return
0;
48
}
SCIP_RETCODE
enum SCIP_Retcode SCIP_RETCODE
Definition:
type_retcode.h:53
scipshell.h
SCIP command line interface.
SCIPrunShell
SCIP_RETCODE SCIPrunShell(int argc, char **argv, const char *defaultsetname)
Definition:
scipshell.c:354
SCIP_OKAY
Definition:
type_retcode.h:33
main
int main(int argc, char **argv)
Definition:
cppmain.cpp:29
SCIPprintError
void SCIPprintError(SCIP_RETCODE retcode)
Definition:
scip.c:670
scip.h
SCIP callable library.