DGP Compliance
Determine if a problem or expression complies with the disciplined geometric programming rules.
is_dgp(object)
object |
A Problem or Expression object. |
A logical value indicating whether the problem or expression is DCP compliant, i.e. no unknown curvatures.
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.