Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
RegionRefinementChecker.cpp
Go to the documentation of this file.
2
3#include <algorithm>
4#include <functional>
5#include <iterator>
6#include <queue>
7
18#include "storm/logic/Bound.h"
23
24namespace storm::modelchecker {
25
26template<typename ParametricType>
28 STORM_LOG_ASSERT(regionChecker != nullptr, "The region model checker must not be null.");
29 this->regionChecker = std::move(regionChecker);
30}
31
32template<typename ParametricType>
33bool RegionRefinementChecker<ParametricType>::canHandle(std::shared_ptr<storm::models::ModelBase> parametricModel,
35 return regionChecker->canHandle(parametricModel, checkTask);
36}
37
38template<typename ParametricType>
39void RegionRefinementChecker<ParametricType>::specify(Environment const& env, std::shared_ptr<storm::models::ModelBase> parametricModel,
41 RegionSplittingStrategy splittingStrategy, std::set<VariableType> const& discreteVariables,
42 std::shared_ptr<MonotonicityBackend<ParametricType>> monotonicityBackend, bool allowModelSimplifications,
43 storm::pars::analysis::GraphPreservationStatus graphPreservationStatus) {
44 this->monotonicityBackend = monotonicityBackend ? monotonicityBackend : std::make_shared<MonotonicityBackend<ParametricType>>();
45 this->regionSplittingStrategy = std::move(splittingStrategy);
46 this->discreteVariables = std::move(discreteVariables);
47 this->graphPreservationStatus = graphPreservationStatus;
48 if (this->regionSplittingStrategy.heuristic == RegionSplittingStrategy::Heuristic::Default) {
49 regionSplittingStrategy.heuristic = RegionSplittingStrategy::Heuristic::EstimateBased;
50 }
51 // Potentially determine the kind of region split estimate to generate
52 if (regionSplittingStrategy.heuristic == RegionSplittingStrategy::Heuristic::EstimateBased) {
53 if (regionSplittingStrategy.estimateKind.has_value()) {
54 STORM_LOG_THROW(regionChecker->isRegionSplitEstimateKindSupported(regionSplittingStrategy.estimateKind.value(), checkTask),
55 storm::exceptions::NotSupportedException, "The specified region split estimate kind is not supported by the region model checker.");
56 } else {
57 regionSplittingStrategy.estimateKind = regionChecker->getDefaultRegionSplitEstimateKind(checkTask);
58 STORM_LOG_ASSERT(regionChecker->isRegionSplitEstimateKindSupported(regionSplittingStrategy.estimateKind.value(), checkTask),
59 "The region model checker does not support its default region split estimate kind.");
60 }
61 } else {
62 regionSplittingStrategy.estimateKind = std::nullopt; // do not compute estimates
63 }
64
65 regionChecker->specify(env, parametricModel, checkTask, regionSplittingStrategy.estimateKind, monotonicityBackend, allowModelSimplifications,
66 graphPreservationStatus);
67}
68
69template<typename T>
71 public:
72 PartitioningProgress(T const totalArea, uint64_t delay, T const coverageThreshold = storm::utility::zero<T>())
73 : totalArea(totalArea),
74 coverageThreshold(coverageThreshold),
75 fractionOfUndiscoveredArea(storm::utility::one<T>()),
76 fractionOfAllSatArea(storm::utility::zero<T>()),
77 fractionOfAllViolatedArea(storm::utility::zero<T>()),
78 progress("% covered area", delay) {
79 progress.setMaxCount(100 - asPercentage(coverageThreshold));
80 progress.startNewMeasurement(0u);
81 }
82
83 uint64_t getUndiscoveredPercentage() const {
84 return asPercentage(fractionOfUndiscoveredArea);
85 }
86
88 return fractionOfUndiscoveredArea <= coverageThreshold;
89 }
90
91 T addDiscoveredArea(T const& area) {
92 auto addedFraction = area / totalArea;
93 fractionOfUndiscoveredArea -= addedFraction;
94 progress.updateProgress(100 - getUndiscoveredPercentage());
95 return addedFraction;
96 }
97
98 void addAllSatArea(T const& area) {
99 fractionOfAllSatArea += addDiscoveredArea(area);
100 }
101
102 void addAllViolatedArea(T const& area) {
103 fractionOfAllViolatedArea += addDiscoveredArea(area);
104 }
105
106 void addAllIllDefinedArea(T const& area) {
107 fractionOfAllIllDefinedArea += addDiscoveredArea(area);
108 }
109
110 private:
111 static uint64_t asPercentage(T const& value) {
113 }
114
115 T const totalArea;
116 T const coverageThreshold;
117 T fractionOfUndiscoveredArea;
118 T fractionOfAllSatArea;
119 T fractionOfAllViolatedArea;
120 T fractionOfAllIllDefinedArea;
122};
123
124template<typename ParametricType>
125std::unique_ptr<storm::modelchecker::RegionRefinementCheckResult<ParametricType>> RegionRefinementChecker<ParametricType>::performRegionPartitioning(
126 Environment const& env, storm::storage::ParameterRegion<ParametricType> const& region, std::optional<ParametricType> coverageThreshold,
127 std::optional<uint64_t> depthThreshold, RegionResultHypothesis const& hypothesis, uint64_t monThresh) {
128 STORM_LOG_INFO("Applying Region Partitioning on region: " << region.toString(true) << " .");
129
131 region.area(), env.solver().getShowProgressDelay(),
133
134 // Holds the initial region as well as all considered (sub)-regions and their annotations as a tree
136
137 // FIFO queue storing the current leafs of the region tree with neither allSat nor allViolated
138 // As we currently split regions in the center, a FIFO queue will ensure that regions with a larger area are processed first.
139 std::queue<std::reference_wrapper<AnnotatedRegion<ParametricType>>> unprocessedRegions;
140 unprocessedRegions.emplace(rootRegion);
141
142 uint64_t numOfAnalyzedRegions{0u};
143 bool monotonicityInitialized{false};
144
145 // Region Refinement Loop
146 while (!progress.isCoverageThresholdReached() && !unprocessedRegions.empty()) {
147 auto& currentRegion = unprocessedRegions.front().get();
148 STORM_LOG_TRACE("Analyzing region #" << numOfAnalyzedRegions << " (Refinement depth " << currentRegion.refinementDepth << "; "
149 << progress.getUndiscoveredPercentage() << "% still unknown; " << unprocessedRegions.size()
150 << " regions unprocessed).");
151 unprocessedRegions.pop(); // can pop already here, since the rootRegion has ownership.
152 ++numOfAnalyzedRegions;
153
154 if (!monotonicityInitialized && currentRegion.refinementDepth >= monThresh) {
155 monotonicityInitialized = true;
156 monotonicityBackend->initializeMonotonicity(env, rootRegion);
157 // Propagate monotonicity (unless the currentRegion is the root)
158 if (currentRegion.refinementDepth > 0) {
159 rootRegion.propagateAnnotationsToSubregions(true);
160 }
161 }
162 if (monotonicityInitialized) {
163 monotonicityBackend->updateMonotonicity(env, currentRegion);
164 }
165
166 currentRegion.result = regionChecker->analyzeRegion(env, currentRegion, hypothesis);
167
168 if (currentRegion.result == RegionResult::AllSat) {
169 progress.addAllSatArea(currentRegion.region.area());
170 } else if (currentRegion.result == RegionResult::AllViolated) {
171 progress.addAllViolatedArea(currentRegion.region.area());
172 } else if (currentRegion.result == RegionResult::AllIllDefined) {
173 // ill defined region => not graph-preserving
174 STORM_LOG_THROW(!storm::pars::analysis::isGraphPreserving(this->graphPreservationStatus), storm::exceptions::NotImplementedException,
175 "The region is not graph-preserving, but the selected region verification engine requires this assumption. Please use "
176 "--assume-graph-preserving false.");
177 progress.addAllIllDefinedArea(currentRegion.region.area());
178 } else {
179 // Split the region as long as the desired refinement depth is not reached.
180 if (!depthThreshold || currentRegion.refinementDepth < depthThreshold.value()) {
181 monotonicityBackend->updateMonotonicityBeforeSplitting(env, currentRegion);
182 auto splittingVariables = getSplittingVariables(currentRegion, Context::Partitioning);
183 STORM_LOG_INFO("Splitting on variables" << splittingVariables);
184 currentRegion.splitLeafNodeAtCenter(splittingVariables, this->discreteVariables, true);
185 for (auto& child : currentRegion.subRegions) {
186 unprocessedRegions.emplace(child);
187 }
188 }
189 }
190 }
191
192 // Prepare result
193 uint64_t numberOfRegionsKnownThroughMonotonicity{0};
194 std::vector<std::pair<storm::storage::ParameterRegion<ParametricType>, RegionResult>> result;
195 rootRegion.postOrderTraverseSubRegions([&result, &numberOfRegionsKnownThroughMonotonicity](auto& node) {
196 if (node.subRegions.empty()) {
197 if (node.resultKnownThroughMonotonicity) {
198 ++numberOfRegionsKnownThroughMonotonicity;
199 }
200 result.emplace_back(node.region, node.result);
201 }
202 });
203 auto const maxDepth = rootRegion.getMaxDepthOfSubRegions();
204 STORM_LOG_INFO("Region partitioning terminated after analyzing " << numOfAnalyzedRegions << " regions.\n\t" << numberOfRegionsKnownThroughMonotonicity
205 << " regions known through monotonicity.\n\tMaximum refinement depth: " << maxDepth
206 << ".\n\t" << progress.getUndiscoveredPercentage()
207 << "% of the parameter space are not covered.");
208
209 auto regionCopyForResult = region;
210 return std::make_unique<storm::modelchecker::RegionRefinementCheckResult<ParametricType>>(std::move(result), std::move(regionCopyForResult));
211}
212
213template<typename ParametricType>
214std::pair<typename RegionRefinementChecker<ParametricType>::ExtendedCoefficientType, typename storm::storage::ParameterRegion<ParametricType>::Valuation>
217 std::function<bool(ExtendedCoefficientType const&, ExtendedCoefficientType const&)> acceptGlobalBound,
218 std::function<bool(ExtendedCoefficientType const&)> rejectInstance) {
220
221 // Holds the initial region as well as all considered (sub)-regions and their annotations as a tree
223
224 // Priority Queue storing the regions that still need to be processed. Regions with a "good" bound are processed first
225 auto cmp = storm::solver::minimize(dir) ? [](AnnotatedRegion<ParametricType> const& lhs,
227 rhs) { return lhs.knownLowerValueBound.getExtendedValue() > rhs.knownLowerValueBound.getExtendedValue(); }
229 return lhs.knownUpperValueBound.getExtendedValue() < rhs.knownUpperValueBound.getExtendedValue();
230 };
231 std::priority_queue<std::reference_wrapper<AnnotatedRegion<ParametricType>>, std::vector<std::reference_wrapper<AnnotatedRegion<ParametricType>>>,
232 decltype(cmp)>
233 unprocessedRegions(cmp);
234 unprocessedRegions.push(rootRegion);
235
236 // Initialize Monotonicity
237 monotonicityBackend->initializeMonotonicity(env, rootRegion);
238
239 // Initialize result
240 auto valueValuation = regionChecker->getAndEvaluateGoodPoint(env, rootRegion, dir);
241 auto& value = valueValuation.first;
242 if (rejectInstance(value)) {
243 return valueValuation;
244 }
245
246 if (std::all_of(region.getVariables().begin(), region.getVariables().end(),
247 [&](auto const& variable) { return storm::utility::isZero(region.getDifference(variable)); })) {
248 return valueValuation;
249 }
250
251 // Helper functions to check if a given result is better than the currently known result
252 auto isBetterThanValue = [&value, &dir](auto const& newValue) { return storm::solver::minimize(dir) ? newValue < value : newValue > value; };
253 // acceptGlobalBound is the opposite of this
254
255 // Region Refinement Loop
256 uint64_t numOfAnalyzedRegions{0u};
257 while (!unprocessedRegions.empty()) {
258 auto& currentRegion = unprocessedRegions.top().get();
259 ExtendedCoefficientType currentBound =
260 storm::solver::minimize(dir) ? currentRegion.knownLowerValueBound.getExtendedValue() : currentRegion.knownUpperValueBound.getExtendedValue();
261 STORM_LOG_TRACE("Analyzing region #" << numOfAnalyzedRegions << " (Refinement depth " << currentRegion.refinementDepth << "; "
262 << progress.getUndiscoveredPercentage() << "% still unknown; " << unprocessedRegions.size()
263 << " regions unprocessed). Best known value: " << value << ".");
264 unprocessedRegions.pop(); // can pop already here, since the rootRegion has ownership.
265 ++numOfAnalyzedRegions;
266
267 monotonicityBackend->updateMonotonicity(env, currentRegion);
268
269 // Compute the bound for this region (unless the known bound is already too weak)
270 if (!acceptGlobalBound(value, currentBound)) {
271 // Improve over-approximation of extremal value (within this region)
272 currentBound = regionChecker->getBoundAtInitState(env, currentRegion, dir);
273 if (storm::solver::minimize(dir)) {
274 currentRegion.knownLowerValueBound &= currentBound;
275 } else {
276 currentRegion.knownUpperValueBound &= currentBound;
277 }
278 }
279
280 // Process the region if the bound is promising
281 if (!acceptGlobalBound(value, currentBound)) {
282 // Improve (global) under-approximation of extremal value
283 // Check whether this region contains a new 'good' value and set this value if that is the case
284 auto [currValue, currValuation] = regionChecker->getAndEvaluateGoodPoint(env, currentRegion, dir);
285 if (isBetterThanValue(currValue)) {
286 valueValuation = {currValue, currValuation};
287 if (rejectInstance(currValue)) {
288 STORM_LOG_INFO("Found rejecting instance " << currValuation << " with value " << currValue);
289 return valueValuation;
290 }
291 }
292 }
293
294 // Trigger region-splitting if over- and under-approximation are still too far apart
295 if (!acceptGlobalBound(value, currentBound)) {
296 monotonicityBackend->updateMonotonicityBeforeSplitting(env, currentRegion);
297 auto splittingVariables = getSplittingVariables(currentRegion, Context::ExtremalValue);
298 for (auto it = splittingVariables.begin(); it != splittingVariables.end();) {
299 if (storm::utility::isZero(currentRegion.region.getDifference(*it))) {
300 it = splittingVariables.erase(it);
301 } else {
302 ++it;
303 }
304 }
306 !splittingVariables.empty(), storm::exceptions::NotSupportedException,
307 "getSplittingVariables returned no parameter with non-zero width for region " << currentRegion.region << "; refinement cannot proceed.");
308 STORM_LOG_INFO("Splitting on variables " << splittingVariables);
309 currentRegion.splitLeafNodeAtCenter(splittingVariables, this->discreteVariables, true);
310 for (auto& child : currentRegion.subRegions) {
311 unprocessedRegions.emplace(child);
312 }
313 } else {
314 progress.addDiscoveredArea(currentRegion.region.area());
315 }
316 }
317
318 STORM_LOG_INFO("Region partitioning for extremal value terminated after analyzing "
319 << numOfAnalyzedRegions << " regions.\n\t" << progress.getUndiscoveredPercentage() << "% of the parameter space are not covered.");
320 return valueValuation;
321}
322
323template<typename ParametricType>
324std::pair<typename RegionRefinementChecker<ParametricType>::ExtendedCoefficientType, typename storm::storage::ParameterRegion<ParametricType>::Valuation>
326 storm::solver::OptimizationDirection const& dir, ParametricType const& precision,
327 bool absolutePrecision, std::optional<storm::logic::Bound> const& boundInvariant) {
328 // Handle input precision
329 STORM_LOG_THROW(storm::utility::isConstant(precision), storm::exceptions::InvalidArgumentException,
330 "Precision must be a constant value. Got " << precision << " instead.");
332
333 auto acceptGlobalBound = [&](ExtendedCoefficientType const& value, ExtendedCoefficientType const& newValue) {
334 if (!storm::utility::isFinite(value)) {
335 return newValue == value;
336 }
337 ExtendedCoefficientType const usedPrecision = convertedPrecision * (absolutePrecision ? storm::utility::one<ExtendedCoefficientType>() : value);
338 return storm::solver::minimize(dir) ? newValue >= value - usedPrecision : newValue <= value + usedPrecision;
339 };
340
341 auto rejectInstance = [&](ExtendedCoefficientType const& currentValue) { return boundInvariant && !boundInvariant->isSatisfied(currentValue); };
342
343 return computeExtremalValueHelper(env, region, dir, acceptGlobalBound, rejectInstance);
344}
345
346template<typename ParametricType>
348 const storm::logic::Bound& bound) {
349 // Use the bound from the formula.
350 // We will try to violate the bound.
352 isLowerBound(bound.comparisonType) ? storm::solver::OptimizationDirection::Minimize : storm::solver::OptimizationDirection::Maximize;
353 // We pass the bound as an invariant; as soon as it is obtained, we can stop the search.
354 auto acceptGlobalBound = [&](ExtendedCoefficientType const&, ExtendedCoefficientType const& newValue) { return bound.isSatisfied(newValue); };
355
356 auto rejectInstance = [&](ExtendedCoefficientType const& currentValue) { return !bound.isSatisfied(currentValue); };
357
358 auto res = computeExtremalValueHelper(env, region, dir, acceptGlobalBound, rejectInstance).first;
359 STORM_LOG_INFO("Extremal value: " << res);
360 return bound.isSatisfied(res);
361}
362
363template<typename ParametricType>
364std::set<typename RegionRefinementChecker<ParametricType>::VariableType> RegionRefinementChecker<ParametricType>::getSplittingVariablesEstimateBased(
365 AnnotatedRegion<ParametricType> const& region, Context context) const {
366 // If we can split on all variables, do that instead of requesting region split estimates
367 if (this->regionSplittingStrategy.maxSplitDimensions >= region.region.getVariables().size()) {
368 return region.region.getVariables();
369 }
370
371 auto const& estimates = regionChecker->obtainRegionSplitEstimates(region.region.getVariables());
372 std::vector<std::pair<VariableType, CoefficientType>> estimatesToSort;
373 estimatesToSort.reserve(region.region.getVariables().size());
374 STORM_LOG_ASSERT(estimates.size() == region.region.getVariables().size(), "Unexpected number of estimates.");
375 auto estimatesIter = estimates.begin();
376 for (auto const& param : region.region.getVariables()) {
377 estimatesToSort.push_back(std::make_pair(param, *estimatesIter++));
378 }
379
380 // Sort and insert largest n=maxSplitDimensions estimates
381 std::sort(estimatesToSort.begin(), estimatesToSort.end(), [](const auto& a, const auto& b) { return a.second > b.second; });
382
383 std::set<VariableType> splittingVars;
384 for (auto const& estimate : estimatesToSort) {
385 // Do not split on monotone parameters if finding an extremal value is the goal
386 if (context == Context::ExtremalValue && region.monotonicityAnnotation.getGlobalMonotonicityResult() &&
387 region.monotonicityAnnotation.getGlobalMonotonicityResult()->isMonotone(estimate.first)) {
388 continue;
389 }
390 // Do not split on parameters that are fixed
391 if (region.region.getDifference(estimate.first) == storm::utility::zero<CoefficientType>()) {
392 continue;
393 }
394 splittingVars.emplace(estimate.first);
395 if (splittingVars.size() == regionSplittingStrategy.maxSplitDimensions) {
396 break;
397 }
398 }
399 return splittingVars;
400}
401
402template<typename ParametricType>
403std::set<typename RegionRefinementChecker<ParametricType>::VariableType> RegionRefinementChecker<ParametricType>::getSplittingVariablesRoundRobin(
404 AnnotatedRegion<ParametricType> const& region, Context context) const {
405 // Perform round-robin based on the depth of the region, always split on max split dimensions
406 auto const& vars = region.region.getVariables();
407 auto varsIter = vars.begin();
408
409 std::advance(varsIter, (region.refinementDepth * this->regionSplittingStrategy.maxSplitDimensions) % vars.size());
410
411 auto loopPoint = varsIter;
412
413 std::set<VariableType> splittingVars;
414 do {
415 // Do not split on monotone parameters if finding an extremal value is the goal
416 if (context == Context::ExtremalValue && region.monotonicityAnnotation.getGlobalMonotonicityResult() &&
417 region.monotonicityAnnotation.getGlobalMonotonicityResult()->isMonotone(*varsIter)) {
418 continue;
419 }
420 splittingVars.emplace(*varsIter);
421 std::advance(varsIter, 1);
422 if (varsIter == vars.end()) {
423 varsIter = vars.begin();
424 }
425 } while (loopPoint != varsIter && splittingVars.size() < this->regionSplittingStrategy.maxSplitDimensions);
426
427 return splittingVars;
428}
429
430template<typename ParametricType>
431std::set<typename RegionRefinementChecker<ParametricType>::VariableType> RegionRefinementChecker<ParametricType>::getSplittingVariables(
432 AnnotatedRegion<ParametricType> const& region, Context context) const {
433 switch (regionSplittingStrategy.heuristic) {
435 return getSplittingVariablesEstimateBased(region, context);
437 return getSplittingVariablesRoundRobin(region, context);
439 default:
440 STORM_LOG_ERROR("Default strategy should have been populated.");
441 return {};
442 }
443}
444
446} // namespace storm::modelchecker
SolverEnvironment & solver()
uint64_t getShowProgressDelay() const
PartitioningProgress(T const totalArea, uint64_t delay, T const coverageThreshold=storm::utility::zero< T >())
bool canHandle(std::shared_ptr< storm::models::ModelBase > parametricModel, CheckTask< storm::logic::Formula, ParametricType > const &checkTask) const
typename storm::storage::ParameterRegion< ParametricType >::CoefficientType CoefficientType
bool verifyRegion(Environment const &env, storm::storage::ParameterRegion< ParametricType > const &region, storm::logic::Bound const &bound)
Checks whether the bound is satisfied on the complete region.
storm::utility::ExtendedValueType< CoefficientType > ExtendedCoefficientType
RegionRefinementChecker(std::unique_ptr< RegionModelChecker< ParametricType > > &&regionChecker)
std::unique_ptr< storm::modelchecker::RegionRefinementCheckResult< ParametricType > > performRegionPartitioning(Environment const &env, storm::storage::ParameterRegion< ParametricType > const &region, std::optional< ParametricType > coverageThreshold, std::optional< uint64_t > depthThreshold=std::nullopt, RegionResultHypothesis const &hypothesis=RegionResultHypothesis::Unknown, uint64_t monThresh=0)
Iteratively refines the region until the region analysis yields a conclusive result (AllSat or AllVio...
std::pair< ExtendedCoefficientType, Valuation > computeExtremalValue(Environment const &env, storm::storage::ParameterRegion< ParametricType > const &region, storm::solver::OptimizationDirection const &dir, ParametricType const &precision, bool absolutePrecision, std::optional< storm::logic::Bound > const &boundInvariant)
Finds the extremal value within the given region and with the given precision.
void specify(Environment const &env, std::shared_ptr< storm::models::ModelBase > parametricModel, CheckTask< storm::logic::Formula, ParametricType > const &checkTask, RegionSplittingStrategy splittingStrategy=RegionSplittingStrategy(), std::set< VariableType > const &discreteVariables={}, std::shared_ptr< MonotonicityBackend< ParametricType > > monotonicityBackend={}, bool allowModelSimplifications=true, storm::pars::analysis::GraphPreservationStatus graphPreservationStatus=storm::pars::analysis::GraphPreservationStatus::GraphPreserving)
std::pair< ExtendedCoefficientType, Valuation > computeExtremalValueHelper(Environment const &env, storm::storage::ParameterRegion< ParametricType > const &region, storm::solver::OptimizationDirection const &dir, std::function< bool(ExtendedCoefficientType const &, ExtendedCoefficientType const &)> acceptGlobalBound, std::function< bool(ExtendedCoefficientType const &)> rejectInstance)
Finds the extremal value within the given region and with the given precision.
std::set< VariableType > const & getVariables() const
storm::utility::parametric::Valuation< ParametricType > Valuation
A class that provides convenience operations to display run times.
#define STORM_LOG_INFO(message)
Definition logging.h:34
#define STORM_LOG_TRACE(message)
Definition logging.h:22
#define STORM_LOG_ERROR(message)
Definition logging.h:36
#define STORM_LOG_ASSERT(cond, message)
Definition macros.h:9
#define STORM_LOG_THROW(cond, exception, message)
Definition macros.h:39
RegionResult
The results for a single Parameter Region.
@ AllSat
the formula is satisfied for all well-defined parameters in the given region
@ AllViolated
the formula is violated for all well-defined parameters in the given region
@ AllIllDefined
the formula is ill-defined for all parameters in the given region
RegionResultHypothesis
hypothesis for the result for a single Parameter Region
GraphPreservationStatus
Describes to what extent a set of regions is known to be well-defined and to preserve the graph struc...
bool isGraphPreserving(GraphPreservationStatus status)
Returns whether the given status guarantees that the graph structure of the model is preserved.
bool constexpr minimize(OptimizationDirection d)
bool isFinite(ExtendedNumber< ValueType > const &value)
bool isConstant(ValueType const &)
bool isZero(ValueType const &a)
Definition constants.cpp:44
ValueType zero()
Definition constants.cpp:26
ValueType one()
Definition constants.cpp:21
ValueType round(ValueType const &number)
TargetType convertNumber(SourceType const &number)
The contract of a DD backend.
ComparisonType comparisonType
Definition Bound.h:17
bool isSatisfied(ValueType const &compareValue) const
Definition Bound.cpp:9
void propagateAnnotationsToSubregions(bool allowDeleteAnnotationsOfThis)
storm::modelchecker::MonotonicityAnnotation< ParametricType > monotonicityAnnotation
Whether the result is known through monotonicity.
void postOrderTraverseSubRegions(std::function< void(AnnotatedRegion< ParametricType > &)> const &visitor)
storm::utility::Maximum< CoefficientType > knownLowerValueBound
storm::utility::Minimum< CoefficientType > knownUpperValueBound
Region const region
The subregions of this region.