set.row | R Documentation |
Set a column in an lpSolve linear program model object.
set.row(lprec, row, xt, indices)
lprec |
an lpSolve linear program model object. |
row |
a single numeric value from the set |
xt |
a numeric vector containing the constraint coefficients (only the nonzero coefficients if |
indices |
optional for sparse |
a NULL
value is invisibly returned.
Kjell Konis kjell.konis@me.com
https://lpsolve.sourceforge.net/5.5/index.htm
lps.model <- make.lp(2, 4)
set.row(lps.model, 2, c(6,2,4,9))
set.row(lps.model, 1, c(3,1,5), indices = c(1,2,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.