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)
void setMaxIterations(unsigned int maxIterations)
Sets the maximum number of iterations to be used by the optimizer.
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.
virtual std::string getSolverType() const
Gets the algorithm to use for minimisation.
virtual ~BaseOptimizer()
Destructor.
ScopedPtr< OptimizerOptions >::Type m_optionsObj
double getTolerance() const
Returns the tolerance used to test for an extremum in the optimizer.
virtual void setFstepSize(double fstepSize)
Sets the step size to use in gradient-free solvers.
double getFiniteDifferenceStepSize() const
Returns the step size used in the finite difference formula.
virtual void setFdfstepSize(double fdfstepSize)
Sets the step to use in gradient-based solvers.
virtual double getFdfstepSize() const
Gets the step to use in gradient-based solvers.
This class provides options for a Optimizer.
void setFiniteDifferenceStepSize(double h)
Sets the step to use in the finite difference derivative.
void setTolerance(double tolerance)
Sets the tolerance the optimizer will use to test for an extremum.
virtual double getFstepSize() const
Gets the step size to use in gradient-free solvers.
BaseOptimizer()
Default constructor.
unsigned int getMaxIterations() const
Returns the maximum number of iterations the optimizer will do.
virtual double getLineTolerance() const
Gets the tolerance to use for line minimisation.