Description Usage Arguments Details Examples
Read a optimization problem from a file.
1 |
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
.
1 2 3 4 5 6 | ## Not run:
op <- read.lp("optimization_problem.lp")
sol <- ROI_solve(op)
solution(sol)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.