format_labeled: Pretty-print an expression with labels substituted

format_labeledR Documentation

Pretty-print an expression with labels substituted

Description

Recursive analogue of expr_name() that substitutes user-supplied labels (see set_label()) for sub-expressions wherever they are set, falling back to the structural name on unlabelled nodes. Mirrors CVXPY's Expression.format_labeled.

Usage

format_labeled(x)

Arguments

x

An Expression object.

Value

A character string.

See Also

set_label(), label()


CVXR documentation built on Aug. 24, 2026, 9:10 a.m.