Learn R Programming

DiceOptim (version 2.1.2)

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)

Value

A Boolean vector, TRUE if the point if feasible, FALSE if at least one constraint is violated

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

Author

Mickael Binois

Victor Picheny