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

NOT with operator == throws an exception during build time #37

Open
maxkratz opened this issue Sep 2, 2022 · 2 comments
Open

NOT with operator == throws an exception during build time #37

maxkratz opened this issue Sep 2, 2022 · 2 comments
Labels
bug Something isn't working still broken Issue/Bug is not resolved when adding this label

Comments

@maxkratz
Copy link
Member

maxkratz commented Sep 2, 2022

NOT with operator == creates infeasible ILP problems. Example:

!mappings.n2n->filter(m | m.nodes().snode == self)->count() == 1

Problem:
expr + sub_1 >= 1 but there is somethin missing:
expr - sub_1 <= 1

Update: The build of such a constraint is currently not supported. The transformation throws an exception during build time:

ERROR [build.GipsProjectBuilder::49] - java.lang.UnsupportedOperationException: Currently relational expressions containing the '==' operator can not be part of boolean expressions containing operators other than '&'

@maxkratz maxkratz added the bug Something isn't working label Sep 7, 2022
@maxkratz maxkratz changed the title NOT with operator == creates infeasible ILP problems NOT with operator == throws an exception during build time Dec 15, 2022
@maxkratz
Copy link
Member Author

I've added a test case for this: Echtzeitsysteme/gips-tests#27

@maxkratz maxkratz added the still broken Issue/Bug is not resolved when adding this label label Dec 15, 2022
@maxkratz
Copy link
Member Author

maxkratz commented Jun 6, 2024

This will be resolved by #145.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working still broken Issue/Bug is not resolved when adding this label
Projects
None yet
Development

No branches or pull requests

1 participant