25 #include <queso/Optimizer.h> 
BaseOptimizer()
Default constructor. 
 
void setMaxIterations(unsigned int maxIterations)
Sets the maximum number of iterations to be used by the optimizer. 
 
#define UQ_OPT_FINITE_DIFFERENCE_STEP_SIZE
 
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. 
 
#define UQ_OPT_LINE_TOLERANCE
 
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. 
 
This class provides options for a Optimizer. 
 
#define UQ_OPT_MAX_ITERATIONS
 
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. 
 
#define UQ_OPT_FDFSTEP_SIZE
 
#define UQ_OPT_SOLVER_TYPE
 
#define UQ_OPT_FSTEP_SIZE
 
virtual ~BaseOptimizer()
Destructor. 
 
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.