Browse Source

Fixed running in an infinite loop when computing LRA on markov automata with relative precision.

tempestpy_adaptions
TimQu 6 years ago
parent
commit
629de20da0
  1. 2
      src/storm/modelchecker/csl/helper/SparseMarkovAutomatonCslHelper.cpp

2
src/storm/modelchecker/csl/helper/SparseMarkovAutomatonCslHelper.cpp

@ -1047,7 +1047,7 @@ namespace storm {
}
// Check for convergence
if ((maxDiff - minDiff) <= (relative ? (precision * minDiff) : precision)) {
if ((maxDiff - minDiff) <= (relative ? (precision * (v.front() + minDiff)) : precision)) {
break;
}

Loading…
Cancel
Save