Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SparseMarkovAutomatonCslModelChecker.cpp
Go to the documentation of this file.
2
20
21namespace storm {
22namespace modelchecker {
23template<typename SparseMarkovAutomatonModelType>
25 : SparsePropositionalModelChecker<SparseMarkovAutomatonModelType>(model) {
26 // Intentionally left empty.
27}
28
29template<typename ModelType>
31 bool* requiresSingleInitialState) {
32 auto singleObjectiveFragment = storm::logic::csrlstar()
36 .setTimeAllowed(true)
41 auto multiObjectiveFragment =
44 singleObjectiveFragment.setBoundedUntilFormulasAllowed(false).setCumulativeRewardFormulasAllowed(false);
45 multiObjectiveFragment.setTimeBoundedUntilFormulasAllowed(false).setCumulativeRewardFormulasAllowed(false);
46 }
47 if (checkTask.getFormula().isInFragment(singleObjectiveFragment)) {
48 return true;
49 } else if (checkTask.isOnlyInitialStatesRelevantSet() && checkTask.getFormula().isInFragment(multiObjectiveFragment)) {
50 if (requiresSingleInitialState) {
51 *requiresSingleInitialState = true;
52 }
53 return true;
54 }
55 return false;
56}
57
58template<typename SparseMarkovAutomatonModelType>
60 bool requiresSingleInitialState = false;
61 if (canHandleStatic(checkTask, &requiresSingleInitialState)) {
62 return !requiresSingleInitialState || this->getModel().getInitialStates().getNumberOfSetBits() == 1;
63 } else {
64 return false;
65 }
66}
67
68template<typename SparseMarkovAutomatonModelType>
71 storm::logic::BoundedUntilFormula const& pathFormula = checkTask.getFormula();
72 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
73 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
74 STORM_LOG_THROW(this->getModel().isClosed(), storm::exceptions::InvalidPropertyException,
75 "Unable to compute time-bounded reachability probabilities in non-closed Markov automaton.");
76 std::unique_ptr<CheckResult> rightResultPointer = this->check(env, pathFormula.getRightSubformula());
77 ExplicitQualitativeCheckResult<ValueType> const& rightResult = rightResultPointer->template asExplicitQualitativeCheckResult<ValueType>();
78
79 std::unique_ptr<CheckResult> leftResultPointer = this->check(env, pathFormula.getLeftSubformula());
80 ExplicitQualitativeCheckResult<ValueType> const& leftResult = leftResultPointer->template asExplicitQualitativeCheckResult<ValueType>();
81
82 STORM_LOG_THROW(pathFormula.getTimeBoundReference().isTimeBound(), storm::exceptions::NotImplementedException,
83 "Currently step-bounded and reward-bounded properties on MAs are not supported.");
84 double lowerBound = 0;
85 std::optional<double> upperBound;
86 if (pathFormula.hasLowerBound()) {
87 lowerBound = pathFormula.getLowerBound<double>();
88 }
89 if (pathFormula.hasUpperBound()) {
90 upperBound = pathFormula.getNonStrictUpperBound<double>();
91 }
92
94 env, storm::solver::SolveGoal<ValueType>(this->getModel(), checkTask), this->getModel().getTransitionMatrix(), this->getModel().getExitRates(),
95 this->getModel().getMarkovianStates(), leftResult.getTruthValuesVector(), rightResult.getTruthValuesVector(), std::make_pair(lowerBound, upperBound));
96 return std::unique_ptr<CheckResult>(new ExplicitQuantitativeCheckResult<ValueType>(std::move(result)));
97}
98
99template<typename SparseMarkovAutomatonModelType>
102 storm::logic::NextFormula const& pathFormula = checkTask.getFormula();
103 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
104 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
105 std::unique_ptr<CheckResult> subResultPointer = this->check(env, pathFormula.getSubformula());
106 ExplicitQualitativeCheckResult<ValueType> const& subResult = subResultPointer->template asExplicitQualitativeCheckResult<ValueType>();
108 env, checkTask.getOptimizationDirection(), checkTask.getUncertaintyResolutionMode(), this->getModel().getTransitionMatrix(),
109 subResult.getTruthValuesVector());
110 return std::unique_ptr<CheckResult>(new ExplicitQuantitativeCheckResult<ValueType>(std::move(numericResult)));
111}
112
113template<typename SparseMarkovAutomatonModelType>
116 storm::logic::GloballyFormula const& pathFormula = checkTask.getFormula();
117 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
118 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
119 std::unique_ptr<CheckResult> subResultPointer = this->check(env, pathFormula.getSubformula());
120 ExplicitQualitativeCheckResult<ValueType> const& subResult = subResultPointer->template asExplicitQualitativeCheckResult<ValueType>();
122 env, storm::solver::SolveGoal<ValueType>(this->getModel(), checkTask), this->getModel().getTransitionMatrix(),
123 this->getModel().getBackwardTransitions(), subResult.getTruthValuesVector(), checkTask.isQualitativeSet(), checkTask.isProduceSchedulersSet());
124 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<ValueType>(std::move(ret.values)));
125 if (checkTask.isProduceSchedulersSet() && ret.scheduler) {
126 result->asExplicitQuantitativeCheckResult<ValueType>().setScheduler(std::move(ret.scheduler));
127 }
128 return result;
129}
130
131template<typename SparseMarkovAutomatonModelType>
134 storm::logic::UntilFormula const& pathFormula = checkTask.getFormula();
135 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
136 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
137 std::unique_ptr<CheckResult> leftResultPointer = this->check(env, pathFormula.getLeftSubformula());
138 std::unique_ptr<CheckResult> rightResultPointer = this->check(env, pathFormula.getRightSubformula());
139 ExplicitQualitativeCheckResult<ValueType>& leftResult = leftResultPointer->template asExplicitQualitativeCheckResult<ValueType>();
140 ExplicitQualitativeCheckResult<ValueType>& rightResult = rightResultPointer->template asExplicitQualitativeCheckResult<ValueType>();
141 if (checkTask.isProduceCertificateSet()) {
143 STORM_LOG_INFO("Computing reachability probabilities with certificate ...");
144 STORM_LOG_WARN_COND(!checkTask.isProduceSchedulersSet(), "Scheduler generation with certificates not implemented.");
145 std::optional<storm::storage::BitVector> constraintStates;
146 std::optional<std::string> constraintLabel;
147 if (!pathFormula.getLeftSubformula().isTrueFormula()) {
148 constraintStates = leftResult.getTruthValuesVector();
149 constraintLabel = pathFormula.getLeftSubformula().toString();
150 }
152 env, checkTask.getOptimizationDirection(), this->getModel().getTransitionMatrix(), rightResult.getTruthValuesVector(), constraintStates,
153 pathFormula.getRightSubformula().toString(), constraintLabel);
154 storm::storage::BitVector allStates(this->getModel().getNumberOfStates(), true);
155 return std::make_unique<ExplicitCertificateCheckResult<ValueType>>(std::move(certificate), std::move(allStates));
156 } else {
157 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "Certificates are not implemented for this value type.");
158 }
159 }
161 env, checkTask.getOptimizationDirection(), this->getModel().getTransitionMatrix(), this->getModel().getBackwardTransitions(),
162 leftResult.getTruthValuesVector(), rightResult.getTruthValuesVector(), checkTask.isQualitativeSet(), checkTask.isProduceSchedulersSet());
163 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<ValueType>(std::move(ret.values)));
164 if (checkTask.isProduceSchedulersSet() && ret.scheduler) {
165 result->asExplicitQuantitativeCheckResult<ValueType>().setScheduler(std::move(ret.scheduler));
166 }
167 return result;
168}
169
170template<typename SparseMarkovAutomatonModelType>
173 storm::logic::HOAPathFormula const& pathFormula = checkTask.getFormula();
174
177
178 auto formulaChecker = [&](storm::logic::Formula const& formula) {
179 return this->check(env, formula)->template asExplicitQualitativeCheckResult<ValueType>().getTruthValuesVector();
180 };
181 auto apSets = helper.computeApSets(pathFormula.getAPMapping(), formulaChecker);
182 std::vector<ValueType> numericResult = helper.computeDAProductProbabilities(env, *pathFormula.readAutomaton(), apSets);
183
184 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<ValueType>(std::move(numericResult)));
185 if (checkTask.isProduceSchedulersSet()) {
186 result->asExplicitQuantitativeCheckResult<ValueType>().setScheduler(
187 std::make_unique<storm::storage::Scheduler<ValueType>>(helper.extractScheduler(this->getModel())));
188 }
189
190 return result;
191}
192
193template<typename SparseMarkovAutomatonModelType>
196 storm::logic::PathFormula const& pathFormula = checkTask.getFormula();
197
198 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
199 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
200
203
204 auto formulaChecker = [&](storm::logic::Formula const& formula) {
205 return this->check(env, formula)->template asExplicitQualitativeCheckResult<ValueType>().getTruthValuesVector();
206 };
207 std::vector<ValueType> numericResult = helper.computeLTLProbabilities(env, pathFormula, formulaChecker);
208
209 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<ValueType>(std::move(numericResult)));
210 if (checkTask.isProduceSchedulersSet()) {
211 result->asExplicitQuantitativeCheckResult<ValueType>().setScheduler(
212 std::make_unique<storm::storage::Scheduler<ValueType>>(helper.extractScheduler(this->getModel())));
213 }
214
215 return result;
216}
217
218template<typename SparseMarkovAutomatonModelType>
221 storm::logic::EventuallyFormula const& eventuallyFormula = checkTask.getFormula();
222 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
223 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
224 STORM_LOG_THROW(this->getModel().isClosed(), storm::exceptions::InvalidPropertyException,
225 "Unable to compute reachability rewards in non-closed Markov automaton.");
226 std::unique_ptr<CheckResult> subResultPointer = this->check(env, eventuallyFormula.getSubformula());
227 ExplicitQualitativeCheckResult<ValueType> const& subResult = subResultPointer->template asExplicitQualitativeCheckResult<ValueType>();
228 auto rewardModel = storm::utility::createFilteredRewardModel(this->getModel(), checkTask);
229 if (checkTask.isProduceCertificateSet()) {
231 STORM_LOG_INFO("Computing reachability rewards with certificate ...");
232 STORM_LOG_WARN_COND(!checkTask.isProduceSchedulersSet(), "Scheduler generation with certificates not implemented.");
233 std::vector<ValueType> stateRewardWeights(this->getModel().getNumberOfStates(), storm::utility::zero<ValueType>());
234 for (auto const markovianState : this->getModel().getMarkovianStates()) {
235 stateRewardWeights[markovianState] = storm::utility::one<ValueType>() / this->getModel().getExitRate(markovianState);
236 }
237 std::vector<ValueType> totalRewardVector = rewardModel.get().getTotalActionRewardVector(this->getModel().getTransitionMatrix(), stateRewardWeights);
239 env, checkTask.getOptimizationDirection(), this->getModel().getTransitionMatrix(), subResult.getTruthValuesVector(),
240 std::move(totalRewardVector), eventuallyFormula.getSubformula().toString(), checkTask.isRewardModelSet() ? checkTask.getRewardModel() : "");
241 storm::storage::BitVector allStates(this->getModel().getNumberOfStates(), true);
242 return std::make_unique<ExplicitCertificateCheckResult<ValueType>>(std::move(certificate), std::move(allStates));
243 } else {
244 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "Certificates are not implemented for this value type.");
245 }
246 }
248 env, checkTask.getOptimizationDirection(), this->getModel().getTransitionMatrix(), this->getModel().getBackwardTransitions(),
249 this->getModel().getExitRates(), this->getModel().getMarkovianStates(), rewardModel.get(), subResult.getTruthValuesVector(),
250 checkTask.isProduceSchedulersSet());
251 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<ValueType>(std::move(ret.values)));
252 if (checkTask.isProduceSchedulersSet() && ret.scheduler) {
253 result->asExplicitQuantitativeCheckResult<ValueType>().setScheduler(std::move(ret.scheduler));
254 }
255 return result;
256}
257
258template<typename SparseMarkovAutomatonModelType>
261 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
262 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
263 STORM_LOG_THROW(this->getModel().isClosed(), storm::exceptions::InvalidPropertyException,
264 "Unable to compute reachability rewards in non-closed Markov automaton.");
265 auto rewardModel = storm::utility::createFilteredRewardModel(this->getModel(), checkTask);
266
268 env, checkTask.getOptimizationDirection(), this->getModel().getTransitionMatrix(), this->getModel().getBackwardTransitions(),
269 this->getModel().getExitRates(), this->getModel().getMarkovianStates(), rewardModel.get(), checkTask.isProduceSchedulersSet());
270 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<ValueType>(std::move(ret.values)));
271 if (checkTask.isProduceSchedulersSet() && ret.scheduler) {
272 result->asExplicitQuantitativeCheckResult<ValueType>().setScheduler(std::move(ret.scheduler));
273 }
274 return result;
275}
276
277template<typename SparseMarkovAutomatonModelType>
280 storm::logic::StateFormula const& stateFormula = checkTask.getFormula();
281 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
282 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
283 STORM_LOG_THROW(this->getModel().isClosed(), storm::exceptions::InvalidPropertyException,
284 "Unable to compute long-run average in non-closed Markov automaton.");
285 std::unique_ptr<CheckResult> subResultPointer = this->check(env, stateFormula);
286 ExplicitQualitativeCheckResult<ValueType> const& subResult = subResultPointer->template asExplicitQualitativeCheckResult<ValueType>();
287
289 this->getModel().getTransitionMatrix(), this->getModel().getMarkovianStates(), this->getModel().getExitRates());
291 auto values = helper.computeLongRunAverageProbabilities(env, subResult.getTruthValuesVector());
292
293 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<ValueType>(std::move(values)));
294 if (checkTask.isProduceSchedulersSet()) {
295 result->asExplicitQuantitativeCheckResult<ValueType>().setScheduler(std::make_unique<storm::storage::Scheduler<ValueType>>(helper.extractScheduler()));
296 }
297 return result;
298}
299
300template<typename SparseMarkovAutomatonModelType>
303 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
304 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
305 STORM_LOG_THROW(this->getModel().isClosed(), storm::exceptions::InvalidPropertyException,
306 "Unable to compute long run average rewards in non-closed Markov automaton.");
307 auto rewardModel = storm::utility::createFilteredRewardModel(this->getModel(), checkTask);
308
310 this->getModel().getTransitionMatrix(), this->getModel().getMarkovianStates(), this->getModel().getExitRates());
312 auto values = helper.computeLongRunAverageRewards(env, rewardModel.get());
313
314 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<ValueType>(std::move(values)));
315 if (checkTask.isProduceSchedulersSet()) {
316 result->asExplicitQuantitativeCheckResult<ValueType>().setScheduler(std::make_unique<storm::storage::Scheduler<ValueType>>(helper.extractScheduler()));
317 }
318 return result;
319}
320
321template<typename SparseMarkovAutomatonModelType>
324 storm::logic::EventuallyFormula const& eventuallyFormula = checkTask.getFormula();
325 STORM_LOG_THROW(checkTask.isOptimizationDirectionSet(), storm::exceptions::InvalidPropertyException,
326 "Formula needs to specify whether minimal or maximal values are to be computed on nondeterministic model.");
327 STORM_LOG_THROW(this->getModel().isClosed(), storm::exceptions::InvalidPropertyException,
328 "Unable to compute expected times in non-closed Markov automaton.");
329 std::unique_ptr<CheckResult> subResultPointer = this->check(env, eventuallyFormula.getSubformula());
330 ExplicitQualitativeCheckResult<ValueType>& subResult = subResultPointer->template asExplicitQualitativeCheckResult<ValueType>();
331
332 if (checkTask.isProduceCertificateSet()) {
334 STORM_LOG_INFO("Computing reachability times with certificate ...");
335 STORM_LOG_WARN_COND(!checkTask.isProduceSchedulersSet(), "Scheduler generation with certificates not implemented.");
336 std::vector<ValueType> timeRewards(this->getModel().getNumberOfChoices(), storm::utility::zero<ValueType>());
337 for (auto const markovianState : this->getModel().getMarkovianStates()) {
338 timeRewards[this->getModel().getTransitionMatrix().getRowGroupIndices()[markovianState]] =
339 storm::utility::one<ValueType>() / this->getModel().getExitRate(markovianState);
340 }
342 env, checkTask.getOptimizationDirection(), this->getModel().getTransitionMatrix(), subResult.getTruthValuesVector(), std::move(timeRewards),
343 eventuallyFormula.getSubformula().toString(), "time");
344 storm::storage::BitVector allStates(this->getModel().getNumberOfStates(), true);
345 return std::make_unique<ExplicitCertificateCheckResult<ValueType>>(std::move(certificate), std::move(allStates));
346 } else {
347 STORM_LOG_THROW(false, storm::exceptions::NotImplementedException, "Certificates are not implemented for this value type.");
348 }
349 }
351 env, checkTask.getOptimizationDirection(), this->getModel().getTransitionMatrix(), this->getModel().getBackwardTransitions(),
352 this->getModel().getExitRates(), this->getModel().getMarkovianStates(), subResult.getTruthValuesVector(), checkTask.isProduceSchedulersSet());
353 std::unique_ptr<CheckResult> result(new ExplicitQuantitativeCheckResult<ValueType>(std::move(ret.values)));
354 if (checkTask.isProduceSchedulersSet() && ret.scheduler) {
355 result->asExplicitQuantitativeCheckResult<ValueType>().setScheduler(std::move(ret.scheduler));
356 }
357 return result;
358}
359
360template<typename SparseMarkovAutomatonModelType>
365
368} // namespace modelchecker
369} // namespace storm
Formula const & getRightSubformula() const
Formula const & getLeftSubformula() const
TimeBoundReference const & getTimeBoundReference(unsigned i=0) const
ValueType getNonStrictUpperBound(unsigned i=0) const
storm::expressions::Expression const & getLowerBound(unsigned i=0) const
std::string toString() const
Definition Formula.cpp:617
virtual bool isTrueFormula() const
Definition Formula.cpp:70
FragmentSpecification & setRewardAccumulationAllowed(bool newValue)
FragmentSpecification & setTimeBoundedUntilFormulasAllowed(bool newValue)
FragmentSpecification & setTotalRewardFormulasAllowed(bool newValue)
FragmentSpecification & setReachabilityRewardFormulasAllowed(bool newValue)
FragmentSpecification & setLongRunAverageRewardFormulasAllowed(bool newValue)
FragmentSpecification & setLongRunAverageProbabilitiesAllowed(bool newValue)
FragmentSpecification & setRewardOperatorsAllowed(bool newValue)
FragmentSpecification & setInstantaneousFormulasAllowed(bool newValue)
FragmentSpecification & setTimeAllowed(bool newValue)
const ap_to_formula_map & getAPMapping() const
std::shared_ptr< storm::automata::DeterministicAutomaton > readAutomaton() const
Formula const & getSubformula() const
virtual std::unique_ptr< CheckResult > check(Environment const &env, CheckTask< storm::logic::Formula, SolutionType > const &checkTask)
bool isProduceCertificateSet() const
Retrieves whether certificate(s) are to be produced (if supported).
Definition CheckTask.h:295
bool isOptimizationDirectionSet() const
Retrieves whether an optimization direction was set.
Definition CheckTask.h:149
bool isRewardModelSet() const
Retrieves whether a reward model was set.
Definition CheckTask.h:192
bool isQualitativeSet() const
Retrieves whether the computation only needs to be performed qualitatively, because the values will o...
Definition CheckTask.h:259
std::string const & getRewardModel() const
Retrieves the reward model over which to perform the checking (if set).
Definition CheckTask.h:199
FormulaType const & getFormula() const
Retrieves the formula from this task.
Definition CheckTask.h:142
bool isProduceSchedulersSet() const
Retrieves whether scheduler(s) are to be produced (if supported).
Definition CheckTask.h:281
storm::OptimizationDirection const & getOptimizationDirection() const
Retrieves the optimization direction (if set).
Definition CheckTask.h:156
bool isOnlyInitialStatesRelevantSet() const
Retrieves whether only the initial states are relevant in the computation.
Definition CheckTask.h:206
UncertaintyResolutionMode getUncertaintyResolutionMode() const
Retrieves the mode which decides how the uncertainty will be resolved.
Definition CheckTask.h:320
A qualitative check result over the states of a sparse model.
vector_type const & getTruthValuesVector() const
Retrieves the truth values, one per state this result is for.
A quantitative check result over the states of a sparse model.
virtual std::unique_ptr< CheckResult > computeBoundedUntilProbabilities(Environment const &env, CheckTask< storm::logic::BoundedUntilFormula, ValueType > const &checkTask) override
static bool canHandleStatic(CheckTask< storm::logic::Formula, ValueType > const &checkTask, bool *requiresSingleInitialState=nullptr)
Returns false, if this task can certainly not be handled by this model checker (independent of the co...
virtual std::unique_ptr< CheckResult > computeUntilProbabilities(Environment const &env, CheckTask< storm::logic::UntilFormula, ValueType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeLTLProbabilities(Environment const &env, CheckTask< storm::logic::PathFormula, ValueType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeLongRunAverageProbabilities(Environment const &env, CheckTask< storm::logic::StateFormula, ValueType > const &checkTask) override
virtual std::unique_ptr< CheckResult > checkMultiObjectiveFormula(Environment const &env, CheckTask< storm::logic::MultiObjectiveFormula, ValueType > const &checkTask) override
SparseMarkovAutomatonCslModelChecker(SparseMarkovAutomatonModelType const &model)
virtual bool canHandle(CheckTask< storm::logic::Formula, ValueType > const &checkTask) const override
virtual std::unique_ptr< CheckResult > computeGloballyProbabilities(Environment const &env, CheckTask< storm::logic::GloballyFormula, ValueType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeTotalRewards(Environment const &env, CheckTask< storm::logic::TotalRewardFormula, ValueType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeNextProbabilities(Environment const &env, CheckTask< storm::logic::NextFormula, ValueType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeHOAPathProbabilities(Environment const &env, CheckTask< storm::logic::HOAPathFormula, ValueType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeLongRunAverageRewards(Environment const &env, CheckTask< storm::logic::LongRunAverageRewardFormula, ValueType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeReachabilityTimes(Environment const &env, CheckTask< storm::logic::EventuallyFormula, ValueType > const &checkTask) override
virtual std::unique_ptr< CheckResult > computeReachabilityRewards(Environment const &env, CheckTask< storm::logic::EventuallyFormula, ValueType > const &checkTask) override
Helper class for LTL model checking.
static std::vector< ValueType > computeBoundedUntilProbabilities(Environment const &env, storm::solver::SolveGoal< ValueType > &&goal, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, std::vector< ValueType > const &exitRateVector, storm::storage::BitVector const &markovianStates, storm::storage::BitVector const &phiStates, storm::storage::BitVector const &psiStates, std::pair< double, std::optional< double > > const &boundsPair)
static MDPSparseModelCheckingHelperReturnType< ValueType > computeUntilProbabilities(Environment const &env, OptimizationDirection dir, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::SparseMatrix< ValueType > const &backwardTransitions, storm::storage::BitVector const &phiStates, storm::storage::BitVector const &psiStates, bool qualitative, bool produceScheduler)
static MDPSparseModelCheckingHelperReturnType< ValueType, storm::utility::ExtendedValueType< ValueType > > computeTotalRewards(Environment const &env, OptimizationDirection dir, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::SparseMatrix< ValueType > const &backwardTransitions, std::vector< ValueType > const &exitRateVector, storm::storage::BitVector const &markovianStates, RewardModelType const &rewardModel, bool produceScheduler)
static MDPSparseModelCheckingHelperReturnType< ValueType, storm::utility::ExtendedValueType< ValueType > > computeReachabilityTimes(Environment const &env, OptimizationDirection dir, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::SparseMatrix< ValueType > const &backwardTransitions, std::vector< ValueType > const &exitRateVector, storm::storage::BitVector const &markovianStates, storm::storage::BitVector const &psiStates, bool produceScheduler)
static MDPSparseModelCheckingHelperReturnType< ValueType, storm::utility::ExtendedValueType< ValueType > > computeReachabilityRewards(Environment const &env, OptimizationDirection dir, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::SparseMatrix< ValueType > const &backwardTransitions, std::vector< ValueType > const &exitRateVector, storm::storage::BitVector const &markovianStates, RewardModelType const &rewardModel, storm::storage::BitVector const &psiStates, bool produceScheduler)
static MDPSparseModelCheckingHelperReturnType< SolutionType > computeGloballyProbabilities(Environment const &env, storm::solver::SolveGoal< ValueType, SolutionType > &&goal, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::SparseMatrix< ValueType > const &backwardTransitions, storm::storage::BitVector const &psiStates, bool qualitative, bool produceScheduler, bool useMecBasedTechnique=false)
static std::vector< SolutionType > computeNextProbabilities(Environment const &env, OptimizationDirection dir, UncertaintyResolutionMode uncertaintyResolutionMode, storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::storage::BitVector const &nextStates)
Helper class for model checking queries that depend on the long run behavior of the (nondeterministic...
A bit vector that is internally represented as a vector of 64-bit values.
Definition BitVector.h:16
This class defines which action is chosen in a particular state of a non-deterministic model.
Definition Scheduler.h:18
#define STORM_LOG_INFO(message)
Definition logging.h:34
#define STORM_LOG_WARN_COND(cond, message)
Definition macros.h:54
#define STORM_LOG_THROW(cond, exception, message)
Definition macros.h:39
FragmentSpecification csrlstar()
FragmentSpecification multiObjective()
void setInformationFromCheckTaskNondeterministic(HelperType &helper, storm::modelchecker::CheckTask< FormulaType, typename ModelType::ValueType > const &checkTask, ModelType const &model)
Forwards relevant information stored in the given CheckTask to the given helper.
std::unique_ptr< CheckResult > performMultiObjectiveModelChecking(Environment const &env, SparseModelType const &model, storm::logic::MultiObjectiveFormula const &formula, bool produceScheduler)
constexpr bool SupportsCertificates
Certificates can be computed for models with these value types.
Definition Certificate.h:27
std::unique_ptr< ReachabilityRewardCertificate< ValueType > > computeReachabilityRewardCertificate(storm::Environment const &env, std::optional< storm::OptimizationDirection > dir, storm::storage::SparseMatrix< ValueType > const &transitionProbabilityMatrix, storm::storage::BitVector targetStates, std::vector< ValueType > stateActionRewardVector, std::string targetLabel, std::string rewardModelName)
Computes a certificate for expected rewards accumulated until reaching the target states.
std::unique_ptr< ReachabilityProbabilityCertificate< ValueType > > computeReachabilityProbabilityCertificate(storm::Environment const &env, std::optional< storm::OptimizationDirection > dir, storm::storage::SparseMatrix< ValueType > const &transitionProbabilityMatrix, storm::storage::BitVector targetStates, std::optional< storm::storage::BitVector > constraintStates, std::string targetLabel, std::optional< std::string > constraintLabel)
Computes a certificate for reachability probabilities (or constrained reachability probabilities if c...
FilteredRewardModel< RewardModelType > createFilteredRewardModel(RewardModelType const &baseRewardModel, storm::logic::RewardAccumulation const &acc, bool isDiscreteTimeModel)
ValueType zero()
Definition constants.cpp:26
ValueType one()
Definition constants.cpp:21
The contract of a DD backend.
static const bool SupportsExponential