(enum from pyomo.core.base.enums)
pyomo.core.base.enums
Bases: Flag
Flag
This class is a convenient wrapper for specifying various sort ordering. We pass these objects to the “sort” argument to various accessors / iterators to control how much work we perform sorting the resultant list. The idea is that “sort=SortComponents.deterministic” is more descriptive than “sort=True”.
Enum Members
UNSORTED = 0
UNSORTED
ORDERED_INDICES = 2
ORDERED_INDICES
SORTED_INDICES = 4
SORTED_INDICES
ALPHABETICAL = 8
ALPHABETICAL
unsorted = 0
unsorted
indices = 4
indices
declOrder = 0
declOrder
declarationOrder = 0
declarationOrder
alphaOrder = 8
alphaOrder
alphabeticalOrder = 8
alphabeticalOrder
alphabetical = 8
alphabetical
deterministic = 2
deterministic
sortBoth = 12
sortBoth
alphabetizeComponentAndIndex = 12
alphabetizeComponentAndIndex
Methods
default()
default
sorter([sort_by_names, sort_by_keys])
sorter
sort_names(flag)
sort_names
sort_indices(flag)
sort_indices
Member Documentation