#include <SampleBP.h>
Public Member Functions | |
double | calculateLowerBoundValue (int action, BeliefTreeNode ¤tNode) |
int | chooseAction (BeliefTreeNode ¤tNode) |
bool | CompareIfLowerBoundImprovesAction (int action, int observation, int xstate, BeliefTreeNode ¤tNode, unsigned int currentRoot) |
void | getMaxExcessUncOutcome (BeliefTreeNode &cn, BPUpdateResult &r, unsigned int currentRoot) const |
list< cacherow_stval > | sample (cacherow_stval currentBeliefIndex, unsigned int currentRoot) |
SampleBP () | |
void | setBinManager (BinManagerSet *_bm) |
void | setRandomization (bool newFlag) |
void | setTargetPrecision (double _targetPrecision) |
virtual void | setup (SharedPointer< MOMDP > _problem, SARSOP *_solver) |
~SampleBP () | |
Public Attributes | |
BinManagerSet * | bm |
bool | doRandomization |
bool | isRoot |
std::vector< int > | newTrialFlagArr |
std::vector< double > | nextNodeTargetLbArr |
std::vector< double > | nextNodeTargetUbArr |
int | numBinProceed |
int | numSubOptimal |
int | numTrials |
SARSOP * | solver |
std::vector< double > | trialTargetPrecisionArr |
Private Attributes | |
std::vector< int > | depthArr |
double | logOcc |
double | maxDepth |
int | newNumUpdates |
double | newQualitySum |
double | oldMaxDepth |
int | oldNumUpdates |
double | oldQualitySum |
std::vector< list < cacherow_stval > > | priorityQueueArr |
Definition at line 48 of file SampleBP.h.
Definition at line 55 of file SampleBP.cpp.
momdp::SampleBP::~SampleBP | ( | ) | [inline] |
Definition at line 104 of file SampleBP.h.
double momdp::SampleBP::calculateLowerBoundValue | ( | int | action, |
BeliefTreeNode & | currentNode | ||
) |
Definition at line 505 of file SampleBP.cpp.
int momdp::SampleBP::chooseAction | ( | BeliefTreeNode & | currentNode | ) |
Definition at line 526 of file SampleBP.cpp.
bool momdp::SampleBP::CompareIfLowerBoundImprovesAction | ( | int | action, |
int | observation, | ||
int | xstate, | ||
BeliefTreeNode & | currentNode, | ||
unsigned int | currentRoot | ||
) |
Definition at line 426 of file SampleBP.cpp.
void momdp::SampleBP::getMaxExcessUncOutcome | ( | BeliefTreeNode & | cn, |
BPUpdateResult & | r, | ||
unsigned int | currentRoot | ||
) | const |
Definition at line 332 of file SampleBP.cpp.
list< cacherow_stval > momdp::SampleBP::sample | ( | cacherow_stval | currentBeliefIndex, |
unsigned int | currentRoot | ||
) | [virtual] |
Reimplemented from momdp::Sample.
Definition at line 73 of file SampleBP.cpp.
void momdp::SampleBP::setBinManager | ( | BinManagerSet * | _bm | ) |
Definition at line 421 of file SampleBP.cpp.
void momdp::SampleBP::setRandomization | ( | bool | newFlag | ) |
Definition at line 59 of file SampleBP.cpp.
void momdp::SampleBP::setTargetPrecision | ( | double | _targetPrecision | ) |
void momdp::SampleBP::setup | ( | SharedPointer< MOMDP > | _problem, |
SARSOP * | _solver | ||
) | [virtual] |
Definition at line 20 of file SampleBP.cpp.
Definition at line 70 of file SampleBP.h.
std::vector<int> momdp::SampleBP::depthArr [private] |
Definition at line 52 of file SampleBP.h.
Definition at line 102 of file SampleBP.h.
Definition at line 73 of file SampleBP.h.
double momdp::SampleBP::logOcc [private] |
Definition at line 53 of file SampleBP.h.
double momdp::SampleBP::maxDepth [private] |
Definition at line 54 of file SampleBP.h.
int momdp::SampleBP::newNumUpdates [private] |
Definition at line 56 of file SampleBP.h.
double momdp::SampleBP::newQualitySum [private] |
Definition at line 55 of file SampleBP.h.
std::vector<int> momdp::SampleBP::newTrialFlagArr |
Definition at line 78 of file SampleBP.h.
std::vector<double> momdp::SampleBP::nextNodeTargetLbArr |
Definition at line 74 of file SampleBP.h.
std::vector<double> momdp::SampleBP::nextNodeTargetUbArr |
Definition at line 72 of file SampleBP.h.
Definition at line 71 of file SampleBP.h.
Definition at line 68 of file SampleBP.h.
Definition at line 67 of file SampleBP.h.
double momdp::SampleBP::oldMaxDepth [private] |
Definition at line 54 of file SampleBP.h.
int momdp::SampleBP::oldNumUpdates [private] |
Definition at line 56 of file SampleBP.h.
double momdp::SampleBP::oldQualitySum [private] |
Definition at line 55 of file SampleBP.h.
std::vector<list<cacherow_stval> > momdp::SampleBP::priorityQueueArr [private] |
Definition at line 63 of file SampleBP.h.
Reimplemented from momdp::Sample.
Definition at line 84 of file SampleBP.h.
std::vector<double> momdp::SampleBP::trialTargetPrecisionArr |
Definition at line 76 of file SampleBP.h.