public interface RestartStrategy extends Serializable, ConflictTimer
| Modifier and Type | Method and Description | 
|---|---|
| void | init(SearchParams params,
    SolverStats stats)Hook method called just before the search starts. | 
| void | newLearnedClause(Constr learned,
                int trailLevel)Callback method called when a new clause is learned by the solver, after
 conflict analysis. | 
| long | nextRestartNumberOfConflict()Deprecated.  | 
| 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). | 
| boolean | shouldRestart()Ask the strategy if the solver should restart. | 
newConflict, resetvoid init(SearchParams params, SolverStats stats)
params - the user's search parameters.stats - some statistics about the search (number of conflicts,
            restarts, etc).@Deprecated long nextRestartNumberOfConflict()
boolean shouldRestart()
void onRestart()
void onBackjumpToRootLevel()
void newLearnedClause(Constr learned, int trailLevel)
learned - 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.