Skip to content

Commit

Permalink
Merge pull request Pyomo#3054 from jsiirola/writers-improved-determinism
Browse files Browse the repository at this point in the history
Improve writer determinism
  • Loading branch information
jsiirola authored Nov 30, 2023
2 parents 91729ba + 1aaf571 commit ee95302
Show file tree
Hide file tree
Showing 15 changed files with 474 additions and 320 deletions.
2 changes: 1 addition & 1 deletion pyomo/core/base/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class SortComponents(enum.Flag, **strictEnum):
alphabeticalOrder = alphaOrder
alphabetical = alphaOrder
# both alpha and decl orders are deterministic, so only must sort indices
deterministic = indices
deterministic = ORDERED_INDICES
sortBoth = indices | alphabeticalOrder # Same as True
alphabetizeComponentAndIndex = sortBoth

Expand Down
Loading

0 comments on commit ee95302

Please sign in to comment.