25 #include <queso/Optimizer.h>
30 : m_maxIterations(UQ_OPT_MAX_ITERATIONS),
31 m_tolerance(UQ_OPT_TOLERANCE),
32 m_finiteDifferenceStepSize(UQ_OPT_FINITE_DIFFERENCE_STEP_SIZE),
33 m_solverType(UQ_OPT_SOLVER_TYPE),
34 m_fstepSize(UQ_OPT_FSTEP_SIZE),
35 m_fdfstepSize(UQ_OPT_FDFSTEP_SIZE),
36 m_lineTolerance(UQ_OPT_LINE_TOLERANCE)
BaseOptimizer()
Default constructor.
void setMaxIterations(unsigned int maxIterations)
Sets the maximum number of iterations to be used by the optimizer.
virtual double getFdfstepSize() const
Gets the step to use in gradient-based solvers.
void setTolerance(double tolerance)
Sets the tolerance the optimizer will use to test for an extremum.
virtual double getLineTolerance() const
Gets the tolerance to use for line minimisation.
virtual std::string getSolverType() const
Gets the algorithm to use for minimisation.
ScopedPtr< OptimizerOptions >::Type m_optionsObj
virtual void setLineTolerance(double lineTolerance)
Sets the tolerance to use for line minimisation.
virtual void setSolverType(std::string solverType)
Sets the algorithm to use for minimisation.
void setFiniteDifferenceStepSize(double h)
Sets the step to use in the finite difference derivative.
virtual double getFstepSize() const
Gets the step size to use in gradient-free solvers.
double getTolerance() const
Returns the tolerance used to test for an extremum in the optimizer.
virtual void setFdfstepSize(double fdfstepSize)
Sets the step to use in gradient-based solvers.
virtual void setFstepSize(double fstepSize)
Sets the step size to use in gradient-free solvers.
virtual ~BaseOptimizer()
Destructor.
This class provides options for a Optimizer.
double getFiniteDifferenceStepSize() const
Returns the step size used in the finite difference formula.
unsigned int getMaxIterations() const
Returns the maximum number of iterations the optimizer will do.