Learn R Programming

lpSolveAPI (version 5.5.2.0-17.12)

get.bounds: Get Bounds

Description

Retrieve the bounds on the decision variables from an lpSolve linear program model object.

Usage

get.bounds(lprec, columns = 1:n)

Value

a list with components lower and upper.

Arguments

lprec

an lpSolve linear program model object.

columns

a numeric vector of unique values from the set {1, ..., n} (where n is the number of decision variables in lprec) specifying the decision variables for which the bounds should be retrieved.

Author

Kjell Konis kjell.konis@me.com

References

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

Examples

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

Run the code above in your browser using DataLab