Changeset 2387


Ignore:
Timestamp:
Feb 22, 2010 1:27:44 AM (10 years ago)
Author:
wehart
Message:

Bug fix: needed to protect the use of ordered_dict_inv with
the using_bidict flag.

File:
1 edited

Legend:

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

    r2385 r2387  
    381381    def member(self, key):
    382382        if self.ordered:
    383             return self.order_dict_inv[key]
     383            if using_bidict:
     384                return self.order_dict.inv[key]
     385            else:
     386                return self.order_dict_inv[key]
    384387        #
    385388        # If the set is not ordered, then we use the intrinsic ordering imposed by the set.
Note: See TracChangeset for help on using the changeset viewer.