is_dgp function

DGP Compliance

DGP Compliance

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

is_dgp(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(pos = TRUE) y <- Variable(pos = TRUE) prob <- Problem(Minimize(x*y), list(x >= 5, y >= 5)) is_dgp(prob) solve(prob, gp = TRUE)
  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07