1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| package org.sat4j.minisat.constraints; |
8 |
| |
9 |
| import java.math.BigInteger; |
10 |
| |
11 |
| import org.sat4j.minisat.constraints.pb.MinWatchPb; |
12 |
| import org.sat4j.minisat.constraints.pb.WatchPb; |
13 |
| import org.sat4j.specs.ContradictionException; |
14 |
| import org.sat4j.specs.IVec; |
15 |
| import org.sat4j.specs.IVecInt; |
16 |
| |
17 |
| |
18 |
| |
19 |
| |
20 |
| |
21 |
| public class PBMinDataStructure extends AbstractPBDataStructureFactory { |
22 |
| |
23 |
| private static final long serialVersionUID = 1L; |
24 |
| |
25 |
| |
26 |
| |
27 |
| |
28 |
| |
29 |
| |
30 |
| |
31 |
499336
| @Override
|
32 |
| protected WatchPb constraintFactory(IVecInt literals, IVecInt coefs, |
33 |
| boolean moreThan, int degree) throws ContradictionException { |
34 |
499336
| return MinWatchPb.minWatchPbNew(solver, getVocabulary(), literals,
|
35 |
| coefs, moreThan, degree); |
36 |
| } |
37 |
| |
38 |
| |
39 |
| |
40 |
| |
41 |
| |
42 |
| |
43 |
| |
44 |
0
| @Override
|
45 |
| protected WatchPb constraintFactory(IVecInt literals, IVecInt coefs, |
46 |
| int degree) { |
47 |
0
| return MinWatchPb.watchPbNew(getVocabulary(), literals, coefs, true,
|
48 |
| degree); |
49 |
| } |
50 |
| |
51 |
| |
52 |
| |
53 |
| |
54 |
| |
55 |
| |
56 |
| |
57 |
280273
| @Override
|
58 |
| protected WatchPb constraintFactory(IVecInt literals, |
59 |
| IVec<BigInteger> coefs, boolean moreThan, BigInteger degree) |
60 |
| throws ContradictionException { |
61 |
280273
| return MinWatchPb.minWatchPbNew(solver, getVocabulary(), literals,
|
62 |
| coefs, moreThan, degree); |
63 |
| } |
64 |
| |
65 |
| |
66 |
| |
67 |
| |
68 |
| |
69 |
| |
70 |
| |
71 |
33226
| @Override
|
72 |
| protected WatchPb constraintFactory(IVecInt literals, |
73 |
| IVec<BigInteger> coefs, BigInteger degree) { |
74 |
33226
| return MinWatchPb.watchPbNew(getVocabulary(), literals, coefs, true,
|
75 |
| degree); |
76 |
| } |
77 |
| |
78 |
| } |