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

Feature: Literal duplication - two times the same replacement in the same rule #28

Open
MaxOstrowski opened this issue Aug 10, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@MaxOstrowski
Copy link
Member

Especially inside conditionals it was hard to track where to do the replacement, as the rule is already overwritten in the first step.
Maybe accumulate all RuleRebuilders for this one replacement set and replace them all at once for this rule.

xysubgrid(X1,Y1,X2,Y2) :- xrow(X1); ycolumn(Y1);
                          xrow(X2); ycolumn(Y2);
                          ((X1-1)/3) = ((X2-1)/3);
                          ((Y1-1)/3) = ((Y2-1)/3).
@MaxOstrowski MaxOstrowski added the enhancement New feature or request label Aug 10, 2023
@MaxOstrowski
Copy link
Member Author

benchmarks/roomplanning/MNF-Roomplanning.asp

#false :- book(Course1,ID1); preference_room(ID1,Room); preference_day(ID1,Day); preference_time(ID1,Time); 
          book(Course2,ID2); preference_room(ID2,Room); preference_day(ID2,Day); preference_time(ID2,Time);
          not simultaneous(Course1,Course2); Course1 < Course2.

gets translated to a mess.

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

No branches or pull requests

1 participant