Learn R Programming

CVXR (version 1.9.1)

Inequality: Create an Inequality Constraint

Description

Constrains the left-hand side to be less than or equal to the right-hand side elementwise: \(lhs \le rhs\). Typically created via the <= operator on CVXR expressions.

Usage

Inequality(lhs, rhs, constr_id = NULL)

Value

An Inequality constraint object.

Arguments

lhs

A CVXR expression (left-hand side).

rhs

A CVXR expression (right-hand side).

constr_id

Optional integer constraint ID.

See Also

Equality, NonPos, NonNeg