I have pseudo boolean problems and I need to solve it with sat4j.
Can someone help me?
Here's my problem:
I have a list of variables named: a,b,c,d,e,f
And I have a list of values represented by: #1, #2, #3.....
h(a,#1) means assign #1 to a
I have some example constraints:
h(a,#1)=1
h(a,#1)+h(b,#1)+h(c,#1)=1
h(a,#1)+h(a,#5)>=1
h(b,#2)+h(b,#3)+h(b,#4)>=1
So many constraints like examples above. Finally, I want a result of assign which values to which value.
How can I solve it with sat4J? How should I represent the constraints?