Description Usage Arguments Details Value Author(s) References See Also Examples
Retrieve the dimension (number of rows and columns) from an lpSolve linear program model object.
1 2 3 4 |
x |
an lpSolve linear program model object. |
value |
assignment is not supported. |
Setting the number of rows/columns is not supported. See resize.lp
.
an integer vector of length two containing the number of rows and the number of columns in the lpSolve linear program model object.
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)
dim(lps.model)
|
[1] 4 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.