SCIP-SDP  4.0.0
solveonevarsdp.h
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 
38 /*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
39 
40 #ifndef __SCIP_SOLVEONEVARSDP_H__
41 #define __SCIP_SOLVEONEVARSDP_H__
42 
43 #include "scip/def.h"
44 #include "blockmemshell/memory.h"
45 #include "scip/type_retcode.h"
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
52 SCIP_EXPORT
53 SCIP_RETCODE SCIPsolveOneVarSDP(
54  BMS_BUFMEM* bufmem,
55  SCIP_Real obj,
56  SCIP_Real lb,
57  SCIP_Real ub,
58  int blocksize,
59  int sdpconstnnonz,
60  int* sdpconstrow,
61  int* sdpconstcol,
62  SCIP_Real* sdpconstval,
63  int sdpnnonz,
64  int* sdprow,
65  int* sdpcol,
66  SCIP_Real* sdpval,
67  SCIP_Real infinity,
68  SCIP_Real feastol,
69  SCIP_Real* objval,
70  SCIP_Real* optval
71  );
72 
74 SCIP_EXPORT
75 SCIP_RETCODE SCIPsolveOneVarSDPDense(
76  BMS_BUFMEM* bufmem,
77  SCIP_Real obj,
78  SCIP_Real lb,
79  SCIP_Real ub,
80  int blocksize,
81  SCIP_Real* fullconstmatrix,
82  int sdpnnonz,
83  int* sdprow,
84  int* sdpcol,
85  SCIP_Real* sdpval,
86  SCIP_Real infinity,
87  SCIP_Real feastol,
88  SCIP_Real* objval,
89  SCIP_Real* optval
90  );
91 
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 #endif
SCIP_EXPORT SCIP_RETCODE SCIPsolveOneVarSDP(BMS_BUFMEM *bufmem, SCIP_Real obj, SCIP_Real lb, SCIP_Real ub, int blocksize, int sdpconstnnonz, int *sdpconstrow, int *sdpconstcol, SCIP_Real *sdpconstval, int sdpnnonz, int *sdprow, int *sdpcol, SCIP_Real *sdpval, SCIP_Real infinity, SCIP_Real feastol, SCIP_Real *objval, SCIP_Real *optval)
SCIP_EXPORT SCIP_RETCODE SCIPsolveOneVarSDPDense(BMS_BUFMEM *bufmem, SCIP_Real obj, SCIP_Real lb, SCIP_Real ub, int blocksize, SCIP_Real *fullconstmatrix, int sdpnnonz, int *sdprow, int *sdpcol, SCIP_Real *sdpval, SCIP_Real infinity, SCIP_Real feastol, SCIP_Real *objval, SCIP_Real *optval)