-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathINSTALL.txt
executable file
·126 lines (85 loc) · 4.63 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
================================================================================
INSTALL mpYALMIP
================================================================================
This software is a MATLAB interface that allows to use the SDPA-GMP solver
through YALMIP. It allows to tackle SDP problems that may internally require
multiple-precision (mp) to be solved successfully.
DISCLAIMER: This software should work on UNIX-based systems and Windows systems
(>=10), but it has only been tested with the following setups.
OS : Ubuntu 14.04
MATLAB : 9.0 (R2016a)
YALMIP version: 20150919
OS : Windows 10
MATLAB : 9.1 (R2016b)
YALMIP version: 20170622
================================================================================
1) REQUIREMENTS
================================================================================
Before you run the script "install_sdpa_gmp", make sure you have
UNIX-BASED:
1) GMP: download & install from the GMP website:
https://gmplib.org/#DOWNLOAD
2) SDPA-GMP: download & install from the SDPA website:
http://sdpa.sourceforge.net/download.html
NOTE: More detailed instructions to install these requirements can also be
consulted in the file:
InstallWindowsReqs.txt
WINDOWS:
Detailed installation instructions of all requirements are included in the file:
InstallWindowsReqs.txt
The requirements are:
1) Bash on Ubuntu on Windows
2) GMP
3) SDPA-GMP
4) MinGW-w64 compiler for Windows via MATLAB
================================================================================
2) INSTALL mpYALMIP
================================================================================
a) Default SDPA-GMP installation
The installation assumes that the SDPA-GMP executable binary file (sdpa_gmp) is
installed in "/usr/local/bin/". Even if this is not the case you may copy the
executable from wherever you installed it to the directory "/usr/local/bin/" by
running "$ sudo cp sdpa_gmp /usr/local/bin/".
NOTE: In Windows this refers to the path within the Ubuntu subsystem where
the executable (sdpa_gmp) lies, not the usual Windows path.
In this case, add SDPA-GMP to YALMIP by running
>> install_sdpa_gmp
NOTE: In Windows, during installation a Command Prompt will open. This is normal
and you may close it after the installation is finished in MATLAB.
b) Custom SDPA-GMP installation
If the SDPA-GMP executable binary file (sdpa_gmp) is NOT installed in the default
location "/usr/local/bin/", you need to specify the path explicitly by running
>> install_sdpa_gmp('/path/to/sdpa/gmp/')
where '/path/to/sdpa/gmp/' is a string specifying the path to your SDPA-GMP
installation. The path should be to the 'sdpa_gmp' executable itself or to the
directory, ending with '/', where the 'sdpa_gmp' executable lies.
NOTE: In Windows this refers to the path within the Ubuntu subsystem where
the executable (sdpa_gmp) lies, not the usual Windows path.
NOTE FOR BOTH INSTALLATIONS:
Please ignore any compilation warnings that might be displayed.
================================================================================
3) CHECK mpYALMIP
================================================================================
Run:
>> yalmiptest(sdpsettings('solver','sdpa_gmp'))
NOTE: In Windows every time you solve with SDPA-GMP a Command Prompt with the
output from the solver will open. This is normal. Once the tests are
finished you can close all those Command Prompts.
================================================================================
4) USE mpYALMIP
================================================================================
You can use SDPA-GMP like any normal solver in YALMIP. See the examples for more
details.
NOTE: In Windows every time you solve with SDPA-GMP a Command Prompt with the
output from the solver will open. This is normal. Once the solve is
finished you can close that Command Prompt.
================================================================================
5) UNINSTALL mpYALMIP
================================================================================
To uninstall SDPA-GMP from YALMIP and revert YALMIP to its "factory settings",
simply run
>> uninstall_sdpa_gmp
at the Command Line.
================================================================================
END OF FILE
================================================================================