Description Usage Arguments Value Author(s)
Linear constraints are typically of the form
Lx ≤q rhs
where L is a m \times n (sparse) matrix of coefficients to the objective variables x and the right hand side rhs is a vector of length m.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | L_constraint(L, dir, rhs, names = NULL)
## S3 method for class 'L_constraint'
variable.names(object, ...)
as.L_constraint(x, ...)
is.L_constraint(x)
## S3 method for class 'L_constraint'
length(x)
## S3 method for class 'L_constraint'
terms(x, ...)
|
L |
a numeric vector of length n (a single constraint)
or a matrix of dimension m \times n, where n is the
number of objective variables and m is the number of
constraints. Matrices can be of class
|
dir |
a character vector with the directions of the
constraints. Each element must be one of |
rhs |
a numeric vector with the right hand side of the constraints. |
names |
an optional character vector giving the names of x (column names of A). |
object |
an R object. |
... |
further arguments passed to or from other methods (currently ignored). |
x |
an R object. |
an object of class "L_constraint"
which inherits
from "constraint"
.
Stefan Theussl
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.