diff --git a/src/storm-pomdp/modelchecker/ApproximatePOMDPModelchecker.cpp b/src/storm-pomdp/modelchecker/ApproximatePOMDPModelchecker.cpp index 16704e4a4..04b9ea196 100644 --- a/src/storm-pomdp/modelchecker/ApproximatePOMDPModelchecker.cpp +++ b/src/storm-pomdp/modelchecker/ApproximatePOMDPModelchecker.cpp @@ -305,7 +305,11 @@ namespace storm { ++refinementCounter; } statistics.refinementSteps = refinementCounter; - return std::make_unique>(POMDPCheckResult{res->overApproxValue, res->underApproxValue}); + if (min) { + return std::make_unique>(POMDPCheckResult{res->underApproxValue, res->overApproxValue}); + } else { + return std::make_unique>(POMDPCheckResult{res->overApproxValue, res->underApproxValue}); + } } template @@ -322,7 +326,11 @@ namespace storm { if (result == nullptr) { return nullptr; } - return std::make_unique>(POMDPCheckResult{result->overApproxValue, result->underApproxValue}); + if (min) { + return std::make_unique>(POMDPCheckResult{result->underApproxValue, result->overApproxValue}); + } else { + return std::make_unique>(POMDPCheckResult{result->overApproxValue, result->underApproxValue}); + } }