Changeset 103 for mystic/examples/test_rosenbrock2.py
- Timestamp:
- 02/20/09 16:40:19 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mystic/examples/test_rosenbrock2.py
r102 r103 24 24 print "===================" 25 25 start = time.time() 26 from mystic.tools import VerboseSow27 stepmon = VerboseSow(10)26 from mystic.tools import Sow #VerboseSow 27 stepmon = Sow() #VerboseSow(10) 28 28 from mystic.termination import CandidateRelativeTolerance as CRT 29 29 30 #from scipy.optimize import fmin 30 31 from mystic.scipy_optimize import fmin, NelderMeadSimplexSolver 31 32 #print fmin(rosen,x0,retall=0,full_output=0) … … 34 35 solver.SetStrictRanges(min,max) 35 36 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) 37 38 print solver.Solution() 38 39
Note: See TracChangeset
for help on using the changeset viewer.