不确定性集合列表

(类来自 pyomo.contrib.pyros.uncertainty_sets)

class pyomo.contrib.pyros.uncertainty_sets.UncertaintySetList(uncertainty_sets=[], name=None, min_length=None)[source]

基础类:MutableSequence

围绕一组不确定性集合的包装器,所有这些集合都有一个不可变的共同维度。

Parameters:
  • uncertainty_sets (iterable, optional) – 不确定性集合的序列。

  • name (strNone, 可选) – 不确定性集合列表的名称。

  • min_length (intNone, 可选) – 序列的最小要求长度。如果提供 None,则最小要求长度设置为 0。

__init__(uncertainty_sets=[], name=None, min_length=None)[source]

初始化自身(参见类文档字符串)。

方法

__init__([uncertainty_sets, name, min_length])

初始化自身(参见类文档字符串)。

append(value)

S.append(value) -- 将值追加到序列的末尾

clear()

从列表中移除所有项目。

count(value)

extend(values)

S.extend(iterable) -- 通过从可迭代对象中追加元素来扩展序列

index(value, [start, [stop]])

如果值不存在,则引发ValueError。

insert(idx, value)

在由idx表示的索引之前插入一个对象。

pop([index])

如果列表为空或索引超出范围,则引发IndexError。

remove(value)

S.remove(value) -- 移除第一次出现的值。

reverse()

S.reverse() -- 反转 原地

属性

dim

自身包含的所有不确定性集合的维度。

成员文档

append(value)

S.append(value) – 将值追加到序列的末尾

clear()[来源]

从列表中移除所有项目。

count(value) integer -- return number of occurrences of value
extend(values)

S.extend(iterable) – 通过从可迭代对象中追加元素来扩展序列

index(value[, start[, stop]]) integer -- return first index of value.

如果值不存在,则引发ValueError。

支持开始和停止参数是可选的,但建议这样做。

insert(idx, value)[source]

在由idx表示的索引之前插入一个对象。

pop([index]) item -- remove and return item at index (default last).

如果列表为空或索引超出范围,则引发IndexError。

remove(value)

S.remove(value) – 移除第一次出现的值。 如果值不存在,则引发ValueError。

reverse()

S.reverse() – 原地反转

property dim

自身包含的所有不确定性集合的维度。