20const std::string EigenEquationSolverSettings::techniqueOptionName =
"method";
21const std::string EigenEquationSolverSettings::preconditionOptionName =
"precond";
22const std::string EigenEquationSolverSettings::maximalIterationsOptionName =
"maxiter";
23const std::string EigenEquationSolverSettings::maximalIterationsOptionShortName =
"i";
24const std::string EigenEquationSolverSettings::precisionOptionName =
"precision";
25const std::string EigenEquationSolverSettings::restartOptionName =
"restart";
28 std::vector<std::string>
methods = {
"sparselu",
"bicgstab",
"dgmres",
"gmres"};
30 "The method to be used for solving linear equation systems with the eigen solver.")
39 std::vector<std::string> preconditioner = {
"ilu",
"diagonal",
"none"};
58 "The maximal number of iterations to perform before iterative solving is aborted.")
59 .setShortName(maximalIterationsOptionShortName)
85 return storm::solver::EigenLinearEquationSolverMethod::SparseLU;
87 return storm::solver::EigenLinearEquationSolverMethod::Bicgstab;
89 return storm::solver::EigenLinearEquationSolverMethod::DGmres;
91 return storm::solver::EigenLinearEquationSolverMethod::Gmres;
93 STORM_LOG_THROW(
false, storm::exceptions::IllegalArgumentValueException,
104 return storm::solver::EigenLinearEquationSolverPreconditioner::Ilu;
106 return storm::solver::EigenLinearEquationSolverPreconditioner::Diagonal;
108 return storm::solver::EigenLinearEquationSolverPreconditioner::None;
110 STORM_LOG_THROW(
false, storm::exceptions::IllegalArgumentValueException,
144 "Eigen is not selected as the preferred equation solver, so setting options for eigen might have no effect.");
virtual std::string getValueAsString() const =0
Retrieves the value of this argument as a string.
virtual uint_fast64_t getValueAsUnsignedInteger() const =0
Retrieves the value of this argument as an unsigned integer.
virtual double getValueAsDouble() const =0
Retrieves the value of this argument as a double.
virtual bool wasSetFromDefaultValue() const =0
static ArgumentBuilder createUnsignedIntegerArgument(std::string const &name, std::string const &description)
Creates an unsigned integer argument with the given parameters.
static ArgumentBuilder createDoubleArgument(std::string const &name, std::string const &description)
Creates a double argument with the given parameters.
static ArgumentBuilder createStringArgument(std::string const &name, std::string const &description)
Creates a string argument with the given parameters.
static std::shared_ptr< ArgumentValidator< double > > createDoubleRangeValidatorExcluding(double lowerBound, double upperBound)
static std::shared_ptr< ArgumentValidator< std::string > > createMultipleChoiceValidator(std::vector< std::string > const &choices)
This class provides the interface to create an option...
ArgumentBase const & getArgumentByName(std::string const &argumentName) const
Returns a reference to the argument with the specified long name.
bool getHasOptionBeenSet() const
Retrieves whether the option has been set.
bool isLinearEquationSystemMethodSetFromDefault() const
Retrieves whether the linear equation system method has been set from the default value.
bool isPreconditioningMethodSet() const
Retrieves whether the preconditioning method has been set.
bool check() const override
Checks whether the settings are consistent.
storm::solver::EigenLinearEquationSolverMethod getLinearEquationSystemMethod() const
Retrieves the method that is to be used for solving systems of linear equations.
bool isPrecisionSet() const
Retrieves whether the precision has been set.
EigenEquationSolverSettings()
Creates a new set of Eigen settings.
static const std::string moduleName
bool isLinearEquationSystemMethodSet() const
Retrieves whether the linear equation system method has been set.
uint_fast64_t getRestartIterationCount() const
Retrieves the number of iterations after which restarted methods are to be restarted.
bool isRestartIterationCountSet() const
Retrieves whether the restart iteration count has been set.
uint_fast64_t getMaximalIterationCount() const
Retrieves the maximal number of iterations to perform until giving up on converging.
double getPrecision() const
Retrieves the precision that is used for detecting convergence.
storm::solver::EigenLinearEquationSolverPreconditioner getPreconditioningMethod() const
Retrieves the method that is to be used for preconditioning solving systems of linear equations.
bool isMaximalIterationCountSet() const
Retrieves whether the maximal iteration count has been set.
This is the base class of the settings for a particular module.
void addOption(std::shared_ptr< Option > const &option)
Adds and registers the given option.
Option & getOption(std::string const &longName)
Retrieves the option with the given long name.
#define STORM_LOG_WARN_COND(cond, message)
#define STORM_LOG_THROW(cond, exception, message)
std::ostream & operator<<(std::ostream &out, EigenEquationSolverSettings::LinearEquationMethod const &method)
SettingsType const & getModule()
Get module.