id: Identification Number

idR Documentation

Identification Number

Description

A unique identification number used internally to keep track of variables and constraints. Should not be modified by the user.

Usage

id(object)

Arguments

object

A Variable or Constraint object.

Value

A non-negative integer identifier.

See Also

get_id setIdCounter

Examples

x <- Variable()
constr <- (x >= 5)
id(x)
id(constr)

cvxgrp/CVXR documentation built on Nov. 8, 2024, 5:47 p.m.