Changeset 1997


Ignore:
Timestamp:
Dec 13, 2009 5:17:34 PM (10 years ago)
Author:
jwatson
Message:

Changing _component reference to active_component.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.plugins/trunk/coopr/plugins/mip/CPLEX.py

    r1984 r1997  
    1515from coopr.opt.results import *
    1616from coopr.opt.solver import *
     17from coopr.pyomo.base.var import *
    1718import mockmip
    1819import pyutilib.services
     
    6566       from coopr.pyomo.base.set_types import IntegerSet, BooleanSet
    6667
    67        for variable in instance._component[coopr.pyomo.base.var._VarBase].values():
     68       for variable in instance.active_components(Var).values():
    6869
    6970           if (isinstance(variable.domain, IntegerSet) is True) or (isinstance(variable.domain, BooleanSet) is True):
Note: See TracChangeset for help on using the changeset viewer.