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
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
std::string m_option_lineTolerance
Option name for OptimizerOptions::m_lineTolerance. Default is m_prefix + "optimizer_lineTolerance".
std::string m_help
If this string is non-empty, options are print to the output file.
friend std::ostream & operator<<(std::ostream &os, const OptimizerOptions &obj)
virtual ~OptimizerOptions()
Destructor.
std::string m_option_solverType
Option name for OptimizerOptions::m_solverType. Default is m_prefix + "optimizer_solverType".
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.
BoostInputOptionsParser * m_parser
This class provides options for a Optimizer.
double m_lineTolerance
Accuracy to which to solve line minization to. Default is 0.1.
double m_fstepSize
The size of the initial trial steps for optimizing without gradients. Default is 0.1.
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...
const BaseEnvironment * m_env
std::string m_option_fstepSize
Option name for OptimizerOptions::m_fstepSize. Default is m_prefix + "optimizer_fstepSize".
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.
std::string m_option_fdfstepSize
Option name for OptimizerOptions::m_fdfstepSize. Default is m_prefix + "optimizer_fdfStepSize".
unsigned int m_maxIterations
The maximum number of iterations to do for optimization. Default is 100.
std::string m_option_maxIterations
Option name for OptimizerOptions::m_maxIterations. Default is m_prefix + "optimizer_maxIterations".
std::string m_option_help
double m_finiteDifferenceStepSize
The step size used to compute gradients from finite differencing. Default is 1e-4.