Browse Source

fixed another bug

Former-commit-id: d407ba43a5
tempestpy_adaptions
dehnert 9 years ago
parent
commit
30fc452623
  1. 2
      src/builder/ExplicitPrismModelBuilder.cpp

2
src/builder/ExplicitPrismModelBuilder.cpp

@ -678,7 +678,7 @@ namespace storm {
for (auto const& stateActionReward : rewardModelIt->get().getStateActionRewards()) { for (auto const& stateActionReward : rewardModelIt->get().getStateActionRewards()) {
if (!stateActionReward.isLabeled()) { if (!stateActionReward.isLabeled()) {
if (evaluator.asBool(stateActionReward.getStatePredicateExpression())) { if (evaluator.asBool(stateActionReward.getStatePredicateExpression())) {
builderIt->stateActionRewardVector.back() += ValueType(evaluator.asRational(stateActionReward.getRewardValueExpression())) / totalNumberOfChoices;
builderIt->stateActionRewardVector.back() += ValueType(evaluator.asRational(stateActionReward.getRewardValueExpression()));
} }
} }
} }

Loading…
Cancel
Save