SCIP-SDP  3.1.1
 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 programs based on SCIP. */
5 /* */
6 /* Copyright (C) 2011-2013 Discrete Optimization, TU Darmstadt */
7 /* EDOM, FAU Erlangen-Nürnberg */
8 /* 2014-2018 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-2018 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 
84 EXTERN
86  int i,
87  int j
88  );
89 
96 EXTERN
97 SCIP_RETCODE SCIPconsSdpGetData(
98  SCIP* scip,
99  SCIP_CONS* cons,
100  int* nvars,
101  int* nnonz,
102  int* blocksize,
103  int* arraylength,
104  int* nvarnonz,
106  int** col,
107  int** row,
108  SCIP_Real** val,
109  SCIP_VAR** vars,
110  int* constnnonz,
112  int* constcol,
113  int* constrow,
114  SCIP_Real* constval
115  );
116 
121 EXTERN
122 SCIP_RETCODE SCIPconsSdpGetNNonz(
123  SCIP* scip,
124  SCIP_CONS* cons,
125  int* nnonz,
126  int* constnnonz
127  );
128 
130 EXTERN
132  SCIP* scip,
133  SCIP_CONS* cons
134  );
135 
137 EXTERN
138 SCIP_RETCODE SCIPconsSdpGetFullAj(
139  SCIP* scip,
140  SCIP_CONS* cons,
141  int j,
142  SCIP_Real* Aj
143  );
144 
146 EXTERN
147 SCIP_RETCODE SCIPconsSdpGetFullConstMatrix(
148  SCIP* scip,
149  SCIP_CONS* cons,
150  SCIP_Real* mat
151  );
152 
154 EXTERN
156  SCIP* scip,
157  SCIP_CONS* cons,
158  SCIP_Real* mat
159  );
160 
162 EXTERN
163 SCIP_RETCODE SCIPconsSdpCheckSdpCons(
164  SCIP* scip,
165  SCIP_CONS* cons,
166  SCIP_SOL* sol,
167  SCIP_Bool checkintegrality,
168  SCIP_Bool checklprows,
169  SCIP_Bool printreason,
170  SCIP_RESULT* result
171  );
172 
183 EXTERN
184 SCIP_RETCODE SCIPconsSdpGuessInitialPoint(
185  SCIP* scip,
186  SCIP_CONS* cons,
187  SCIP_Real* lambdastar
188  );
189 
191 EXTERN
193  SCIP* scip,
194  SCIP_CONS* cons
195  );
196 
198 EXTERN
199 SCIP_Real SCIPconsSdpGetMaxSdpCoef(
200  SCIP* scip,
201  SCIP_CONS* cons
202  );
203 
209 EXTERN
211  SCIP* scip,
212  SCIP_CONS* cons
213  );
214 
219 EXTERN
221  SCIP* scip,
222  SCIP_CONS* cons,
223  SCIP_SOL* sol,
224  int* length,
226  int* row,
227  int* col,
228  SCIP_Real* val
229  );
230 
231 #ifdef __cplusplus
232 }
233 #endif
234 
235 #endif
EXTERN SCIP_RETCODE SCIPconsSdpGetFullAj(SCIP *scip, SCIP_CONS *cons, int j, SCIP_Real *Aj)
Definition: cons_sdp.c:2656
EXTERN SCIP_RETCODE SCIPconsSdpGetFullConstMatrix(SCIP *scip, SCIP_CONS *cons, SCIP_Real *mat)
Definition: cons_sdp.c:2691
EXTERN SCIP_Real SCIPconsSdpGetMaxSdpCoef(SCIP *scip, SCIP_CONS *cons)
Definition: cons_sdp.c:2876
EXTERN SCIP_RETCODE SCIPincludeConshdlrSdp(SCIP *scip)
Definition: cons_sdp.c:2448
EXTERN SCIP_Real SCIPconsSdpGetMaxConstEntry(SCIP *scip, SCIP_CONS *cons)
Definition: cons_sdp.c:2860
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:2518
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:3006
EXTERN SCIP_RETCODE SCIPconsSdpGetLowerTriangConstMatrix(SCIP *scip, SCIP_CONS *cons, SCIP_Real *mat)
Definition: cons_sdp.c:2725
EXTERN SCIP_RETCODE SCIPconsSdpComputeSparseSdpMatrix(SCIP *scip, SCIP_CONS *cons, SCIP_SOL *sol, int *length, int *row, int *col, SCIP_Real *val)
Definition: cons_sdp.c:2939
EXTERN SCIP_RETCODE SCIPconsSdpGuessInitialPoint(SCIP *scip, SCIP_CONS *cons, SCIP_Real *lambdastar)
Definition: cons_sdp.c:2764
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:341
EXTERN SCIP_RETCODE SCIPconsSdpGetNNonz(SCIP *scip, SCIP_CONS *cons, int *nnonz, int *constnnonz)
Definition: cons_sdp.c:2614
EXTERN int SCIPconsSdpComputeUbSparseSdpMatrixLength(SCIP *scip, SCIP_CONS *cons)
Definition: cons_sdp.c:2910
EXTERN int SCIPconsSdpCompLowerTriangPos(int i, int j)
Definition: cons_sdp.c:2501
char name[SCIP_MAXSTRLEN]
EXTERN int SCIPconsSdpGetBlocksize(SCIP *scip, SCIP_CONS *cons)
Definition: cons_sdp.c:2639