Changeset 2624


Ignore:
Timestamp:
May 18, 2010 3:34:46 PM (11 years ago)
Author:
wehart
Message:

Allow the same value is added to a set twice. This
shouldn't cause an error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/base/sets.py

    r2592 r2624  
    320320          try:
    321321            if tmp in self.value:
    322                raise ValueError, "Element "+str(tmp)+" already exists in set "+self.name
     322                continue
     323                #raise ValueError, "Element "+str(tmp)+" already exists in set "+self.name
    323324            self.value.add(tmp)
    324325            if self.ordered:
Note: See TracChangeset for help on using the changeset viewer.