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

SciPy scipy-tickets@scipy....
Wed Jul 18 09:34:46 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:  normal          |   Milestone:  0.5.3 Release
Component:  scipy.optimize  |     Version:  devel        
 Severity:  normal          |    Keywords:               
----------------------------+-----------------------------------------------
 {{{
 python -i sina1.py
 [[ 0.3]]
 Optimization terminated successfully.
          Current function value: 1.761814
          Iterations: 6
          Function evaluations: 67
          Gradient evaluations: 22
 Optimization terminated successfully.
          Current function value: 1.761814
          Iterations: 8
          Function evaluations: 42
          Gradient evaluations: 14
 Optimization terminated successfully.
          Current function value: 1.761814
          Iterations: 12
          Function evaluations: 13
          Gradient evaluations: 36
          Hessian evaluations: 0
 [[ 1.21106374]] [ 1.21106374] [[ 1.21106374]]
 Traceback (most recent call last):
   File "sina1.py", line 25, in ?
     x_opt4 = optimize.fmin_powell(d,x_0) # ValueError: Initial guess must
 be a scalar or rank-1 sequence.
   File "/usr/lib64/python2.4/site-packages/scipy/optimize/optimize.py",
 line 1619, in fmin_powell
     raise ValueError, "Initial guess must be a scalar or rank-1 sequence."
 ValueError: Initial guess must be a scalar or rank-1 sequence.
 }}}

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


More information about the Scipy-tickets mailing list