|
|
|
The R-to-MOSEK Optimization Interface is designed to make the optimization facilities of MOSEK available from R. MOSEK is a software library able to solve many kinds of large-scale optimization problems, and this interface currently supports:
update.packages("Matrix") from the R-console to make sure that you have the newest version installed.
The 'Rmosek' package features auto-configuration which will work in most cases if the system has been properly set up (see System Requirements). Most users will be able to install the package with:
install.packages("Rmosek", type="source")
The package can be loaded with
require(Rmosek)
library(help="Rmosek")
help("mosek", package="Rmosek")
lo1 <- list()
lo1$sense <- "max"
lo1$c <- c(3,1,5,1)
lo1$A <- Matrix(c(3,1,2,0,
2,1,3,1,
0,2,0,3), nrow=3, byrow=TRUE, sparse=TRUE)
lo1$bc <- rbind(blc = c(30,15,-Inf),
buc = c(30,Inf,25))
lo1$bx <- rbind(blx = c(0,0,0,0),
bux = c(Inf,10,Inf,Inf))
r <- mosek(lo1)
modelfile <- system.file(package="Rmosek", "extdata", "milo1.opf") r_read <- mosek_read(modelfile) r_solve <- mosek(r_read$prob)
We invite all users of the R-to-MOSEK Interface to join our central MOSEK discussion group. This group is particularly intended for academics using MOSEK in their research.