[Scipy-tickets] [SciPy] #464: optimize.fmin_powell doesn't accept a matrix input for the initial guess

SciPy scipy-tickets@scipy....
Mon Jul 30 09:24:36 CDT 2007


#464: optimize.fmin_powell doesn't accept a matrix input for the initial guess
----------------------------+-----------------------------------------------
 Reporter:  nils            |        Owner:  somebody     
     Type:  defect          |       Status:  new          
 Priority:  low             |    Milestone:  0.5.3 Release
Component:  scipy.optimize  |      Version:  devel        
 Severity:  minor           |   Resolution:               
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by nils):

 optimize.fmin is also affected by this inconsistency.

 {{{
     x_opt0 = optimize.fmin(d,x_0)      # Works for me with recent svn
   File "/usr/lib64/python2.4/site-packages/scipy/optimize/optimize.py",
 line 163, in fmin
     raise ValueError, "Initial guess must be a scalar or rank-1 sequence."
 ValueError: Initial guess must be a scalar or rank-1 sequence.
 >>> type(x_0)
 <class 'numpy.core.defmatrix.matrix'>
 >>> shape(x_0)
 (1, 1)
 }}}

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


More information about the Scipy-tickets mailing list