20template<
typename ParametricType,
typename ConstantType>
23template<
typename ConstantType,
bool Robust>
24using SolverFactoryType = std::conditional_t<Robust, storm::solver::MinMaxLinearEquationSolverFactory<storm::Interval, ConstantType>,
27template<
typename ConstantType,
bool Robust>
28using GeneralSolverFactoryType = std::conditional_t<Robust, storm::solver::GeneralMinMaxLinearEquationSolverFactory<storm::Interval, ConstantType>,
31template<
typename ParametricType,
typename ConstantType,
bool Robust>
32using ParameterLifterType = std::conditional_t<Robust, storm::transformer::RobustParameterLifter<ParametricType, ConstantType>,
35template<
typename SparseModelType,
typename ConstantType,
bool Robust = false>
53 std::optional<RegionSplitEstimateKind> generateRegionSplitEstimates = std::nullopt,
63 virtual std::vector<CoefficientType>
obtainRegionSplitEstimates(std::set<VariableType>
const& relevantParameters)
const override;
75 bool qualitative)
override;
77 bool qualitative)
override;
79 bool qualitative)
override;
85 std::vector<uint64_t>
const& schedulerChoices,
89 virtual void reset()
override;
92 bool isOrderBasedMonotonicityBackend()
const;
95 bool isValueDeltaRegionSplitEstimates()
const;
98 std::vector<ExtendedConstantType> resultsForNonMaybeStates;
99 std::optional<uint64_t> stepBound;
101 std::unique_ptr<storm::modelchecker::SparseDtmcInstantiationModelChecker<SparseModelType, ConstantType>> instantiationChecker;
102 std::unique_ptr<storm::modelchecker::SparseDtmcInstantiationModelChecker<SparseModelType, ConstantType>> instantiationCheckerSAT;
103 std::unique_ptr<storm::modelchecker::SparseDtmcInstantiationModelChecker<SparseModelType, ConstantType>> instantiationCheckerVIO;
105 std::unique_ptr<storm::derivative::SparseDerivativeInstantiationModelChecker<ParametricType, ConstantType>> derivativeChecker;
106 std::unique_ptr<CheckTask<storm::logic::Formula, ParametricType>> currentCheckTaskNoBound;
107 std::shared_ptr<storm::logic::Formula const> currentFormulaNoBound;
109 std::unique_ptr<ParameterLifterType<ParametricType, ConstantType, Robust>> parameterLifter;
110 std::unique_ptr<SolverFactoryType<ConstantType, Robust>> solverFactory;
111 bool solvingRequiresUpperRewardBounds;
116 std::optional<std::vector<uint64_t>> minSchedChoices, maxSchedChoices;
117 std::vector<ConstantType> x;
118 std::optional<ConstantType> lowerResultBound, upperResultBound;
120 std::map<VariableType, ConstantType> cachedRegionSplitEstimates;
std::shared_ptr< MonotonicityBackend< SparseModelType::ValueType > > monotonicityBackend
storm::storage::ParameterRegion< ParametricType >::CoefficientType CoefficientType
storm::storage::ParameterRegion< ParametricType >::Valuation Valuation
storm::storage::ParameterRegion< ParametricType >::VariableType VariableType
std::optional< storm::storage::Scheduler< ConstantType > > getCurrentMinScheduler()
virtual bool isRegionSplitEstimateKindSupported(RegionSplitEstimateKind kind, CheckTask< storm::logic::Formula, ParametricType > const &checkTask) const override
typename RegionModelChecker< ParametricType >::CoefficientType CoefficientType
virtual std::vector< CoefficientType > obtainRegionSplitEstimates(std::set< VariableType > const &relevantParameters) const override
Returns an estimate of the benefit of splitting the last checked region with respect to each of the g...
virtual storm::modelchecker::SparseInstantiationModelChecker< SparseModelType, ConstantType > & getInstantiationCheckerVIO(Environment const &env, bool qualitative) override
virtual RegionSplitEstimateKind getDefaultRegionSplitEstimateKind(CheckTask< storm::logic::Formula, ParametricType > const &checkTask) const override
typename RegionModelChecker< ParametricType >::VariableType VariableType
virtual bool canHandle(std::shared_ptr< storm::models::ModelBase > parametricModel, CheckTask< storm::logic::Formula, ParametricType > const &checkTask) const override
virtual std::vector< ExtendedConstantType > computeQuantitativeValues(Environment const &env, AnnotatedRegion< ParametricType > ®ion, storm::solver::OptimizationDirection const &dirForParameters) override
SparseDtmcParameterLiftingModelChecker()
virtual void reset() override
typename SparseModelType::ValueType ParametricType
virtual void specifyBoundedUntilFormula(const CheckTask< storm::logic::BoundedUntilFormula, ConstantType > &checkTask) override
virtual void specifyCumulativeRewardFormula(const CheckTask< storm::logic::CumulativeRewardFormula, ConstantType > &checkTask) override
void computeStateValueDeltaRegionSplitEstimates(Environment const &env, std::vector< ConstantType > const &quantitativeResult, std::vector< uint64_t > const &schedulerChoices, storm::storage::ParameterRegion< ParametricType > const ®ion, storm::solver::OptimizationDirection const &dirForParameters)
virtual storm::modelchecker::SparseInstantiationModelChecker< SparseModelType, ConstantType > & getInstantiationCheckerSAT(Environment const &env, bool qualitative) override
virtual storm::modelchecker::SparseInstantiationModelChecker< SparseModelType, ConstantType > & getInstantiationChecker(Environment const &env, bool qualitative) override
std::optional< storm::storage::Scheduler< ConstantType > > getCurrentMaxScheduler()
virtual void specifyReachabilityRewardFormula(Environment const &env, CheckTask< storm::logic::EventuallyFormula, ConstantType > const &checkTask) override
typename RegionModelChecker< ParametricType >::Valuation Valuation
virtual bool isMonotonicitySupported(MonotonicityBackend< ParametricType > const &backend, CheckTask< storm::logic::Formula, ParametricType > const &checkTask) const override
Returns whether this region model checker can work together with the given monotonicity backend.
virtual void specify(Environment const &env, std::shared_ptr< storm::models::ModelBase > parametricModel, CheckTask< storm::logic::Formula, ParametricType > const &checkTask, std::optional< RegionSplitEstimateKind > generateRegionSplitEstimates=std::nullopt, std::shared_ptr< MonotonicityBackend< ParametricType > > monotonicityBackend={}, bool allowModelSimplifications=true, storm::pars::analysis::GraphPreservationStatus graphPreservationStatus=storm::pars::analysis::GraphPreservationStatus::GraphPreserving) override
virtual ~SparseDtmcParameterLiftingModelChecker()=default
virtual void specifyUntilFormula(Environment const &env, CheckTask< storm::logic::UntilFormula, ConstantType > const &checkTask) override
typename SparseParameterLiftingModelChecker< SparseModelType, ConstantType >::ExtendedConstantType ExtendedConstantType
Class to efficiently check a formula on a parametric model with different parameter instantiations.
SparseParameterLiftingModelChecker()
storm::utility::ExtendedValueType< ConstantType > ExtendedConstantType
std::shared_ptr< SparseModelType > parametricModel
A bit vector that is internally represented as a vector of 64-bit values.
std::conditional_t< Robust, storm::solver::MinMaxLinearEquationSolverFactory< storm::Interval, ConstantType >, storm::solver::MinMaxLinearEquationSolverFactory< ConstantType > > SolverFactoryType
std::conditional_t< Robust, storm::transformer::RobustParameterLifter< ParametricType, ConstantType >, storm::transformer::ParameterLifter< ParametricType, ConstantType > > ParameterLifterType
std::conditional_t< Robust, storm::solver::GeneralMinMaxLinearEquationSolverFactory< storm::Interval, ConstantType >, storm::solver::GeneralMinMaxLinearEquationSolverFactory< ConstantType > > GeneralSolverFactoryType
GraphPreservationStatus
Describes to what extent a set of regions is known to be well-defined and to preserve the graph struc...
@ GraphPreserving
The regions are known (or assumed) to preserve the graph structure of the model.