Changeset 3103
- Timestamp:
- Oct 15, 2010 12:26:20 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
coopr.pyomo/trunk/coopr/pyomo/base/numvalue.py
r3071 r3103 34 34 def value(obj): 35 35 """ 36 A utility function that returns the value of an expression 37 # NOTE: This is a terminal class, so no need to pop the keyword/argument 38 # I would actually argue that we just need to make the inputs named 39 # keywords, to by-pass all of this overhead. """ 36 A utility function that returns the value of a Pyomo object or expression. 37 38 If the argument is None, a numeric value or a string, then this function simply 39 returns the argument. Otherwise, if the argument is a NumericValue then the 40 __call__ method is executed. 41 """ 40 42 if obj is None: 41 43 return None
Note: See TracChangeset
for help on using the changeset viewer.