Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is complex number supported in OptimKit? #18

Open
Confusio opened this issue Apr 10, 2024 · 2 comments
Open

Is complex number supported in OptimKit? #18

Confusio opened this issue Apr 10, 2024 · 2 comments

Comments

@Confusio
Copy link

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

@Jutho
Copy link
Owner

Jutho commented Apr 10, 2024

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?

@Confusio
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants