[SciPy-user] Scipy optimize fmin_l_bfgs_b gives me an obscure error

Nils Wagner nwagner@iam.uni-stuttgart...
Tue Jul 8 16:37:12 CDT 2008


On Tue, 8 Jul 2008 16:31:51 -0400
  "Isaul Vargas" <isaulv@gmail.com> wrote:
> I am using Scipy 0.6 on windows vista with python 2.5.2 
>(same thing happens
> in my linux setup), and when I use the function 
>fmin_l_bfgs_b, I get this
> obscure error:
> 
> ValueError: failed to initialize intent(inout) array -- 
>input not fortran
> contiguous
> 
> This is a part of the traceback within the function 
>fmin_l_bfgs_b:
> 197         _lbfgsb.setulb(m, x, low_bnd, upper_bnd, 
>nbd, f, g, factr,
> 198                        pgtol, wa, iwa, task, iprint, 
>csave, lsave,
> 199                        isave, dsave)
> 
> 
> I have looked at the variables involved and they are all 
>1d arrays, so I
> don't see how fortran ordering would apply.
> 
> Any ideas on how to fix this?
  
Please can you submit your example ?

Nils


More information about the SciPy-user mailing list