From abe7510ae94e421119de3df25dd96d7b6d15f4a0 Mon Sep 17 00:00:00 2001 From: dehnert Date: Tue, 17 Jul 2018 18:58:51 +0200 Subject: [PATCH] added clearing requirements --- src/storm/modelchecker/csl/helper/SparseCtmcCslHelper.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/storm/modelchecker/csl/helper/SparseCtmcCslHelper.cpp b/src/storm/modelchecker/csl/helper/SparseCtmcCslHelper.cpp index 697eab80a..634eaf806 100644 --- a/src/storm/modelchecker/csl/helper/SparseCtmcCslHelper.cpp +++ b/src/storm/modelchecker/csl/helper/SparseCtmcCslHelper.cpp @@ -482,6 +482,8 @@ namespace storm { // Check solver requirements. storm::solver::GeneralLinearEquationSolverFactory linearEquationSolverFactory; auto requirements = linearEquationSolverFactory.getRequirements(env); + requirements.clearLowerBounds(); + requirements.clearUpperBounds(); STORM_LOG_THROW(!requirements.hasEnabledCriticalRequirement(), storm::exceptions::UncheckedRequirementException, "Solver requirements " + requirements.getEnabledRequirementsAsString() + " not checked."); bool fixedPointSystem = false; @@ -541,6 +543,8 @@ namespace storm { bsccEquationSystem = builder.build(); { std::unique_ptr> solver = linearEquationSolverFactory.create(env, std::move(bsccEquationSystem)); + solver->setLowerBound(storm::utility::zero()); + solver->setUpperBound(storm::utility::one()); solver->solveEquations(env, bsccEquationSystemSolution, bsccEquationSystemRightSide); }