From c5da67d6cf5805ffa0d6e40ab07d1aa0e707d4ac Mon Sep 17 00:00:00 2001 From: dehnert Date: Sat, 19 Aug 2017 12:29:47 +0200 Subject: [PATCH] refined warning for automatic switch to policy iteration in exact mode --- src/storm/solver/MinMaxLinearEquationSolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storm/solver/MinMaxLinearEquationSolver.cpp b/src/storm/solver/MinMaxLinearEquationSolver.cpp index aa68fd9e3..0ce28bd2a 100644 --- a/src/storm/solver/MinMaxLinearEquationSolver.cpp +++ b/src/storm/solver/MinMaxLinearEquationSolver.cpp @@ -157,7 +157,7 @@ namespace storm { bool wasSet = false; auto const& minMaxSettings = storm::settings::getModule(); if (std::is_same::value) { - if (minMaxSettings.isMinMaxEquationSolvingMethodSetFromDefaultValue()) { + if (minMaxSettings.isMinMaxEquationSolvingMethodSetFromDefaultValue() && minMaxSettings.getMinMaxEquationSolvingMethod() != MinMaxMethod::PolicyIteration) { STORM_LOG_WARN("Selecting policy iteration as the solution method to guarantee exact results. If you want to override this, please explicitly specify a different method."); this->setMinMaxMethod(MinMaxMethod::PolicyIteration); wasSet = true;