| 
 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.MaxWatchPb; | 
| 
 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 PBMaxClauseCardConstrDataStructure extends | 
| 
 13 | 
  
 |         PuebloPBMinClauseCardConstrDataStructure { | 
| 
 14 | 
  
 |  | 
| 
 15 | 
  
 |      | 
| 
 16 | 
  
 |  | 
| 
 17 | 
  
 |  | 
| 
 18 | 
  
 |     private static final long serialVersionUID = 1L; | 
| 
 19 | 
  
 |  | 
| 
 20 | 
 246528
 |     protected PBConstr constructPB(IDataStructurePB mpb)
 | 
| 
 21 | 
  
 |             throws ContradictionException { | 
| 
 22 | 
 246528
 |         return MaxWatchPb.normalizedMaxWatchPbNew(solver, getVocabulary(), mpb);
 | 
| 
 23 | 
  
 |     } | 
| 
 24 | 
  
 |  | 
| 
 25 | 
 23528
 |     protected PBConstr constructLearntPB(IVecInt literals,
 | 
| 
 26 | 
  
 |             IVec<BigInteger> coefs, BigInteger degree) { | 
| 
 27 | 
 23528
 |         return MaxWatchPb.watchPbNew(getVocabulary(), literals, coefs, true,
 | 
| 
 28 | 
  
 |                 degree); | 
| 
 29 | 
  
 |     } | 
| 
 30 | 
  
 |  | 
| 
 31 | 
  
 | } |