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

Flatten forall constraints for diagnosis #5

Open
rtaupe opened this issue Nov 22, 2017 · 0 comments
Open

Flatten forall constraints for diagnosis #5

rtaupe opened this issue Nov 22, 2017 · 0 comments

Comments

@rtaupe
Copy link
Collaborator

rtaupe commented Nov 22, 2017

A MiniZinc constraint like constraint forall(i in 1..100)(foo[i] = bar[i]); is treated like one single constraint by JMiniZinc's diagnosis algorithms, although it could easily be split (flattened) into 100 distinct constraints, each affecting a different set of variables (array elements): constraint foo[1] = bar[1]; constraint foo[2] = bar[2]; ...
If it were flattened that way, diagnosis algorithms would be able to locate a diagnosis more precisely.

To be implemented:

  • a feature in at.siemens.ct.jminizinc.core that flattens forall constraints (i.e. Constraints whose expression is a at.siemens.ct.jmz.expressions.bool.Forall)
  • an option in at.siemens.ct.jminizinc.diag to use that feature to automatically flatten forall constraints in diagnosis algorithms like ConflictDetectionHSDAG.
rtaupe added a commit that referenced this issue Nov 24, 2017
rtaupe added a commit that referenced this issue Nov 28, 2017
@rtaupe rtaupe self-assigned this Dec 1, 2017
rtaupe added a commit that referenced this issue Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant