Storm 1.13.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
storm::modelchecker::helper::DiscountingHelper< ValueType, TrivialRowGrouping > Class Template Reference

#include <DiscountingHelper.h>

Inheritance diagram for storm::modelchecker::helper::DiscountingHelper< ValueType, TrivialRowGrouping >:
Collaboration diagram for storm::modelchecker::helper::DiscountingHelper< ValueType, TrivialRowGrouping >:

Public Member Functions

 DiscountingHelper (storm::storage::SparseMatrix< ValueType > const &A, ValueType discountFactor)
 DiscountingHelper (storm::storage::SparseMatrix< ValueType > const &A, ValueType discountFactor, bool trackScheduler)
bool solveWithDiscountedValueIteration (Environment const &env, std::optional< OptimizationDirection > dir, std::vector< ValueType > &x, std::vector< ValueType > const &b) const
storm::storage::Scheduler< ValueTypecomputeScheduler () const
 Retrieves the generated scheduler.
bool hasScheduler () const
 Retrieves whether the solver generated a scheduler.
void setTrackScheduler (bool trackScheduler)
bool isTrackSchedulerSet () const
Public Member Functions inherited from storm::modelchecker::helper::SingleValueModelCheckerHelper< ValueType, storm::models::ModelRepresentation::Sparse >
 SingleValueModelCheckerHelper ()
void setOptimizationDirection (storm::solver::OptimizationDirection const &direction)
 Sets the optimization direction, i.e., whether we want to minimize or maximize the value for each state Has no effect for models without nondeterminism.
void clearOptimizationDirection ()
 Clears the optimization direction if it was set before.
bool isOptimizationDirectionSet () const
storm::solver::OptimizationDirection const & getOptimizationDirection () const
bool minimize () const
bool maximize () const
boost::optional< storm::solver::OptimizationDirectiongetOptionalOptimizationDirection () const
void setValueThreshold (storm::logic::ComparisonType const &comparisonType, ValueType const &thresholdValue)
 Sets a goal threshold for the value at each state.
void clearValueThreshold ()
 Clears the valueThreshold if it was set before.
bool isValueThresholdSet () const
storm::logic::ComparisonType const & getValueThresholdComparisonType () const
ValueType const & getValueThresholdValue () const
void setProduceScheduler (bool value)
 Sets whether an optimal scheduler shall be constructed during the computation.
bool isProduceSchedulerSet () const
void setQualitative (bool value)
 Sets whether the property needs to be checked qualitatively.
bool isQualitativeSet () const
Public Member Functions inherited from storm::modelchecker::helper::ModelCheckerHelper< ValueType, ModelRepresentation >
 ModelCheckerHelper ()=default
virtual ~ModelCheckerHelper ()=default
void setRelevantStates (StateSet const &relevantStates)
 Sets relevant states.
void clearRelevantStates ()
 Clears the relevant states.
bool hasRelevantStates () const
boost::optional< StateSet > const & getOptionalRelevantStates () const
StateSet const & getRelevantStates () const

Additional Inherited Members

Public Types inherited from storm::modelchecker::helper::ModelCheckerHelper< ValueType, ModelRepresentation >
typedef ValueType ValueType
using StateSet
 Identifies a subset of the model states.

Detailed Description

template<typename ValueType, bool TrivialRowGrouping = false>
class storm::modelchecker::helper::DiscountingHelper< ValueType, TrivialRowGrouping >

Definition at line 13 of file DiscountingHelper.h.

Constructor & Destructor Documentation

◆ DiscountingHelper() [1/2]

template<typename ValueType, bool TrivialRowGrouping>
storm::modelchecker::helper::DiscountingHelper< ValueType, TrivialRowGrouping >::DiscountingHelper ( storm::storage::SparseMatrix< ValueType > const & A,
ValueType discountFactor )

Definition at line 13 of file DiscountingHelper.cpp.

◆ DiscountingHelper() [2/2]

template<typename ValueType, bool TrivialRowGrouping>
storm::modelchecker::helper::DiscountingHelper< ValueType, TrivialRowGrouping >::DiscountingHelper ( storm::storage::SparseMatrix< ValueType > const & A,
ValueType discountFactor,
bool trackScheduler )

Definition at line 22 of file DiscountingHelper.cpp.

Member Function Documentation

◆ computeScheduler()

template<typename ValueType, bool TrivialRowGrouping>
storm::storage::Scheduler< ValueType > storm::modelchecker::helper::DiscountingHelper< ValueType, TrivialRowGrouping >::computeScheduler ( ) const

Retrieves the generated scheduler.

Note: it is only legal to call this function if a scheduler was generated.

Definition at line 72 of file DiscountingHelper.cpp.

◆ hasScheduler()

template<typename ValueType, bool TrivialRowGrouping>
bool storm::modelchecker::helper::DiscountingHelper< ValueType, TrivialRowGrouping >::hasScheduler ( ) const

Retrieves whether the solver generated a scheduler.

Definition at line 84 of file DiscountingHelper.cpp.

◆ isTrackSchedulerSet()

template<typename ValueType, bool TrivialRowGrouping>
bool storm::modelchecker::helper::DiscountingHelper< ValueType, TrivialRowGrouping >::isTrackSchedulerSet ( ) const

Definition at line 125 of file DiscountingHelper.cpp.

◆ setTrackScheduler()

template<typename ValueType, bool TrivialRowGrouping>
void storm::modelchecker::helper::DiscountingHelper< ValueType, TrivialRowGrouping >::setTrackScheduler ( bool trackScheduler)

Definition at line 117 of file DiscountingHelper.cpp.

◆ solveWithDiscountedValueIteration()

template<typename ValueType, bool TrivialRowGrouping>
bool storm::modelchecker::helper::DiscountingHelper< ValueType, TrivialRowGrouping >::solveWithDiscountedValueIteration ( storm::Environment const & env,
std::optional< OptimizationDirection > dir,
std::vector< ValueType > & x,
std::vector< ValueType > const & b ) const

Definition at line 45 of file DiscountingHelper.cpp.


The documentation for this class was generated from the following files: