You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #305 pointed out an issue with Sets in Python 3: while Pyomo allows mixed-type Sets (i.e., mixing integers and strings in a single set), doing so will likely fail when running under Python 3 due to pervasive sorting to enforce determinism.
We should propagate the more robust sorter added in #305 to the main Set class as a sorted_values() method, and then replace most uses of sorted() with set.sorted_values() throughout the code.
The text was updated successfully, but these errors were encountered:
PR #305 pointed out an issue with Sets in Python 3: while Pyomo allows mixed-type Sets (i.e., mixing integers and strings in a single set), doing so will likely fail when running under Python 3 due to pervasive sorting to enforce determinism.
We should propagate the more robust sorter added in #305 to the main Set class as a
sorted_values()
method, and then replace most uses ofsorted()
withset.sorted_values()
throughout the code.The text was updated successfully, but these errors were encountered: