Skip to contents

Lists every curvature that holds for an expression, DCP, DGP and DQCP alike, as CVXPY's Expression.curvatures. curvature reports only the strongest DCP curvature.

Usage

curvatures(x)

Arguments

x

A CVXR expression.

Value

A character vector, in the order "CONSTANT", "AFFINE", "CONVEX", "CONCAVE", "LOG-LOG CONSTANT", "LOG-LOG AFFINE", "LOG-LOG CONVEX", "LOG-LOG CONCAVE", "QUASILINEAR", "QUASICONVEX", "QUASICONCAVE", holding those that apply; "UNKNOWN" alone if none does.