Browse Source

added support to create measure driven initial partition for bisimulation for MDPs from formula that does not specify an optimization direction

Former-commit-id: 0d3970456b
tempestpy_adaptions
dehnert 9 years ago
parent
commit
fdf237ca67
  1. 7
      src/storage/bisimulation/BisimulationDecomposition.cpp

7
src/storage/bisimulation/BisimulationDecomposition.cpp

@ -86,6 +86,13 @@ namespace storm {
if (formula.isProbabilityOperatorFormula()) { if (formula.isProbabilityOperatorFormula()) {
if (formula.asProbabilityOperatorFormula().hasOptimalityType()) { if (formula.asProbabilityOperatorFormula().hasOptimalityType()) {
optimalityType = formula.asProbabilityOperatorFormula().getOptimalityType(); optimalityType = formula.asProbabilityOperatorFormula().getOptimalityType();
} else if (formula.asProbabilityOperatorFormula().hasBound()) {
storm::logic::ComparisonType comparisonType = formula.asProbabilityOperatorFormula().getComparisonType();
if (comparisonType == storm::logic::ComparisonType::Less || comparisonType == storm::logic::ComparisonType::LessEqual) {
optimalityType = OptimizationDirection::Maximize;
} else {
optimalityType = OptimizationDirection::Minimize;
}
} }
newFormula = formula.asProbabilityOperatorFormula().getSubformula().asSharedPointer(); newFormula = formula.asProbabilityOperatorFormula().getSubformula().asSharedPointer();
} else if (formula.isRewardOperatorFormula()) { } else if (formula.isRewardOperatorFormula()) {

Loading…
Cancel
Save