Closed jalving closed 2 years ago
Sets are ordered by default in Pyomo now. You can get an unordered set if you really want one, but I think you have to use SetOf
to do it.
This issue is deprecated by PR #24. We no longer support passing variables to the block (for now).
IndexedVar
no longer seems to work when passing to anOptMLBlock
.See the code in: https://github.com/cog-imperial/OptML/blob/dc20370a8d7de3513d1d202e78cbec336bea7a9b/src/optml/utils.py#L11-L19
Does Pyomo no longer support
OrderedSet
? We can no longer accessvars.indexed_set
. There isvars.index_set
, but it does not have.is_ordered
. Does Pyomo assume thatIndexVars
are always ordered now? If yes, we can just return the values usinglist(vars.values())