Browse Source

Small fix for test.

CPU implementation of TopologicalValueIterationMdpPrctlModelChecker seems to be working, adapted parts of tests passing!


Former-commit-id: 7ed1e11f91
tempestpy_adaptions
David_Korzeniewski 10 years ago
parent
commit
8066bb6637
  1. 3
      test/functional/modelchecker/TopologicalValueIterationMdpPrctlModelCheckerTest.cpp

3
test/functional/modelchecker/TopologicalValueIterationMdpPrctlModelCheckerTest.cpp

@ -26,9 +26,10 @@ TEST(TopologicalValueIterationMdpPrctlModelCheckerTest, Dice) {
//storm::property::prctl::Ap<double>* apFormula = new storm::property::prctl::Ap<double>("two"); //storm::property::prctl::Ap<double>* apFormula = new storm::property::prctl::Ap<double>("two");
auto eventuallyFormula = std::make_shared<storm::logic::EventuallyFormula>(apFormula); auto eventuallyFormula = std::make_shared<storm::logic::EventuallyFormula>(apFormula);
//storm::property::prctl::Eventually<double>* eventuallyFormula = new storm::property::prctl::Eventually<double>(apFormula); //storm::property::prctl::Eventually<double>* eventuallyFormula = new storm::property::prctl::Eventually<double>(apFormula);
auto minProbabilityOperatorFormula = std::make_shared<storm::logic::ProbabilityOperatorFormula>(storm::logic::OptimalityType::Minimize, eventuallyFormula);
//storm::property::prctl::ProbabilisticNoBoundOperator<double>* probFormula = new storm::property::prctl::ProbabilisticNoBoundOperator<double>(eventuallyFormula, true); //storm::property::prctl::ProbabilisticNoBoundOperator<double>* probFormula = new storm::property::prctl::ProbabilisticNoBoundOperator<double>(eventuallyFormula, true);
std::unique_ptr<storm::modelchecker::CheckResult> result = mc.check(*eventuallyFormula);
std::unique_ptr<storm::modelchecker::CheckResult> result = mc.check(*minProbabilityOperatorFormula);
//std::vector<double> result = mc.checkNoBoundOperator(*probFormula); //std::vector<double> result = mc.checkNoBoundOperator(*probFormula);
ASSERT_LT(std::abs(result->asExplicitQuantitativeCheckResult<double>()[0] - 0.0277777612209320068), ASSERT_LT(std::abs(result->asExplicitQuantitativeCheckResult<double>()[0] - 0.0277777612209320068),

Loading…
Cancel
Save