id function

Identification Number

Identification Number

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

id(object)

Arguments

  • object: A Variable or Constraint object.

Returns

A non-negative integer identifier.

Examples

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

See Also

get_id setIdCounter

  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07