18 #ifndef itkLBFGSOptimizer_h
19 #define itkLBFGSOptimizer_h
22 #include "vnl/algo/vnl_lbfgs.h"
23 #include "ITKOptimizersExport.h"
115 StartOptimization()
override;
127 itkGetMacro(Trace,
bool);
128 itkBooleanMacro(Trace);
132 SetMaximumNumberOfFunctionEvaluations(
unsigned int n);
134 itkGetMacro(MaximumNumberOfFunctionEvaluations,
unsigned int);
142 SetGradientConvergenceTolerance(
double f);
144 itkGetMacro(GradientConvergenceTolerance,
double);
153 SetLineSearchAccuracy(
double f);
155 itkGetMacro(LineSearchAccuracy,
double);
162 SetDefaultStepLength(
double f);
164 itkGetMacro(DefaultStepLength,
double);
172 GetStopConditionDescription()
const override;
178 PrintSelf(std::ostream & os,
Indent indent)
const override;
183 bool m_OptimizerInitialized{};
185 mutable std::ostringstream m_StopConditionDescription{};
188 unsigned int m_MaximumNumberOfFunctionEvaluations{};
189 double m_GradientConvergenceTolerance{};
190 double m_LineSearchAccuracy{};
191 double m_DefaultStepLength{};