Browse Source

use state rewards (upon entry)

tempestpy_adaptions
Sebastian Junges 4 years ago
parent
commit
a7f9a6e4c6
  1. 3
      src/storm/simulator/PrismProgramSimulator.cpp

3
src/storm/simulator/PrismProgramSimulator.cpp

@ -44,6 +44,9 @@ namespace storm {
if (behavior.getStateRewards().size() > 0) {
STORM_LOG_ASSERT(behavior.getStateRewards().size() == lastActionRewards.size(), "Reward vectors should have same length.");
}
for(uint64_t i = 0; i < behavior.getStateRewards().size(); i++) {
lastActionRewards[i] += behavior.getStateRewards()[i];
}
return true;
}

Loading…
Cancel
Save