|
1 |
| package org.sat4j.minisat.constraints; |
|
2 |
| |
|
3 |
| import org.sat4j.minisat.constraints.pb.AtLeastPB; |
|
4 |
| import org.sat4j.minisat.constraints.pb.PBConstr; |
|
5 |
| import org.sat4j.specs.ContradictionException; |
|
6 |
| import org.sat4j.specs.IVecInt; |
|
7 |
| |
|
8 |
| public class PBMaxClauseAtLeastConstrDataStructure extends |
|
9 |
| PBMaxClauseCardConstrDataStructure { |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| private static final long serialVersionUID = 1L; |
|
15 |
| |
|
16 |
4603
| protected PBConstr constructCard(IVecInt lits, int degree) throws ContradictionException{
|
|
17 |
4603
| return AtLeastPB.atLeastNew(solver, getVocabulary(),
|
|
18 |
| lits, degree); |
|
19 |
| } |
|
20 |
| |
|
21 |
2146
| protected PBConstr constructLearntCard(IVecInt literals,
|
|
22 |
| int degree){ |
|
23 |
| |
|
24 |
2146
| return AtLeastPB.atLeastNew(getVocabulary(),literals,degree);
|
|
25 |
| } |
|
26 |
| |
|
27 |
| |
|
28 |
| } |