You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
?- sat(~(Y*X)), sat(Z=:=Y), weighted_maximum([7,2,5],[X,Y,Z],W).
Y = 1, X = 0, Z = 1, W = 7 ;
Y = 0, X = 1, Z = 0, W = 7
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Bug in CLP(B) when multiple sat/1 combined with weighted_maximum/3
Bug multiple sat/1 combined with weighted_maximum/3
Mar 4, 2021
triska
added a commit
to triska/scryer-prolog
that referenced
this issue
Mar 5, 2021
Many thanks to @jburse for reporting this issue:
triska/clpz#15
Example:
?- sat(~(Y*X)), sat(Z=:=Y), weighted_maximum([7,2,5],[X,Y,Z],W).
W = 7, Y = 0, X = 1, Z = 0
; W = 7, Y = 1, X = 0, Z = 1
; false.
Should weighted_maximum/3 work together with multiple sat/1
constraints. I get the following result:
But was rather expecting:
The text was updated successfully, but these errors were encountered: