Changeset 5798


Ignore:
Timestamp:
May 23, 2012 6:40:24 PM (7 years ago)
Author:
jwatson
Message:

Fixing issue in which ConstraintLists? were not being processed by the identify_variables preprocessor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/preprocess/identify_vars.py

    r5768 r5798  
    1111
    1212import pyutilib.component.core
    13 from coopr.pyomo.base import expr, Constraint, Objective, SOSConstraint
     13from coopr.pyomo.base import expr, Constraint, Objective, SOSConstraint, ConstraintList
    1414from coopr.pyomo.base.connector import _ConnectorBase, _ConnectorValue
    1515from coopr.pyomo.base.numvalue import NumericConstant
     
    156156        active_objectives = block.active_components(Objective)
    157157
     158        active_constraints.update(block.active_components(ConstraintList))
    158159        active_constraints.update(block.active_components(SOSConstraint))
    159160
Note: See TracChangeset for help on using the changeset viewer.