Rdocumentation
powered by
Learn R Programming
DiceOptim (version 2.0)
test_feas_vec: Test constraints violation (vectorized)
Description
Test whether a set of constraints are violated or not, depending on their nature (equality or inequality) and tolerance parameters
Usage
test_feas_vec(cst, equality = FALSE, tolConstraints = NULL)
Arguments
cst
matrix of constraints (one column for each constraint function)
equality
either FALSE or a Boolean vector defining which constraints are treated as equalities
tolConstraints
tolerance (vector) for all constraints. If not provided, set to zero for inequalities and 0.05 for equalities
Value
A Boolean vector, TRUE if the point if feasible, FALSE if at least one constraint is violated