Learn R Programming

CVXR (version 1.0-14)

is_dcp: DCP Compliance

Description

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

Usage

is_dcp(object)

Value

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

Arguments

object

A Problem or Expression object.

Examples

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

Run the code above in your browser using DataLab