Learn R Programming

CVXR (version 1.9.1)

indicator: Indicator function for constraints

Description

Creates an expression that equals 0 if all constraints are satisfied and +Inf otherwise. Use this to embed constraints into the objective.

Usage

indicator(constraints, err_tol = 0.001)

Value

An Indicator expression

Arguments

constraints

A list of constraint objects

err_tol

Numeric tolerance for checking constraint satisfaction (default 1e-3)