#include <FactoredPomdp.h>
Definition at line 83 of file FactoredPomdp.h.
Definition at line 22 of file FactoredPomdp.cpp.
FactoredPomdp::FactoredPomdp | ( | string | f | ) |
Definition at line 27 of file FactoredPomdp.cpp.
Definition at line 32 of file FactoredPomdp.cpp.
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.
const int FactoredPomdp::checkProblemType | ( | ) |
Definition at line 1103 of file FactoredPomdp.cpp.
const bool FactoredPomdp::checkRewardFunctionHasOnlyPreviousTimeSliceAndAction | ( | ) | const |
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.
SharedPointer<SparseTable> momdp::FactoredPomdp::combineSimilarEntriesInReward | ( | SharedPointer< SparseTable > | st | ) |
void FactoredPomdp::convertFactored | ( | ) |
Definition at line 1904 of file FactoredPomdp.cpp.
void FactoredPomdp::convertFactoredBelief | ( | ) |
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.
void FactoredPomdp::convertFast | ( | ) |
Definition at line 1284 of file FactoredPomdp.cpp.
void FactoredPomdp::convertFastBelief | ( | ) |
Definition at line 1808 of file FactoredPomdp.cpp.
Definition at line 1690 of file FactoredPomdp.cpp.
void FactoredPomdp::convertFastObsTrans | ( | ) |
Definition at line 1578 of file FactoredPomdp.cpp.
Definition at line 1751 of file FactoredPomdp.cpp.
void FactoredPomdp::convertFastStateTrans | ( | ) |
Definition at line 1410 of file FactoredPomdp.cpp.
void FactoredPomdp::convertFastVariables | ( | ) |
Definition at line 1874 of file FactoredPomdp.cpp.
ObsAct FactoredPomdp::createAction | ( | TiXmlElement * | varChild | ) |
Definition at line 141 of file FactoredPomdp.cpp.
Function FactoredPomdp::createFunction | ( | TiXmlElement * | pFunction, |
int | whichFunction | ||
) |
Definition at line 266 of file FactoredPomdp.cpp.
void momdp::FactoredPomdp::createInitialBelief | ( | TiXmlElement * | varChild | ) |
ObsAct FactoredPomdp::createObservation | ( | TiXmlElement * | varChild | ) |
Definition at line 111 of file FactoredPomdp.cpp.
State FactoredPomdp::createState | ( | TiXmlElement * | varChild | ) |
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.
const void FactoredPomdp::defineCanonicalNames | ( | ) |
Definition at line 2092 of file FactoredPomdp.cpp.
void FactoredPomdp::expandFactoredStateTable | ( | SharedPointer< SparseTable > | sf | ) |
Definition at line 2010 of file FactoredPomdp.cpp.
SharedPointer< SparseTable > FactoredPomdp::expandObsRewSparseTable | ( | SharedPointer< SparseTable > | st, |
int | whichFunction | ||
) |
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.
map< string, int > FactoredPomdp::getStartActionSVarValues | ( | ) |
Definition at line 3686 of file FactoredPomdp.cpp.
map< string, int > FactoredPomdp::getStartActionXYVarValues | ( | ) |
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.
vvSparseMatrix FactoredPomdp::helperPreSparseMatrixToSparseMatrix | ( | vector< vector< PreSparseMatrix > > | precm | ) |
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.
void FactoredPomdp::mapActionsToValue | ( | ) |
Definition at line 2131 of file FactoredPomdp.cpp.
Definition at line 2235 of file FactoredPomdp.cpp.
void FactoredPomdp::mapFactoredCIsToValue | ( | SharedPointer< SparseTable > | st | ) |
Definition at line 2192 of file FactoredPomdp.cpp.
Definition at line 2166 of file FactoredPomdp.cpp.
Definition at line 2215 of file FactoredPomdp.cpp.
void FactoredPomdp::mapFastIndexesToValues | ( | SharedPointer< SparseTable > | st | ) |
Definition at line 1325 of file FactoredPomdp.cpp.
void FactoredPomdp::mapFastStatesToValue | ( | ) |
Definition at line 1307 of file FactoredPomdp.cpp.
Definition at line 2142 of file FactoredPomdp.cpp.
void FactoredPomdp::mapObservationsUIsToValue | ( | SharedPointer< SparseTable > | st | ) |
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.
void FactoredPomdp::printXMLErrorHeader | ( | TiXmlBase * | base | ) |
Definition at line 256 of file FactoredPomdp.cpp.
void FactoredPomdp::printXMLWarningHeader | ( | TiXmlBase * | base | ) |
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.
SharedPointer< SparseTable > FactoredPomdp::removeRedundantUIsFromReward | ( | SharedPointer< SparseTable > | st | ) |
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.
void FactoredPomdp::sortStateList | ( | ) |
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.
friend class MOMDP [friend] |
Definition at line 84 of file FactoredPomdp.h.
vector<Function> momdp::FactoredPomdp::actionFunctionList [private] |
Definition at line 103 of file FactoredPomdp.h.
vector<ObsAct> momdp::FactoredPomdp::actionList [private] |
Definition at line 94 of file FactoredPomdp.h.
map<string, int> momdp::FactoredPomdp::actionStringIndexMap |
Definition at line 193 of file FactoredPomdp.h.
vector<Function> momdp::FactoredPomdp::beliefFunctionList [private] |
Definition at line 100 of file FactoredPomdp.h.
vector<string> momdp::FactoredPomdp::canonicalNameCurr [private] |
Definition at line 109 of file FactoredPomdp.h.
vector<string> momdp::FactoredPomdp::canonicalNameForTerminal [private] |
Definition at line 110 of file FactoredPomdp.h.
vector<string> momdp::FactoredPomdp::canonicalNamePrev [private] |
Definition at line 108 of file FactoredPomdp.h.
double momdp::FactoredPomdp::discount [private] |
Definition at line 91 of file FactoredPomdp.h.
map<int, int> momdp::FactoredPomdp::factoredPositionCIIndexMap |
Definition at line 237 of file FactoredPomdp.h.
map<int, int> momdp::FactoredPomdp::factoredPositionUIIndexMap |
Definition at line 238 of file FactoredPomdp.h.
map<int, int> momdp::FactoredPomdp::fastPositionCIIndexMap |
Definition at line 205 of file FactoredPomdp.h.
map<int, int> momdp::FactoredPomdp::fastPositionUIIndexMap |
Definition at line 206 of file FactoredPomdp.h.
string momdp::FactoredPomdp::filename [private] |
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.
vector<ObsAct> momdp::FactoredPomdp::observationList [private] |
Definition at line 93 of file FactoredPomdp.h.
map<string, int> momdp::FactoredPomdp::observationStringIndexMap |
Definition at line 197 of file FactoredPomdp.h.
map<int, int> momdp::FactoredPomdp::observationUIIndexMap |
Definition at line 200 of file FactoredPomdp.h.
vector<Function> momdp::FactoredPomdp::observFunctionList [private] |
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.
map<string, int> momdp::FactoredPomdp::positionStringIndexMap |
Definition at line 203 of file FactoredPomdp.h.
map<string, int> momdp::FactoredPomdp::positionXStringIndexMap |
Definition at line 232 of file FactoredPomdp.h.
map<string, int> momdp::FactoredPomdp::positionYStringIndexMap |
Definition at line 233 of file FactoredPomdp.h.
Definition at line 178 of file FactoredPomdp.h.
vector<Function> momdp::FactoredPomdp::processedBeliefFunctionList [private] |
Definition at line 101 of file FactoredPomdp.h.
vector<Function> momdp::FactoredPomdp::rewardFunctionList [private] |
Definition at line 104 of file FactoredPomdp.h.
vector<ObsAct> momdp::FactoredPomdp::rewardList [private] |
Definition at line 95 of file FactoredPomdp.h.
vector<Function> momdp::FactoredPomdp::stateFunctionList [private] |
Definition at line 99 of file FactoredPomdp.h.
vector<State> momdp::FactoredPomdp::stateList [private] |
Definition at line 92 of file FactoredPomdp.h.
vector<Function> momdp::FactoredPomdp::terminalStateRewardFunctionList [private] |
Definition at line 105 of file FactoredPomdp.h.
vector<ObsAct> momdp::FactoredPomdp::terminalStateRewardList [private] |
Definition at line 96 of file FactoredPomdp.h.