Browse Source

fixed wrong state action rewards in JaniNextStateGenerator.

tempestpy_adaptions
TimQu 6 years ago
parent
commit
a21c6f7244
  1. 8
      src/storm/generator/JaniNextStateGenerator.cpp

8
src/storm/generator/JaniNextStateGenerator.cpp

@ -465,12 +465,12 @@ namespace storm {
nextDistribution.add(newTargetState, probability);
}
}
// Create the state-action reward for the newly created choice.
auto valueIt = stateActionRewards.begin();
performTransientAssignments(edge.getAssignments().getTransientAssignments(), [&valueIt] (ValueType const& value) { *valueIt += value; ++valueIt; } );
}
// Create the state-action reward for the newly created choice.
auto valueIt = stateActionRewards.begin();
performTransientAssignments(edge.getAssignments().getTransientAssignments(), [&valueIt] (ValueType const& value) { *valueIt += value; ++valueIt; } );
nextDistribution.compress();
// If there is one more command to come, shift the target states one time step back.

Loading…
Cancel
Save