Changeset 160 for branches/alta/mystic-0.1a2/examples/test_bfgs.py
- Timestamp:
- 08/02/09 21:14:05 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alta/mystic-0.1a2/examples/test_bfgs.py
r159 r160 3 3 """ 4 4 Example: 5 - Minimize simple test functionsusing BFGS optimization.5 - Minimize the Rosenbrock function using BFGS optimization. 6 6 7 7 Demonstrates: … … 39 39 print 40 40 print "Using BFGS Quasi-Newton:" 41 y= fmin_bfgs(rosen, x0, fprime=rosen_der, gtol=1e-4, maxiter=100)42 print y41 x = fmin_bfgs(rosen, x0, fprime=rosen_der, gtol=1e-4, maxiter=100) 42 print x
Note: See TracChangeset
for help on using the changeset viewer.