Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions doc/cpp_model_doc/Tutorial on Using DESPOT with cpp model.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,9 @@ After implementing the lower bound class the user needs to add it to the solver.
class DSPOMDP {
public:
virtual ScenarioLowerBound* CreateScenarioLowerBound(string name = "DEFAULT",
string particle_bound_name = "DEFAULT") {
string particle_bound_name = "DEFAULT") const {
if (name == "TRIVIAL" || name == "DEFAULT") {
scenario_lower_bound_ = new TrivialParticleLowerBound(this);
return new TrivialParticleLowerBound(this);
} else {
cerr << "Unsupported scenario lower bound: " << name << endl;
exit(0);
Expand All @@ -528,11 +528,11 @@ The following code adds this lower bound to `SimpleRockSample` and sets it as th

``` c++
ScenarioLowerBound* SimpleRockSample::CreateScenarioLowerBound(string name = "DEFAULT",
string particle_bound_name = "DEFAULT") {
string particle_bound_name = "DEFAULT") const {
if (name == "TRIVIAL") {
scenario_lower_bound_ = new TrivialParticleLowerBound(this);
return new TrivialParticleLowerBound(this);
} else if (name == "EAST" || name == "DEFAULT") {
scenario_lower_bound_ = new SimpleRockSampleEastPolicy(this,
return new SimpleRockSampleEastPolicy(this,
new TrivialParticleLowerBound(this));
} else {
cerr << "Unsupported lower bound algorithm: " << name << endl;
Expand Down