read.lp: Read Optimization Problem

Description Usage Arguments Details Examples

View source: R/plugin.R

Description

Read a optimization problem from a file.

Usage

1
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 (http://lpsolve.sourceforge.net/5.5/lp-format.htm) and not to the CPLEX LP format.

Examples

1
2
3
4
5
6
## Not run: 
op <- read.lp("optimization_problem.lp")
sol <- ROI_solve(op)
solution(sol)

## End(Not run)

ROI.plugin.lpsolve documentation built on Aug. 30, 2020, 3:01 a.m.