curvature: Get Expression Curvature

View source: R/302_zzz_R_specific_exports.R

curvatureR Documentation

Get Expression Curvature

Description

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.

See Also

curvatures(), log_log_curvature(), is_convex(), is_concave(), is_affine(), is_constant()


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