is_dcp function

DCP Compliance

DCP Compliance

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

is_dcp(object)

Arguments

  • object: A Problem or Expression object.

Returns

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)
  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07