|
1 |
| package org.sat4j.minisat.constraints; |
|
2 |
| |
|
3 |
| import java.math.BigInteger; |
|
4 |
| |
|
5 |
| import org.sat4j.minisat.constraints.pb.IDataStructurePB; |
|
6 |
| import org.sat4j.minisat.constraints.pb.MinWatchPb; |
|
7 |
| import org.sat4j.minisat.constraints.pb.PBConstr; |
|
8 |
| import org.sat4j.specs.ContradictionException; |
|
9 |
| import org.sat4j.specs.IVec; |
|
10 |
| import org.sat4j.specs.IVecInt; |
|
11 |
| |
|
12 |
| public class PBMinClauseCardConstrDataStructure extends |
|
13 |
| PuebloPBMinClauseCardConstrDataStructure { |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
| private static final long serialVersionUID = 1L; |
|
19 |
| |
|
20 |
| |
|
21 |
| |
|
22 |
0
| protected PBConstr constructPB(IDataStructurePB mpb)
|
|
23 |
| throws ContradictionException { |
|
24 |
0
| return MinWatchPb.normalizedMinWatchPbNew(solver,
|
|
25 |
| getVocabulary(), mpb); |
|
26 |
| } |
|
27 |
| |
|
28 |
| |
|
29 |
0
| protected PBConstr constructLearntPB(IVecInt literals,
|
|
30 |
| IVec<BigInteger> coefs, BigInteger degree) { |
|
31 |
0
| return MinWatchPb.watchPbNew(getVocabulary(), literals, coefs,
|
|
32 |
| true, degree); |
|
33 |
| } |
|
34 |
| |
|
35 |
| } |