-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Do we need 5 >= x >= 1
#517
Comments
It is a bit inconsistent that
doesn't work. |
I'm not a big fan of the syntax, but not sure if we need to break things now if this is how some people prefer to write down variable bounds. |
I don't even think its documented, I think it was added in one of the |
@yeesian seems to use this syntax in his examples |
Yeah but that guys crazy ;) |
We'd at least have to deprecate for a version cycle. The syntax is rough on the eyes but it's still clear and easy to understand. We don't have the corresponding syntax for two-sided constraints because variables with upper and lower bounds are much more common than two-sided constraints. |
Oops, did I? I don't mind changing the examples (if any). |
Hah yeah, whoops, caught in the act, lol. I can submit a PR to change them though. Don't let them be a showstopper (for longer-term sanity). |
We support
@defVar(m, 5 >= x >= 1)
, but I'm not sure we really should. I'd be in favour of just making it an error.The text was updated successfully, but these errors were encountered: