Browse Source

Fix: Set lb to ub if difference vector has no positive entry

main
Jan Erik Karuc 5 years ago
parent
commit
02a346b5b7
  1. 2
      src/storm/solver/IterativeMinMaxLinearEquationSolver.cpp

2
src/storm/solver/IterativeMinMaxLinearEquationSolver.cpp

@ -439,7 +439,7 @@ namespace storm {
// Update current upper bound
std::swap(newUpperBound, currentUpperBound);
if (storm::utility::vector::hasPositiveEntry(ubDiffV)) {
if (!storm::utility::vector::hasPositiveEntry(ubDiffV)) {
// Not all values moved up or stayed the same
// If we have a single fixed point, we can safely set the new lower bound, to the wrongly guessed upper bound
if (this->hasUniqueSolution()) {

Loading…
Cancel
Save