Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
LongRunAverageSolverEnvironment.cpp
Go to the documentation of this file.
2
5
6namespace storm {
7
9 : detMethod(storm::solver::LraMethod::GainBiasEquations),
10 detMethodSetFromDefault(true),
11 nondetMethod(storm::solver::LraMethod::ValueIteration),
12 nondetMethodSetFromDefault(true),
13 precision(storm::utility::convertNumber<storm::RationalNumber>(1e-06)),
14 relative(true),
15 maxIters(boost::none),
16 aperiodicFactor(storm::utility::convertNumber<storm::RationalNumber>(0.125)) {
17 // Intentionally left empty.
18}
19
23
24storm::solver::LraMethod const& LongRunAverageSolverEnvironment::getDetLraMethod() const {
25 return detMethod;
26}
27
29 return detMethodSetFromDefault;
30}
31
32void LongRunAverageSolverEnvironment::setDetLraMethod(storm::solver::LraMethod value, bool isSetFromDefault) {
33 detMethod = value;
34 detMethodSetFromDefault = isSetFromDefault;
35}
36
37storm::solver::LraMethod const& LongRunAverageSolverEnvironment::getNondetLraMethod() const {
38 return nondetMethod;
39}
40
42 return nondetMethodSetFromDefault;
43}
44
45void LongRunAverageSolverEnvironment::setNondetLraMethod(storm::solver::LraMethod value, bool isSetFromDefault) {
46 nondetMethod = value;
47 nondetMethodSetFromDefault = isSetFromDefault;
48}
49
50storm::RationalNumber const& LongRunAverageSolverEnvironment::getPrecision() const {
51 return precision;
52}
53
54void LongRunAverageSolverEnvironment::setPrecision(storm::RationalNumber value) {
55 precision = value;
56}
57
59 return relative;
60}
61
63 relative = value;
64}
65
67 return maxIters.is_initialized();
68}
69
71 return maxIters.get();
72}
73
75 maxIters = value;
76}
77
81
82storm::RationalNumber const& LongRunAverageSolverEnvironment::getAperiodicFactor() const {
83 return aperiodicFactor;
84}
85
86void LongRunAverageSolverEnvironment::setAperiodicFactor(storm::RationalNumber value) {
87 aperiodicFactor = value;
88}
89
90} // namespace storm
storm::RationalNumber const & getAperiodicFactor() const
storm::solver::LraMethod const & getNondetLraMethod() const
storm::RationalNumber const & getPrecision() const
void setNondetLraMethod(storm::solver::LraMethod value, bool isSetFromDefault=false)
void setDetLraMethod(storm::solver::LraMethod value, bool isSetFromDefault=false)
storm::solver::LraMethod const & getDetLraMethod() const