curvatures: All Curvatures of an Expression

View source: R/028_expressions_expression.R

curvaturesR Documentation

All Curvatures of an Expression

Description

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.

See Also

curvature(), log_log_curvature()


CVXR documentation built on Oct. 19, 2026, 5:07 p.m.