![]() |
GT RoboCup SSL
Soccer software, robot firmware
|
Config data for a Gradient Ascent 1D optimizer Can be intitialized through the constructor or through obj.attribute style initialization. More...
Public Member Functions | |
Gradient1DConfig () | |
Creates a Gradient Ascent 1D config Default args: dxError, maxXMovement, temperatureDescent temperatureMin, maxIterations, maxValue maxThresh. | |
Gradient1DConfig (std::function< std::tuple< float, float >(float)> *f, float startX, float prevX, float dxError=0.1, float maxXMovement=0.02, float temperatureDescent=0.5, float temperatureMin=0.01, int maxIterations=100, float maxValue=0, float maxThresh=0) | |
Creates a Gradient Ascent 1D config. More... | |
Config data for a Gradient Ascent 1D optimizer Can be intitialized through the constructor or through obj.attribute style initialization.
|
inline |
Creates a Gradient Ascent 1D config.
f,std | function pointer which returns a tuple with <F(X), F'(X)> |
startX,X | value in which to start from |
prevX,X | value near startX which is not startX |
dxError,threshold | of F'(X) in reference to zero to exit |
maxXMovement,max | distance to go when stepping to either side in reference to current x |
temperatureDescent,factor | by which to decrease the temperature each time we pass a discontinuity in the F'(X) space |
temperatureMin,minimum | temperature to hit before exiting (Directly related to the X resolution) |
maxIterations,Maximum | number of iterations to reach end |
maxValue,used | to leave function early when max value is already know (but corrseponding X is needed) |
maxThresh,minimum | distance to max before exit |