ANIMA
4.0
|
BOBYQA Optimizer. More...
#include <animaBobyqaOptimizer.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef CostFunctionType::Pointer | CostFunctionPointer |
typedef itk::SingleValuedCostFunction | CostFunctionType |
typedef itk::SingleValuedNonLinearOptimizer::ParametersType | ParametersType |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SingleValuedNonLinearOptimizer::ScalesType | ScalesType |
typedef BobyqaOptimizer | Self |
typedef itk::Object | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const bool & | GetCatchGetValueException () const |
virtual const MeasureType & | GetCurrentCost () const |
virtual const unsigned int & | GetCurrentIteration () const |
virtual const bool & | GetMaximize () const |
virtual const unsigned int & | GetMaximumIteration () const |
virtual const double & | GetMetricWorstPossibleValue () const |
virtual const char * | GetNameOfClass () const |
virtual const unsigned int & | GetNumberSamplingPoints () const |
virtual const double & | GetRhoBegin () const |
virtual const double & | GetRhoEnd () const |
virtual const unsigned int & | GetSpaceDimension () const |
const std::string | GetStopConditionDescription () const ITK_OVERRIDE |
MeasureType | GetValue () const |
virtual void | MaximizeOff () |
virtual void | MaximizeOn () |
virtual void | SetCatchGetValueException (bool _arg) |
virtual void | SetLowerBounds (ScalesType _arg) |
virtual void | SetMaximize (bool _arg) |
virtual void | SetMaximumIteration (unsigned int _arg) |
virtual void | SetMetricWorstPossibleValue (double _arg) |
virtual void | SetNumberSamplingPoints (unsigned int _arg) |
virtual void | SetRhoBegin (double _arg) |
virtual void | SetRhoEnd (double _arg) |
virtual void | SetSpaceDimension (unsigned int _arg) |
virtual void | SetUpperBounds (ScalesType _arg) |
void | StartOptimization () ITK_OVERRIDE |
void | StopOptimization () |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
int | altmov_ (long int &npt, double *xpt, double *xopt, double *bmat, double *zmat, long int &ndim, double *sl, double *su, long int &kopt, long int &knew, double *adelt, double *xnew, double *xalt, double *alpha, double *cauchy, double *glag, double *hcol, double *w) |
BobyqaOptimizer () | |
BobyqaOptimizer (const BobyqaOptimizer &) | |
int | bobyqb_ (long int &npt, double *x, double *xl, double *xu, double &rhobeg, double &rhoend, long int &maxfun, double *xbase, double *xpt, double *fval, double *xopt, double *gopt, double *hq, double *pq, double *bmat, double *zmat, long int &ndim, double *sl, double *su, double *xnew, double *xalt, double *d__, double *vlag, double *w) |
int | optimize (long int &npt, double *x, double *xl, double *xu, double &rhobeg, double &rhoend, long int &maxfun, double *w) |
int | prelim_ (long int &npt, double *x, double *xl, double *xu, double &rhobeg, long int &maxfun, double *xbase, double *xpt, double *fval, double *gopt, double *hq, double *pq, double *bmat, double *zmat, long int &ndim, double *sl, double *su, long int &nf, long int &kopt) |
void | PrintSelf (std::ostream &os, itk::Indent indent) const ITK_OVERRIDE |
int | rescue_ (long int &npt, double *xl, double *xu, long int &maxfun, double *xbase, double *xpt, double *fval, double *xopt, double *gopt, double *hq, double *pq, double *bmat, double *zmat, long int &ndim, double *sl, double *su, long int &nf, double *delta, long int &kopt, double *vlag, double *ptsaux, double *ptsid, double *w) |
virtual void | SetCurrentCost (double _arg) |
int | trsbox_ (long int &npt, double *xpt, double *xopt, double *gopt, double *hq, double *pq, double *sl, double *su, double *delta, double *xnew, double *d__, double *gnew, double *xbdi, double *s, double *hs, double *hred, double *dsq, double *crvmin) |
int | update_ (long int &npt, double *bmat, double *zmat, long int &ndim, double *vlag, double *beta, double *denom, long int &knew, double *w) |
virtual | ~BobyqaOptimizer () |
Protected Attributes | |
bool | m_CatchGetValueException |
MeasureType | m_CurrentCost |
unsigned int | m_CurrentIteration |
ScalesType | m_LowerBounds |
bool | m_Maximize |
unsigned int | m_MaximumIteration |
double | m_MetricWorstPossibleValue |
unsigned int | m_NumberSamplingPoints |
double | m_RhoBegin |
double | m_RhoEnd |
unsigned int | m_SpaceDimension |
bool | m_Stop |
std::ostringstream | m_StopConditionDescription |
ScalesType | m_UpperBounds |
BobyqaOptimizer::ParametersType | px |
BOBYQA Optimizer.
Definition at line 15 of file animaBobyqaOptimizer.h.
typedef itk::SmartPointer<const Self> anima::BobyqaOptimizer::ConstPointer |
Definition at line 22 of file animaBobyqaOptimizer.h.
typedef CostFunctionType::Pointer anima::BobyqaOptimizer::CostFunctionPointer |
Definition at line 35 of file animaBobyqaOptimizer.h.
typedef itk::SingleValuedCostFunction anima::BobyqaOptimizer::CostFunctionType |
Type of the Cost Function
Definition at line 34 of file animaBobyqaOptimizer.h.
typedef itk::SingleValuedNonLinearOptimizer::ParametersType anima::BobyqaOptimizer::ParametersType |
Definition at line 24 of file animaBobyqaOptimizer.h.
typedef itk::SmartPointer<Self> anima::BobyqaOptimizer::Pointer |
Definition at line 21 of file animaBobyqaOptimizer.h.
typedef itk::SingleValuedNonLinearOptimizer::ScalesType anima::BobyqaOptimizer::ScalesType |
Definition at line 25 of file animaBobyqaOptimizer.h.
Standard class typedefs.
Definition at line 19 of file animaBobyqaOptimizer.h.
typedef itk::Object anima::BobyqaOptimizer::Superclass |
Definition at line 20 of file animaBobyqaOptimizer.h.
|
protected |
Definition at line 13 of file animaBobyqaOptimizer.cxx.
References ~BobyqaOptimizer().
|
protected |
|
protectedvirtual |
Definition at line 32 of file animaBobyqaOptimizer.cxx.
References StartOptimization().
Referenced by BobyqaOptimizer().
|
protected |
Definition at line 1432 of file animaBobyqaOptimizer.cxx.
References m_SpaceDimension.
|
protected |
Definition at line 286 of file animaBobyqaOptimizer.cxx.
Referenced by optimize().
virtual::itk::LightObject::Pointer anima::BobyqaOptimizer::CreateAnother | ( | void | ) | const |
|
virtual |
|
virtual |
Return Current Value
|
virtual |
Return Current Iteration
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Run-time type information (and related methods).
|
virtual |
|
virtual |
|
virtual |
|
virtual |
const std::string anima::BobyqaOptimizer::GetStopConditionDescription | ( | ) | const |
Definition at line 105 of file animaBobyqaOptimizer.cxx.
References PrintSelf().
Referenced by StartOptimization().
|
inline |
Definition at line 65 of file animaBobyqaOptimizer.h.
|
virtual |
|
virtual |
|
static |
Method for creation through the object factory.
|
protected |
Definition at line 132 of file animaBobyqaOptimizer.cxx.
References bobyqb_().
Referenced by PrintSelf().
|
protected |
Definition at line 1850 of file animaBobyqaOptimizer.cxx.
References m_CatchGetValueException, m_CurrentCost, m_CurrentIteration, m_Maximize, m_MetricWorstPossibleValue, m_SpaceDimension, and px.
|
protected |
Definition at line 115 of file animaBobyqaOptimizer.cxx.
References optimize().
Referenced by GetStopConditionDescription().
|
protected |
Definition at line 2115 of file animaBobyqaOptimizer.cxx.
References m_CatchGetValueException, m_CurrentCost, m_CurrentIteration, m_Maximize, m_MaximumIteration, m_MetricWorstPossibleValue, m_SpaceDimension, m_StopConditionDescription, px, and update_().
|
virtual |
|
protectedvirtual |
|
virtual |
|
virtual |
Set if the Optimizer should Maximize the metric
|
virtual |
Set/Get maximum iteration limit.
|
virtual |
|
virtual |
Set/Get Number of Sampling points (between Parameters+2 and (Parameters+1)(Parameters+2)/2)
|
virtual |
Set/Get RhoBegin set the initial sampling of parameter space
|
virtual |
Set/Get RhoEnd set the final sampling distance of parameter space
|
virtual |
|
virtual |
void anima::BobyqaOptimizer::StartOptimization | ( | ) |
Start optimization.
Definition at line 39 of file animaBobyqaOptimizer.cxx.
References GetStopConditionDescription().
Referenced by ~BobyqaOptimizer().
|
inline |
When users call StartOptimization, this value will be set false. By calling StopOptimization, this flag will be set true, and optimization will stop at the next iteration.
Definition at line 82 of file animaBobyqaOptimizer.h.
|
protected |
Definition at line 2741 of file animaBobyqaOptimizer.cxx.
References m_SpaceDimension.
|
protected |
Definition at line 3289 of file animaBobyqaOptimizer.cxx.
References m_SpaceDimension.
Referenced by rescue_().
|
protected |
Definition at line 109 of file animaBobyqaOptimizer.h.
|
protected |
Internal storage for the value type / used as a cache
Definition at line 119 of file animaBobyqaOptimizer.h.
|
protected |
Definition at line 107 of file animaBobyqaOptimizer.h.
|
protected |
Definition at line 117 of file animaBobyqaOptimizer.h.
|
protected |
Set if the Metric should be maximized: Default = False
Definition at line 102 of file animaBobyqaOptimizer.h.
|
protected |
Definition at line 106 of file animaBobyqaOptimizer.h.
Referenced by rescue_().
|
protected |
Definition at line 110 of file animaBobyqaOptimizer.h.
|
protected |
Definition at line 112 of file animaBobyqaOptimizer.h.
|
protected |
Definition at line 113 of file animaBobyqaOptimizer.h.
|
protected |
Definition at line 113 of file animaBobyqaOptimizer.h.
|
protected |
|
protected |
this is user-settable flag to stop optimization. when users call StartOptimization, this value will be set false. By calling StopOptimization, this flag will be set true, and optimization will stop at the next iteration.
Definition at line 128 of file animaBobyqaOptimizer.h.
|
protected |
Definition at line 130 of file animaBobyqaOptimizer.h.
Referenced by rescue_().
|
protected |
Definition at line 117 of file animaBobyqaOptimizer.h.
|
protected |
Definition at line 116 of file animaBobyqaOptimizer.h.