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

Support @defVar(m, 0 <= x[...]) #9

Closed
IainNZ opened this issue May 13, 2013 · 1 comment
Closed

Support @defVar(m, 0 <= x[...]) #9

IainNZ opened this issue May 13, 2013 · 1 comment

Comments

@IainNZ
Copy link
Collaborator

IainNZ commented May 13, 2013

... because it is provides nice consistency (and throws unpleasant error if you do it currently)

@mlubin
Copy link
Member

mlubin commented May 14, 2013

This is a bit tricky. What if you have

@defVar(m, x <= y)

Without runtime checking it's impossible to know which variable you're trying to define. Making it work when one of x or y is a constant is possible, but that could potentially lead to further confusion.

We could talk about changing the syntax around a bit, something like

@defVar(m, x, >= 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants