37 #define DEBUG_QHEUR_COMP_TREE 0
63 GetPU()->GetNrJointActions(),
91 GetNrJointActionObservationHistories(),
92 GetPU()->GetNrJointActions());
98 throw E(
"QFunctionJAOHTree::ComputeQ - GetPU() returns 0; no PlanningUnit available!");
100 size_t time_step = 0;
101 #if QFunctionJAOH_useIndices
110 if( (time_step + 1) ==
GetPU()->GetHorizon())
121 GetPU()->GetNrActions(),nrTypes);
123 size_t empty_jaohI = 0;
124 bg_time_step.SetProbability(empty_jaohI, 1.0);
128 double exp_imm_R = 0.0;
129 #if USE_BeliefIteratorGeneric
140 double exp_fut_R = 0.0;
142 #if QFunctionJAOH_useIndices
149 bg_time_step.SetUtility(empty_jaohI, newJAI, Q);
153 cout <<
"QFunctionJAOHTree::ComputeQ() for..."<<endl<<
154 " time_step=0 called, with ISD=";
157 bg_time_step.Print();
161 double v = bgs.
Solve();
163 cout <<
"QFunctionJAOHTree::ComputeQ() - Expected V(b0) = " << v << endl<< endl;