25 #ifndef UQ_OPT_OPTIONS_H
26 #define UQ_OPT_OPTIONS_H
32 #include <queso/SharedPtr.h>
34 #define UQ_OPT_HELP ""
37 #define UQ_OPT_MAX_ITERATIONS 100
38 #define UQ_OPT_TOLERANCE 1e-3
39 #define UQ_OPT_FINITE_DIFFERENCE_STEP_SIZE 1e-4
40 #define UQ_OPT_SOLVER_TYPE "bfgs2"
41 #define UQ_OPT_FSTEP_SIZE 0.1
42 #define UQ_OPT_FDFSTEP_SIZE 1.0
43 #define UQ_OPT_LINE_TOLERANCE 0.1
47 class BaseEnvironment;
48 class BoostInputOptionsParser;
160 friend std::ostream &
operator<<(std::ostream & os,
166 #endif // UQ_OPT_OPTIONS_H
std::string m_solverType
The optimization algorithm to use. Default is bfgs2.
double m_tolerance
The tolerance at which optimization stops. Default is 1e-3.
std::string m_option_tolerance
Option name for OptimizerOptions::m_tolerance. Default is m_prefix + "optimizer_tolerance".
double m_fdfstepSize
The size of the first step when optimizing with gradients. Default is 1.0.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
unsigned int m_maxIterations
The maximum number of iterations to do for optimization. Default is 100.
BoostInputOptionsParser * m_parser
OptimizerOptions()
Default constructor. All options have their default values.
std::string m_option_finiteDifferenceStepSize
Option name for OptimizerOptions::m_finiteDifferenceStepSize. Default is m_prefix + "optimizer_finite...
std::string m_option_lineTolerance
Option name for OptimizerOptions::m_lineTolerance. Default is m_prefix + "optimizer_lineTolerance".
std::string m_option_fdfstepSize
Option name for OptimizerOptions::m_fdfstepSize. Default is m_prefix + "optimizer_fdfStepSize".
This class provides options for a Optimizer.
friend std::ostream & operator<<(std::ostream &os, const OptimizerOptions &obj)
std::string m_option_maxIterations
Option name for OptimizerOptions::m_maxIterations. Default is m_prefix + "optimizer_maxIterations".
double m_lineTolerance
Accuracy to which to solve line minization to. Default is 0.1.
const BaseEnvironment * m_env
virtual ~OptimizerOptions()
Destructor.
std::string m_option_help
double m_finiteDifferenceStepSize
The step size used to compute gradients from finite differencing. Default is 1e-4.
double m_fstepSize
The size of the initial trial steps for optimizing without gradients. Default is 0.1.
std::string m_help
If this string is non-empty, options are print to the output file.
std::string m_option_fstepSize
Option name for OptimizerOptions::m_fstepSize. Default is m_prefix + "optimizer_fstepSize".
std::string m_option_solverType
Option name for OptimizerOptions::m_solverType. Default is m_prefix + "optimizer_solverType".