is_dcp: DCP Compliance

is_dcpR Documentation

DCP Compliance

Description

Determine if a problem or expression complies with the disciplined convex programming rules.

Usage

is_dcp(object)

Arguments

object

A Problem or Expression object.

Value

A logical value indicating whether the problem or expression is DCP compliant, i.e. no unknown curvatures.

Examples

x <- Variable()
prob <- Problem(Minimize(x^2), list(x >= 5))
is_dcp(prob)
solve(prob)

CVXR documentation built on June 27, 2024, 5:11 p.m.