From a9f97bd210418cf8afb999e362af118d2c92fc30 Mon Sep 17 00:00:00 2001 From: Mavo Date: Tue, 25 Oct 2016 23:28:35 +0200 Subject: [PATCH] Set heuristic to probability Former-commit-id: a7d8fd77385ce805b2161b8d0b655240b9319f90 --- src/builder/ExplicitDFTModelBuilderApprox.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/builder/ExplicitDFTModelBuilderApprox.cpp b/src/builder/ExplicitDFTModelBuilderApprox.cpp index 0328cf055..6a6474ad8 100644 --- a/src/builder/ExplicitDFTModelBuilderApprox.cpp +++ b/src/builder/ExplicitDFTModelBuilderApprox.cpp @@ -97,8 +97,7 @@ namespace storm { approximationThreshold = iteration; break; case storm::builder::ApproximationHeuristic::PROBABILITY: - //approximationThreshold = std::pow(0.1, iteration) * approximationThreshold; - approximationThreshold = iteration;//10 * std::pow(2, iteration); + approximationThreshold = 10 * std::pow(2, iteration); break; } exploreStateSpace(approximationThreshold); @@ -234,7 +233,6 @@ namespace storm { void ExplicitDFTModelBuilderApprox::exploreStateSpace(double approximationThreshold) { size_t nrExpandedStates = 0; size_t nrSkippedStates = 0; - size_t fix = 0; // TODO Matthias: do not empty queue every time but break before while (!explorationQueue.empty()) { explorationQueue.fix(); @@ -324,7 +322,6 @@ namespace storm { double oldPriority = iter->second.second->getPriority(); if (iter->second.second->updateHeuristicValues(*currentExplorationHeuristic, stateProbabilityPair.second, choice.getTotalMass())) { // Update priority queue - ++fix; explorationQueue.update(iter->second.second, oldPriority); } } @@ -334,7 +331,6 @@ namespace storm { } } } // end exploration - std::cout << "Fixed queue " << fix << " times" << std::endl; STORM_LOG_INFO("Expanded " << nrExpandedStates << " states"); STORM_LOG_INFO("Skipped " << nrSkippedStates << " states");