OptimKit.jl icon indicating copy to clipboard operation
OptimKit.jl copied to clipboard

Is complex number supported in OptimKit?

Open Confusio opened this issue 1 year ago • 2 comments

For complex optimization, there is an error for missing method isless(::ComplexF64, ::ComplexF64). Is the complex number supported in OptimKit?

Confusio avatar Apr 10 '24 07:04 Confusio

The parameters over which you are optimising can be complex. But the value of your cost function should be real. What would it mean to miminize otherwise?

Jutho avatar Apr 10 '24 07:04 Jutho

Thanks for the quick reply. My cost function is real. I figured it out as I needed to define the inner function by taking the real part.

Confusio avatar Apr 10 '24 13:04 Confusio