Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
NativeSolverEnvironment.cpp
Go to the documentation of this file.
2
3#include <limits>
4
7
8namespace storm {
9
11 : method(storm::solver::NativeLinearEquationSolverMethod::Jacobi),
12 methodSetFromDefault(true),
13 maxIterationCount(std::numeric_limits<uint64_t>::max()),
14 precision(storm::utility::convertNumber<storm::RationalNumber>(1e-06)),
15 considerRelativeTerminationCriterion(true),
16 powerMethodMultiplicationStyle(storm::solver::MultiplicationStyle::GaussSeidel),
17 sorOmega(storm::utility::convertNumber<storm::RationalNumber>(0.9)),
18 symmetricUpdates(false) {
19 // Intentionally left empty.
20}
21
23 // Intentionally left empty
24}
25
26storm::solver::NativeLinearEquationSolverMethod const& NativeSolverEnvironment::getMethod() const {
27 return method;
28}
29
31 return methodSetFromDefault;
32}
33
34void NativeSolverEnvironment::setMethod(storm::solver::NativeLinearEquationSolverMethod value, bool isSetFromDefault) {
35 methodSetFromDefault = isSetFromDefault;
36 method = value;
37}
38
40 return maxIterationCount;
41}
42
44 maxIterationCount = value;
45}
46
47storm::RationalNumber const& NativeSolverEnvironment::getPrecision() const {
48 return precision;
49}
50
51void NativeSolverEnvironment::setPrecision(storm::RationalNumber value) {
52 precision = value;
53}
54
56 return considerRelativeTerminationCriterion;
57}
58
60 considerRelativeTerminationCriterion = value;
61}
62
64 return powerMethodMultiplicationStyle;
65}
66
70
71storm::RationalNumber const& NativeSolverEnvironment::getSorOmega() const {
72 return sorOmega;
73}
74
75void NativeSolverEnvironment::setSorOmega(storm::RationalNumber const& value) {
76 sorOmega = value;
77}
78
80 return symmetricUpdates;
81}
82
84 symmetricUpdates = value;
85}
86
87} // namespace storm
storm::RationalNumber const & getPrecision() const
void setSorOmega(storm::RationalNumber const &value)
void setPowerMethodMultiplicationStyle(storm::solver::MultiplicationStyle value)
uint64_t const & getMaximalNumberOfIterations() const
void setMaximalNumberOfIterations(uint64_t value)
bool const & getRelativeTerminationCriterion() const
void setPrecision(storm::RationalNumber value)
storm::solver::MultiplicationStyle const & getPowerMethodMultiplicationStyle() const
storm::solver::NativeLinearEquationSolverMethod const & getMethod() const
void setMethod(storm::solver::NativeLinearEquationSolverMethod value, bool isSetFromDefault=false)
storm::RationalNumber const & getSorOmega() const