adelie.constraint.upper#

adelie.constraint.upper(b: ndarray, **kwargs)[source]#

Creates an upper bound constraint.

The upper bound constraint is given by \(x \leq b\) where \(b \geq 0\).

Parameters:
b(d,) ndarray

Bound \(b\).

**kwargsoptional

Keyword arguments to adelie.constraint.one_sided.

Returns:
wrap

Wrapper constraint object.