SCIP-SDP  2.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SdpVarfixer.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 
38 #ifndef __SDPVARFIXER_H__
39 #define __SDPVARFIXER_H__
40 
41 #include "scip/type_misc.h"
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
51 EXTERN
53  int* row, /* row indices */
54  int* col, /* column indices */
55  SCIP_Real* val, /* values */
56  int length /* length of the given arrays */
57  );
58 
68 SCIP_RETCODE SCIPsdpVarfixerMergeArrays(
69  BMS_BLKMEM* blkmem,
70  SCIP_Real feastol,
71  int* originrow,
72  int* origincol,
73  SCIP_Real* originval,
74  int originlength,
75  SCIP_Bool originsorted,
76  SCIP_Real scalar,
77  int* targetrow,
78  int* targetcol,
79  SCIP_Real* targetval,
80  int* targetlength,
82  int targetmemory
84  );
85 
95 EXTERN
97  BMS_BLKMEM* blkmem,
98  SCIP_Real feastol,
99  int* firstrow,
100  int* firstcol,
101  SCIP_Real* firstval,
102  int firstlength,
103  int* secondrow,
104  int* secondcol,
105  SCIP_Real* secondval,
106  int secondlength,
107  int* targetrow,
108  int* targetcol,
109  SCIP_Real* targetval,
110  int* targetlength
112  );
113 
114 #ifdef __cplusplus
115 }
116 #endif
117 
118 #endif
SCIP_RETCODE SCIPsdpVarfixerMergeArrays(BMS_BLKMEM *blkmem, SCIP_Real feastol, int *originrow, int *origincol, SCIP_Real *originval, int originlength, SCIP_Bool originsorted, SCIP_Real scalar, int *targetrow, int *targetcol, SCIP_Real *targetval, int *targetlength, int targetmemory)
Definition: SdpVarfixer.c:88
EXTERN SCIP_RETCODE SCIPsdpVarfixerMergeArraysIntoNew(BMS_BLKMEM *blkmem, SCIP_Real feastol, int *firstrow, int *firstcol, SCIP_Real *firstval, int firstlength, int *secondrow, int *secondcol, SCIP_Real *secondval, int secondlength, int *targetrow, int *targetcol, SCIP_Real *targetval, int *targetlength)
Definition: SdpVarfixer.c:255
EXTERN void SCIPsdpVarfixerSortRowCol(int *row, int *col, SCIP_Real *val, int length)
Definition: SdpVarfixer.c:50