Learn R Programming

CVXR (version 1.9.1)

name: Get Expression Name

Description

Returns a human-readable string representation of a CVXR expression, variable, or constraint.

Usage

name(x)

Value

A character string.

Arguments

x

A CVXR expression, variable, parameter, constant, or constraint.

Examples

Run this code
x <- Variable(2, name = "x")
name(x)  # "x"
name(x + 1)  # "x + 1"

Run the code above in your browser using DataLab