[SciPy-user] optimizer for complex?

Neal Becker ndbecker2@gmail....
Wed Nov 19 07:43:44 CST 2008

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. 

More information about the SciPy-user mailing list