Browse Source

graph::computeSchedulerProb1E: Only set choices if they are not defined already.

tempestpy_adaptions
Tim Quatmann 5 years ago
parent
commit
d098c2d27c
  1. 2
      src/storm/utility/graph.cpp

2
src/storm/utility/graph.cpp

@ -552,9 +552,11 @@ namespace storm {
// set an arbitrary (valid) choice for the psi states. // set an arbitrary (valid) choice for the psi states.
for (auto const& psiState : psiStates) { for (auto const& psiState : psiStates) {
for (uint_fast64_t memState = 0; memState < scheduler.getNumberOfMemoryStates(); ++memState) { for (uint_fast64_t memState = 0; memState < scheduler.getNumberOfMemoryStates(); ++memState) {
if (!scheduler.getChoice(psiState, memState).isDefined()) {
scheduler.setChoice(0, psiState, memState); scheduler.setChoice(0, psiState, memState);
} }
} }
}
// Now perform a backwards search from the psi states and store choices with prob. 1 // Now perform a backwards search from the psi states and store choices with prob. 1
std::vector<uint_fast64_t> const& nondeterministicChoiceIndices = transitionMatrix.getRowGroupIndices(); std::vector<uint_fast64_t> const& nondeterministicChoiceIndices = transitionMatrix.getRowGroupIndices();

Loading…
Cancel
Save