We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
maybe_equals()
Originally reported by @JoelPasvolsky
Depending on whether it's tested on another symbol or on itself, maybe_equals() returns Boolean or integer:
>>> model = Model() >>> i = model.integer(100, lower_bound=0, upper_bound=20) >>> j = model.integer(3, lower_bound=-10, upper_bound=10) >>> j.maybe_equals(j) True >>> j.maybe_equals(i) 0
The text was updated successfully, but these errors were encountered:
This should always return a number. Specifically 0 if not equal, 1 if possibly equal, and 2 if definitely equal.
0
1
2
Sorry, something went wrong.
maybe_equals
Successfully merging a pull request may close this issue.
Originally reported by @JoelPasvolsky
Depending on whether it's tested on another symbol or on itself,
maybe_equals()
returns Boolean or integer:The text was updated successfully, but these errors were encountered: