SCIP-SDP  2.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cons_sdp.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 programms based on SCIP. */
5 /* */
6 /* Copyright (C) 2011-2013 Discrete Optimization, TU Darmstadt */
7 /* EDOM, FAU Erlangen-Nürnberg */
8 /* 2014-2016 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-2016 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 
45 #ifndef __SCIP_CONSHDLR_SDP_H__
46 #define __SCIP_CONSHDLR_SDP_H__
47 
48 #include "scip/scip.h"
49 
50 
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 
56 EXTERN
57 SCIP_RETCODE SCIPincludeConshdlrSdp(
58  SCIP* scip
59  );
60 
62 EXTERN
63 SCIP_RETCODE SCIPcreateConsSdp(
64  SCIP* scip,
65  SCIP_CONS** cons,
66  const char* name,
67  int nvars,
68  int nnonz,
69  int blocksize,
70  int* nvarnonz,
71  int** col,
72  int** row,
73  SCIP_Real** val,
74  SCIP_VAR** vars,
75  int constnnonz,
76  int* constcol,
77  int* constrow,
78  SCIP_Real* constval
79  );
80 
87 EXTERN
88 SCIP_RETCODE SCIPconsSdpGetData(
89  SCIP* scip,
90  SCIP_CONS* cons,
91  int* nvars,
92  int* nnonz,
93  int* blocksize,
94  int* arraylength,
95  int* nvarnonz,
97  int** col,
98  int** row,
99  SCIP_Real** val,
100  SCIP_VAR** vars,
101  int* constnnonz,
103  int* constcol,
104  int* constrow,
105  SCIP_Real* constval
106  );
107 
112 EXTERN
113 SCIP_RETCODE SCIPconsSdpGetNNonz(
114  SCIP* scip,
115  SCIP_CONS* cons,
116  int* nnonz,
117  int* constnnonz
118  );
119 
121 EXTERN
122 SCIP_RETCODE SCIPconsSdpGetFullAj(
123  SCIP* scip,
124  SCIP_CONS* cons,
125  int j,
126  SCIP_Real* Aj
127  );
128 
130 EXTERN
131 SCIP_RETCODE SCIPconsSdpGetFullConstMatrix(
132  SCIP* scip,
133  SCIP_CONS* cons,
134  SCIP_Real* mat
135  );
136 
138 EXTERN
140  SCIP* scip,
141  SCIP_CONS* cons,
142  SCIP_Real* mat
143  );
144 
146 EXTERN
147 SCIP_RETCODE SCIPconsSdpCheckSdpCons(
148  SCIP* scip,
149  SCIP_CONS* cons,
150  SCIP_SOL* sol,
151  SCIP_Bool checkintegrality,
152  SCIP_Bool checklprows,
153  SCIP_Bool printreason,
154  SCIP_RESULT* result
155  );
156 
167 EXTERN
168 SCIP_RETCODE SCIPconsSdpGuessInitialPoint(
169  SCIP* scip,
170  SCIP_CONS* cons,
171  SCIP_Real* lambdastar
172  );
173 
174 #ifdef __cplusplus
175 }
176 #endif
177 
178 #endif
EXTERN SCIP_RETCODE SCIPconsSdpGetFullAj(SCIP *scip, SCIP_CONS *cons, int j, SCIP_Real *Aj)
Definition: cons_sdp.c:2440
EXTERN SCIP_RETCODE SCIPconsSdpGetFullConstMatrix(SCIP *scip, SCIP_CONS *cons, SCIP_Real *mat)
Definition: cons_sdp.c:2475
EXTERN SCIP_RETCODE SCIPincludeConshdlrSdp(SCIP *scip)
Definition: cons_sdp.c:2270
EXTERN SCIP_RETCODE SCIPconsSdpGetData(SCIP *scip, SCIP_CONS *cons, int *nvars, int *nnonz, int *blocksize, int *arraylength, int *nvarnonz, int **col, int **row, SCIP_Real **val, SCIP_VAR **vars, int *constnnonz, int *constcol, int *constrow, SCIP_Real *constval)
Definition: cons_sdp.c:2319
EXTERN SCIP_RETCODE SCIPcreateConsSdp(SCIP *scip, SCIP_CONS **cons, const char *name, int nvars, int nnonz, int blocksize, int *nvarnonz, int **col, int **row, SCIP_Real **val, SCIP_VAR **vars, int constnnonz, int *constcol, int *constrow, SCIP_Real *constval)
Definition: cons_sdp.c:2634
EXTERN SCIP_RETCODE SCIPconsSdpGetLowerTriangConstMatrix(SCIP *scip, SCIP_CONS *cons, SCIP_Real *mat)
Definition: cons_sdp.c:2509
EXTERN SCIP_RETCODE SCIPconsSdpGuessInitialPoint(SCIP *scip, SCIP_CONS *cons, SCIP_Real *lambdastar)
Definition: cons_sdp.c:2548
EXTERN SCIP_RETCODE SCIPconsSdpCheckSdpCons(SCIP *scip, SCIP_CONS *cons, SCIP_SOL *sol, SCIP_Bool checkintegrality, SCIP_Bool checklprows, SCIP_Bool printreason, SCIP_RESULT *result)
Definition: cons_sdp.c:357
EXTERN SCIP_RETCODE SCIPconsSdpGetNNonz(SCIP *scip, SCIP_CONS *cons, int *nnonz, int *constnnonz)
Definition: cons_sdp.c:2415