Implementation of Fruit Tree Navigation Task. More...
Classes  
class  Action 
Implementation of action for Fruit Tree Navigation task. More...  
class  State 
Implementation of Fruit Tree Navigation state. More...  
Public Member Functions  
FruitTreeNavigation (const size_t maxSteps=500, const size_t depth=6)  
Construct a Fruit Tree Navigation instance using the given constants. More...  
State  InitialSample () 
This function does null initialization of state space. More...  
bool  IsTerminal (const State &state) const 
This function checks if the FTN has reached the terminal state. More...  
size_t  MaxSteps () const 
Get the maximum number of steps allowed. More...  
size_t &  MaxSteps () 
Set the maximum number of steps allowed. More...  
arma::vec  Sample (const State &state, const Action &action, State &nextState) 
Dynamics of the FTN System. More...  
arma::vec  Sample (const State &state, const Action &action) 
Dynamics of the FTN System. More...  
size_t  StepsPerformed () const 
Get the number of steps performed. More...  
Static Public Attributes  
static constexpr size_t  rewardSize = 6 
The reward vector consists of {Protein, Carbs, Fats, Vitamins, Minerals, Water} A total of 6 rewards. More...  
Implementation of Fruit Tree Navigation Task.
For more details, see the following:

inline 

inline 
This function does null initialization of state space.
Init to the root of the tree (0, 0).
Definition at line 168 of file ftn.hpp.
References FruitTreeNavigation::State::State().

inline 
This function checks if the FTN has reached the terminal state.
state  The current State. 
Definition at line 180 of file ftn.hpp.
References Log::Info, and FruitTreeNavigation::State::Row().
Referenced by FruitTreeNavigation::Sample().

inline 

inline 
Dynamics of the FTN System.
To get reward and next state based on current state and current action. Return null vector reward as default.
state  The current State. 
action  The action taken. 
nextState  The next state. 
Definition at line 121 of file ftn.hpp.
References FruitTreeNavigation::Action::action, FruitTreeNavigation::State::Column(), FruitTreeNavigation::IsTerminal(), FruitTreeNavigation::rewardSize, and FruitTreeNavigation::State::Row().
Referenced by FruitTreeNavigation::Sample().
Dynamics of the FTN System.
To get reward and next state based on current state and current action. This function calls the Sample function to estimate the next state return reward for taking a particular action.
state  The current State. 
action  The action taken. 
Definition at line 158 of file ftn.hpp.
References FruitTreeNavigation::Sample().

inline 

static 
The reward vector consists of {Protein, Carbs, Fats, Vitamins, Minerals, Water} A total of 6 rewards.
Definition at line 206 of file ftn.hpp.
Referenced by FruitTreeNavigation::Sample().