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

local interpeter assumes comparator operators return bool #192

Open
danbgoldman opened this issue Jan 14, 2025 · 0 comments
Open

local interpeter assumes comparator operators return bool #192

danbgoldman opened this issue Jan 14, 2025 · 0 comments

Comments

@danbgoldman
Copy link

The current implementation of evaluate_condition only works properly if the result of a comparator operation is a boolean.

Some modules may return other types for comparisons, especially if they are building their own symbolic representation of an expression. For example, the pulp library for mixed linear integer programming returns an LpConstraint object from a comparison. This causes an exception here, because there is no bitwise and operator for bool & LpConstraint.

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

No branches or pull requests

1 participant