[Scipy-tickets] [SciPy] #1463: optimization bug fmin_slspq

SciPy Trac scipy-tickets@scipy....
Wed Jun 22 10:50:15 CDT 2011


#1463: optimization bug fmin_slspq
----------------------------+-----------------------------------------------
 Reporter:  ram             |       Owner:  somebody   
     Type:  defect          |      Status:  new        
 Priority:  normal          |   Milestone:  Unscheduled
Component:  scipy.optimize  |     Version:  0.9.0      
 Keywords:  fmin_slsqp      |  
----------------------------+-----------------------------------------------
 this test fails when u is included, seems like there is a non-obvious
 limit somewhere


 from scipy.optimize import fmin_slsqp
 from numpy import array, asfarray, finfo,ones, sqrt, zeros
 from time import time

 def genresid(d):
     a = d[0]
     b = d[1]
     c = d[2]
     d = d[3]
     u = d[4]
     print a,b,c,d

     sumr = a+b+c+d
     print sumr
     return sumr


 t0 = time()
 x0 = [ 0.00, 0.50, 0.91, 0.0, 12.0 ]
 x = fmin_slsqp(genresid, x0,
                iprint=2, full_output=1)
 print "Elapsed time:", 1000*(time()-t0), "ms"
 print "Results",x
 print "\n\n"

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1463>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list