public class FixedPeriodRestarts extends Object implements RestartStrategy
| Constructor and Description | 
|---|
FixedPeriodRestarts()  | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
getPeriod()  | 
void | 
init(SearchParams params,
    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()
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). 
 | 
void | 
reset()  | 
void | 
setPeriod(long period)  | 
boolean | 
shouldRestart()
Ask the strategy if the solver should restart. 
 | 
String | 
toString()  | 
public void reset()
reset in interface ConflictTimerpublic void newConflict()
newConflict in interface ConflictTimerpublic void init(SearchParams params, SolverStats stats)
RestartStrategyinit in interface RestartStrategyparams - the user's search parameters.stats - some statistics about the search (number of conflicts,
            restarts, etc).@Deprecated public long nextRestartNumberOfConflict()
RestartStrategynextRestartNumberOfConflict in interface RestartStrategypublic boolean shouldRestart()
RestartStrategyshouldRestart in interface RestartStrategypublic void onRestart()
RestartStrategyonRestart in interface RestartStrategypublic void onBackjumpToRootLevel()
RestartStrategyonBackjumpToRootLevel in interface RestartStrategypublic void newLearnedClause(Constr learned, int trailLevel)
RestartStrategynewLearnedClause in interface RestartStrategylearned - the new clausetrailLevel - the number of literals assigned when the conflict occurred.public long getPeriod()
public void setPeriod(long period)
Copyright © 2013 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.