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
Error on complex values in NLP #1978
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1978 +/- ##
=========================================
+ Coverage 88.77% 88.8% +0.02%
=========================================
Files 33 33
Lines 4260 4260
=========================================
+ Hits 3782 3783 +1
+ Misses 478 477 -1
Continue to review full report at Codecov.
|
Check all values that come into a macro, and throw an error if they match a condition that we know will throw an unhelpful internal error message (e.g., not being convertible to |
hi, |
No. JuMP does not support complex numbers.
Define two variables, one for the real part and one for the imaginary part model = Model()
@variable(model, x_real >= 0)
@variable(model, x_imag >= 1) See https://discourse.julialang.org/t/how-define-a-complex-jump-variable/14362 |
Thank you for the quick reply! will go through the discourse and try to solve my specific problem! |
Closes #1973
Related:
Probably in lots of other places as well. What do we want to do about this?