HOG2
|
#include <EBSearch.h>
Classes | |
struct | searchData |
Public Member Functions | |
EBSearch (uint64_t minGrow, uint64_t maxGrow, uint64_t expEpsilon, uint64_t scale=1) | |
void | GetPath (environment *env, state from, state to, std::vector< action > &thePath) |
void | GetPath (environment *env, Heuristic< state > *heuristic, state from, state to, std::vector< action > &thePath) |
void | RedoMinWork () |
uint64_t | GetNodesExpanded () |
uint64_t | GetNodesTouched () |
void | ResetNodeCount () |
Private Member Functions | |
EBSearch< state, action, environment, DFS >::searchData | LowLevelSearch (uint64_t costLimit, uint64_t nodeLimit) |
EBSearch< state, action, environment, DFS >::searchData | BinarySearch (searchData d, uint64_t nodeLimit) |
EBSearch< state, action, environment, DFS >::searchData | ExponentialSearch (const searchData &d, uint64_t nodeLimit) |
uint64_t | GCost (const state &s1, const state &s2) |
uint64_t | GCost (const state &s, const action &a) |
uint64_t | HCost (const state &s) |
EBSearch< state, action, environment, DFS >::searchData | DFBNB (uint64_t costLimit, uint64_t nodeLimit) |
EBSearch< state, action, environment, DFS >::searchData | DFBNBHelper (state &currState, uint64_t pathCost, uint64_t costLimit, searchData &sd, uint64_t nodeLimit, action forbidden) |
EBSearch< state, action, environment, DFS >::searchData | BFHS (uint64_t costLimit, uint64_t nodeLimit) |
void | ExtractPathToStartFromID (uint64_t node, std::vector< state > &thePath) |
Private Attributes | |
uint64_t | costScale |
uint64_t | totalNodesExpanded |
uint64_t | totalNodesTouched |
Heuristic< state > * | h |
environment * | env |
std::vector< action > | solutionPath |
std::vector< action > | currPath |
uint64_t | solutionCost |
vectorCache< action > | actCache |
state | start |
state | goal |
uint64_t | c1 |
uint64_t | c2 |
uint64_t | initialGap |
AStarOpenClosed< state, BFHSCompare< state > > | q |
std::vector< state > | neighbors |
std::vector< uint64_t > | neighborID |
std::vector< uint64_t > | edgeCosts |
std::vector< dataLocation > | neighborLoc |
std::vector< state > | solutionStates |
Definition at line 25 of file EBSearch.h.
|
inline |
Definition at line 27 of file EBSearch.h.
|
private |
Definition at line 312 of file EBSearch.h.
References fless(), kClosedList, kNotFound, kOpenList, max, and min().
|
private |
Definition at line 182 of file EBSearch.h.
References d, EBSearch< state, action, environment, DFS >::searchData::f, EBSearch< state, action, environment, DFS >::searchData::failedF, min(), and EBSearch< state, action, environment, DFS >::searchData::nodes.
|
private |
Definition at line 227 of file EBSearch.h.
References EBSearch< state, action, environment, DFS >::searchData::f, EBSearch< state, action, environment, DFS >::searchData::nextF, and EBSearch< state, action, environment, DFS >::searchData::nodes.
|
private |
Definition at line 255 of file EBSearch.h.
References EBSearch< state, action, environment, DFS >::searchData::f, fgreater(), fgreatereq(), fless(), max, min(), EBSearch< state, action, environment, DFS >::searchData::nextF, and EBSearch< state, action, environment, DFS >::searchData::nodes.
|
private |
Definition at line 137 of file EBSearch.h.
References d, EBSearch< state, action, environment, DFS >::searchData::f, EBSearch< state, action, environment, DFS >::searchData::failedF, max, EBSearch< state, action, environment, DFS >::searchData::nextF, and EBSearch< state, action, environment, DFS >::searchData::nodes.
|
private |
Definition at line 430 of file EBSearch.h.
|
inlineprivate |
Definition at line 52 of file EBSearch.h.
References EBSearch< state, action, environment, DFS >::costScale, and EBSearch< state, action, environment, DFS >::env.
|
inlineprivate |
Definition at line 50 of file EBSearch.h.
References EBSearch< state, action, environment, DFS >::costScale, and EBSearch< state, action, environment, DFS >::env.
|
inline |
Definition at line 35 of file EBSearch.h.
References EBSearch< state, action, environment, DFS >::totalNodesExpanded.
|
inline |
Definition at line 36 of file EBSearch.h.
References EBSearch< state, action, environment, DFS >::totalNodesTouched.
void EBSearch< state, action, environment, DFS >::GetPath | ( | environment * | env, |
Heuristic< state > * | heuristic, | ||
state | from, | ||
state | to, | ||
std::vector< action > & | thePath | ||
) |
Definition at line 94 of file EBSearch.h.
References EBSearch< state, action, environment, DFS >::searchData::f, EBSearch< state, action, environment, DFS >::searchData::nextF, and EBSearch< state, action, environment, DFS >::searchData::nodes.
void EBSearch< state, action, environment, DFS >::GetPath | ( | environment * | env, |
state | from, | ||
state | to, | ||
std::vector< action > & | thePath | ||
) |
Definition at line 87 of file EBSearch.h.
|
inlineprivate |
Definition at line 54 of file EBSearch.h.
References EBSearch< state, action, environment, DFS >::costScale, EBSearch< state, action, environment, DFS >::goal, and EBSearch< state, action, environment, DFS >::h.
|
private |
Definition at line 443 of file EBSearch.h.
void EBSearch< state, action, environment, DFS >::RedoMinWork |
Definition at line 304 of file EBSearch.h.
|
inline |
Definition at line 37 of file EBSearch.h.
References EBSearch< state, action, environment, DFS >::totalNodesExpanded, and EBSearch< state, action, environment, DFS >::totalNodesTouched.
|
private |
Definition at line 72 of file EBSearch.h.
|
private |
Definition at line 74 of file EBSearch.h.
|
private |
Definition at line 74 of file EBSearch.h.
|
private |
Definition at line 65 of file EBSearch.h.
Referenced by EBSearch< state, action, environment, DFS >::GCost(), and EBSearch< state, action, environment, DFS >::HCost().
|
private |
Definition at line 70 of file EBSearch.h.
|
private |
Definition at line 81 of file EBSearch.h.
|
private |
Definition at line 69 of file EBSearch.h.
Referenced by EBSearch< state, action, environment, DFS >::GCost().
|
private |
Definition at line 73 of file EBSearch.h.
Referenced by EBSearch< state, action, environment, DFS >::HCost().
|
private |
Definition at line 68 of file EBSearch.h.
Referenced by EBSearch< state, action, environment, DFS >::HCost().
|
private |
Definition at line 75 of file EBSearch.h.
|
private |
Definition at line 80 of file EBSearch.h.
|
private |
Definition at line 82 of file EBSearch.h.
|
private |
Definition at line 79 of file EBSearch.h.
|
private |
Definition at line 78 of file EBSearch.h.
|
private |
Definition at line 71 of file EBSearch.h.
|
private |
Definition at line 70 of file EBSearch.h.
|
private |
Definition at line 83 of file EBSearch.h.
|
private |
Definition at line 73 of file EBSearch.h.
|
private |
Definition at line 67 of file EBSearch.h.
Referenced by EBSearch< state, action, environment, DFS >::GetNodesExpanded(), and EBSearch< state, action, environment, DFS >::ResetNodeCount().
|
private |
Definition at line 67 of file EBSearch.h.
Referenced by EBSearch< state, action, environment, DFS >::GetNodesTouched(), and EBSearch< state, action, environment, DFS >::ResetNodeCount().