Skip to contents

Returns the curvature of an expression as a string.

Usage

curvature(x)

Arguments

x

A CVXR expression.

Value

Character: the first curvature that holds, checked in the order "CONSTANT", "AFFINE", "CONVEX", "CONCAVE", "LOG-LOG AFFINE", "LOG-LOG CONVEX", "LOG-LOG CONCAVE", "QUASILINEAR", "QUASICONVEX", "QUASICONCAVE"; "UNKNOWN" if none does.