Public Member Functions | Public Attributes | Private Attributes | Friends
momdp::FactoredPomdp Class Reference

#include <FactoredPomdp.h>

List of all members.

Public Member Functions

const bool checkActionNameExists (string actionName) const
bool checkFunctionProbabilities (Function *f, TiXmlElement *xmlnode, string whichFunction)
const bool checkIdentityIsValid (vector< string > tokens) const
const bool checkInstanceMatchesParent (string instanceName, string parent)
const bool checkObsNameExists (string obsName) const
const bool checkParentNameExists (string parentName) const
const int checkProblemType ()
const bool checkRewardFunctionHasOnlyPreviousTimeSliceAndAction () const
const bool checkRewardNameExists (string rewardName) const
const bool checkStateNameExists (string stateName) const
const bool checkTerminalNameExists (string rewardName) const
SharedPointer< SparseTablecombineSimilarEntriesInReward (SharedPointer< SparseTable > st)
void convertFactored ()
void convertFactoredBelief ()
void convertFactoredBeliefCommon (ofstream &debugfile, bool printDebugFile)
void convertFactoredBeliefReparam ()
void convertFactoredNoObservationsVariables ()
void convertFactoredObsTrans ()
void convertFactoredReparam ()
void convertFactoredRewardTrans ()
void convertFactoredStateReparamTrans ()
void convertFactoredStateTrans ()
void convertFactoredTerminalStateReward ()
void convertFactoredVariables ()
void convertFast ()
void convertFastBelief ()
void convertFastNoObservationsVariables ()
void convertFastObsTrans ()
void convertFastRewardTrans ()
void convertFastStateTrans ()
void convertFastVariables ()
ObsAct createAction (TiXmlElement *varChild)
Function createFunction (TiXmlElement *pFunction, int whichFunction)
void createInitialBelief (TiXmlElement *varChild)
ObsAct createObservation (TiXmlElement *varChild)
State createState (TiXmlElement *varChild)
vector< vector< PreSparseMatrix > > createVvPreSparseMatrix (int a, int b, int c, int d)
const void defineCanonicalNames ()
void expandFactoredStateTable (SharedPointer< SparseTable > sf)
SharedPointer< SparseTableexpandObsRewSparseTable (SharedPointer< SparseTable > st, int whichFunction)
 FactoredPomdp ()
 FactoredPomdp (string f)
const StatefindState (string varName)
map< string, string > getActionsSymbols (int actionNum)
map< string, string > getFactoredObservedStatesSymbols (int stateNum)
map< string, string > getFactoredUnobservedStatesSymbols (int stateNum)
bool getNextActionSVarValues (map< string, int > &curValues, int &action, int &stateNum)
bool getNextActionXXpYVarValues (map< string, int > &curValues, int &action, int &stateX, int &stateXp, int &stateY)
bool getNextActionXYVarValues (map< string, int > &curValues, int &action, int &stateX, int &stateY)
bool getNextSVarValues (map< string, int > &curValues, int &stateNum)
bool getNextXYVarValues (map< string, int > &curValues, int &stateX, int &stateY)
map< string, string > getObservationsSymbols (int observationNum)
const set< string > getRewardFunctionCurrentTimeSliceVars (Function *rewardFunc)
map< string, int > getStartActionSVarValues ()
map< string, int > getStartActionXYVarValues ()
map< string, int > getStartSVarValues ()
map< string, int > getStartXYVarValues ()
vector< vector< SharedPointer
< SparseMatrix > > > 
helperPreSparseMatrixToSparseMatrix (vector< vector< PreSparseMatrix > > precm)
vector< vector< vector
< SharedPointer< SparseMatrix > > > > 
helperPreSparseMatrixToSparseMatrix (vector< vector< vector< PreSparseMatrix > > >precm)
const bool isCurrentTimeSlice (string name) const
const bool isPreviousTimeSlice (string name) const
void mapActionsToValue ()
void mapFactoredBeliefIndexesToValue (SharedPointer< SparseTable > st)
void mapFactoredCIsToValue (SharedPointer< SparseTable > st)
void mapFactoredStatesToValue ()
void mapFactoredStateUIsToValue (SharedPointer< SparseTable > st)
void mapFastIndexesToValues (SharedPointer< SparseTable > st)
void mapFastStatesToValue ()
void mapObservationsToValue ()
void mapObservationsUIsToValue (SharedPointer< SparseTable > st)
void mergeBeliefTables (ofstream &debugfile, bool printDebugFile)
SharedPointer< SparseTablemergeSparseTables (vector< SharedPointer< SparseTable > > stList, int whichFunction, ofstream &debugfile, bool printDebugFile)
SharedPointer< SparseTablemergeTables (vector< Function > *functionList, int whichFunction, ofstream &debugfile, bool printDebugFile)
void preprocessBeliefTables (ofstream &debugfile, bool printDebugFile)
void preprocessRewardFunction ()
SharedPointer< SparseTablepreprocessRewardTable ()
void printSparseMatrix (string title, vector< vector< SharedPointer< SparseMatrix > > > M, ofstream &debugfile)
void printXMLErrorHeader (TiXmlBase *base)
void printXMLWarningHeader (TiXmlBase *base)
SharedPointer< SparseTablereduceUnmatchedCIWithUI (SharedPointer< SparseTable > st, ofstream &debugfile, bool printDebugFile)
SharedPointer< SparseTableremoveRedundantUIsFromReward (SharedPointer< SparseTable > st)
void resortFactoredStateTables (ofstream &debugfile, bool printDebugFile, const int MIXEDTYPE)
void resortFastStateTables (ofstream &debugfile, bool printDebugFile)
void sortStateList ()
unsigned int start ()
void Tokenize (const string &str, vector< string > &tokens, const string &delimiters=" ")
bool validateModel (Function sf, string &info)
 ~FactoredPomdp ()

Public Attributes

map< string, int > actionStringIndexMap
map< int, int > factoredPositionCIIndexMap
map< int, int > factoredPositionUIIndexMap
map< int, int > fastPositionCIIndexMap
map< int, int > fastPositionUIIndexMap
SharedPointer< SparseTablefinalBeliefTable
SharedPointer< SparseTablefinalRewardTable
SharedPointer< SparseTablefinalStateTable
POMDPLayer layer
int numActions
int numMergedStates
int numMergedStatesX
int numMergedStatesY
int numObservations
map< string, int > observationStringIndexMap
map< int, int > observationUIIndexMap
map< string, int > positionStringIndexMap
map< string, int > positionXStringIndexMap
map< string, int > positionYStringIndexMap
bool preprocessBeliefTablesDone

Private Attributes

vector< FunctionactionFunctionList
vector< ObsActactionList
vector< FunctionbeliefFunctionList
vector< string > canonicalNameCurr
vector< string > canonicalNameForTerminal
vector< string > canonicalNamePrev
double discount
string filename
map< string, Function * > mapFunc
map< string, StateObsAct * > mymap
vector< ObsActobservationList
vector< FunctionobservFunctionList
vector< vector< vector< double > > > oldObservTransition
vector< vector< double > > oldRewardTransition
vector< vector< vector< double > > > oldStateTransition
vector< FunctionprocessedBeliefFunctionList
vector< FunctionrewardFunctionList
vector< ObsActrewardList
vector< FunctionstateFunctionList
vector< StatestateList
vector< FunctionterminalStateRewardFunctionList
vector< ObsActterminalStateRewardList

Friends

class MOMDP

Detailed Description

Definition at line 83 of file FactoredPomdp.h.


Constructor & Destructor Documentation

Definition at line 22 of file FactoredPomdp.cpp.

Definition at line 27 of file FactoredPomdp.cpp.

Definition at line 32 of file FactoredPomdp.cpp.


Member Function Documentation

const bool FactoredPomdp::checkActionNameExists ( string  actionName) const

Definition at line 209 of file FactoredPomdp.cpp.

bool FactoredPomdp::checkFunctionProbabilities ( Function f,
TiXmlElement xmlnode,
string  whichFunction 
)

Definition at line 1074 of file FactoredPomdp.cpp.

const bool FactoredPomdp::checkIdentityIsValid ( vector< string >  tokens) const

Definition at line 180 of file FactoredPomdp.cpp.

const bool FactoredPomdp::checkInstanceMatchesParent ( string  instanceName,
string  parent 
)

Definition at line 240 of file FactoredPomdp.cpp.

const bool FactoredPomdp::checkObsNameExists ( string  obsName) const

Definition at line 201 of file FactoredPomdp.cpp.

const bool FactoredPomdp::checkParentNameExists ( string  parentName) const

Definition at line 233 of file FactoredPomdp.cpp.

Definition at line 1103 of file FactoredPomdp.cpp.

Definition at line 1210 of file FactoredPomdp.cpp.

const bool FactoredPomdp::checkRewardNameExists ( string  rewardName) const

Definition at line 217 of file FactoredPomdp.cpp.

const bool FactoredPomdp::checkStateNameExists ( string  stateName) const

Definition at line 193 of file FactoredPomdp.cpp.

const bool FactoredPomdp::checkTerminalNameExists ( string  rewardName) const

Definition at line 225 of file FactoredPomdp.cpp.

Definition at line 1904 of file FactoredPomdp.cpp.

Definition at line 3088 of file FactoredPomdp.cpp.

void FactoredPomdp::convertFactoredBeliefCommon ( ofstream &  debugfile,
bool  printDebugFile 
)

Definition at line 3078 of file FactoredPomdp.cpp.

Definition at line 3187 of file FactoredPomdp.cpp.

Definition at line 2858 of file FactoredPomdp.cpp.

Definition at line 2739 of file FactoredPomdp.cpp.

Definition at line 1925 of file FactoredPomdp.cpp.

Definition at line 2955 of file FactoredPomdp.cpp.

Definition at line 2269 of file FactoredPomdp.cpp.

Definition at line 2541 of file FactoredPomdp.cpp.

Definition at line 3020 of file FactoredPomdp.cpp.

Definition at line 3390 of file FactoredPomdp.cpp.

Definition at line 1284 of file FactoredPomdp.cpp.

Definition at line 1808 of file FactoredPomdp.cpp.

Definition at line 1690 of file FactoredPomdp.cpp.

Definition at line 1578 of file FactoredPomdp.cpp.

Definition at line 1751 of file FactoredPomdp.cpp.

Definition at line 1410 of file FactoredPomdp.cpp.

Definition at line 1874 of file FactoredPomdp.cpp.

Definition at line 141 of file FactoredPomdp.cpp.

Function FactoredPomdp::createFunction ( TiXmlElement pFunction,
int  whichFunction 
)

Definition at line 266 of file FactoredPomdp.cpp.

Definition at line 111 of file FactoredPomdp.cpp.

Definition at line 67 of file FactoredPomdp.cpp.

vvPreSparseMatrix FactoredPomdp::createVvPreSparseMatrix ( int  a,
int  b,
int  c,
int  d 
)

Definition at line 2514 of file FactoredPomdp.cpp.

Definition at line 2092 of file FactoredPomdp.cpp.

Definition at line 2010 of file FactoredPomdp.cpp.

Definition at line 3427 of file FactoredPomdp.cpp.

const State & FactoredPomdp::findState ( string  varName)

Definition at line 247 of file FactoredPomdp.cpp.

map< string, string > FactoredPomdp::getActionsSymbols ( int  actionNum)

Definition at line 3579 of file FactoredPomdp.cpp.

map< string, string > FactoredPomdp::getFactoredObservedStatesSymbols ( int  stateNum)

Definition at line 3600 of file FactoredPomdp.cpp.

map< string, string > FactoredPomdp::getFactoredUnobservedStatesSymbols ( int  stateNum)

Definition at line 3623 of file FactoredPomdp.cpp.

bool FactoredPomdp::getNextActionSVarValues ( map< string, int > &  curValues,
int &  action,
int &  stateNum 
)

Definition at line 3849 of file FactoredPomdp.cpp.

bool FactoredPomdp::getNextActionXXpYVarValues ( map< string, int > &  curValues,
int &  action,
int &  stateX,
int &  stateXp,
int &  stateY 
)

Definition at line 3728 of file FactoredPomdp.cpp.

bool FactoredPomdp::getNextActionXYVarValues ( map< string, int > &  curValues,
int &  action,
int &  stateX,
int &  stateY 
)

Definition at line 3704 of file FactoredPomdp.cpp.

bool FactoredPomdp::getNextSVarValues ( map< string, int > &  curValues,
int &  stateNum 
)

Definition at line 3873 of file FactoredPomdp.cpp.

bool FactoredPomdp::getNextXYVarValues ( map< string, int > &  curValues,
int &  stateX,
int &  stateY 
)

Definition at line 3804 of file FactoredPomdp.cpp.

map< string, string > FactoredPomdp::getObservationsSymbols ( int  observationNum)

Definition at line 3645 of file FactoredPomdp.cpp.

const set< string > FactoredPomdp::getRewardFunctionCurrentTimeSliceVars ( Function rewardFunc)

Definition at line 1225 of file FactoredPomdp.cpp.

Definition at line 3686 of file FactoredPomdp.cpp.

Definition at line 3667 of file FactoredPomdp.cpp.

map< string, int > FactoredPomdp::getStartSVarValues ( )

Definition at line 3694 of file FactoredPomdp.cpp.

map< string, int > FactoredPomdp::getStartXYVarValues ( )

Definition at line 3675 of file FactoredPomdp.cpp.

Definition at line 2923 of file FactoredPomdp.cpp.

vector< vvSparseMatrix > FactoredPomdp::helperPreSparseMatrixToSparseMatrix ( vector< vector< vector< PreSparseMatrix > > >  precm)

Definition at line 2938 of file FactoredPomdp.cpp.

const bool FactoredPomdp::isCurrentTimeSlice ( string  name) const

Definition at line 1269 of file FactoredPomdp.cpp.

const bool FactoredPomdp::isPreviousTimeSlice ( string  name) const

Definition at line 1255 of file FactoredPomdp.cpp.

Definition at line 2131 of file FactoredPomdp.cpp.

Definition at line 2235 of file FactoredPomdp.cpp.

Definition at line 2192 of file FactoredPomdp.cpp.

Definition at line 2166 of file FactoredPomdp.cpp.

Definition at line 2215 of file FactoredPomdp.cpp.

Definition at line 1325 of file FactoredPomdp.cpp.

Definition at line 1307 of file FactoredPomdp.cpp.

Definition at line 2142 of file FactoredPomdp.cpp.

Definition at line 2153 of file FactoredPomdp.cpp.

void FactoredPomdp::mergeBeliefTables ( ofstream &  debugfile,
bool  printDebugFile 
)

Definition at line 3368 of file FactoredPomdp.cpp.

SharedPointer< SparseTable > FactoredPomdp::mergeSparseTables ( vector< SharedPointer< SparseTable > >  stList,
int  whichFunction,
ofstream &  debugfile,
bool  printDebugFile 
)

Definition at line 1947 of file FactoredPomdp.cpp.

SharedPointer< SparseTable > FactoredPomdp::mergeTables ( vector< Function > *  functionList,
int  whichFunction,
ofstream &  debugfile,
bool  printDebugFile 
)

Definition at line 1974 of file FactoredPomdp.cpp.

void FactoredPomdp::preprocessBeliefTables ( ofstream &  debugfile,
bool  printDebugFile 
)

Definition at line 3300 of file FactoredPomdp.cpp.

Definition at line 3490 of file FactoredPomdp.cpp.

Definition at line 1534 of file FactoredPomdp.cpp.

void FactoredPomdp::printSparseMatrix ( string  title,
vector< vector< SharedPointer< SparseMatrix > > >  M,
ofstream &  debugfile 
)

Definition at line 2527 of file FactoredPomdp.cpp.

Definition at line 256 of file FactoredPomdp.cpp.

Definition at line 261 of file FactoredPomdp.cpp.

SharedPointer< SparseTable > FactoredPomdp::reduceUnmatchedCIWithUI ( SharedPointer< SparseTable st,
ofstream &  debugfile,
bool  printDebugFile 
)

Definition at line 1349 of file FactoredPomdp.cpp.

Definition at line 3530 of file FactoredPomdp.cpp.

void FactoredPomdp::resortFactoredStateTables ( ofstream &  debugfile,
bool  printDebugFile,
const int  MIXEDTYPE 
)

Definition at line 2045 of file FactoredPomdp.cpp.

void FactoredPomdp::resortFastStateTables ( ofstream &  debugfile,
bool  printDebugFile 
)

Definition at line 1377 of file FactoredPomdp.cpp.

Definition at line 1154 of file FactoredPomdp.cpp.

unsigned int FactoredPomdp::start ( )

Definition at line 620 of file FactoredPomdp.cpp.

void FactoredPomdp::Tokenize ( const string &  str,
vector< string > &  tokens,
const string &  delimiters = " " 
)

Definition at line 42 of file FactoredPomdp.cpp.

bool FactoredPomdp::validateModel ( Function  sf,
string &  info 
)

Definition at line 1171 of file FactoredPomdp.cpp.


Friends And Related Function Documentation

friend class MOMDP [friend]

Definition at line 84 of file FactoredPomdp.h.


Member Data Documentation

Definition at line 103 of file FactoredPomdp.h.

Definition at line 94 of file FactoredPomdp.h.

Definition at line 193 of file FactoredPomdp.h.

Definition at line 100 of file FactoredPomdp.h.

vector<string> momdp::FactoredPomdp::canonicalNameCurr [private]

Definition at line 109 of file FactoredPomdp.h.

Definition at line 110 of file FactoredPomdp.h.

vector<string> momdp::FactoredPomdp::canonicalNamePrev [private]

Definition at line 108 of file FactoredPomdp.h.

Definition at line 91 of file FactoredPomdp.h.

Definition at line 237 of file FactoredPomdp.h.

Definition at line 238 of file FactoredPomdp.h.

Definition at line 205 of file FactoredPomdp.h.

Definition at line 206 of file FactoredPomdp.h.

Definition at line 89 of file FactoredPomdp.h.

Definition at line 173 of file FactoredPomdp.h.

Definition at line 171 of file FactoredPomdp.h.

Definition at line 172 of file FactoredPomdp.h.

Definition at line 121 of file FactoredPomdp.h.

map<string, Function*> momdp::FactoredPomdp::mapFunc [private]

Definition at line 107 of file FactoredPomdp.h.

map<string, StateObsAct*> momdp::FactoredPomdp::mymap [private]

Definition at line 98 of file FactoredPomdp.h.

Definition at line 194 of file FactoredPomdp.h.

Definition at line 218 of file FactoredPomdp.h.

Definition at line 239 of file FactoredPomdp.h.

Definition at line 240 of file FactoredPomdp.h.

Definition at line 198 of file FactoredPomdp.h.

Definition at line 93 of file FactoredPomdp.h.

Definition at line 197 of file FactoredPomdp.h.

Definition at line 200 of file FactoredPomdp.h.

Definition at line 102 of file FactoredPomdp.h.

vector<vector<vector<double> > > momdp::FactoredPomdp::oldObservTransition [private]

Definition at line 115 of file FactoredPomdp.h.

vector<vector<double> > momdp::FactoredPomdp::oldRewardTransition [private]

Definition at line 116 of file FactoredPomdp.h.

vector<vector<vector<double> > > momdp::FactoredPomdp::oldStateTransition [private]

Definition at line 114 of file FactoredPomdp.h.

Definition at line 203 of file FactoredPomdp.h.

Definition at line 232 of file FactoredPomdp.h.

Definition at line 233 of file FactoredPomdp.h.

Definition at line 178 of file FactoredPomdp.h.

Definition at line 101 of file FactoredPomdp.h.

Definition at line 104 of file FactoredPomdp.h.

Definition at line 95 of file FactoredPomdp.h.

Definition at line 99 of file FactoredPomdp.h.

Definition at line 92 of file FactoredPomdp.h.

Definition at line 105 of file FactoredPomdp.h.

Definition at line 96 of file FactoredPomdp.h.


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


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:30