Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
MinMaxSolverEnvironment.cpp
Go to the documentation of this file.
2
3#include <limits>
4
8
9namespace storm {
10
12 : minMaxMethod(storm::solver::MinMaxMethod::Topological),
13 methodSetFromDefault(true),
14 maxIterationCount(std::numeric_limits<uint64_t>::max()),
15 precision(storm::utility::convertNumber<storm::RationalNumber>(1e-06)),
16 considerRelativeTerminationCriterion(true),
17 multiplicationStyle(storm::solver::MultiplicationStyle::GaussSeidel),
18 forceRequireUnique(false) {
19 // Intentionally left empty.
20}
21
23 // Intentionally left empty
24}
25
27 return lpEnvironment.get();
28}
29
31 return lpEnvironment.get();
32}
33
34storm::solver::MinMaxMethod const& MinMaxSolverEnvironment::getMethod() const {
35 return minMaxMethod;
36}
37
39 return methodSetFromDefault;
40}
41
42void MinMaxSolverEnvironment::setMethod(storm::solver::MinMaxMethod value, bool isSetFromDefault) {
43 methodSetFromDefault = isSetFromDefault;
44 minMaxMethod = value;
45}
46
48 return maxIterationCount;
49}
50
52 maxIterationCount = value;
53}
54
55storm::RationalNumber const& MinMaxSolverEnvironment::getPrecision() const {
56 return precision;
57}
58
59void MinMaxSolverEnvironment::setPrecision(storm::RationalNumber value) {
60 precision = value;
61}
62
64 return considerRelativeTerminationCriterion;
65}
66
68 considerRelativeTerminationCriterion = value;
69}
70
74
78
80 return forceRequireUnique;
81}
82
84 forceRequireUnique = value;
85}
86
87} // namespace storm
void setMultiplicationStyle(storm::solver::MultiplicationStyle value)
uint64_t const & getMaximalNumberOfIterations() const
storm::solver::MultiplicationStyle const & getMultiplicationStyle() const
storm::RationalNumber const & getPrecision() const
storm::solver::MinMaxMethod const & getMethod() const
void setPrecision(storm::RationalNumber value)
void setMethod(storm::solver::MinMaxMethod value, bool isSetFromDefault=false)
MinMaxLpSolverEnvironment & lp()
void setMaximalNumberOfIterations(uint64_t value)
bool const & getRelativeTerminationCriterion() const