Ignore:
Timestamp:
07/01/11 23:05:59 (5 years ago)
Author:
mmckerns
Message:

all solvers import through 'solvers', and tools through 'tools'
renamed BatchGrid? and Scattershot solvers; (see ticket #143)

File:
1 moved

Legend:

Unmodified
Added
Removed
  • mystic/examples/buckshot_example06.py

    r236 r465  
    44Example: 
    55    - Solve 8th-order Chebyshev polynomial coefficients with Powell's method. 
    6     - Uses ScattershotSolver to provide 'pseudo-global' optimization 
     6    - Uses BuckshotSolver to provide 'pseudo-global' optimization 
    77    - Plot of fitting to Chebyshev polynomial. 
    88 
    … …  
    1111    - minimal solver interface 
    1212""" 
    13 # the Scattershot solver 
    14 from mystic.nested import ScattershotSolver 
     13# the Buckshot solver 
     14from mystic.solvers import BuckshotSolver 
    1515 
    1616# Powell's Directonal solver 
    17 from mystic.scipy_optimize import PowellDirectionalSolver 
     17from mystic.solvers import PowellDirectionalSolver 
    1818 
    1919# Chebyshev polynomial and cost function 
    … …  
    2424from mystic.termination import NormalizedChangeOverGeneration as NCOG 
    2525from mystic.math import poly1d 
    26 from mystic import getch, VerboseSow 
     26from mystic.tools import getch, VerboseSow 
    2727import pylab 
    2828pylab.ion() 
    … …  
    7070    stepmon = VerboseSow(1) 
    7171 
    72     # use Scattershot Powell to solve 8th-order Chebyshev coefficients 
    73     solver = ScattershotSolver(ndim, npts) 
     72    # use buckshot-Powell to solve 8th-order Chebyshev coefficients 
     73    solver = BuckshotSolver(ndim, npts) 
    7474    solver.SetNestedSolver(PowellDirectionalSolver) 
    7575   #solver.SetMapper(ez_map) 
Note: See TracChangeset for help on using the changeset viewer.