Browse Source

DeterministicSchedsObjectiveHelper: Added minimizing().

tempestpy_adaptions
Tim Quatmann 6 years ago
parent
commit
9648d1a762
  1. 5
      src/storm/modelchecker/multiobjective/deterministicScheds/DeterministicSchedsObjectiveHelper.cpp
  2. 3
      src/storm/modelchecker/multiobjective/deterministicScheds/DeterministicSchedsObjectiveHelper.h

5
src/storm/modelchecker/multiobjective/deterministicScheds/DeterministicSchedsObjectiveHelper.cpp

@ -215,6 +215,11 @@ namespace storm {
return lowerResultBounds.get()[state]; return lowerResultBounds.get()[state];
} }
template <typename ModelType>
bool DeterministicSchedsObjectiveHelper<ModelType>::minimizing() const {
return storm::solver::minimize(objective.formula->getOptimalityType());
}
template class DeterministicSchedsObjectiveHelper<storm::models::sparse::Mdp<double>>; template class DeterministicSchedsObjectiveHelper<storm::models::sparse::Mdp<double>>;
template class DeterministicSchedsObjectiveHelper<storm::models::sparse::Mdp<storm::RationalNumber>>; template class DeterministicSchedsObjectiveHelper<storm::models::sparse::Mdp<storm::RationalNumber>>;
template class DeterministicSchedsObjectiveHelper<storm::models::sparse::MarkovAutomaton<double>>; template class DeterministicSchedsObjectiveHelper<storm::models::sparse::MarkovAutomaton<double>>;

3
src/storm/modelchecker/multiobjective/deterministicScheds/DeterministicSchedsObjectiveHelper.h

@ -33,6 +33,9 @@ namespace storm {
ValueType const& getUpperValueBoundAtState(Environment const& env, uint64_t state) const; ValueType const& getUpperValueBoundAtState(Environment const& env, uint64_t state) const;
ValueType const& getLowerValueBoundAtState(Environment const& env, uint64_t state) const; ValueType const& getLowerValueBoundAtState(Environment const& env, uint64_t state) const;
bool minimizing() const;
private: private:
mutable boost::optional<std::map<uint64_t, ValueType>> schedulerIndependentStateValues; mutable boost::optional<std::map<uint64_t, ValueType>> schedulerIndependentStateValues;

Loading…
Cancel
Save