29 return "GradientDescent";
37 learningRate_ = derivedOptions->learningRate;
First-order optimization algorithm that follows the negative gradient.
void initializeSolver() final
Initializes solver state before optimization begins.
GradientDescentSolverT(const SolverOptions &options, SolverFunctionT< T > *solver)
Creates a solver with the specified options and function to optimize.
void setOptions(const SolverOptions &options) final
Updates solver configuration, handling both base and Gradient Descent specific options.
void doIteration() final
Performs one iteration of the gradient descent algorithm.
std::string_view getName() const override
Returns "GradientDescent" as the solver name.
Abstract base class for optimization objective functions.
virtual void setOptions(const SolverOptions &options)
Updates solver configuration with new options.
Eigen::VectorX< T > parameters_
Current parameter values.
double error_
Current objective function value.
SolverFunctionT< T > * solverFunction_
Function to be optimized.
SolverT(const SolverOptions &options, SolverFunctionT< T > *solver)
Constructor with solver options and function to optimize.
Profiling macros that dispatch to one of three backends, selected at compile time:
#define MT_PROFILE_FUNCTION()
Extended options for the Gradient Descent optimization algorithm.
float learningRate
Step size for parameter updates during optimization.
Common options for numerical optimization solvers.