UncertaintySetList

(class from pyomo.contrib.pyros.uncertainty_sets)

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

Bases: MutableSequence

Wrapper around a list of uncertainty sets, all of which have an immutable common dimension.

Parameters:
  • uncertainty_sets (iterable, optional) – Sequence of uncertainty sets.

  • name (str or None, optional) – Name of the uncertainty set list.

  • min_length (int or None, optional) – Minimum required length of the sequence. If None is provided, then the minimum required length is set to 0.

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

Initialize self (see class docstring).

Methods

__init__([uncertainty_sets, name, min_length])

Initialize self (see class docstring).

append(value)

S.append(value) -- append value to the end of the sequence

clear()

Remove all items from the list.

count(value)

extend(values)

S.extend(iterable) -- extend sequence by appending elements from the iterable

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

Raises ValueError if the value is not present.

insert(idx, value)

Insert an object before index denoted by idx.

pop([index])

Raise IndexError if list is empty or index is out of range.

remove(value)

S.remove(value) -- remove first occurrence of value.

reverse()

S.reverse() -- reverse IN PLACE

Attributes

dim

Dimension of all uncertainty sets contained in self.

Member Documentation

append(value)

S.append(value) – append value to the end of the sequence

clear()[source]

Remove all items from the list.

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

S.extend(iterable) – extend sequence by appending elements from the iterable

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

Raises ValueError if the value is not present.

Supporting start and stop arguments is optional, but recommended.

insert(idx, value)[source]

Insert an object before index denoted by idx.

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

Raise IndexError if list is empty or index is out of range.

remove(value)

S.remove(value) – remove first occurrence of value. Raise ValueError if the value is not present.

reverse()

S.reverse() – reverse IN PLACE

property dim

Dimension of all uncertainty sets contained in self.