You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.6 KiB
44 lines
1.6 KiB
#pragma once
|
|
|
|
#include <map>
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "storm/modelchecker/multiobjective/Objective.h"
|
|
|
|
|
|
namespace storm {
|
|
namespace modelchecker {
|
|
namespace multiobjective {
|
|
|
|
template <typename ModelType>
|
|
class DeterministicSchedsObjectiveHelper {
|
|
public:
|
|
|
|
typedef typename ModelType::ValueType ValueType;
|
|
DeterministicSchedsObjectiveHelper(ModelType const& model, Objective<ValueType> const& objective);
|
|
|
|
/*!
|
|
* Returns states and values for states that are independent of the scheduler.
|
|
*/
|
|
std::map<uint64_t, ValueType> const& getSchedulerIndependentStateValues() const;
|
|
|
|
/*!
|
|
* Returns offsets of each choice value (e.g., the reward) if non-zero.
|
|
* This does not include choices of states with independent state values
|
|
*/
|
|
std::map<uint64_t, ValueType> const& getChoiceValueOffsets() const;
|
|
|
|
ValueType const& getUpperValueBoundAtState(uint64_t state) const;
|
|
ValueType const& getLowerValueBoundAtState(uint64_t state) const;
|
|
private:
|
|
|
|
mutable boost::optional<std::map<uint64_t, ValueType>> schedulerIndependentStateValues;
|
|
mutable boost::optional<std::map<uint64_t, ValueType>> choiceValueOffsets;
|
|
|
|
ModelType const& model;
|
|
Objective<ValueType> const& objective;
|
|
|
|
};
|
|
}
|
|
}
|
|
}
|