Ignore:
Timestamp:
08/02/09 21:14:05 (7 years ago)
Author:
altafang
Message:

Adding Newton-CG solver and making some edits to other solvers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/alta/mystic-0.1a2/examples/test_bfgs.py

    r159 r160  
    33""" 
    44Example: 
    5     - Minimize simple test functions using BFGS optimization. 
     5    - Minimize the Rosenbrock function using BFGS optimization. 
    66 
    77Demonstrates: 
     
    3939    print 
    4040    print "Using BFGS Quasi-Newton:" 
    41     y = fmin_bfgs(rosen, x0, fprime=rosen_der, gtol=1e-4, maxiter=100) 
    42     print y 
     41    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.