Changeset 465 for mystic/examples/buckshot_example06.py
- Timestamp:
- 07/01/11 23:05:59 (5 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
mystic/examples/buckshot_example06.py
r236 r465 4 4 Example: 5 5 - Solve 8th-order Chebyshev polynomial coefficients with Powell's method. 6 - Uses ScattershotSolver to provide 'pseudo-global' optimization6 - Uses BuckshotSolver to provide 'pseudo-global' optimization 7 7 - Plot of fitting to Chebyshev polynomial. 8 8 … … 11 11 - minimal solver interface 12 12 """ 13 # the Scattershot solver14 from mystic. nested import ScattershotSolver13 # the Buckshot solver 14 from mystic.solvers import BuckshotSolver 15 15 16 16 # Powell's Directonal solver 17 from mystic.s cipy_optimizeimport PowellDirectionalSolver17 from mystic.solvers import PowellDirectionalSolver 18 18 19 19 # Chebyshev polynomial and cost function … … 24 24 from mystic.termination import NormalizedChangeOverGeneration as NCOG 25 25 from mystic.math import poly1d 26 from mystic import getch, VerboseSow26 from mystic.tools import getch, VerboseSow 27 27 import pylab 28 28 pylab.ion() … … 70 70 stepmon = VerboseSow(1) 71 71 72 # use ScattershotPowell to solve 8th-order Chebyshev coefficients73 solver = ScattershotSolver(ndim, npts)72 # use buckshot-Powell to solve 8th-order Chebyshev coefficients 73 solver = BuckshotSolver(ndim, npts) 74 74 solver.SetNestedSolver(PowellDirectionalSolver) 75 75 #solver.SetMapper(ez_map)
Note: See TracChangeset
for help on using the changeset viewer.