Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
GameSolverEnvironment.cpp
Go to the documentation of this file.
2
3#include <limits>
4
7
8namespace storm {
9
11 : gameMethod(storm::solver::GameMethod::ValueIteration),
12 methodSetFromDefault(true),
13 maxIterationCount(std::numeric_limits<uint64_t>::max()),
14 precision(storm::utility::convertNumber<storm::RationalNumber>(1e-06)),
15 considerRelativeTerminationCriterion(true) {
16 // Intentionally left empty.
17}
18
20 // Intentionally left empty
21}
22
23storm::solver::GameMethod const& GameSolverEnvironment::getMethod() const {
24 return gameMethod;
25}
26
28 return methodSetFromDefault;
29}
30
31void GameSolverEnvironment::setMethod(storm::solver::GameMethod value, bool isSetFromDefault) {
32 methodSetFromDefault = isSetFromDefault;
33 gameMethod = value;
34}
35
37 return maxIterationCount;
38}
39
41 maxIterationCount = value;
42}
43
44storm::RationalNumber const& GameSolverEnvironment::getPrecision() const {
45 return precision;
46}
47
48void GameSolverEnvironment::setPrecision(storm::RationalNumber value) {
49 precision = value;
50}
51
53 return considerRelativeTerminationCriterion;
54}
55
57 considerRelativeTerminationCriterion = value;
58}
59
60} // namespace storm
storm::RationalNumber const & getPrecision() const
uint64_t const & getMaximalNumberOfIterations() const
void setMaximalNumberOfIterations(uint64_t value)
bool const & isMethodSetFromDefault() const
void setMethod(storm::solver::GameMethod value, bool isSetFromDefault=false)
bool const & getRelativeTerminationCriterion() const
storm::solver::GameMethod const & getMethod() const
void setPrecision(storm::RationalNumber value)