org.sat4j.minisat.learning
Class FixedLengthLearning<L extends ILits,D extends DataStructureFactory<L>>
java.lang.Object
org.sat4j.minisat.learning.LimitedLearning<L,D>
org.sat4j.minisat.learning.FixedLengthLearning<L,D>
- All Implemented Interfaces:
- java.io.Serializable, LearningStrategy<L,D>
public class FixedLengthLearning<L extends ILits,D extends DataStructureFactory<L>>
- extends LimitedLearning<L,D>
A learning scheme for learning constraints of size smaller than a given
constant.
- Author:
- leberre
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FixedLengthLearning
public FixedLengthLearning()
FixedLengthLearning
public FixedLengthLearning(int maxlength)
init
public void init()
- Description copied from interface:
LearningStrategy
- hook method called just before the search begins. Useful to compute
metrics/parameters based on the input formula.
- Specified by:
init
in interface LearningStrategy<L extends ILits,D extends DataStructureFactory<L>>
- Overrides:
init
in class LimitedLearning<L extends ILits,D extends DataStructureFactory<L>>
setMaxLength
public void setMaxLength(int v)
getMaxLength
public int getMaxLength()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setBound
protected void setBound(int newbound)
learningCondition
protected boolean learningCondition(Constr constr)
- Specified by:
learningCondition
in class LimitedLearning<L extends ILits,D extends DataStructureFactory<L>>
Copyright © 2009 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.