Learn R Programming

CVXR (version 1.0-14)

id: 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)

Value

A non-negative integer identifier.

Arguments

object

A Variable or Constraint object.

See Also

get_id setIdCounter

Examples

Run this code
x <- Variable()
constr <- (x >= 5)
id(x)
id(constr)

Run the code above in your browser using DataLab