NonNumericRange

(class from pyomo.core.base.range)

class pyomo.core.base.range.NonNumericRange(val)[source]

Bases: object

A range-like object for representing a single non-numeric value

The class name is a bit of a misnomer, as this object does not represent a range but rather a single value. However, as it duplicates the Range API (as used by NumericRange), it is called a “Range”.

__init__(val)[source]

Methods

__init__(val)

isdiscrete()

isdisjoint(other)

isfinite()

issubset(other)

range_difference(other_ranges)

range_intersection(other_ranges)

Attributes

value

Member Documentation