HOG2
|
#include <gLSSLRTAStar.h>
Public Member Functions | |
gLSSLRTAStar (int nodeLimit=8) | |
virtual | ~gLSSLRTAStar (void) |
void | SetAvoidLearning (bool val) |
void | GetPath (environment *env, const state &from, const state &to, std::vector< state > &thePath) |
The core routine of LSSLRTAStar – computes at most one-move path. More... | |
void | GetPath (environment *, const state &, const state &, std::vector< action > &) |
virtual const char * | GetName () |
void | SetHCost (environment *env, const state &where, const state &to, double val) |
double | HCostLearned (const state &from) |
void | SetGCost (const state &s, double cost) |
double | GCost (const state &s) |
double | HCost (environment *env, const state &from, const state &to) const |
double | BaseHCost (environment *env, const state &from, const state &to) const |
double | HCost (const state &from, const state &to) const |
double | GetMaxStateLearning () |
void | SetInititialHeuristicWeight (double val) |
virtual uint64_t | GetNodesExpanded () const |
virtual uint64_t | GetNodesTouched () const |
virtual void | LogFinalStats (StatCollection *s) |
double | GetAmountLearned () |
void | OpenGLDraw () const |
void | OpenGLDraw (const environment *env) const |
Public Member Functions inherited from GenericSearchAlgorithm< state, action, environment > | |
GenericSearchAlgorithm () | |
virtual | ~GenericSearchAlgorithm () |
virtual bool | InitializeSearch (environment *env, const state &from, const state &to, std::vector< state > &thePath) |
virtual bool | DoSingleSearchStep (std::vector< state > &thePath) |
Public Member Functions inherited from Heuristic< state > | |
Heuristic () | |
virtual | ~Heuristic () |
Private Types | |
typedef std::unordered_map< uint64_t, glssLearnedData< state >, Hash64 > | LearnedHeuristic |
typedef std::unordered_map< uint64_t, bool, Hash64 > | ClosedList |
Private Attributes | |
environment * | m_pEnv |
LearnedHeuristic | heur |
double | fAmountLearned |
double | initialHeuristicWeight |
uint64_t | nodesExpanded |
uint64_t | nodesTouched |
int | nodeExpansionLimit |
bool | avoidLearning |
TemplateAStar< state, action, environment > | astar |
std::vector< state > | succ |
bool | initialHeuristic |
bool | firstRun |
double | minInitialHeuristic |
double | maxLaterHeuristic |
Additional Inherited Members | |
Public Attributes inherited from Heuristic< state > | |
std::vector< HeuristicTreeNode > | lookups |
std::vector< Heuristic * > | heuristics |
uint64_t | histogram [256] |
Definition at line 53 of file gLSSLRTAStar.h.
|
private |
Definition at line 164 of file gLSSLRTAStar.h.
|
private |
Definition at line 163 of file gLSSLRTAStar.h.
|
inline |
Definition at line 55 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::avoidLearning, gLSSLRTAStar< state, action, environment >::fAmountLearned, gLSSLRTAStar< state, action, environment >::firstRun, gLSSLRTAStar< state, action, environment >::initialHeuristic, gLSSLRTAStar< state, action, environment >::initialHeuristicWeight, gLSSLRTAStar< state, action, environment >::maxLaterHeuristic, gLSSLRTAStar< state, action, environment >::minInitialHeuristic, and gLSSLRTAStar< state, action, environment >::nodeExpansionLimit.
|
inlinevirtual |
Definition at line 66 of file gLSSLRTAStar.h.
|
inline |
Definition at line 129 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::initialHeuristicWeight.
Referenced by gLSSLRTAStar< state, action, environment >::HCost(), and gLSSLRTAStar< state, action, environment >::SetHCost().
|
inline |
Definition at line 108 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::heur, and gLSSLRTAStar< state, action, environment >::m_pEnv.
|
inlinevirtual |
Implements LearningAlgorithm< state, action, environment >.
Definition at line 159 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::fAmountLearned.
|
inline |
Definition at line 135 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::heur.
Referenced by gLSSLRTAStar< state, action, environment >::LogFinalStats().
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 71 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::nodeExpansionLimit.
Referenced by gLSSLRTAStar< state, action, environment >::LogFinalStats().
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 149 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::nodesExpanded.
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 150 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::nodesTouched.
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 70 of file gLSSLRTAStar.h.
|
virtual |
The core routine of LSSLRTAStar – computes at most one-move path.
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 183 of file gLSSLRTAStar.h.
References Timer::EndTimer(), fequal(), fless(), max, min(), openSize, Timer::StartTimer(), and verbose.
|
inlinevirtual |
Reimplemented from Heuristic< state >.
Definition at line 132 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::HCost(), and gLSSLRTAStar< state, action, environment >::m_pEnv.
|
inline |
Definition at line 117 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::BaseHCost(), and gLSSLRTAStar< state, action, environment >::heur.
Referenced by gLSSLRTAStar< state, action, environment >::HCost().
|
inline |
Definition at line 87 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::heur, and gLSSLRTAStar< state, action, environment >::m_pEnv.
|
inlinevirtual |
Implements GenericSearchAlgorithm< state, action, environment >.
Definition at line 151 of file gLSSLRTAStar.h.
References StatCollection::AddStat(), gLSSLRTAStar< state, action, environment >::fAmountLearned, gLSSLRTAStar< state, action, environment >::GetMaxStateLearning(), gLSSLRTAStar< state, action, environment >::GetName(), gLSSLRTAStar< state, action, environment >::maxLaterHeuristic, and gLSSLRTAStar< state, action, environment >::minInitialHeuristic.
|
inlinevirtual |
Reimplemented from GenericSearchAlgorithm< state, action, environment >.
Definition at line 160 of file gLSSLRTAStar.h.
|
virtual |
Reimplemented from GenericSearchAlgorithm< state, action, environment >.
Definition at line 358 of file gLSSLRTAStar.h.
|
inline |
Definition at line 68 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::avoidLearning.
|
inline |
Definition at line 93 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::heur, gLSSLRTAStar< state, action, environment >::m_pEnv, and verbose.
|
inline |
Definition at line 74 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::BaseHCost(), gLSSLRTAStar< state, action, environment >::heur, and gLSSLRTAStar< state, action, environment >::m_pEnv.
|
inline |
Definition at line 146 of file gLSSLRTAStar.h.
References gLSSLRTAStar< state, action, environment >::initialHeuristicWeight.
|
private |
Definition at line 173 of file gLSSLRTAStar.h.
|
private |
Definition at line 172 of file gLSSLRTAStar.h.
Referenced by gLSSLRTAStar< state, action, environment >::gLSSLRTAStar(), and gLSSLRTAStar< state, action, environment >::SetAvoidLearning().
|
private |
Definition at line 168 of file gLSSLRTAStar.h.
Referenced by gLSSLRTAStar< state, action, environment >::GetAmountLearned(), gLSSLRTAStar< state, action, environment >::gLSSLRTAStar(), and gLSSLRTAStar< state, action, environment >::LogFinalStats().
|
private |
Definition at line 176 of file gLSSLRTAStar.h.
Referenced by gLSSLRTAStar< state, action, environment >::gLSSLRTAStar().
|
private |
Definition at line 167 of file gLSSLRTAStar.h.
Referenced by gLSSLRTAStar< state, action, environment >::GCost(), gLSSLRTAStar< state, action, environment >::GetMaxStateLearning(), gLSSLRTAStar< state, action, environment >::HCost(), gLSSLRTAStar< state, action, environment >::HCostLearned(), gLSSLRTAStar< state, action, environment >::SetGCost(), and gLSSLRTAStar< state, action, environment >::SetHCost().
|
private |
Definition at line 175 of file gLSSLRTAStar.h.
Referenced by gLSSLRTAStar< state, action, environment >::gLSSLRTAStar().
|
private |
Definition at line 169 of file gLSSLRTAStar.h.
Referenced by gLSSLRTAStar< state, action, environment >::BaseHCost(), gLSSLRTAStar< state, action, environment >::gLSSLRTAStar(), and gLSSLRTAStar< state, action, environment >::SetInititialHeuristicWeight().
|
private |
Definition at line 166 of file gLSSLRTAStar.h.
Referenced by gLSSLRTAStar< state, action, environment >::GCost(), gLSSLRTAStar< state, action, environment >::HCost(), gLSSLRTAStar< state, action, environment >::HCostLearned(), gLSSLRTAStar< state, action, environment >::SetGCost(), and gLSSLRTAStar< state, action, environment >::SetHCost().
|
private |
Definition at line 178 of file gLSSLRTAStar.h.
Referenced by gLSSLRTAStar< state, action, environment >::gLSSLRTAStar(), and gLSSLRTAStar< state, action, environment >::LogFinalStats().
|
private |
Definition at line 177 of file gLSSLRTAStar.h.
Referenced by gLSSLRTAStar< state, action, environment >::gLSSLRTAStar(), and gLSSLRTAStar< state, action, environment >::LogFinalStats().
|
private |
Definition at line 171 of file gLSSLRTAStar.h.
Referenced by gLSSLRTAStar< state, action, environment >::GetName(), and gLSSLRTAStar< state, action, environment >::gLSSLRTAStar().
|
private |
Definition at line 170 of file gLSSLRTAStar.h.
Referenced by gLSSLRTAStar< state, action, environment >::GetNodesExpanded().
|
private |
Definition at line 170 of file gLSSLRTAStar.h.
Referenced by gLSSLRTAStar< state, action, environment >::GetNodesTouched().
|
private |
Definition at line 174 of file gLSSLRTAStar.h.