Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
Mdp.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace storm {
9namespace models {
10namespace sparse {
11
15template<class ValueType, typename RewardModelType = StandardRewardModel<ValueType>>
16class Mdp : public NondeterministicModel<ValueType, RewardModelType> {
17 public:
26 std::unordered_map<std::string, RewardModelType> const& rewardModels = std::unordered_map<std::string, RewardModelType>(),
28
37 std::unordered_map<std::string, RewardModelType>&& rewardModels = std::unordered_map<std::string, RewardModelType>(), ModelType type = ModelType::Mdp);
38
46
47 Mdp(Mdp<ValueType, RewardModelType> const& other) = default;
49
52
53 virtual ~Mdp() = default;
54};
55
56// Instantiated in Mdp.cpp; prevents hidden consumers from duplicating the vtable/RTTI.
57extern template class Mdp<double>;
59extern template class Mdp<storm::RationalNumber>;
61extern template class Mdp<storm::Interval>;
62extern template class Mdp<storm::RationalInterval>;
63extern template class Mdp<storm::RationalFunction>;
64
65} // namespace sparse
66} // namespace models
67} // namespace storm
This class represents a (discrete-time) Markov decision process.
Definition Mdp.h:16
Mdp(storm::storage::SparseMatrix< ValueType > const &transitionMatrix, storm::models::sparse::StateLabeling const &stateLabeling, std::unordered_map< std::string, RewardModelType > const &rewardModels=std::unordered_map< std::string, RewardModelType >(), ModelType type=ModelType::Mdp)
Constructs a model from the given data.
Definition Mdp.cpp:14
Mdp(storm::storage::sparse::ModelComponents< ValueType, RewardModelType > &&components, ModelType type=ModelType::Mdp)
Definition Mdp.cpp:38
Mdp & operator=(Mdp< ValueType, RewardModelType > &&other)=default
Mdp(storm::storage::SparseMatrix< ValueType > &&transitionMatrix, storm::models::sparse::StateLabeling &&stateLabeling, std::unordered_map< std::string, RewardModelType > &&rewardModels=std::unordered_map< std::string, RewardModelType >(), ModelType type=ModelType::Mdp)
Constructs a model by moving the given data.
Definition Mdp.cpp:22
Mdp(Mdp< ValueType, RewardModelType > &&other)=default
Mdp & operator=(Mdp< ValueType, RewardModelType > const &other)=default
Mdp(storm::storage::sparse::ModelComponents< ValueType, RewardModelType > const &components, ModelType type=ModelType::Mdp)
Constructs a model from the given data.
Definition Mdp.cpp:31
Mdp(Mdp< ValueType, RewardModelType > const &other)=default
virtual ~Mdp()=default
NondeterministicModel(ModelType modelType, storm::storage::sparse::ModelComponents< ValueType, RewardModelType > const &components)
Constructs a model from the given data.
This class manages the labeling of the state space with a number of (atomic) labels.
A class that holds a possibly non-square matrix in the compressed row storage format.