is_dcp | R Documentation |
Determine if a problem or expression complies with the disciplined convex programming rules.
is_dcp(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()
prob <- Problem(Minimize(x^2), list(x >= 5))
is_dcp(prob)
solve(prob)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.