R: Read LP

read.lp {lpSolveAPI} | R Documentation

## Read LP

### Description

Read an lpSolve linear program model object from a file.

### Usage

    read.lp(filename, type = c("lp", "mps", "freemps"), verbose = "neutral",
            options)

### Arguments

`filename` | a character string giving the name of the file which the linear programming model is to be read from.
`type` | the type of file provided in `filename`. If missing, `read.lp` will attempt to guess the file type by examining the file's suffix.
`verbose` | a character string controlling the level of error reporting. The default value `"neutral"` is no error reporting. Set to `"normal"` to enable error reporting or to `"full"` for a comprehensive parse log. See the `verbose` entry in `lp.control.options` for a complete description of this argument and its possible values.
`options` | a character vector of options for the (free)mps parser. Possible values are `free` Use the free MPS format even when `type = "mps"`. If not specified, the fixed MPS format is used. This option has no effect when `type = "freemps"` but will not result in an error or a warning. `ibm` Interpret integer variables without bounds as binary variables per the original IBM standard. By default, lp_solve interprets integer variables without bounds as having no upper bound. `negobjconst` Interpret the objective constant with an opposite sign. Some solvers interpret the objective constant as a value in the RHS and negate it when brought to the LHS. This option allows lp_solve to do this as well.

### Value

an lpSolve linear program model object.

### Author(s)

Kjell Konis kjell.konis@me.com

### References

http://lpsolve.sourceforge.net/5.5/index.htm

[Package lpSolveAPI version 5.5.2.0-17 Index]