public class BestFirstStrategy extends java.lang.Object implements IStrategy
Fitness.
There are a few parameter to tune such as
| Constructor and Description |
|---|
BestFirstStrategy()
Creates a new best-first search algorithm without depth limit.
|
BestFirstStrategy(int maxDepth)
Creates a new best-first search algorithm with depth limit.
|
| Modifier and Type | Method and Description |
|---|---|
BestFirstStrategy |
continueIfHardObjectivesFulfilled() |
void |
explore()
This method explores the design space as the implementation specifies.
|
BestFirstStrategy |
goOnOnlyIfFitnessIsBetter() |
void |
initStrategy(ThreadContext context)
Initializes the strategy with a specific
ThreadContext. |
void |
interruptStrategy()
The implementation of this interface should be ready to be interrupted.
|
public BestFirstStrategy()
public BestFirstStrategy(int maxDepth)
maxDepth - A negative maxDepth means no depth limit, zero means the checking of the initial state.public BestFirstStrategy continueIfHardObjectivesFulfilled()
public BestFirstStrategy goOnOnlyIfFitnessIsBetter()
public void initStrategy(ThreadContext context)
IStrategyThreadContext.initStrategy in interface IStrategycontext - The context.public void explore()
IStrategypublic void interruptStrategy()
IStrategyIStrategy.explore() method should return ASAP.
This method is also called by the SolutionStore class if enough solutions are found.interruptStrategy in interface IStrategy