[SciPy-user] optimizer for complex?

Neal Becker ndbecker2@gmail....
Wed Nov 19 07:58:57 CST 2008


Nils Wagner wrote:

> On Wed, 19 Nov 2008 08:43:44 -0500
>   Neal Becker <ndbecker2@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@scipy.org
>> http://projects.scipy.org/mailman/listinfo/scipy-user
>   
> Just curious. Where does that problem appear ?
> 

I'm trying to optimize an FIR filter (for a rather special application)



More information about the SciPy-user mailing list