SCIP-SDP  3.2.0
SdpVarmapper.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-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 
38 #ifndef __SDPVARMAPPER_H__
39 #define __SDPVARMAPPER_H__
40 
41 #include "scip/scip.h"
42 #include "scip/type_misc.h" /* for SCIP Hashmap */
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
48 typedef struct Sdpvarmapper SdpVarmapper;
49 
51 SCIP_EXPORT
52 SCIP_RETCODE SCIPsdpVarmapperCreate(
53  SCIP* scip,
54  SdpVarmapper** varmapper,
55  int size
56  );
57 
59 SCIP_EXPORT
60 SCIP_RETCODE SCIPsdpVarmapperFree(
61  SCIP* scip,
62  SdpVarmapper** varmapper
63  );
64 
66 SCIP_EXPORT
67 SCIP_RETCODE SCIPsdpVarmapperAddVars(
68  SCIP* scip,
69  SdpVarmapper* varmapper,
70  int nvars,
71  SCIP_VAR** vars
72  );
73 
75 SCIP_EXPORT
76 SCIP_RETCODE SCIPsdpVarmapperInsertVar(
77  SCIP* scip,
78  SdpVarmapper* varmapper,
79  SCIP_VAR* var,
80  int pos
81  );
82 
84 SCIP_EXPORT
86  SdpVarmapper* varmapper
87  );
88 
90 SCIP_EXPORT
92  SdpVarmapper* varmapper,
93  SCIP_VAR* var
94  );
95 
97 SCIP_EXPORT
99  SdpVarmapper* varmapper,
100  SCIP_VAR* var
101  );
102 
104 SCIP_EXPORT
106  SdpVarmapper* varmapper,
107  int ind
108  );
109 
111 SCIP_EXPORT
112 SCIP_RETCODE SCIPsdpVarmapperRemoveSdpIndex(
113  SCIP* scip,
114  SdpVarmapper* varmapper,
115  int ind
116  );
117 
119 SCIP_EXPORT
120 SCIP_RETCODE SCIPsdpVarmapperTransform(
121  SCIP* scip,
122  SdpVarmapper* varmapper
123  );
124 
126 SCIP_EXPORT
127 SCIP_RETCODE SCIPsdpVarmapperClone(
128  SCIP* scip,
129  SdpVarmapper* oldmapper,
130  SdpVarmapper* newmapper
131  );
132 
133 #ifdef __cplusplus
134 }
135 #endif
136 
137 #endif
SCIP_EXPORT SCIP_Bool SCIPsdpVarmapperExistsSCIPvar(SdpVarmapper *varmapper, SCIP_VAR *var)
Definition: SdpVarmapper.c:225
SCIP_EXPORT int SCIPsdpVarmapperGetSdpIndex(SdpVarmapper *varmapper, SCIP_VAR *var)
Definition: SdpVarmapper.c:237
SCIP_EXPORT int SCIPsdpVarmapperGetNVars(SdpVarmapper *varmapper)
Definition: SdpVarmapper.c:215
SCIP_EXPORT SCIP_RETCODE SCIPsdpVarmapperAddVars(SCIP *scip, SdpVarmapper *varmapper, int nvars, SCIP_VAR **vars)
Definition: SdpVarmapper.c:108
SCIP_EXPORT SCIP_RETCODE SCIPsdpVarmapperRemoveSdpIndex(SCIP *scip, SdpVarmapper *varmapper, int ind)
Definition: SdpVarmapper.c:265
struct Sdpvarmapper SdpVarmapper
Definition: SdpVarmapper.h:48
SCIP_EXPORT SCIP_RETCODE SCIPsdpVarmapperInsertVar(SCIP *scip, SdpVarmapper *varmapper, SCIP_VAR *var, int pos)
Definition: SdpVarmapper.c:162
SCIP_EXPORT SCIP_RETCODE SCIPsdpVarmapperFree(SCIP *scip, SdpVarmapper **varmapper)
Definition: SdpVarmapper.c:80
SCIP_EXPORT SCIP_RETCODE SCIPsdpVarmapperClone(SCIP *scip, SdpVarmapper *oldmapper, SdpVarmapper *newmapper)
Definition: SdpVarmapper.c:336
SCIP_EXPORT SCIP_VAR * SCIPsdpVarmapperGetSCIPvar(SdpVarmapper *varmapper, int ind)
Definition: SdpVarmapper.c:253
SCIP_EXPORT SCIP_RETCODE SCIPsdpVarmapperCreate(SCIP *scip, SdpVarmapper **varmapper, int size)
Definition: SdpVarmapper.c:53
SCIP_EXPORT SCIP_RETCODE SCIPsdpVarmapperTransform(SCIP *scip, SdpVarmapper *varmapper)
Definition: SdpVarmapper.c:305