get.column | R Documentation |
Retrieve a column from an lpSolve linear program model object.
get.column(lprec, column)
lprec |
an lpSolve linear program model object. |
column |
a single numeric value from the set |
a list with elements column
and nzrow
such that column[i]
contains the constraint coefficient in row nzrow[i]
. Rows not present in nzrow
have coefficient zero in column
.
Kjell Konis kjell.konis@me.com
https://lpsolve.sourceforge.net/5.5/index.htm
lps.model <- make.lp(4, 0)
x <- c(6,2,4,9)
add.column(lps.model, x)
y <- c(3,1,5)
ind <- c(1,2,4)
add.column(lps.model, y, ind)
get.column(lps.model, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.