[SciPy-user] optimizer for complex?

Nils Wagner nwagner at iam.uni-stuttgart.de
Wed Nov 19 08:56:03 EST 2008


On Wed, 19 Nov 2008 08:43:44 -0500
  Neal Becker <ndbecker2 at gmail.com> wrote:
> Do any of the optimizers (n-dim nonlinear minimizer) 
>handle complex values?  It seems not, I seem to get good 
>results by converting to a real vector
> 
> That is, instead of calling fmin (f, x0=cmplx_array)
> 
> convert x0 to a real array (real(x0), imag (x0), real 
>(x1), imag (x1)....)
> 
> And convert back inside the function f from real to 
>complex. 
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
  
Just curious. Where does that problem appear ?

Nils



More information about the SciPy-User mailing list