Browse Source

Fixed wrong error when over- and under-approximation values are equal

tempestpy_adaptions
Alexander Bork 5 years ago
parent
commit
054c2a906e
  1. 3
      src/storm-pomdp/modelchecker/ApproximatePOMDPModelchecker.cpp

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

@ -217,7 +217,8 @@ namespace storm {
res = computeRefinementStep(targetObservations, min, observationResolutionVector, false, res = computeRefinementStep(targetObservations, min, observationResolutionVector, false,
res, changedObservations, initialOverApproxMap, underApproxMap, underApproxModelSize); res, changedObservations, initialOverApproxMap, underApproxMap, underApproxModelSize);
//storm::api::exportSparseModelAsDot(res->overApproxModelPtr, "oa_model_" + std::to_string(refinementCounter +1) + ".dot"); //storm::api::exportSparseModelAsDot(res->overApproxModelPtr, "oa_model_" + std::to_string(refinementCounter +1) + ".dot");
STORM_LOG_ERROR_COND(cc.isLess(res->underApproxValue, res->overApproxValue), "The value for the under-approximation is larger than the value for the over-approximation.");
STORM_LOG_ERROR_COND(cc.isLess(res->underApproxValue, res->overApproxValue) || cc.isEqual(res->underApproxValue, res->overApproxValue),
"The value for the under-approximation is larger than the value for the over-approximation.");
if (res->overApproxValue - res->underApproxValue <= options.refinementPrecision) { if (res->overApproxValue - res->underApproxValue <= options.refinementPrecision) {
break; break;
} }

Loading…
Cancel
Save