Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
GameSolverEnvironment.cpp
Go to the documentation of this file.
2
7
8namespace storm {
9
12
13 gameMethod = gameSettings.getGameSolvingMethod();
14 methodSetFromDefault = gameSettings.isGameSolvingMethodSetFromDefaultValue();
15 if (gameSettings.isMaximalIterationCountSet()) {
16 maxIterationCount = gameSettings.getMaximalIterationCount();
17 } else {
18 maxIterationCount = std::numeric_limits<uint_fast64_t>::max();
19 }
20 precision = storm::utility::convertNumber<storm::RationalNumber>(gameSettings.getPrecision());
21 considerRelativeTerminationCriterion =
23 STORM_LOG_ASSERT(considerRelativeTerminationCriterion ||
25 "Unknown convergence criterion");
26}
27
29 // Intentionally left empty
30}
31
32storm::solver::GameMethod const& GameSolverEnvironment::getMethod() const {
33 return gameMethod;
34}
35
37 return methodSetFromDefault;
38}
39
40void GameSolverEnvironment::setMethod(storm::solver::GameMethod value) {
41 methodSetFromDefault = false;
42 gameMethod = value;
43}
44
46 return maxIterationCount;
47}
48
50 maxIterationCount = value;
51}
52
53storm::RationalNumber const& GameSolverEnvironment::getPrecision() const {
54 return precision;
55}
56
57void GameSolverEnvironment::setPrecision(storm::RationalNumber value) {
58 precision = value;
59}
60
62 return considerRelativeTerminationCriterion;
63}
64
66 considerRelativeTerminationCriterion = value;
67}
68
69} // namespace storm
storm::RationalNumber const & getPrecision() const
void setMethod(storm::solver::GameMethod value)
uint64_t const & getMaximalNumberOfIterations() const
void setMaximalNumberOfIterations(uint64_t value)
bool const & isMethodSetFromDefault() const
bool const & getRelativeTerminationCriterion() const
storm::solver::GameMethod const & getMethod() const
void setPrecision(storm::RationalNumber value)
#define STORM_LOG_ASSERT(cond, message)
Definition macros.h:11
SettingsType const & getModule()
Get module.
LabParser.cpp.
Definition cli.cpp:18