|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sat4j.minisat.restarts.LubyRestarts
public final class LubyRestarts
Luby series
| Field Summary | |
|---|---|
static int |
DEFAULT_LUBY_FACTOR
|
| Constructor Summary | |
|---|---|
LubyRestarts()
|
|
LubyRestarts(int factor)
|
|
| Method Summary | |
|---|---|
int |
getFactor()
|
SearchParams |
getSearchParams()
|
void |
init(SearchParams params)
Hook method called just before the search starts. |
int |
luby()
returns the current value of the luby sequence. |
void |
newConflict()
|
void |
newLearnedClause(Constr learned,
int trailLevel)
|
int |
nextLuby()
Computes and return the next value of the luby sequence. |
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()
|
void |
setFactor(int factor)
|
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 |
| Field Detail |
|---|
public static final int DEFAULT_LUBY_FACTOR
| Constructor Detail |
|---|
public LubyRestarts()
public LubyRestarts(int factor)
factor - the factor used for the Luby series.| Method Detail |
|---|
public int luby()
public int nextLuby()
luby()public final void setFactor(int factor)
public int getFactor()
public void init(SearchParams params)
RestartStrategy
init in interface RestartStrategyparams - the user's search parameters.public long nextRestartNumberOfConflict()
RestartStrategy
nextRestartNumberOfConflict in interface RestartStrategypublic void onRestart()
RestartStrategy
onRestart in interface RestartStrategypublic String toString()
toString in class Objectpublic boolean shouldRestart()
RestartStrategy
shouldRestart in interface RestartStrategypublic void onBackjumpToRootLevel()
RestartStrategy
onBackjumpToRootLevel in interface RestartStrategypublic void reset()
reset in interface ConflictTimerpublic void newConflict()
newConflict in interface ConflictTimerpublic 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 | |||||||||