18 #ifndef itkOnePlusOneEvolutionaryOptimizer_h 19 #define itkOnePlusOneEvolutionaryOptimizer_h 23 #include "ITKOptimizersExport.h" 95 itkSetMacro(Maximize,
bool);
96 itkBooleanMacro(Maximize);
97 itkGetConstReferenceMacro(Maximize,
bool);
101 {
return !m_Maximize; }
103 { this->SetMaximize(!v); }
105 { SetMaximize(
false); }
107 { SetMaximize(
true); }
110 itkSetMacro(MaximumIteration,
unsigned int);
111 itkGetConstReferenceMacro(MaximumIteration,
unsigned int);
115 itkSetMacro(GrowthFactor,
double);
116 itkGetConstReferenceMacro(GrowthFactor,
double);
120 itkSetMacro(ShrinkFactor,
double);
121 itkGetConstReferenceMacro(ShrinkFactor,
double);
125 itkSetMacro(InitialRadius,
double);
126 itkGetConstReferenceMacro(InitialRadius,
double);
131 itkSetMacro(Epsilon,
double);
132 itkGetConstReferenceMacro(Epsilon,
double);
136 itkGetConstReferenceMacro(FrobeniusNorm,
double);
138 void SetNormalVariateGenerator(NormalVariateGeneratorType *generator);
146 void Initialize(
double initialRadius,
double grow = -1,
double shrink = -1);
149 itkGetConstReferenceMacro(CurrentCost,
MeasureType);
154 itkGetConstReferenceMacro(CurrentIteration,
unsigned int);
157 itkGetConstReferenceMacro(Initialized,
bool);
162 virtual void StartOptimization() ITK_OVERRIDE;
170 itkGetConstReferenceMacro(CatchGetValueException,
bool);
171 itkSetMacro(CatchGetValueException,
bool);
173 itkGetConstReferenceMacro(MetricWorstPossibleValue,
double);
174 itkSetMacro(MetricWorstPossibleValue,
double);
176 virtual const std::string GetStopConditionDescription()
const ITK_OVERRIDE;
182 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
Statistics::RandomVariateGeneratorBase NormalVariateGeneratorType
This class is a base for the CostFunctions returning a single value.
SingleValuedCostFunction CostFunctionType
SmartPointer< const Self > ConstPointer
This class is a base for the Optimization methods that optimize a single valued function.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
double m_MetricWorstPossibleValue
CostFunctionType::MeasureType MeasureType
unsigned int m_MaximumIteration
bool m_CatchGetValueException
CostFunctionType::Pointer CostFunctionPointer
MeasureType m_CurrentCost
MeasureType GetValue() const
SingleValuedNonLinearOptimizer Superclass
SmartPointer< Self > Pointer
Defines common interfaces for random variate generators.
std::ostringstream m_StopConditionDescription
1+1 evolutionary strategy optimizer
NormalVariateGeneratorType::Pointer m_RandomGenerator
Control indentation during Print() invocation.
unsigned int m_CurrentIteration
OnePlusOneEvolutionaryOptimizer Self