name: Variable, Parameter, or Expression Name

nameR Documentation

Variable, Parameter, or Expression Name

Description

The string representation of a variable, parameter, or expression.

Usage

name(x)

Arguments

x

A Variable, Parameter, or Expression object.

Value

For Variable or Parameter objects, the value in the name slot. For Expression objects, a string indicating the nested atoms and their respective arguments.

Examples

x <- Variable()
y <- Variable(3, name = "yVar")

name(x)
name(y)

anqif/CVXR documentation built on Feb. 6, 2024, 4:28 a.m.