-
Notifications
You must be signed in to change notification settings - Fork 1
/
installation.Rmd
313 lines (234 loc) · 7.65 KB
/
installation.Rmd
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
---
title: "Installation"
---
The following contains additional information for the installation
of **ROI** and its companion packages.
# **ROI**
Since **ROI** has no dependencies to external system and only imports
libraries written in base **R**, the installation via
`install.packages("ROI")` should be sufficient on any platform.
# **ROI plug-ins**
## **ROI.plugin.alabama**
```{r, eval = FALSE}
install.packages("ROI.plugin.alabama")
```
## **ROI.plugin.cbc**
### Unix
[**ROI.plugin.cbc**](https://github.com/dirkschumacher/ROI.plugin.cbc)
it self doesn't contain compiled code but it imports **rcbc**.
The [**rcbc**](https://github.com/dirkschumacher/rcbc) package requires
the [cbc](https://projects.coin-or.org/Cbc) and
the [clp](https://projects.coin-or.org/Clp) library to be installed before
the installation of **rcbc**. Depending on the distribution,
these libraries may be installed via one of the following commands.
#### Debian, Ubuntu, Mint and other Debian based distributions
```{bash, eval = FALSE}
sudo apt-get install coinor-libcbc-dev coinor-libclp-dev
```
#### Red Hat Enterprise Linux, Fedora, CentOS and similar distributions
```{bash, eval = FALSE}
sudo yum install coin-or-Cbc-devel coin-or-Clp-devel
```
#### macOS
```{bash, eval = FALSE}
brew tap coin-or-tools/coinor
brew install cbc
```
After the installation of the required libraries
**rcbc** and **ROI.plugin.cbc** may be installed as usual.
```{r, eval = FALSE}
remotes::install_github("dirkschumacher/rcbc")
remotes::install_github("dirkschumacher/ROI.plugin.cbc")
```
### Windows
```{r, eval = FALSE}
devtools::install_github("dirkschumacher/rcbc")
devtools::install_github("dirkschumacher/ROI.plugin.cbc")
```
## **ROI.plugin.clp**
```{r, eval = FALSE}
install.packages("ROI.plugin.clp")
```
## **ROI.plugin.cplex**
```{r, eval = FALSE}
install.packages("ROI.plugin.cplex")
```
## **ROI.plugin.deoptim**
```{r, eval = FALSE}
install.packages("ROI.plugin.deoptim")
```
## **ROI.plugin.ecos**
```{r, eval = FALSE}
install.packages("ROI.plugin.ecos")
```
## **ROI.plugin.glpk**
[**ROI.plugin.glpk**](https://cran.r-project.org/package=ROI.plugin.glpk)
it self doesn't contain compiled code but it imports **Rglpk**.
The [**Rglpk**](https://cran.r-project.org/package=Rglpk) package requires
the linear programming kit - development files to be installed before
the installation of **Rglpk**. Depending on the distribution,
the linear programming kit - development files may be installed via one
of the following commands.
### Unix
#### Debian, Ubuntu, Mint and other Debian based distributions
```{bash, eval = FALSE}
sudo apt-get install libglpk-dev
```
#### Red Hat Enterprise Linux, Fedora, CentOS and similar distributions
```{bash, eval = FALSE}
yum install glpk-devel
```
#### macOS
```{bash, eval = FALSE}
brew install glpk
```
After the installation of the linear programming kit - development files
**Rglpk** and **ROI.plugin.glpk** may be installed as usual.
```{r, eval = FALSE}
install.packages("ROI.plugin.glpk")
```
### Windows
```{r, eval = FALSE}
install.packages("ROI.plugin.glpk")
```
## **ROI.plugin.gurobi**
**ROI.plugin.gurobi** imports the **gurobi** package which is available at
[http://www.gurobi.com](http://www.gurobi.com/). Since the **gurobi** package
is not on `CRAN` **ROI.plugin.gurobi** is also not available on `CRAN`.
```{r, eval = FALSE}
remotes:::install_github("fl0sch/ROI.plugin.gurobi")
```
## **ROI.plugin.ipop**
```{r, eval = FALSE}
install.packages("ROI.plugin.ipop")
```
## **ROI.plugin.lpsolve**
```{r, eval = FALSE}
install.packages("ROI.plugin.lpsolve")
```
## **ROI.plugin.mosek**
**ROI.plugin.mosek** imports the **Rmosek** package which is available at
[http://www.mosek.com](http://www.mosek.com/). There is also an
**Rmosek** version on `CRAN` but since the **Rmosek** version on `CRAN`
is very old we recommend to install the version available from
[http://www.mosek.com](http://www.mosek.com/).
```{r, eval = FALSE}
remotes:::install_github("fl0sch/ROI.plugin.mosek")
```
## **ROI.plugin.msbinlp**
```{r, eval = FALSE}
install.packages("ROI.plugin.msbinlp")
```
## **ROI.plugin.neos**
### Unix
[**ROI.plugin.neos**](https://cran.r-project.org/package=ROI.plugin.neos)
it self doesn't contain compiled code but it imports xml2 and curl.
The [**xml2**](https://cran.r-project.org/package=xml2) package requires that
the `libxml2` development library is installed. Depending on the distribution,
this library may is installed via one of the following commands.
### Unix
#### Debian, Ubuntu, Mint and other Debian based distributions
```{bash, eval = FALSE}
sudo apt-get install libxml2-dev
```
#### Red Hat Enterprise Linux, Fedora, CentOS and similar distributions
```{r, eval = FALSE}
sudo yum install libxml2-devel
```
#### macOS
After the installation of the the `libxml2` development libraries
**xml2** may be installed as usual.
```{r, eval = FALSE}
install.packages("xml2")
```
The [**curl**](https://cran.r-project.org/package=curl) package requires that
the `curl` development library is installed. Depending on the distribution,
this library may is installed via one of the following commands.
### Unix
#### Debian, Ubuntu, Mint and other Debian based distributions
```{bash, eval = FALSE}
sudo apt-get install libcurl4-openssl-dev
```
#### Red Hat Enterprise Linux, Fedora, CentOS and similar distributions
```{r, eval = FALSE}
sudo yum install libcurl-devel
```
#### macOS
After the installation of the the `libxml2` development libraries
**xmle** can be installed.
```{r, eval = FALSE}
install.packages("curl")
```
After the **curl** and **xml2** packages are installed **ROI.plugin.neos**
can be installed.
```{r, eval = FALSE}
install.packages("ROI.plugin.neos")
```
### Windows
```{r, eval = FALSE}
install.packages("ROI.plugin.neos")
```
## **ROI.plugin.nloptr**
```{r, eval = FALSE}
install.packages("ROI.plugin.nloptr")
```
## **ROI.plugin.optimx**
```{r, eval = FALSE}
install.packages("ROI.plugin.optimx")
```
## **ROI.plugin.qpoases**
```{r, eval = FALSE}
install.packages("ROI.plugin.qpoases")
```
## **ROI.plugin.quadprog**
```{r, eval = FALSE}
install.packages("ROI.plugin.quadprog")
```
## **ROI.plugin.scs**
```{r, eval = FALSE}
install.packages("ROI.plugin.scs")
```
## **ROI.plugin.symphony**
### Unix
[**ROI.plugin.symphony**](https://cran.r-project.org/package=ROI.plugin.symphony)
it self doesn't contain compiled code but it imports **Rsymphony**.
The [**Rsymphony**](https://cran.r-project.org/package=Rsymphony) package requires
the SYMPHONY libraries and headers to be installed before
the installation of **Rsymphony**. Depending on the distribution,
the SYMPHONY libraries and headers may be installed via one
of the following commands.
#### Debian, Ubuntu, Mint and other Debian based distributions
```{bash, eval = FALSE}
sudo apt install coinor-libsymphony-dev
```
#### Red Hat Enterprise Linux, Fedora, CentOS and similar distributions
```{bash, eval = FALSE}
sudo yum install coin-or-SYMPHONY-devel
```
#### macOS
```{bash, eval = FALSE}
brew tap coin-or-tools/coinor
brew install symphony
```
After the installation of the SYMPHONY libraries and headers
**ROI.plugin.symphony** may be installed as usual.
```{r, eval = FALSE}
install.packages("ROI.plugin.symphony")
```
### Windows
```{r, eval = FALSE}
install.packages("ROI.plugin.symphony")
```
# **ROI models**
## **ROI.models.netlib**
```{r, eval = FALSE}
install.packages("ROI.models.netlib")
```
## **ROI.models.miplib**
```{r, eval = FALSE}
install.packages("ROI.models.miplib")
library(ROI.models.miplib)
miplib_download_metainfo("http://miplib2010.zib.de/download/miplib2010_all.solu")
miplib_download_benchmark("http://miplib2010.zib.de/download/miplib2010-1.1.3-benchmark.tgz",
quiet = FALSE)
```