Checks if a given matrix or vector satisfies a set of
linear constraints. The constraints are specified by a
left-hand matrix A
and a right-hand vector b
such that a matrix or vector x
satisfies the
constraints if an only if
A x >= b.
checkConstraints(x, A, b, margin = 2L, op = c(">=", "<=", "=="))
'>=', '<=',
'='
), indicating the type of constraints: inequality
(greater than or lower than) or equality.a logical vector of length nrow(A)
.