Curvature Properties
Determine if an expression is constant, affine, convex, concave, quadratic, piecewise linear (pwl), or quadratic/piecewise affine (qpwa).
is_constant(object) is_affine(object) is_convex(object) is_concave(object) is_quadratic(object) is_pwl(object) is_qpwa(object)
object |
An Expression object. |
A logical value.
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.