public final class MiniSATRestarts extends Object implements RestartStrategy
| Constructor and Description |
|---|
MiniSATRestarts() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(SearchParams theParams,
SolverStats stats)
Hook method called just before the search starts.
|
void |
newConflict() |
void |
newLearnedClause(Constr learned,
int trailLevel)
Callback method called when a new clause is learned by the solver, after
conflict analysis.
|
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() |
public void init(SearchParams theParams, SolverStats stats)
RestartStrategyinit in interface RestartStrategytheParams - the user's search parameters.stats - some statistics about the search (number of conflicts,
restarts, etc).public long nextRestartNumberOfConflict()
RestartStrategynextRestartNumberOfConflict in interface RestartStrategypublic void onRestart()
RestartStrategyonRestart in interface RestartStrategypublic boolean shouldRestart()
RestartStrategyshouldRestart in interface RestartStrategypublic void onBackjumpToRootLevel()
RestartStrategyonBackjumpToRootLevel in interface RestartStrategypublic void reset()
reset in interface ConflictTimerpublic void newConflict()
newConflict in interface ConflictTimerpublic void newLearnedClause(Constr learned, int trailLevel)
RestartStrategynewLearnedClause in interface RestartStrategylearned - the new clausetrailLevel - the number of literals assigned when the conflict occurred.Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.