Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
LongRunAverageSolverEnvironment.cpp
Go to the documentation of this file.
2
7
8namespace storm {
9
12 detMethod = lraSettings.getDetLraMethod();
13 detMethodSetFromDefault = lraSettings.isDetLraMethodSetFromDefaultValue();
14 nondetMethod = lraSettings.getNondetLraMethod();
15 nondetMethodSetFromDefault = lraSettings.isNondetLraMethodSetFromDefaultValue();
16 precision = storm::utility::convertNumber<storm::RationalNumber>(lraSettings.getPrecision());
17 relative = lraSettings.isRelativePrecision();
18 if (lraSettings.isMaximalIterationCountSet()) {
19 maxIters = lraSettings.getMaximalIterationCount();
20 }
21 aperiodicFactor = storm::utility::convertNumber<storm::RationalNumber>(lraSettings.getAperiodicFactor());
22}
23
27
28storm::solver::LraMethod const& LongRunAverageSolverEnvironment::getDetLraMethod() const {
29 return detMethod;
30}
31
33 return detMethodSetFromDefault;
34}
35
36void LongRunAverageSolverEnvironment::setDetLraMethod(storm::solver::LraMethod value, bool isSetFromDefault) {
37 detMethod = value;
38 detMethodSetFromDefault = isSetFromDefault;
39}
40
41storm::solver::LraMethod const& LongRunAverageSolverEnvironment::getNondetLraMethod() const {
42 return nondetMethod;
43}
44
46 return nondetMethodSetFromDefault;
47}
48
49void LongRunAverageSolverEnvironment::setNondetLraMethod(storm::solver::LraMethod value, bool isSetFromDefault) {
50 nondetMethod = value;
51 nondetMethodSetFromDefault = isSetFromDefault;
52}
53
54storm::RationalNumber const& LongRunAverageSolverEnvironment::getPrecision() const {
55 return precision;
56}
57
58void LongRunAverageSolverEnvironment::setPrecision(storm::RationalNumber value) {
59 precision = value;
60}
61
63 return relative;
64}
65
67 relative = value;
68}
69
71 return maxIters.is_initialized();
72}
73
75 return maxIters.get();
76}
77
79 maxIters = value;
80}
81
85
86storm::RationalNumber const& LongRunAverageSolverEnvironment::getAperiodicFactor() const {
87 return aperiodicFactor;
88}
89
90void LongRunAverageSolverEnvironment::setAperiodicFactor(storm::RationalNumber value) {
91 aperiodicFactor = value;
92}
93
94} // 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
SettingsType const & getModule()
Get module.
LabParser.cpp.
Definition cli.cpp:18