GT RoboCup SSL
Soccer software, robot firmware
NelderMead2D Class Reference

Nelder-Mead in 2 Dimensions Works for all functions that are continous Finds local / global max depending on size of the simplex Can be extended to work in N dimensions. More...

Public Member Functions

 NelderMead2D (NelderMead2DConfig &config)
 
bool singleStep ()
 Runs a single step of the optimization algorithm (One reflection / expansion / contraction / shrink) More...
 
void execute ()
 Executes the full optimization algorithm.
 
Geometry2d::Point getPoint ()
 
float getValue ()
 
bool continueExecution ()
 

Detailed Description

Nelder-Mead in 2 Dimensions Works for all functions that are continous Finds local / global max depending on size of the simplex Can be extended to work in N dimensions.

Use Example: NelderMead2D nm(& [NelderMead2DConfig]); nm.execute(); nm.getValue();

Member Function Documentation

◆ continueExecution()

bool NelderMead2D::continueExecution ( )
Returns
Should continue execution?

◆ getPoint()

Geometry2d::Point NelderMead2D::getPoint ( )
Returns
the XY coordinate of the current guess of the max

◆ getValue()

float NelderMead2D::getValue ( )
Returns
the current guess of the max value

◆ singleStep()

bool NelderMead2D::singleStep ( )

Runs a single step of the optimization algorithm (One reflection / expansion / contraction / shrink)

Note
This is most ikely not the function you are looking for to find the max. This is used when you want to split the optimization accross multiple time steps

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