1#include "storm-config.h"
9TEST(DiscreteTimeSparseModelSimulatorTest, TransitionRewards) {
16 auto matrix = builder.
build();
22 auto rewMatrix = rewBuilder.
build();
27 std::unordered_map<std::string, storm::models::sparse::StandardRewardModel<double>> rewardModels;
33 bool seen1 =
false, seen2 =
false;
34 for (
int i = 0; i < 50; ++i) {
TEST(DiscreteTimeSparseModelSimulatorTest, TransitionRewards)
This class represents a discrete-time Markov chain.
void addLabel(std::string const &label)
Adds a new label to the labelings.
This class manages the labeling of the state space with a number of (atomic) labels.
void addLabelToState(std::string const &label, storm::storage::sparse::state_type state)
Adds a label to a given state.
This class is a low-level interface to quickly sample from Discrete-Time Models stored explicitly as ...
uint64_t getCurrentState() const
std::vector< ValueType > const & getLastRewards() const
A class that can be used to build a sparse matrix by adding value by value.
void addNextValue(index_type row, index_type column, value_type const &value)
Sets the matrix entry at the given row and column to the given value.
SparseMatrix< value_type > build(index_type overriddenRowCount=0, index_type overriddenColumnCount=0, index_type overriddenRowGroupCount=0)