IndexedComponent.itervalues() was deprecated in Pyomo 6; this PR eliminates calls to it from Egret. I believe this implementation should have the same performance on older versions of Pyomo, while bypassing creating an itermediate list like the value method does in older (and current) versions of Pyomo.
One incongruity I caught in current Pyomo: the keys(), values(), and items() methods on IndexedComponent document returning an iterator, but instead return a list.
IndexedComponent.itervalues()
was deprecated in Pyomo 6; this PR eliminates calls to it from Egret. I believe this implementation should have the same performance on older versions of Pyomo, while bypassing creating an itermediate list like thevalue
method does in older (and current) versions of Pyomo.One incongruity I caught in current Pyomo: the
keys()
,values()
, anditems()
methods onIndexedComponent
document returning an iterator, but instead return a list.