ComponentList
(class from pyomo.core.beta.list_objects
)
- class pyomo.core.beta.list_objects.ComponentList(interface_datatype, *args)[source]
Bases:
MutableSequence
Methods
__init__
(interface_datatype, *args)append
(value)S.append(value) -- append value to the end of the sequence
clear
()construct
([data])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
(i, item)S.insert(index, value) -- insert value before index
items
()iteritems
()iterkeys
()itervalues
()keys
()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
values
()Member Documentation
- append(value)
S.append(value) – append value to the end of the sequence
- clear() None -- remove all items from S
- extend(values)
S.extend(iterable) – extend sequence by appending elements from the iterable
- index(value[, start[, stop]]) integer -- return first index of value. [source]
Raises ValueError if the value is not present.
- 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.