read.lp {ROI.plugin.lpsolve} | R Documentation |
Read Optimization Problem
Description
Read a optimization problem from a file.
Usage
read.lp(file, type=c("lp", "mps", "freemps"))
Arguments
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. |
Details
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
(https://lpsolve.sourceforge.net/5.5/lp-format.htm)
and not to the CPLEX LP format
.
Examples
## Not run:
op <- read.lp("optimization_problem.lp")
sol <- ROI_solve(op)
solution(sol)
## End(Not run)
[Package ROI.plugin.lpsolve version 1.0-2 Index]