org.sat4j.minisat.core
Interface RestartStrategy

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ArminRestarts, LubyRestarts, MiniSATRestarts

public interface RestartStrategy
extends java.io.Serializable


Method Summary
 void init(SearchParams params)
          Hook method called just before the search starts.
 long nextRestartNumberOfConflict()
          Ask for the next restart in number of conflicts.
 void onRestart()
          Hook method called when a restart occurs (once the solver has backtracked to top decision level).
 

Method Detail

init

void init(SearchParams params)
Hook method called just before the search starts.

Parameters:
params - the user's search parameters.

nextRestartNumberOfConflict

long nextRestartNumberOfConflict()
Ask for the next restart in number of conflicts.

Returns:
the delay in conflicts before the next restart.

onRestart

void onRestart()
Hook method called when a restart occurs (once the solver has backtracked to top decision level).



Copyright © 2007 Centre de Recherche en Informatique de Lens (CRIL). All Rights Reserved.