View source: R/set_constraints.R
set_constraints | R Documentation |
Two-sided inequalities specified by S2, l2, u2
are currently
transformed into the one-sided form S'x >= s
, combined with
any directly specified constraints of this form. Some basic consistency
checks are carried out, notably regarding the dimensions of the inputs.
set_constraints(
R = NULL,
r = NULL,
S = NULL,
s = NULL,
S2 = NULL,
l2 = NULL,
u2 = NULL,
scale = FALSE
)
R |
equality constraint matrix each column of which corresponds to a constraint. |
r |
right-hand side vector for equality constraints |
S |
inequality constraint matrix each column of which corresponds to an inequality constraint. |
s |
rhs vector for inequality constraints |
S2 |
inequality constraint matrix each column of which corresponds to a two-sided inequality constraint. |
l2 |
vector of lower bounds for two-sided inequality constraints |
u2 |
vector of upper bounds for two-sided inequality constraints |
scale |
whether to scale the columns of all constraint matrices to unit Euclidean norm. |
An environment with constraint matrices and vectors and a method to check whether a numeric vector
satisfies all constraints. Returns NULL
in case of no constraints.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.