[Scipy-tickets] [SciPy] #344: ValueError: objects are not aligned in optimize.fmin_cg

SciPy scipy-tickets at scipy.net
Thu Jan 11 02:32:28 CST 2007


#344: ValueError: objects are not aligned in optimize.fmin_cg
----------------------------+-----------------------------------------------
 Reporter:  nils            |       Owner:  somebody
     Type:  defect          |      Status:  new     
 Priority:  normal          |   Milestone:          
Component:  scipy.optimize  |     Version:  devel   
 Severity:  normal          |    Keywords:          
----------------------------+-----------------------------------------------
 {{{
 Traceback (most recent call last):
   File "sina1.py", line 10, in ?
     x_opt = optimize.fmin_cg(d,x_0) # ValueError: objects are not aligned
   File "/usr/lib64/python2.4/site-packages/scipy/optimize/optimize.py",
 line 855, in fmin_cg
     old_fval_backup,old_old_fval_backup)
   File "/usr/lib64/python2.4/site-packages/scipy/optimize/optimize.py",
 line 471, in line_search
     phi0, derphi0, c1, c2)
   File "/usr/lib64/python2.4/site-packages/scipy/optimize/optimize.py",
 line 359, in zoom
     a_j = _cubicmin(a_lo, phi_lo, derphi_lo, a_hi, phi_hi, a_rec, phi_rec)
   File "/usr/lib64/python2.4/site-packages/scipy/optimize/optimize.py",
 line 309, in _cubicmin
     [A,B] = numpy.dot([[dc**2, -db**2],[-dc**3, db**3]],[fb-fa-C*db,fc-
 fa-C*dc])
 ValueError: objects are not aligned
 }}}

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


More information about the Scipy-tickets mailing list