非数字范围

(类来自 pyomo.core.base.range)

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

基础类:object

一个类似于范围的对象,用于表示单个非数值

类名有些误导,因为这个对象并不表示一个范围,而是表示一个单一的值。然而,由于它复制了Range API(如NumericRange所使用的),它被称为“Range”。

__init__(val)[source]

方法

__init__(val)

isdiscrete()

isdisjoint(other)

isfinite()

issubset(other)

range_difference(other_ranges)

range_intersection(other_ranges)

属性

value

成员文档