-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
MethodError: Cannot convert
an object of type NonlinearExpr to an object of type Float64
#3579
Comments
The error message could be improved, but this is invalid JuMP syntax. A variable bound (as specified in the |
Right. I've been hitting a number of issues, and it really wasn't obvious which ones are user errors. |
MethodError: Cannot
convert an object of type NonlinearExpr to an object of type Float64
convert
an object of type NonlinearExpr to an object of type Float64
Yes, improving these errors makes a big difference for users but it's difficult for us to know what are the cases that don't have nice errors which is why open issues like this one are very helpful. |
Thanks! I've filed a few more cases i have previously hit. I think there was at least one more aside from these... |
@odow thank you! |
results in
It works if split-out the constraint:
Related: scipopt/SCIP.jl#282
The text was updated successfully, but these errors were encountered: