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

Coefficients of complex variables created with a GenericModel are always Float64 #3689

Closed
araujoms opened this issue Feb 29, 2024 · 0 comments · Fixed by #3691
Closed

Coefficients of complex variables created with a GenericModel are always Float64 #3689

araujoms opened this issue Feb 29, 2024 · 0 comments · Fixed by #3691

Comments

@araujoms
Copy link
Contributor

MWE:

using JuMP
model = GenericModel{Float32}()
@variable(model, x in ComplexPlane())
typeof(x)
typeof(Float32(1)*x)

In contrast, the real case works as expected:

using JuMP
model = GenericModel{Float32}()
@variable(model, x)
typeof(Float64(1)*x)
typeof(BigFloat(1)*x)
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants