Browse Source

alpha version of conditional rewards for dtmc

Former-commit-id: 1adfb3d405
tempestpy_adaptions
dehnert 9 years ago
parent
commit
b3483211ff
  1. 4
      src/modelchecker/prctl/helper/SparseDtmcPrctlHelper.cpp

4
src/modelchecker/prctl/helper/SparseDtmcPrctlHelper.cpp

@ -391,8 +391,8 @@ namespace storm {
// Now compute reachability probabilities in the transformed model.
storm::storage::SparseMatrix<ValueType> const& newTransitionMatrix = transformedModel.transitionMatrix.get();
std::vector<ValueType> conditionalProbabilities = computeUntilProbabilities(newTransitionMatrix, newTransitionMatrix.transpose(), storm::storage::BitVector(newTransitionMatrix.getRowCount(), true), transformedModel.targetStates.get(), qualitative, linearEquationSolverFactory);
storm::utility::vector::setVectorValues(result, transformedModel.beforeStates, conditionalProbabilities);
std::vector<ValueType> conditionalRewards = computeReachabilityRewards(newTransitionMatrix, newTransitionMatrix.transpose(), transformedModel.stateRewards.get(), transformedModel.targetStates.get(), qualitative, linearEquationSolverFactory);
storm::utility::vector::setVectorValues(result, transformedModel.beforeStates, conditionalRewards);
}
}

Loading…
Cancel
Save