Learn R Programming

lpSolveAPI (version 5.5.2.0-4)

make.lp: Make LP

Description

Create a new lpSolve linear program model object.

Usage

make.lp(nrow = 0, ncol = 0, verbose = "neutral")

Arguments

nrow
a nonnegative integer value specifying the number of constaints in the linear program.
ncol
a nonnegative integer value specifying the number of decision variables in the linear program.
verbose
a character string controlling the level of error reporting. The default value "neutral" is no error reporting. Use "normal" or "full" for more comprehensive error reporting. See the verbose entry in

Value

  • an lpSolve linear program model object. Specifically an R external pointer with class lpExtPtr.

References

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

Examples

Run this code
lps.model <- make.lp(4, 3)

Run the code above in your browser using DataLab