Description Usage Arguments Value Author(s) References Examples
Delete a column from an lpSolve linear program model object.
1 | delete.column(lprec, columns)
|
lprec |
an lpSolve linear program model object. |
columns |
a numeric vector of unique values from the set |
a NULL
value is invisibly returned.
Kjell Konis kjell.konis@me.com
http://lpsolve.sourceforge.net/5.5/index.htm
1 2 3 4 5 6 7 8 9 10 | 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)
delete.column(lps.model, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.