|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| package org.sat4j.minisat.constraints; |
|
8 |
| |
|
9 |
| import org.sat4j.minisat.constraints.card.AtLeast; |
|
10 |
| import org.sat4j.minisat.core.Constr; |
|
11 |
| import org.sat4j.specs.ContradictionException; |
|
12 |
| import org.sat4j.specs.IVecInt; |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
| public class MixedDataStructureDaniel extends ClausalDataStructureWL { |
|
19 |
| |
|
20 |
| private static final long serialVersionUID = 1L; |
|
21 |
| |
|
22 |
| |
|
23 |
| |
|
24 |
| |
|
25 |
| |
|
26 |
| |
|
27 |
| |
|
28 |
13
| @Override
|
|
29 |
| public Constr createCardinalityConstraint(IVecInt literals, int degree) |
|
30 |
| throws ContradictionException { |
|
31 |
13
| return AtLeast.atLeastNew(solver, getVocabulary(), literals, degree);
|
|
32 |
| } |
|
33 |
| } |