set.objfn | R Documentation |
Set the objective function in an lpSolve linear program model object.
set.objfn(lprec, obj, indices)
lprec |
an lpSolve linear program model object. |
obj |
a numeric vector of length |
indices |
optional for sparse |
a NULL
value is invisibly returned.
Kjell Konis kjell.konis@me.com
https://lpsolve.sourceforge.net/5.5/index.htm
resize.lp
lps.model <- make.lp(2, 4)
set.objfn(lps.model, c(1,2,3,4))
set.objfn(lps.model, c(5,7,6), indices = c(1,2,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.