-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.txt
212 lines (151 loc) · 6.42 KB
/
install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
Installation Guide for SparsePOP
H. Waki, S. Kim, M. Kojima,
M. Muramatsu, H. Sugimoto and M. Yamashita
September 30, 2014
1. Overview
1.1 Two Versions
Two versions of SparsePOP are available in this package:
(A) MATLAB only version
(B) MATLAB with C++ version
(A) is always installed, while (B) is optional.
The functionality of the two is idential, but (B) is much faster
than (A) in generating SDP problems, because some of the time
consuming parts are rewritten in C++. We recommend to use (B)
whenever possible, although in many cases (A) is sufficient.
1.2 System Requirements
The following softwares is the minimum requirement:
i. MATLAB R2009b or later for Mac OSX
MATLAB R2008a or later for Linux
ii. SDP sovlers (SeDuMi, SDPT3, SDPA or CSDP)
to call SeDuMi from SparsePOP for solving an SDP relaxation problem
Be sure that you have an appropriate version of SeDuMi
for your MATLAB. For example, if you are using
MATLAB R2009b or later, then you need SeDuMi 1.1R3 or later.
If you want to use (B), then you need appropriate C++ compilers,
compatible with MATLAB, to compile the programs.
NOTE: SDP solvers which can be available at SparsePOP are
SeDuMi, SDPA, SDPT3, CSDP and SDPNAL.
2. Quick Installation Guide for MacOSX 10.4.8 or later
If you want to install the C++ version (B), in addition to
MATLAB and SeDuMi, you need Xcode, distributed by Apple.
Be sure that you have an appropriate version of Xcode.
See:
http://www.mathworks.com/support/tech-notes/1600/1601.html
For example, if you are using MATLAB 7.4 or later,
then you must use:
Xcode 2.4.1 or later
--available from http://developer.apple.com/tools/xcode/
Installation steps:
(NOTE: Skip the step marked with * if C++ version is not needed.)
2.1 Download SparsePOP from:
http://sourceforge.net/projects/sparsepop/
2.2 Unpack it by either:
double-clicking the icon, or typing on the Terminal:
% tar zxvf sparsePOP300.tar.gz
You will get a folder named SparsePOP303
2.3 Move the folder to any place you like, say, to
/Users/smith/matlab/SparsePOP303 (if you are Smith),
or, if you want to install SparsePOP machine-wide, to
/Applications/MATLAB74/toolbox/shared/SparsePOP300
*2.4 Invoke MATLAB, and choose Compiler. In MATLAB, type:
>> mex -setup
and follow the message to choose a compiler.
If you can use llvm-gcc and llvm-g++, then edit your
mexopts.sh. See the following url for the detail:
http://www.mathworks.com/matlabcentral/answers/103258-mex-on-mavericks-with-r2012b
2.5 In MATLAB, and cd to the folder of SparsePOP303.
>> cd /Users/smith/matlab/SparsePOP303
*2.6 Compile C++ codes from MATLAB window:
>> compileSparsePOP
2.7 Set MATLAB-path to SparsePOP300. Specifically,
Choose: File->Set Path
Push 'Add with Subfolders...' bottun, and
Select the folder SparsePOP303.
Finally, Save it by pushing 'Save' bottun.
2.8 Now you are ready to use SparsePOP.
Test it by typing
>> sparsePOP('example1.gms');
NOTE: If you want to use MATLAB in the mode matlab -nodisply,
it is useful to add the path of the directory of SparsePOP in
your startup.m. If your SparsePOP is installed in
/Users/matlab/SparsePOP303, write the following command in your
startup.m:
addpath(genpath('/Users/matlab/SparsePOP303'));
3. Quick Installation Guide for Linux
If you want to install the C++ version (B), in addition to
MATLAB and SeDuMi, you need gcc compilers, a free software
distributed by GNU. Be sure that you have an appropriate
version of gcc.
See:
http://www.mathworks.com/support/tech-notes/1600/1601.html
For example, if you are using MATLAB R2007a or later, then
you must have:
gcc/g++ version 4.1.1 or later, and
appropriate kernel and glibc.
Installation steps
(NOTE: Skip the step marked with * if C++ version is not needed.)
3.1 Download SparsePOP from:
http://sourceforge.net/projects/sparsepop/
3.2 Unpack it by either:
double-clicking the icon, or typing on the terminal:
% tar zxvf sparsePOP303.tar.gz
You will get a directory named SparsePOP303
3.3 Move the directory to any place you like, say, to
/home/smith/matlab/SparsePOP300 (if you are Smith),
or, if you want to install SparsePOP machine-widely, to
/usr/matlab2007a/toolbox/shared/SparsePOP303
*3.4 Invoke MATLAB, and choose Compiler. In MATLAB, type:
>> mex -setup
and follow the message to choose a compiler.
3.5 In MATLAB, and cd to the folder of SparsePOP303.
>> cd /Users/smith/matlab/SparsePOP303
*3.6 Compile C++ codes from MATLAB window:
>> compileSparsePOP
3.7 Set MATLAB-path to SparsePOP303. Specifically,
Choose: File->Set Path
Push 'Add with Subfolders...' bottun, and
Select the folder SparsePOP303.
Finally, Save it by pushing 'Save' bottun.
3.8 Now you are ready to use SparsePOP.
Test it by typing
>> sparsePOP('example1.gms');
NOTE: If you want to use MATLAB in the mode matlab -nodisply,
it is useful to add the path of the directory of SparsePOP in
your startup.m. If your SparsePOP is installed in
/home/matlab/SparsePOP303, write the following command in your
startup.m:
addpath(genpath('/home/matlab/SparsePOP303'));
NOTE2: See the following url when you encounter the error message
`GLIBC_*.*.** not found':
http://stackoverflow.com/questions/9959306/
https://github.com/kyamagu/mexopencv/issues/45
4. Quick Installation Guide for Windows 7
If you want to install the C++ version (B), in addition to
MATLAB and SeDuMi, you need an appropriate C++ compilers.
See:
http://www.mathworks.com/support/tech-notes/1600/1601.html
We have tested it by Microsoft Visual C++ 2005.
Installation steps:
(NOTE: Skip the step marked with * if C++ version is not needed.)
4.1 Download SparsePOP from:
http://sourceforge.net/projects/sparsepop/
4.2 Unpack it double-clicking the icon.
You may need an appropriate software for unpacking the
tar.gz file.
You will get a folder named SparsePOP303
4.3 Move the folder to, say, C:\MATLAB\SparsePOP303
*4.4 Invoke MATLAB, and choose Compiler. In MATLAB, type:
>> mex -setup
and follow the message to choose a compiler.
4.5 In MATLAB, and cd to the folder of SparsePOP303.
>> cd C:\MATLAB\SparsePOP303
*4.6 Compile C++ codes from MATLAB window:
>> compileSparsePOP
4.7 Set MATLAB-path to SparsePOP303. Specifically,
Choose: File->Set Path
Push 'Add with Subfolders...' bottun, and
Select the folder SparsePOP303.
Finally, Save it by pushing 'Save' bottun.
4.8 Now you are ready to use SparsePOP.
Test it by typing
>> sparsePOP('example1.gms');