Changeset 1535
- Timestamp:
- 10/11/08 06:17:44 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openopt/scikits/openopt/Kernel/ooIterPrint.py
r1530 r1535 1 1 from string import rjust 2 2 from numpy import atleast_1d, asfarray, log10 3 def signOfFeasible(p): 4 r = '+' 5 if p.rk<p.contol: r = '-' 6 return r 7 3 8 textOutputDict = {\ 4 9 'objFunVal': lambda p: '%0.3e' % p.iterValues.f[-1], \ 5 10 'log10(maxResidual)': lambda p: '%0.2f' % log10(p.iterValues.r[-1]+1e-100), \ 6 'isFeasible': lambda p: ('+' if p.rk<p.contol else '-')11 'isFeasible': signOfFeasible 7 12 } 8 13 delimiter = ' '
