set.mat {lpSolveAPI} | R Documentation |
Set Matrix Element
Description
Set the value of a single matrix element in an lpSolve linear program model object.
Usage
set.mat(lprec, i, j, value)
Arguments
lprec |
an lpSolve linear program model object. |
i |
a single numeric value from the set |
j |
a single numeric value from the set |
value |
a single numeric value. |
Value
a NULL
value is invisibly returned.
Author(s)
Kjell Konis kjell.konis@me.com
References
https://lpsolve.sourceforge.net/5.5/index.htm
See Also
Examples
lps.model <- make.lp(4, 2)
x <- c(6,2,4,9)
set.column(lps.model, 2, x)
y <- c(3,1,5)
ind <- c(1,2,4)
set.column(lps.model, 1, y, ind)
set.constr.type(lps.model, rep("<=", 4))
set.mat(lps.model, 3, 2, 4.5)
[Package lpSolveAPI version 5.5.2.0-17.12 Index]