Closed LebedevRI closed 11 months ago
The error message could be improved, but this is invalid JuMP syntax. A variable bound (as specified in the @variable
macro) must be a number and not an expression.
Right. I've been hitting a number of issues, and it really wasn't obvious which ones are user errors. The error diagnostic could really use an improvement then. Thanks!
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.
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: https://github.com/scipopt/SCIP.jl/issues/282