Skip to content

Commit

Permalink
Merge pull request #1103 from jsiirola/fix-mult-sets
Browse files Browse the repository at this point in the history
Multiplying sets should not alter the arguments
  • Loading branch information
jsiirola authored Aug 15, 2019
2 parents 2f2a74d + e13452d commit 86e617c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/pyomo/tutorials/data.out
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[('A1', 1, 'A1'), ('A1', 1, 'A2'), ('A2', 2, 'A2'), ('A2', 2, 'A3'), ('A3', 3, 'A1'), ('A3', 3, 'A3')]
E_domain : Dim=0, Dimen=3, Size=27, Domain=None, Ordered=False, Bounds=None
Virtual
E_domain_index_0 : Dim=0, Dimen=2, Size=27, Domain=None, Ordered=False, Bounds=None
E_domain_index_0 : Dim=0, Dimen=2, Size=9, Domain=None, Ordered=False, Bounds=None
Virtual
F : Dim=1, Dimen=1, Size=9, Domain=None, ArraySize=3, Ordered=False, Bounds=None
Key : Members
Expand Down
2 changes: 1 addition & 1 deletion examples/pyomo/tutorials/excel.out
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[('A1', 1.0, 'A1'), ('A1', 1.0, 'A2'), ('A2', 2.0, 'A2'), ('A2', 2.0, 'A3'), ('A3', 3.0, 'A1'), ('A3', 3.0, 'A3')]
E_domain : Dim=0, Dimen=3, Size=27, Domain=None, Ordered=False, Bounds=None
Virtual
E_domain_index_0 : Dim=0, Dimen=2, Size=27, Domain=None, Ordered=False, Bounds=None
E_domain_index_0 : Dim=0, Dimen=2, Size=9, Domain=None, Ordered=False, Bounds=None
Virtual
F : Dim=1, Dimen=1, Size=0, Domain=None, ArraySize=0, Ordered=False, Bounds=None
Key : Members
Expand Down
2 changes: 1 addition & 1 deletion examples/pyomo/tutorials/table.out
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[('A1', 1, 'A1'), ('A1', 1, 'A2'), ('A2', 2, 'A2'), ('A2', 2, 'A3'), ('A3', 3, 'A1'), ('A3', 3, 'A3')]
E_domain : Dim=0, Dimen=3, Size=27, Domain=None, Ordered=False, Bounds=None
Virtual
E_domain_index_0 : Dim=0, Dimen=2, Size=27, Domain=None, Ordered=False, Bounds=None
E_domain_index_0 : Dim=0, Dimen=2, Size=9, Domain=None, Ordered=False, Bounds=None
Virtual
F : Dim=1, Dimen=1, Size=0, Domain=None, ArraySize=0, Ordered=False, Bounds=None
Key : Members
Expand Down
2 changes: 1 addition & 1 deletion pyomo/core/base/sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@ def __init__(self, *args, **kwd):
_SetOperator.__init__(self, *args, **kwd)
# the individual index sets definining the product set.
if isinstance(self._setA,_SetProduct):
self.set_tuple = self._setA.set_tuple
self.set_tuple = list(self._setA.set_tuple)
else:
self.set_tuple = [self._setA]
if isinstance(self._setB,_SetProduct):
Expand Down

0 comments on commit 86e617c

Please sign in to comment.