Ignore:
Timestamp:
02/20/09 16:40:19 (7 years ago)
Author:
mmckerns
Message:

added solver for scipy's fmin_powell (added scipy dependency too = BAD);
corrected output from disp,retall,full_output options to be identical to scipy's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mystic/examples/test_rosenbrock2.py

    r102 r103  
    2424    print "===================" 
    2525    start = time.time() 
    26     from mystic.tools import VerboseSow 
    27     stepmon = VerboseSow(10) 
     26    from mystic.tools import Sow #VerboseSow 
     27    stepmon = Sow() #VerboseSow(10) 
    2828    from mystic.termination import CandidateRelativeTolerance as CRT 
    2929 
     30   #from scipy.optimize import fmin 
    3031    from mystic.scipy_optimize import fmin, NelderMeadSimplexSolver 
    3132   #print fmin(rosen,x0,retall=0,full_output=0) 
     
    3435    solver.SetStrictRanges(min,max) 
    3536    solver.enable_signal_handler() 
    36     solver.Solve(rosen,termination=CRT(xtol=1e-5),StepMonitor=stepmon) 
     37    solver.Solve(rosen,termination=CRT(xtol=4e-5),StepMonitor=stepmon,disp=1) 
    3738    print solver.Solution() 
    3839 
Note: See TracChangeset for help on using the changeset viewer.