SCIP-SDP
4.0.0
Main Page
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-2021 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-2021 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
#include "scip/scipshell.h"
41
43
static
44
SCIP_RETCODE
runSCIP
(
45
int
argc,
46
char
** argv
47
)
48
{
49
SCIP* scip = NULL;
50
51
SCIP_CALL( SCIPcreate(&scip) );
52
53
/* include plugins */
54
SCIP_CALL(
SCIPSDPincludeDefaultPlugins
(scip) );
55
56
/* change certain paramters: */
57
SCIP_CALL( SCIPsetIntParam(scip,
"display/verblevel"
, 5) );
58
59
/* we explicitly enable the use of a debug solution for this main SCIP instance */
60
SCIPenableDebugSol(scip);
61
62
/* run interactive shell */
63
SCIP_CALL( SCIPprocessShellArguments(scip, argc, argv,
"scip.set"
) );
64
65
/* deinitialization */
66
SCIP_CALL( SCIPfree(&scip) );
67
68
BMScheckEmptyMemory();
69
70
return
SCIP_OKAY;
71
}
72
74
int
main
(
75
int
argc,
76
char
** argv
77
)
78
{
79
SCIP_RETCODE retcode;
80
81
retcode =
runSCIP
(argc, argv);
82
if
( retcode != SCIP_OKAY )
83
{
84
SCIPprintError(retcode);
85
return
-1;
86
}
87
88
return
0;
89
}
runSCIP
static SCIP_RETCODE runSCIP(int argc, char **argv)
Definition:
main.c:44
SCIPSDPincludeDefaultPlugins
SCIP_RETCODE SCIPSDPincludeDefaultPlugins(SCIP *scip)
Definition:
scipsdpdefplugins.c:197
scipsdpdefplugins.h
default SCIP-SDP plugins
main
int main(int argc, char **argv)
Definition:
main.c:74
Generated by
1.8.11