The following contains additional information for the installation of ROI and its companion packages.
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.
install.packages("ROI.plugin.alabama")ROI.plugin.cbc it self doesn’t contain compiled code but it imports rcbc. The rcbc package requires the cbc and the 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.
sudo apt-get install coinor-libcbc-dev coinor-libclp-devsudo yum install coin-or-Cbc-devel coin-or-Clp-develbrew tap coin-or-tools/coinor
brew install cbcAfter the installation of the required libraries rcbc and ROI.plugin.cbc may be installed as usual.
remotes::install_github("dirkschumacher/rcbc")
remotes::install_github("dirkschumacher/ROI.plugin.cbc")devtools::install_github("dirkschumacher/rcbc")
devtools::install_github("dirkschumacher/ROI.plugin.cbc")install.packages("ROI.plugin.clp")install.packages("ROI.plugin.cplex")install.packages("ROI.plugin.deoptim")install.packages("ROI.plugin.ecos")ROI.plugin.glpk it self doesn’t contain compiled code but it imports Rglpk. The 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.
sudo apt-get install libglpk-devyum install glpk-develbrew install glpkAfter the installation of the linear programming kit - development files Rglpk and ROI.plugin.glpk may be installed as usual.
install.packages("ROI.plugin.glpk")install.packages("ROI.plugin.glpk")ROI.plugin.gurobi imports the gurobi package which is available at http://www.gurobi.com. Since the gurobi package is not on CRAN ROI.plugin.gurobi is also not available on CRAN.
remotes:::install_gitlab("roigrp/solver/ROI.plugin.gurobi")install.packages("ROI.plugin.ipop")install.packages("ROI.plugin.lpsolve")ROI.plugin.mosek imports the Rmosek package which is available at 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.
remotes:::install_gitlab("roigrp/solver/ROI.plugin.mosek", INSTALL_opts = "--no-multiarch")install.packages("ROI.plugin.msbinlp")ROI.plugin.neos it self doesn’t contain compiled code but it imports xml2 and curl. The 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.
sudo apt-get install libxml2-dev sudo yum install libxml2-develAfter the installation of the the libxml2 development libraries xml2 may be installed as usual.
install.packages("xml2")The 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.
sudo apt-get install libcurl4-openssl-devsudo yum install libcurl-develAfter the installation of the the libxml2 development libraries xmle can be installed.
install.packages("curl")After the curl and xml2 packages are installed ROI.plugin.neos can be installed.
install.packages("ROI.plugin.neos")install.packages("ROI.plugin.neos")install.packages("ROI.plugin.nloptr")install.packages("ROI.plugin.optimx")install.packages("ROI.plugin.qpoases")install.packages("ROI.plugin.quadprog")install.packages("ROI.plugin.scs")ROI.plugin.symphony it self doesn’t contain compiled code but it imports Rsymphony. The 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.
sudo apt install coinor-libsymphony-devsudo yum install coin-or-SYMPHONY-develbrew tap coin-or-tools/coinor
brew install symphonyAfter the installation of the SYMPHONY libraries and headers ROI.plugin.symphony may be installed as usual.
install.packages("ROI.plugin.symphony")install.packages("ROI.plugin.symphony")install.packages("ROI.models.netlib")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)