SCIP-SDP
3.2.0
Main Page
Parameters
Files
File List
File Members
src
scipsdp
main.c
Go to the documentation of this file.
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2
/* */
3
/* This file is part of SCIPSDP - a solving framework for mixed-integer */
4
/* semidefinite programs based on SCIP. */
5
/* */
6
/* Copyright (C) 2011-2013 Discrete Optimization, TU Darmstadt */
7
/* EDOM, FAU Erlangen-Nürnberg */
8
/* 2014-2020 Discrete Optimization, TU Darmstadt */
9
/* */
10
/* */
11
/* This program is free software; you can redistribute it and/or */
12
/* modify it under the terms of the GNU Lesser General Public License */
13
/* as published by the Free Software Foundation; either version 3 */
14
/* of the License, or (at your option) any later version. */
15
/* */
16
/* This program is distributed in the hope that it will be useful, */
17
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
18
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
19
/* GNU Lesser General Public License for more details. */
20
/* */
21
/* You should have received a copy of the GNU Lesser General Public License */
22
/* along with this program; if not, write to the Free Software */
23
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.*/
24
/* */
25
/* */
26
/* Based on SCIP - Solving Constraint Integer Programs */
27
/* Copyright (C) 2002-2020 Zuse Institute Berlin */
28
/* SCIP is distributed under the terms of the SCIP Academic Licence, */
29
/* see file COPYING in the SCIP distribution. */
30
/* */
31
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
32
39
#include "
scipsdp/scipsdpdefplugins.h
"
40
42
static
43
SCIP_RETCODE
runSCIP
(
44
int
argc,
45
char
** argv
46
)
47
{
48
SCIP*
scip
= NULL;
49
50
SCIP_CALL( SCIPcreate(&scip) );
51
52
/* include plugins */
53
SCIP_CALL(
SCIPSDPincludeDefaultPlugins
(scip) );
54
55
/* change certain paramters: */
56
SCIP_CALL( SCIPsetIntParam(scip,
"display/verblevel"
, 5) );
57
58
/* we explicitly enable the use of a debug solution for this main SCIP instance */
59
SCIPenableDebugSol(scip);
60
61
/* run interactive shell */
62
SCIP_CALL( SCIPprocessShellArguments(scip, argc, argv,
"scip.set"
) );
63
64
/* deinitialization */
65
SCIP_CALL( SCIPfree(&scip) );
66
67
BMScheckEmptyMemory();
68
69
return
SCIP_OKAY;
70
}
71
73
int
main
(
74
int
argc,
75
char
** argv
76
)
77
{
78
SCIP_RETCODE retcode;
79
80
retcode =
runSCIP
(argc, argv);
81
if
( retcode != SCIP_OKAY )
82
{
83
SCIPprintError(retcode);
84
return
-1;
85
}
86
87
return
0;
88
}
runSCIP
static SCIP_RETCODE runSCIP(int argc, char **argv)
Definition:
main.c:43
scip
Definition:
objreader_sdpa.cpp:181
scipsdpdefplugins.h
default SCIP-SDP plugins
SCIPSDPincludeDefaultPlugins
SCIP_RETCODE SCIPSDPincludeDefaultPlugins(SCIP *scip)
Definition:
scipsdpdefplugins.cpp:80
main
int main(int argc, char **argv)
Definition:
main.c:73
Generated by
1.8.11