Browse Source

Fixed confusing lower and upper result bounds for minimizing properties.

tempestpy_adaptions
Tim Quatmann 5 years ago
parent
commit
b3796d740f
  1. 8
      src/storm-pomdp/modelchecker/ApproximatePOMDPModelchecker.cpp

8
src/storm-pomdp/modelchecker/ApproximatePOMDPModelchecker.cpp

@ -305,8 +305,12 @@ namespace storm {
++refinementCounter;
}
statistics.refinementSteps = refinementCounter;
if (min) {
return std::make_unique<POMDPCheckResult<ValueType>>(POMDPCheckResult<ValueType>{res->underApproxValue, res->overApproxValue});
} else {
return std::make_unique<POMDPCheckResult<ValueType>>(POMDPCheckResult<ValueType>{res->overApproxValue, res->underApproxValue});
}
}
template<typename ValueType, typename RewardModelType>
std::unique_ptr<POMDPCheckResult<ValueType>>
@ -322,8 +326,12 @@ namespace storm {
if (result == nullptr) {
return nullptr;
}
if (min) {
return std::make_unique<POMDPCheckResult<ValueType>>(POMDPCheckResult<ValueType>{result->underApproxValue, result->overApproxValue});
} else {
return std::make_unique<POMDPCheckResult<ValueType>>(POMDPCheckResult<ValueType>{result->overApproxValue, result->underApproxValue});
}
}

Loading…
Cancel
Save