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

id(object)

Arguments

object

A Variable or Constraint object.

Value

A non-negative integer identifier.

See also

Examples

x <- Variable()
constr <- (x >= 5)
id(x)
#> [1] 1975
id(constr)
#> [1] 1979