Read an lpSolve linear program model object from a file.
read.lp(filename, type = c("lp", "mps", "freemps"), verbose = "neutral",
options)
an lpSolve linear program model object.
a character string giving the name of the file which the linear programming model is to be read from.
the type of file provided in filename
. If missing, read.lp
will attempt to guess the file type by examining the file's suffix.
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.
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.
Kjell Konis kjell.konis@me.com