read.lp {ROI.plugin.lpsolve} | R Documentation |
Read a optimization problem from a file.
read.lp(file, type=c("lp", "mps", "freemps"))
file |
a character giving the name of the file the optimization problem is read from. |
type |
a character giving the name of the file format the optimization problem is stored in. |
The optimization problems can be read from the three file formats "lp"
,
"mps"
and "freemps"
.
Where it seems important to note that the "lp"
format refers to
lpsolves
native file format
(http://lpsolve.sourceforge.net/5.5/lp-format.htm)
and not to the CPLEX LP format
.
## Not run: op <- read.lp("optimization_problem.lp") sol <- ROI_solve(op) solution(sol) ## End(Not run)