|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sat4j.minisat.restarts.MiniSATRestarts
public final class MiniSATRestarts
Minisat original restart strategy.
Constructor Summary | |
---|---|
MiniSATRestarts()
|
Method Summary | |
---|---|
SearchParams |
getSearchParams()
|
void |
init(SearchParams theParams)
Hook method called just before the search starts. |
void |
newConflict()
|
void |
newLearnedClause(Constr learned,
int trailLevel)
|
long |
nextRestartNumberOfConflict()
Ask for the next restart in number of conflicts. |
void |
onBackjumpToRootLevel()
Called when the solver backjumps to the root level. |
void |
onRestart()
Hook method called when a restart occurs (once the solver has backtracked to top decision level). |
void |
reset()
|
boolean |
shouldRestart()
Ask the strategy if the solver should restart. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MiniSATRestarts()
Method Detail |
---|
public void init(SearchParams theParams)
RestartStrategy
init
in interface RestartStrategy
theParams
- the user's search parameters.public long nextRestartNumberOfConflict()
RestartStrategy
nextRestartNumberOfConflict
in interface RestartStrategy
public void onRestart()
RestartStrategy
onRestart
in interface RestartStrategy
public String toString()
toString
in class Object
public boolean shouldRestart()
RestartStrategy
shouldRestart
in interface RestartStrategy
public void onBackjumpToRootLevel()
RestartStrategy
onBackjumpToRootLevel
in interface RestartStrategy
public void reset()
reset
in interface ConflictTimer
public void newConflict()
newConflict
in interface ConflictTimer
public SearchParams getSearchParams()
getSearchParams
in interface RestartStrategy
public void newLearnedClause(Constr learned, int trailLevel)
newLearnedClause
in interface RestartStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |