30 STORM_LOG_THROW(!rewardModelNames.empty(), storm::exceptions::IllegalArgumentException,
31 "Reward-aware belief exploration requires at least one selected reward model.");
32 for (
auto const& rewardBound : propertyInformation.
rewardBounds) {
34 STORM_LOG_THROW(!rewardBound.rewardModelName.empty(), storm::exceptions::NotSupportedException,
35 "For POMDPs, reward-bounded formulae must explicitly name a reward model for each bound.");
37 !(propertyInformation.
dir == storm::OptimizationDirection::Minimize && rewardBound.lowerBound.has_value() && rewardBound.upperBound.has_value()),
38 storm::exceptions::NotSupportedException,
39 "Reward-bounded probability minimisation does not support dimensions with both lower and upper reward bounds.");
42 "The selected reward models must include all reward-bounded dimensions first.");
43 for (std::size_t i = 0; i < propertyInformation.
rewardBounds.size(); ++i) {
45 rewardModelNames[i] == propertyInformation.
rewardBounds[i].rewardModelName, storm::exceptions::IllegalArgumentException,
46 "Selected reward model " << i <<
" must match the corresponding reward bound '" << propertyInformation.
rewardBounds[i].rewardModelName <<
"'.");
50template<
typename PomdpModelType,
typename BeliefValueType,
typename BeliefMdpValueType,
typename PolicyValueType>
53 STORM_LOG_THROW(inputPomdp.isCanonic(), storm::exceptions::IllegalArgumentException,
"Belief-based model checking requires a canonic POMDP.");
57template<
typename PomdpModelType,
typename BeliefType,
typename BeliefMdpValueType,
typename InfoType>
62 return [&info, maxSize = options.
maxExplorationSize.value()]() {
return info.discoveredBeliefs.getNumberOfBeliefIds() > maxSize; };
67 return info.discoveredBeliefs.getNumberOfBeliefIds() > maxSize || swExplore.getTimeInSeconds() >
static_cast<double>(maxDuration);
71 return []() {
return false; };
73 STORM_LOG_ERROR(
"Unknown termination criterion for belief exploration.");
74 return []() {
return false; };
83template<
typename PomdpModelType,
typename BeliefType,
typename BeliefMdpValueType>
87 using PomdpValueType =
typename PomdpModelType::ValueType;
91 return [&propertyInformation, &valueBounds](BeliefType
const& belief) -> std::optional<BeliefMdpValueType> {
96 for (
auto const& valueList : valueBounds.
upper) {
97 smallestUpper = std::min(smallestUpper, belief.template getWeightedSum<PomdpValueType>(valueList));
100 for (
auto const& valueList : valueBounds.
lower) {
101 largestLower =
storm::utility::max(largestLower, belief.template getWeightedSum<PomdpValueType>(valueList));
104 if constexpr (std::is_same_v<PomdpValueType, BeliefMdpValueType>) {
105 return propertyInformation.
dir == solver::OptimizationDirection::Maximize ? largestLower : smallestUpper;
108 propertyInformation.
dir == solver::OptimizationDirection::Maximize ? largestLower : smallestUpper);
115 return [&propertyInformation](BeliefType
const& belief) -> std::optional<BeliefMdpValueType> {
124 return [](BeliefType
const& belief) -> std::optional<BeliefMdpValueType> {
132 return [&propertyInformation, &valueBounds](BeliefType
const& belief) -> std::optional<BeliefMdpValueType> {
137 for (
auto const& valueList : valueBounds.
upper) {
138 smallestUpper = std::min(smallestUpper, belief.template getWeightedSum<PomdpValueType>(valueList));
141 for (
auto const& valueList : valueBounds.
lower) {
142 largestLower =
storm::utility::max(largestLower, belief.template getWeightedSum<PomdpValueType>(valueList));
145 if constexpr (std::is_same_v<PomdpValueType, BeliefMdpValueType>) {
146 return propertyInformation.
dir == solver::OptimizationDirection::Maximize ? largestLower : smallestUpper;
149 propertyInformation.
dir == solver::OptimizationDirection::Maximize ? largestLower : smallestUpper);
156 return [&propertyInformation](BeliefType
const& belief) -> std::optional<BeliefMdpValueType> {
171template<
typename PomdpModelType,
typename BeliefType,
typename BeliefMdpValueType,
typename InfoType>
172std::pair<std::shared_ptr<models::sparse::Mdp<BeliefMdpValueType>>, std::unordered_map<uint64_t, BeliefId>>
buildBeliefMdpFromInfo(
174 InfoType
const& info) {
175 using PomdpValueType =
typename PomdpModelType::ValueType;
176 std::function<std::unordered_map<std::string, BeliefMdpValueType>(BeliefType
const&)> computeCutOffValueMap =
177 [&valueBounds, &propertyInformation](BeliefType
const& belief) {
179 uint64_t
const nrCutoffPolicies =
180 propertyInformation.
dir == storm::OptimizationDirection::Minimize ? valueBounds.
upper.size() : valueBounds.
lower.size();
181 std::unordered_map<std::string, BeliefMdpValueType> result;
182 for (uint64_t i = 0; i < nrCutoffPolicies; ++i) {
183 auto val = belief.template getWeightedSum<PomdpValueType>(
184 propertyInformation.
dir == storm::OptimizationDirection::Minimize ? valueBounds.
upper.at(i) : valueBounds.
lower.at(i));
185 if constexpr (std::is_same_v<PomdpValueType, BeliefMdpValueType>) {
186 result[
"__sched_" + std::to_string(i)] = val;
193 return buildBeliefMdp(info, propertyInformation, computeCutOffValueMap);
196template<
typename PomdpModelType,
typename BeliefType,
typename BeliefMdpValueType,
typename PolicyValueType,
typename AbstractionType,
202 BeliefBasedModelCheckerStatistics statistics;
203 std::optional<storm::pomdp::policy::ObservationBasedFiniteStateController<PolicyValueType>> generatedPolicy;
206 "Unexpected kind of property.");
210 "Policy generation requires preprocessing bounds with continuation schedulers.");
213 auto const& cutOffSchedulers =
storm::solver::minimize(propertyInformation.
dir) ? bounds.upperSchedulers : bounds.lowerSchedulers;
214 STORM_LOG_THROW(cutOffSchedulers.size() == cutOffBounds.size(), storm::exceptions::IllegalArgumentException,
215 "Policy generation requires one continuation scheduler per " << (
storm::solver::minimize(propertyInformation.
dir) ?
"upper" :
"lower")
216 <<
" cut-off bound, but received " << cutOffSchedulers.size()
217 <<
" schedulers for " << cutOffBounds.size() <<
" bounds.");
223 using BeliefExplorationType = BeliefExploration<BeliefMdpValueType, PomdpModelType, BeliefType>;
225 BeliefExplorationType exploration(
pomdp);
231 typename BeliefExplorationType::TerminationCallback terminationCallback =
235 typename BeliefExplorationType::TerminalBeliefCallback terminalBeliefCallback =
238 if constexpr (std::is_same_v<InfoType, ClippingExplorationInformation<BeliefMdpValueType, BeliefType>>) {
241 exploration.resumeClippingExploration(info, terminalBeliefCallback, terminationCallback, propertyInformation.
rewardModelName.value(), abstraction);
243 exploration.resumeClippingExploration(info, terminalBeliefCallback, terminationCallback,
storm::NullRef, abstraction);
250 "Clipping for expected total reachability reward requires extreme value bounds to be given.");
252 env, std::move(resolutions), std::move(valueBounds.
extremeBounds->template copyValues<typename BeliefType::ValueType>()));
253 exploration.resumeClippingExploration(
257 exploration.resumeClippingExploration(
263 exploration.resumeExploration(info, terminalBeliefCallback, terminationCallback, propertyInformation.
rewardModelName.value(), abstraction);
265 exploration.resumeExploration(info, terminalBeliefCallback, terminationCallback,
storm::NullRef, abstraction);
269 bool earlyExplorationStop = info.queue.hasNext();
270 statistics.completedExploration = !earlyExplorationStop;
271 statistics.discoveredBeliefs = info.discoveredBeliefs.getNumberOfBeliefIds();
272 statistics.exploredBeliefs = info.exploredBeliefs.size();
273 statistics.explorationTimeMilliseconds = swExplore.getTimeInMilliseconds();
274 if (earlyExplorationStop) {
275 STORM_LOG_INFO(
"Exploration stopped before all beliefs were explored. " << info.discoveredBeliefs.getNumberOfBeliefIds() <<
" beliefs discovered. "
276 << info.exploredBeliefs.size() <<
" beliefs explored.");
281 storm::utility::Stopwatch swBuild(
true);
282 auto [beliefMdp, stateToBeliefMap] =
286 std::stringstream stream;
287 beliefMdp->printModelInformationToStream(stream);
290 statistics.beliefMdpStates = beliefMdp->getNumberOfStates();
291 statistics.beliefMdpChoices = beliefMdp->getNumberOfChoices();
292 statistics.beliefMdpTransitions = beliefMdp->getNumberOfTransitions();
293 statistics.beliefMdpBuildTimeMilliseconds = swBuild.getTimeInMilliseconds();
296 storm::utility::Stopwatch swCheck(
true);
298 storm::modelchecker::CheckTask<storm::logic::Formula, BeliefMdpValueType> task(*formula, !options.
generatePolicy);
302 statistics.beliefMdpAnalysisTimeMilliseconds = swCheck.getTimeInMilliseconds();
303 STORM_LOG_INFO(
"Time for exploring beliefs: " << swExplore <<
".");
304 STORM_LOG_INFO(
"Time for building the belief MDP: " << swBuild <<
".");
305 STORM_LOG_INFO(
"Time for analyzing the belief MDP: " << swCheck <<
".");
306 STORM_LOG_ASSERT(res,
"Model checking of belief MDP did not return any result.");
307 STORM_LOG_ASSERT(res->isExplicitQuantitativeCheckResult(),
"Model checking of belief MDP did not return result of expected type.");
308 STORM_LOG_ASSERT(beliefMdp->getInitialStates().getNumberOfSetBits() == 1,
"Unexpected number of initial states for belief Mdp.");
309 auto const initState = beliefMdp->getInitialStates().getNextSetIndex(0);
311 auto const& quantitativeResult = res->asExplicitQuantitativeCheckResult<BeliefMdpValueType>();
312 STORM_LOG_THROW(beliefMdp->hasChoiceLabeling(), storm::exceptions::UnexpectedException,
"Policy extraction requires choice labels in the belief MDP.");
313 STORM_LOG_THROW(quantitativeResult.hasScheduler(), storm::exceptions::UnexpectedException,
314 "Model checking of the belief MDP did not produce a scheduler for policy extraction.");
315 std::unordered_map<uint64_t, uint32_t> beliefStateToObservationMap;
316 for (
auto const& [state, beliefId] : stateToBeliefMap) {
317 beliefStateToObservationMap.emplace(state, info.discoveredBeliefs.getBeliefFromId(beliefId).observation());
319 std::optional<std::vector<storm::storage::Scheduler<typename PomdpModelType::ValueType>>> approximationSchedulers =
320 propertyInformation.
dir == storm::OptimizationDirection::Minimize ? valueBounds.
preprocessingBounds->upperSchedulers
322 policy::PolicyExtractor<PomdpModelType, typename BeliefType::ValueType, BeliefMdpValueType, PolicyValueType> extractor(
323 pomdp, *beliefMdp, beliefStateToObservationMap, quantitativeResult.getScheduler(), approximationSchedulers);
324 generatedPolicy = extractor.exportPolicyAsFiniteStateController();
326 return {res->asExplicitQuantitativeCheckResult<BeliefMdpValueType>()[initState], !earlyExplorationStop, std::move(statistics), std::move(generatedPolicy)};
329template<
typename PomdpModelType,
typename BeliefType,
typename BeliefMdpValueType,
typename PolicyValueType>
336 BeliefBasedModelCheckerStatistics statistics;
338 STORM_LOG_THROW(!options.
useClipping, storm::exceptions::NotSupportedException,
"Grid clipping is not supported for reward-bounded POMDP properties.");
344 using BeliefExplorationType = BeliefExploration<BeliefMdpValueType, PomdpModelType, BeliefType>;
346 BeliefExplorationType exploration(
pomdp);
352 typename BeliefExplorationType::TerminationCallback terminationCallback =
356 typename BeliefExplorationType::TerminalBeliefCallback terminalBeliefCallback =
359 exploration.resumeRewardAwareExploration(info, terminalBeliefCallback, terminationCallback, rewardSplitter, abstraction);
361 bool const earlyExplorationStop = info.queue.hasNext();
362 statistics.completedExploration = !earlyExplorationStop;
363 statistics.discoveredBeliefs = info.discoveredBeliefs.getNumberOfBeliefIds();
364 statistics.exploredBeliefs = info.exploredBeliefs.size();
365 statistics.explorationTimeMilliseconds = swExplore.getTimeInMilliseconds();
366 if (earlyExplorationStop) {
367 STORM_LOG_INFO(
"Exploration stopped before all beliefs were explored. " << info.discoveredBeliefs.getNumberOfBeliefIds() <<
" beliefs discovered. "
368 << info.exploredBeliefs.size() <<
" beliefs explored.");
374 auto [beliefMdp, stateToBeliefMap] =
378 std::stringstream stream;
379 beliefMdp->printModelInformationToStream(stream);
382 statistics.beliefMdpStates = beliefMdp->getNumberOfStates();
383 statistics.beliefMdpChoices = beliefMdp->getNumberOfChoices();
384 statistics.beliefMdpTransitions = beliefMdp->getNumberOfTransitions();
385 statistics.beliefMdpBuildTimeMilliseconds = swBuild.getTimeInMilliseconds();
389 STORM_LOG_INFO(
"Analyzing property '" << *formula <<
"' on the belief MDP.");
391 std::shared_ptr<storm::models::sparse::Mdp<BeliefMdpValueType>> processedMdp = beliefMdp;
393 std::vector<std::string> rewardModelNames;
394 for (
auto const& bnd : propertyInformation.
rewardBounds) {
395 rewardModelNames.push_back(bnd.rewardModelName);
398 .model->template as<storm::models::sparse::Mdp<BeliefMdpValueType>>();
399 double increase =
static_cast<double>(processedMdp->getNumberOfStates()) /
static_cast<double>(beliefMdp->getNumberOfStates());
400 STORM_LOG_INFO(
"Transformation of transition rewards resulted in a model with " << processedMdp->getNumberOfStates() <<
" states. " << increase
401 <<
" times more states than the original belief MDP.");
404 auto targetStates = processedMdp->getStateLabeling().getStates(
"target");
405 storm::storage::BitVector allStates(targetStates.size(),
true);
406 storm::storage::BitVector probGreaterZeroStates;
410 probGreaterZeroStates =
412 processedMdp->getBackwardTransitions(), allStates, targetStates);
414 auto mergingResult = storm::transformer::GoalStateMerger<BeliefMdpValueType>(*processedMdp)
415 .mergeTargetAndSinkStates(probGreaterZeroStates, ~probGreaterZeroStates, ~allStates, rewardModelNames);
416 processedMdp = mergingResult.model->template as<storm::models::sparse::Mdp<BeliefMdpValueType>>();
417 STORM_LOG_INFO(
"Merging of sink states resulted in a model with " << processedMdp->getNumberOfStates() <<
" states.");
419 if (processedMdp != beliefMdp) {
420 statistics.processedMdpStates = processedMdp->getNumberOfStates();
421 statistics.processedMdpChoices = processedMdp->getNumberOfChoices();
422 statistics.processedMdpTransitions = processedMdp->getNumberOfTransitions();
424 storm::modelchecker::CheckTask<storm::logic::Formula, BeliefMdpValueType> task(*formula,
true);
427 statistics.beliefMdpAnalysisTimeMilliseconds = swCheck.getTimeInMilliseconds();
428 STORM_LOG_INFO(
"Time for exploring beliefs: " << swExplore <<
".");
429 STORM_LOG_INFO(
"Time for building the belief MDP: " << swBuild <<
".");
430 STORM_LOG_INFO(
"Time for analyzing the belief MDP: " << swCheck <<
".");
431 STORM_LOG_ASSERT(res,
"Model checking of belief MDP did not return any result.");
432 STORM_LOG_ASSERT(res->isExplicitQuantitativeCheckResult(),
"Model checking of belief MDP did not return result of expected type.");
433 STORM_LOG_ASSERT(processedMdp->getInitialStates().getNumberOfSetBits() == 1,
"Unexpected number of initial states for (processed) belief Mdp.");
434 auto const initState = processedMdp->getInitialStates().getNextSetIndex(0);
435 return {res->asExplicitQuantitativeCheckResult<BeliefMdpValueType>()[initState], !earlyExplorationStop, std::move(statistics), std::nullopt};
438template<
typename PomdpModelType,
typename BeliefValueType,
typename BeliefMdpValueType,
typename PolicyValueType>
445 "Zero-gap cutting is not supported for policy generation because cut-off beliefs do not retain a continuation policy.");
449 options, valueBounds);
452 env, inputPomdp, propertyInformation, options, valueBounds);
456template<
typename PomdpModelType,
typename BeliefValueType,
typename BeliefMdpValueType,
typename PolicyValueType>
463 "Belief discretization does not support exploration size or time limits.");
464 STORM_LOG_THROW(!options.
generatePolicy, storm::exceptions::NotSupportedException,
"Policy generation is not supported for belief MDP discretization.");
471template<
typename PomdpModelType,
typename BeliefValueType,
typename BeliefMdpValueType,
typename PolicyValueType>
478 STORM_LOG_THROW(!options.
generatePolicy, storm::exceptions::NotSupportedException,
"Policy generation is not supported for reward-aware exploration.");
482 env, inputPomdp, propertyInformation, options, valueBounds, rewardBoundedBeliefSplitter);
485template<
typename PomdpModelType,
typename BeliefValueType,
typename BeliefMdpValueType,
typename PolicyValueType>
492 "Belief discretization does not support exploration size or time limits.");
493 STORM_LOG_THROW(!options.
generatePolicy, storm::exceptions::NotSupportedException,
"Policy generation is not supported for reward-aware exploration.");
500 env, inputPomdp, propertyInformation, options, valueBounds, rewardBoundedBeliefSplitter, abstraction);
Helper class that optionally holds a reference to an object of type T.
Builds and checks a finite belief MDP approximation of a POMDP.
BeliefBasedModelCheckerResult< BeliefMdpValueType, PolicyValueType > checkDiscretize(storm::Environment const &env, PropertyInformation const &propertyInformation, storm::pomdp::beliefs::BeliefBasedModelCheckerOptions< BeliefMdpValueType > const &options, uint64_t resolution, bool useDynamic, storage::BeliefExplorationBounds< PomdpValueType > const &valueBounds)
Explores the belief space and discretises beliefs using the Freudenthal triangualtion approximation.
BeliefBasedModelCheckerResult< BeliefMdpValueType, PolicyValueType > checkRewardAwareUnfold(storm::Environment const &env, PropertyInformation const &propertyInformation, storm::pomdp::beliefs::BeliefBasedModelCheckerOptions< BeliefMdpValueType > const &options, storage::BeliefExplorationBounds< typename PomdpModelType::ValueType > const &valueBounds, std::vector< std::string > const &relevantRewardModelNames)
Explores a reward-aware belief MDP, splitting beliefs before successor generation by their reward vec...
BeliefBasedModelChecker(PomdpModelType const &pomdp)
Creates a checker for a canonic POMDP.
BeliefBasedModelCheckerResult< BeliefMdpValueType, PolicyValueType > checkRewardAwareDiscretize(storm::Environment const &env, PropertyInformation const &propertyInformation, storm::pomdp::beliefs::BeliefBasedModelCheckerOptions< BeliefMdpValueType > const &options, uint64_t resolution, bool useDynamic, storage::BeliefExplorationBounds< typename PomdpModelType::ValueType > const &valueBounds, std::vector< std::string > const &relevantRewardModelNames)
Combines reward-aware exploration with Freudenthal triangulation discretization.
BeliefBasedModelCheckerResult< BeliefMdpValueType, PolicyValueType > checkUnfold(storm::Environment const &env, PropertyInformation const &propertyInformation, BeliefBasedModelCheckerOptions< BeliefMdpValueType > const &options, storage::BeliefExplorationBounds< PomdpValueType > const &valueBounds)
Explores the belief MDP by unfolding the belief space.
std::function< bool()> TerminationCallback
std::function< std::optional< BeliefMdpValueType >(BeliefType const &)> TerminalBeliefCallback
Approximates a belief by clipping it to an observation-specific grid point.
Abstracts a belief by triangulating it using the Freudenthal triangulation.
Abstracts a given belief by splitting it into sub-beliefs based on the (state-action) reward of the P...
std::size_t getNumberOfSetRewardModels() const
void setRewardModels(std::vector< std::string > const &rewardModelNames)
Selects a nonempty list of reward models used to form reward vectors.
A class that provides convenience operations to display run times.
SecondType getTimeInSeconds() const
Gets the measured time in seconds.
#define STORM_LOG_INFO(message)
#define STORM_LOG_TRACE(message)
#define STORM_LOG_ERROR(message)
#define STORM_LOG_ASSERT(cond, message)
#define STORM_LOG_THROW(cond, exception, message)
std::unique_ptr< storm::modelchecker::CheckResult > verifyWithSparseEngine(storm::Environment const &env, std::shared_ptr< storm::models::sparse::Dtmc< ValueType > > const &dtmc, storm::modelchecker::CheckTask< storm::logic::Formula, ValueType > const &task, bool preferEliminationChecker=false)
std::pair< std::shared_ptr< models::sparse::Mdp< BeliefMdpValueType > >, std::unordered_map< uint64_t, BeliefId > > buildBeliefMdpFromInfo(PropertyInformation const &propertyInformation, storm::pomdp::storage::PreprocessingPomdpValueBounds< typename PomdpModelType::ValueType > const &valueBounds, InfoType const &info)
Converts exploration information into a finite MDP.
void validateRewardModelSelection(PropertyInformation const &propertyInformation, std::vector< std::string > const &rewardModelNames)
BeliefBasedModelCheckerResult< BeliefMdpValueType, PolicyValueType > checkRewardAwareUnfoldOrDiscretize(storm::Environment const &env, PomdpModelType const &pomdp, PropertyInformation const &propertyInformation, storm::pomdp::beliefs::BeliefBasedModelCheckerOptions< BeliefMdpValueType > const &options, storage::BeliefExplorationBounds< typename PomdpModelType::ValueType > const &valueBounds, RewardBoundedBeliefSplitter< BeliefMdpValueType, PomdpModelType, BeliefType > &rewardSplitter, storm::OptionalRef< FreudenthalTriangulationBeliefAbstraction< BeliefType > > abstraction={})
BeliefBasedModelCheckerResult< BeliefMdpValueType, PolicyValueType > checkUnfoldOrDiscretize(storm::Environment const &env, PomdpModelType const &pomdp, PropertyInformation const &propertyInformation, storm::pomdp::beliefs::BeliefBasedModelCheckerOptions< BeliefMdpValueType > const &options, storage::BeliefExplorationBounds< typename PomdpModelType::ValueType > const &valueBounds, storm::OptionalRef< AbstractionType > abstraction={})
BeliefExploration< BeliefMdpValueType, PomdpModelType, BeliefType >::TerminationCallback getTerminationCallback(storm::pomdp::beliefs::BeliefBasedModelCheckerOptions< BeliefMdpValueType > const &options, InfoType &info, storm::utility::Stopwatch &swExplore)
Creates the callback that ends exploration and turns the queued beliefs into the frontier.
std::shared_ptr< storm::logic::Formula const > createFormulaForBeliefMdp(PropertyInformation const &propertyInformation)
ExplorationInformation< BeliefMdpValueType, BeliefType, std::optional< BeliefMdpValueType >, std::optional< BeliefMdpValueType > > ClippingExplorationInformation
Exploration information that stores optional clipping probability and reward-adjustment metadata.
ExplorationInformation< BeliefMdpValueType, BeliefType > StandardExplorationInformation
Exploration information without transition metadata.
@ MAX_EXPLORATION_SIZE_AND_TIME
BeliefExploration< BeliefMdpValueType, PomdpModelType, BeliefType >::TerminalBeliefCallback getTerminalBeliefCallback(PropertyInformation const &propertyInformation, storm::pomdp::beliefs::BeliefBasedModelCheckerOptions< BeliefMdpValueType > const &options, storm::pomdp::storage::PreprocessingPomdpValueBounds< typename PomdpModelType::ValueType > const &valueBounds)
Creates a callback that recognizes property targets and optional zero-gap cut-offs as terminal belief...
std::pair< std::shared_ptr< models::sparse::Mdp< BeliefMdpValueType > >, std::unordered_map< uint64_t, BeliefId > > buildBeliefMdp(ExplorationInformation< BeliefMdpValueType, BeliefType, ExtraTransitionData... > const &explorationInformation, PropertyInformation const &propertyInformation, std::function< std::unordered_map< std::string, BeliefMdpValueType >(BeliefType const &)> const &computeCutOffValueMap)
Builds a belief MDP from the given exploration information and property information.
ExplorationInformation< BeliefMdpValueType, BeliefType, std::vector< BeliefMdpValueType > > RewardAwareExplorationInformation
Exploration information that stores a reward vector on each transition.
bool constexpr maximize(OptimizationDirection d)
bool constexpr minimize(OptimizationDirection d)
storm::storage::BitVector performProbGreater0A(storm::storage::SparseMatrix< T > const &transitionMatrix, std::vector< uint_fast64_t > const &nondeterministicChoiceIndices, storm::storage::SparseMatrix< T > const &backwardTransitions, storm::storage::BitVector const &phiStates, storm::storage::BitVector const &psiStates, bool useStepBound, uint_fast64_t maximalSteps, boost::optional< storm::storage::BitVector > const &choiceConstraint)
Computes the sets of states that have probability greater 0 of satisfying phi until psi under any pos...
storm::storage::BitVector performProbGreater0E(storm::storage::SparseMatrix< T > const &backwardTransitions, storm::storage::BitVector const &phiStates, storm::storage::BitVector const &psiStates, bool useStepBound, uint_fast64_t maximalSteps)
Computes the sets of states that have probability greater 0 of satisfying phi until psi under at leas...
ValueType max(ValueType const &first, ValueType const &second)
ValueType abs(ValueType const &number)
TargetType convertNumber(SourceType const &number)
OptionalRef(T &) -> OptionalRef< T >
deduction guides
constexpr NullRefType NullRef
std::optional< std::vector< uint64_t > > clippingResolutions
std::optional< uint64_t > maxExplorationTime
ExplorationQueueOrder explorationQueueOrder
bool cutZeroGap
Cut non-target beliefs only when their preprocessing lower and upper bounds have exactly zero gap....
std::optional< uint64_t > maxExplorationSize
explorationTerminationCriterion getTerminationCriterion() const
Get the termination criterion for the exploration.
Result of a belief-based model-checking run.
Auxiliary struct used to identify cases where no abstraction of beliefs shall be applied.
Struct for storing precomputed values bounding the actual values on the POMDP.
std::optional< ExtremePOMDPValueBound< POMDPValueType > > extremeBounds
std::optional< PreprocessingPomdpValueBounds< POMDPValueType > > preprocessingBounds
Struct for storing precomputed values bounding the actual values on the POMDP.
std::vector< std::vector< POMDPValueType > > lower
std::vector< std::vector< POMDPValueType > > upper