Changeset 2900


Ignore:
Timestamp:
Aug 2, 2010 3:03:31 PM (9 years ago)
Author:
khunter
Message:

Whoops, we don't support constructs like "return a <= b <= c".
Let's not advertise it.

File:
1 edited

Legend:

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

    r2896 r2900  
    406406                  'Expecting a tuple or equation.  Examples:\n\n' \
    407407                  ' return summation( model.costs ) == model.income\n' \
    408                   ' return 0 <= model.weight[ material ] <= 25\n' \
    409408                  ' return (0, model.price[ item ], 50)'
    410409            raise ValueError, msg % ( self.name, str(expr) )
Note: See TracChangeset for help on using the changeset viewer.