curvature-methods {CVXR} | R Documentation |
Curvature Properties
Description
Determine if an expression is constant, affine, convex, concave, quadratic, piecewise linear (pwl), or quadratic/piecewise affine (qpwa).
Usage
is_constant(object)
is_affine(object)
is_convex(object)
is_concave(object)
is_quadratic(object)
is_pwl(object)
is_qpwa(object)
Arguments
object |
An Expression object. |
Value
A logical value.
Examples
x <- Variable()
c <- Constant(5)
is_constant(c)
is_constant(x)
is_affine(c)
is_affine(x)
is_affine(x^2)
is_convex(c)
is_convex(x)
is_convex(x^2)
is_convex(sqrt(x))
is_concave(c)
is_concave(x)
is_concave(x^2)
is_concave(sqrt(x))
is_quadratic(x^2)
is_quadratic(sqrt(x))
is_pwl(c)
is_pwl(x)
is_pwl(x^2)
[Package CVXR version 1.0-14 Index]