Public Member Functions | Public Attributes | Private Attributes
MBS Class Reference

#include <MBS.hh>

Inheritance diagram for MBS:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int getBestAction (const std::vector< float > &s)
 MBS (int numactions, float gamma, int MAX_LOOPS, float MAX_TIME, int modelType, const std::vector< float > &featmax, const std::vector< float > &featmin, const std::vector< int > &statesPerDim, int delay, Random rng=Random())
 MBS (const MBS &)
virtual void planOnNewModel ()
virtual void savePolicy (const char *filename)
virtual void setFirst ()
virtual void setModel (MDPModel *model)
virtual void setSeeding (bool seed)
virtual bool updateModelWithExperience (const std::vector< float > &last, int act, const std::vector< float > &curr, float reward, bool term)
virtual ~MBS ()

Public Attributes

bool DELAYDEBUG

Private Attributes

std::deque< int > actHistory
const unsigned k
MDPModelmodel
bool seedMode
ValueIterationvi

Detailed Description

Definition at line 13 of file MBS.hh.


Constructor & Destructor Documentation

MBS::MBS ( int  numactions,
float  gamma,
int  MAX_LOOPS,
float  MAX_TIME,
int  modelType,
const std::vector< float > &  featmax,
const std::vector< float > &  featmin,
const std::vector< int > &  statesPerDim,
int  delay,
Random  rng = Random() 
)

Standard constructor

Parameters:
numactions,numactionsin the domain
gammadiscount factor
maxloops
maxtime
rngrandom

Definition at line 8 of file MBS.cc.

MBS::MBS ( const MBS )

Unimplemented copy constructor: internal state cannot be simply copied.

MBS::~MBS ( ) [virtual]

Definition at line 25 of file MBS.cc.


Member Function Documentation

int MBS::getBestAction ( const std::vector< float > &  state) [virtual]

Choose the next action

Implements Planner.

Definition at line 71 of file MBS.cc.

void MBS::planOnNewModel ( ) [virtual]

Implements Planner.

Definition at line 108 of file MBS.cc.

void MBS::savePolicy ( const char *  filename) [virtual]

Reimplemented from Planner.

Definition at line 112 of file MBS.cc.

void MBS::setFirst ( ) [virtual]

Reimplemented from Planner.

Definition at line 123 of file MBS.cc.

void MBS::setModel ( MDPModel model) [virtual]

Implements Planner.

Definition at line 29 of file MBS.cc.

void MBS::setSeeding ( bool  seed) [virtual]

Reimplemented from Planner.

Definition at line 116 of file MBS.cc.

bool MBS::updateModelWithExperience ( const std::vector< float > &  laststate,
int  lastact,
const std::vector< float > &  currstate,
float  reward,
bool  term 
) [virtual]

Use the latest experience to update state info and the model.

Implements Planner.

Definition at line 36 of file MBS.cc.


Member Data Documentation

std::deque<int> MBS::actHistory [private]

Definition at line 52 of file MBS.hh.

Definition at line 47 of file MBS.hh.

const unsigned MBS::k [private]

Definition at line 53 of file MBS.hh.

MDPModel* MBS::model [private]

Definition at line 54 of file MBS.hh.

bool MBS::seedMode [private]

Definition at line 55 of file MBS.hh.

ValueIteration* MBS::vi [private]

Definition at line 51 of file MBS.hh.


The documentation for this class was generated from the following files:


rl_agent
Author(s): Todd Hester
autogenerated on Thu Jun 6 2019 22:00:14