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

Projection over atoms which are not in the preferences used in optimize statement #7

Open
seem-ish opened this issue Sep 29, 2021 · 1 comment

Comments

@seem-ish
Copy link

In this program, when I use the project option, even though b is used in a preference that is not in optimize statement, I get projection over both a and b .

dom(1..3).
1 { a(X) : dom(X) } 2.
1 { b(X) : dom(X) } 2.
#show a/1.
#show b/1.

%
% basic preference statements
%

#preference(p(1),subset){
  a(X)
}.

#preference(p(2),less(weight)){
  X :: b(X)
}.
#optimize(p(1)).

It would be nice to get the projection just over a .

@javier-romero
Copy link
Collaborator

Yes, I agree, thanks.
I mark is an an enhancement for the next version.

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

2 participants