Changeset 1542
- Timestamp:
- 10/13/08 02:59:27 (1 month ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openopt/scikits/openopt/examples/oofun/speedup.py
r1538 r1542 2 2 This example illustrates a great speedup that can be achieved 3 3 via using oofun and oovar vs "classic" style, 4 even for unconstrained functions. 4 even for unconstrained functions, 5 provided the solver deals with at least 1st derivatives, 6 so scipy_cobyla, goldenSection, scipy_fminbound, scipy_powell 7 or GLP solvers are inappropriate 5 8 6 9 The speedup is due to changes in derivatives numerical approximation approach: … … 70 73 31 4.862e+02 71 74 istop: 1000 72 Solver: Time Elapsed = 1.51 CPU Time Elapsed = 1.4975 Solver: Time Elapsed = 1.51 CPU Time Elapsed = 1.49 73 76 objFunValue: 486.20891 74 77 evals f: 17887 evals of costly func g: 305 … … 86 89 27 4.861e+02 87 90 istop: 1000 88 Solver: Time Elapsed = 15.09 CPU Time Elapsed = 14.2991 Solver: Time Elapsed = 15.09 CPU Time Elapsed = 14.29 89 92 objFunValue: 486.07635 90 93 evals f: 13660 evals of costly func g: 13660
