Q_constraint {ROI} | R Documentation |
Quadratic Constraints
Description
Quadratic constraints are typically of the form
where is the
th of
(sparse) matrices
(all of dimension
) giving the coefficients of the quadratic
part of the equation. The
(sparse) matrix
holds the coefficients of the linear part of the equation and
refers to the
th row. The right hand side of the constraints
is represented by the vector
.
Usage
Q_constraint(Q, L, dir, rhs, names = NULL)
## S3 method for class 'Q_constraint'
variable.names(object, ...)
as.Q_constraint(x)
is.Q_constraint(x)
## S3 method for class 'Q_constraint'
length(x)
## S3 method for class 'Q_constraint'
terms(x, ...)
Arguments
Q |
a list of (sparse) matrices representing the quadratic part of each constraint. |
L |
a numeric vector of length |
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 |
object |
an R object. |
... |
further arguments passed to or from other methods (currently ignored). |
x |
an R object. |
Value
an object of class "Q_constraint"
which inherits
from "constraint"
.
Author(s)
Stefan Theussl