You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.6 KiB
61 lines
2.6 KiB
#pragma once
|
|
|
|
#include "storm/models/sparse/Mdp.h"
|
|
|
|
#include "storm/models/sparse/StandardRewardModel.h"
|
|
|
|
namespace storm {
|
|
namespace models {
|
|
namespace sparse {
|
|
|
|
/*!
|
|
* This class represents a partially observable Markov decision process.
|
|
*/
|
|
template<class ValueType, typename RewardModelType = StandardRewardModel <ValueType>>
|
|
class Pomdp : public Mdp<ValueType, RewardModelType> {
|
|
public:
|
|
/*!
|
|
* Constructs a model from the given data.
|
|
*
|
|
* @param transitionMatrix The matrix representing the transitions in the model.
|
|
* @param stateLabeling The labeling of the states.
|
|
* @param rewardModels A mapping of reward model names to reward models.
|
|
*/
|
|
Pomdp(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>());
|
|
|
|
/*!
|
|
* Constructs a model by moving the given data.
|
|
*
|
|
* @param transitionMatrix The matrix representing the transitions in the model.
|
|
* @param stateLabeling The labeling of the states.
|
|
* @param rewardModels A mapping of reward model names to reward models.
|
|
*/
|
|
Pomdp(storm::storage::SparseMatrix<ValueType> &&transitionMatrix,
|
|
storm::models::sparse::StateLabeling &&stateLabeling,
|
|
std::unordered_map <std::string, RewardModelType> &&rewardModels = std::unordered_map<std::string, RewardModelType>());
|
|
|
|
/*!
|
|
* Constructs a model from the given data.
|
|
*
|
|
* @param components The components for this model.
|
|
*/
|
|
Pomdp(storm::storage::sparse::ModelComponents<ValueType, RewardModelType> const &components);
|
|
|
|
Pomdp(storm::storage::sparse::ModelComponents<ValueType, RewardModelType> &&components);
|
|
|
|
Pomdp(Pomdp <ValueType, RewardModelType> const &other) = default;
|
|
|
|
Pomdp &operator=(Pomdp <ValueType, RewardModelType> const &other) = default;
|
|
|
|
Pomdp(Pomdp <ValueType, RewardModelType> &&other) = default;
|
|
|
|
Pomdp &operator=(Pomdp <ValueType, RewardModelType> &&other) = default;
|
|
|
|
protected:
|
|
StateLabeling observations;
|
|
};
|
|
}
|
|
}
|
|
}
|