get.basis | R Documentation |
Retrieve the basis from a solved lpSolve linear program model object.
get.basis(lprec, nonbasic = FALSE)
lprec |
an lpSolve linear program model object. |
nonbasic |
a logical value. If |
an integer vector containing the indices of the basic (and nonbasic if requested) variables. If an error occurs (for instance when calling get.basis
on a model that has not yet been solved) a NULL
value is returned.
Kjell Konis kjell.konis@me.com
https://lpsolve.sourceforge.net/5.5/index.htm
lps.model <- make.lp(3, 3)
## build and solve model ##
get.basis(lps.model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.