HOG2
|
#include <IDAStar.h>
Public Member Functions | |
IDAStar () | |
virtual | ~IDAStar () |
void | GetPath (SearchEnvironment< state, action > *env, state from, state to, std::vector< state > &thePath) |
void | GetPath (SearchEnvironment< state, action > *env, state from, state to, std::vector< action > &thePath) |
uint64_t | GetNodesExpanded () |
uint64_t | GetNodesTouched () |
void | ResetNodeCount () |
void | SetUseBDPathMax (bool val) |
void | SetHeuristic (Heuristic< state > *heur) |
Private Member Functions | |
double | DoIteration (SearchEnvironment< state, action > *env, state parent, state currState, std::vector< state > &thePath, double bound, double g, double maxH) |
double | DoIteration (SearchEnvironment< state, action > *env, action forbiddenAction, state &currState, std::vector< action > &thePath, double bound, double g, double maxH, double parentH) |
void | PrintGHistogram () |
void | UpdateNextBound (double currBound, double fCost) |
Private Attributes | |
unsigned long long | nodesExpanded |
unsigned long long | nodesTouched |
state | goal |
double | nextBound |
bool | usePathMax |
bool | useHashTable |
vectorCache< action > | actCache |
bool | storedHeuristic |
Heuristic< state > * | heuristic |
std::vector< uint64_t > | gCostHistogram |
|
inline |
Definition at line 28 of file IDAStar.h.
References IDAStar< state, action, verbose >::storedHeuristic, IDAStar< state, action, verbose >::useHashTable, and IDAStar< state, action, verbose >::usePathMax.
|
private |
Definition at line 195 of file IDAStar.h.
References SearchEnvironment< state, action >::ApplyAction(), fequal(), fgreater(), fless(), SearchEnvironment< state, action >::GCost(), SearchEnvironment< state, action >::GetActions(), SearchEnvironment< state, action >::GoalTest(), SearchEnvironment< state, action >::InvertAction(), and SearchEnvironment< state, action >::UndoAction().
|
private |
Definition at line 144 of file IDAStar.h.
References fgreater(), fless(), flesseq(), SearchEnvironment< state, action >::GCost(), SearchEnvironment< state, action >::GetSuccessors(), and SearchEnvironment< state, action >::GoalTest().
|
inline |
Definition at line 35 of file IDAStar.h.
References IDAStar< state, action, verbose >::nodesExpanded.
|
inline |
Definition at line 36 of file IDAStar.h.
References IDAStar< state, action, verbose >::nodesTouched.
void IDAStar< state, action, verbose >::GetPath | ( | SearchEnvironment< state, action > * | env, |
state | from, | ||
state | to, | ||
std::vector< action > & | thePath | ||
) |
Definition at line 112 of file IDAStar.h.
References SearchEnvironment< state, action >::GetActions(), SearchEnvironment< state, action >::GoalTest(), SearchEnvironment< state, action >::HCost(), and verbose.
void IDAStar< state, action, verbose >::GetPath | ( | SearchEnvironment< state, action > * | env, |
state | from, | ||
state | to, | ||
std::vector< state > & | thePath | ||
) |
|
inline |
Definition at line 37 of file IDAStar.h.
References IDAStar< state, action, verbose >::nodesExpanded, and IDAStar< state, action, verbose >::nodesTouched.
|
inline |
Definition at line 39 of file IDAStar.h.
References IDAStar< state, action, verbose >::heuristic, and IDAStar< state, action, verbose >::storedHeuristic.
|
inline |
Definition at line 38 of file IDAStar.h.
References IDAStar< state, action, verbose >::usePathMax.
|
private |
Definition at line 266 of file IDAStar.h.
References fgreater(), and fless().
|
private |
|
private |
Definition at line 75 of file IDAStar.h.
Referenced by IDAStar< state, action, verbose >::SetHeuristic().
|
private |
Definition at line 41 of file IDAStar.h.
Referenced by IDAStar< state, action, verbose >::GetNodesExpanded(), and IDAStar< state, action, verbose >::ResetNodeCount().
|
private |
Definition at line 41 of file IDAStar.h.
Referenced by IDAStar< state, action, verbose >::GetNodesTouched(), and IDAStar< state, action, verbose >::ResetNodeCount().
|
private |
Definition at line 74 of file IDAStar.h.
Referenced by IDAStar< state, action, verbose >::IDAStar(), and IDAStar< state, action, verbose >::SetHeuristic().
|
private |
Definition at line 72 of file IDAStar.h.
Referenced by IDAStar< state, action, verbose >::IDAStar().
|
private |
Definition at line 71 of file IDAStar.h.
Referenced by IDAStar< state, action, verbose >::IDAStar(), and IDAStar< state, action, verbose >::SetUseBDPathMax().