![]() |
GT RoboCup SSL
Soccer software, robot firmware
|
Gradient Ascent in 1 Dimension with Temperature Works for all functions that are continous with a specified derivative function Only finds the closest local max. More...
Public Member Functions | |
GradientAscent1D (Gradient1DConfig *config) | |
bool | singleStep () |
Runs a single step of the optimization algorithm. More... | |
void | execute () |
Executes the full optimization algorithm. More... | |
float | getXValue () |
float | getValue () |
bool | continueExecution () |
Gradient Ascent in 1 Dimension with Temperature Works for all functions that are continous with a specified derivative function Only finds the closest local max.
Temperature controls X movement around discontinuity in the derivative function EX: X=0 when F(x) = abs(x)
Use Example: GradientAscent1D ga(& [Gradient1DConfig]); ga.execute(); ga.getValue();
bool GradientAscent1D::continueExecution | ( | ) |
void GradientAscent1D::execute | ( | ) |
Executes the full optimization algorithm.
float GradientAscent1D::getValue | ( | ) |
float GradientAscent1D::getXValue | ( | ) |
bool GradientAscent1D::singleStep | ( | ) |
Runs a single step of the optimization algorithm.