Browse Source

fixed an issue in state-act reward refinement for nondet models

tempestpy_adaptions
dehnert 7 years ago
parent
commit
2e15674580
  1. 12
      src/storm/storage/dd/bisimulation/NondeterministicModelPartitionRefiner.cpp
  2. 2
      src/storm/storage/dd/bisimulation/NondeterministicModelPartitionRefiner.h

12
src/storm/storage/dd/bisimulation/NondeterministicModelPartitionRefiner.cpp

@ -73,6 +73,18 @@ namespace storm {
return choicePartition;
}
template <storm::dd::DdType DdType, typename ValueType>
bool NondeterministicModelPartitionRefiner<DdType, ValueType>::refineWrtStateRewards(storm::dd::Add<DdType, ValueType> const& stateRewards) {
STORM_LOG_TRACE("Refining with respect to state rewards.");
Partition<DdType, ValueType> newStatePartition = this->stateSignatureRefiner.refine(this->statePartition, Signature<DdType, ValueType>(stateRewards));
if (newStatePartition == this->statePartition) {
return false;
} else {
this->statePartition = newStatePartition;
return true;
}
}
template<storm::dd::DdType DdType, typename ValueType>
bool NondeterministicModelPartitionRefiner<DdType, ValueType>::refineWrtStateActionRewards(storm::dd::Add<DdType, ValueType> const& stateActionRewards) {
STORM_LOG_TRACE("Refining with respect to state-action rewards.");

2
src/storm/storage/dd/bisimulation/NondeterministicModelPartitionRefiner.h

@ -34,6 +34,8 @@ namespace storm {
private:
virtual bool refineWrtStateActionRewards(storm::dd::Add<DdType, ValueType> const& stateActionRewards) override;
virtual bool refineWrtStateRewards(storm::dd::Add<DdType, ValueType> const& stateRewards) override;
// The model to refine.
storm::models::symbolic::NondeterministicModel<DdType, ValueType> const& model;

Loading…
Cancel
Save