public final class GreedyBestFirstSearch extends AbstractStateSpaceStrategy
Constructor and Description |
---|
GreedyBestFirstSearch()
Creates a new Greedy best First Search search strategy with default parameters.
|
GreedyBestFirstSearch(int timeout,
Heuristic.Type heuristic,
double weight)
Creates a new Greedy best First Search search strategy.
|
Modifier and Type | Method and Description |
---|---|
Node |
search(CodedProblem codedProblem)
The greedy best first search algorithm.
|
extractPlan, getCreatedNodes, getExploredNodes, getHeuristicType, getMemoryUsed, getPendingNodes, getSearchingTime, getTimeout, getWeight, resetNodesStatistics, searchPlan, searchSolutionNode, setCreatedNodes, setExploredNodes, setHeuristicType, setMemoryUsed, setPendingNodes, setSearchingTime, setTimeOut, setWeight
public GreedyBestFirstSearch()
public GreedyBestFirstSearch(int timeout, Heuristic.Type heuristic, double weight)
timeout
- the time out of the planner.heuristic
- the heuristicType to use to solve the planning problem.weight
- the weight set to the heuristic.public Node search(CodedProblem codedProblem)
codedProblem
- the problem to be solved. The problem cannot be null.