GT RoboCup SSL
Soccer software, robot firmware
NelderMead2DConfig Class Reference

Public Member Functions

 NelderMead2DConfig (std::function< float(Geometry2d::Point)> &f, Geometry2d::Point start=Geometry2d::Point(0, 0), Geometry2d::Point step=Geometry2d::Point(1, 1), Geometry2d::Point minDist=Geometry2d::Point(0.001, 0.001), float reflectionCoeff=1, float expansionCoeff=2, float contractionCoeff=0.5, float shrinkCoeff=0.5, int maxIterations=100, float maxValue=0, float maxThresh=0)
 Creates a Nelder-Mead 2D Config. More...
 

Public Attributes

std::function< float(Geometry2d::Point)> & f
 
Geometry2d::Point start
 
Geometry2d::Point step
 
Geometry2d::Point minDist
 
float reflectionCoeff
 
float expansionCoeff
 
float contractionCoeff
 
float shrinkCoeff
 
int maxIterations
 
float maxValue
 
float maxThresh
 
+ Collaboration diagram for NelderMead2DConfig:

Constructor & Destructor Documentation

◆ NelderMead2DConfig()

NelderMead2DConfig::NelderMead2DConfig ( std::function< float(Geometry2d::Point)> &  f,
Geometry2d::Point  start = Geometry2d::Point(0, 0),
Geometry2d::Point  step = Geometry2d::Point(1, 1),
Geometry2d::Point  minDist = Geometry2d::Point(0.001,                                                                     0.001),
float  reflectionCoeff = 1,
float  expansionCoeff = 2,
float  contractionCoeff = 0.5,
float  shrinkCoeff = 0.5,
int  maxIterations = 100,
float  maxValue = 0,
float  maxThresh = 0 
)
inline

Creates a Nelder-Mead 2D Config.

Parameters
fstd function pointer which returns F(X, Y)
startstarting point of the simplex (Triangle in 2D Case)
stepstarting step magnitudes in X, Y directions
minDistminimum distance of bounding box before exit
reflectionCoeffperecent to reflect by in the oposite direction Must be greater than 0
expansionCoeffpercent to extend single point by Must be greater than 1
contractionCoeffpercent to contract single point by Must be greater than 0 and less than or equal to 0.5
shrinkCoeffpercent to shrink all points by Must be between 0 and 1
maxIterationsmaximum number of iterations to reach before end
maxValuemax value to exit early at
maxThreshthreshold for the max vlaue before exit
Note
Set maxValue = maxThresh to disable

The documentation for this class was generated from the following file: