Changeset 2892


Ignore:
Timestamp:
Jul 30, 2010 1:15:49 PM (9 years ago)
Author:
prsteel
Message:

Update to transformation priority in StandardForm? transformations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/transform/standard_form.py

    r2875 r2892  
    4545        equality = EqualityTransform()
    4646
    47         sf = equality(model, **eq_kwds)
    48         sf = nonneg(sf, **nn_kwds)
     47        # Since NonNegativeTransform introduces new constraints
     48        # (that aren't equality constraints) we call it first.
     49        #
     50        # EqualityTransform introduces new variables, but they are#
     51        # constrainted to be nonnegative.
     52        sf = nonneg(model, **nn_kwds)
     53        sf = equality(sf, **eq_kwds)
    4954
    5055        return sf
Note: See TracChangeset for help on using the changeset viewer.