Browse Source

Fixed computation of all until probabilities

tempestpy_adaptions
Matthias Volk 6 years ago
parent
commit
a35735a630
  1. 8
      src/storm/modelchecker/prctl/helper/SparseDtmcPrctlHelper.cpp

8
src/storm/modelchecker/prctl/helper/SparseDtmcPrctlHelper.cpp

@ -290,10 +290,10 @@ namespace storm {
// We can eliminate the rows and columns from the original transition probability matrix. // We can eliminate the rows and columns from the original transition probability matrix.
storm::storage::SparseMatrix<ValueType> submatrix(transitionMatrix); storm::storage::SparseMatrix<ValueType> submatrix(transitionMatrix);
submatrix.makeRowsAbsorbing(psiStates); submatrix.makeRowsAbsorbing(psiStates);
submatrix.deleteDiagonalEntries(psiStates);
storm::storage::BitVector failState(numberOfStates, false);
failState.set(0, true);
submatrix.deleteDiagonalEntries(failState);
//submatrix.deleteDiagonalEntries(psiStates);
//storm::storage::BitVector failState(numberOfStates, false);
//failState.set(0, true);
submatrix.deleteDiagonalEntries();
submatrix = submatrix.transpose(); submatrix = submatrix.transpose();
submatrix = submatrix.getSubmatrix(true, relevantStates, relevantStates, convertToEquationSystem); submatrix = submatrix.getSubmatrix(true, relevantStates, relevantStates, convertToEquationSystem);

Loading…
Cancel
Save