Browse Source

minor fix for multi-objective preprocessor

tempestpy_adaptions
TimQu 7 years ago
parent
commit
8aa2b57640
  1. 2
      src/storm/modelchecker/multiobjective/SparseMultiObjectivePreprocessor.cpp

2
src/storm/modelchecker/multiobjective/SparseMultiObjectivePreprocessor.cpp

@ -375,7 +375,7 @@ namespace storm {
std::set<std::string> relevantRewardModels; std::set<std::string> relevantRewardModels;
for (auto const& obj : result.objectives) { for (auto const& obj : result.objectives) {
relevantRewardModels.insert(*obj.rewardModelName); relevantRewardModels.insert(*obj.rewardModelName);
if (obj.timeBoundReference->isRewardBound()) {
if (obj.timeBoundReference && obj.timeBoundReference->isRewardBound()) {
relevantRewardModels.insert(obj.timeBoundReference->getRewardName()); relevantRewardModels.insert(obj.timeBoundReference->getRewardName());
} }
} }

Loading…
Cancel
Save