Browse Source

allow termination in inner loop of OVI

tempestpy_adaptions
Sebastian Junges 4 years ago
parent
commit
664484883a
  1. 3
      src/storm/solver/helper/OptimisticValueIterationHelper.cpp

3
src/storm/solver/helper/OptimisticValueIterationHelper.cpp

@ -276,6 +276,9 @@ namespace storm {
bool cancelGuess = false; bool cancelGuess = false;
while (status == SolverStatus::InProgress && overallIterations < maxOverallIterations) { while (status == SolverStatus::InProgress && overallIterations < maxOverallIterations) {
if (storm::utility::resources::isTerminate()) {
status = SolverStatus::Aborted;
}
++overallIterations; ++overallIterations;
++currentVerificationIterations; ++currentVerificationIterations;
// Perform value iteration stepwise for lower bound and guessed upper bound // Perform value iteration stepwise for lower bound and guessed upper bound

Loading…
Cancel
Save