#include <minimization.hh>
|
using | FUN = std::function<double(const double)> |
|
using | FUN_ARR = std::function<double(const std::array<double, 1> &)> |
|
◆ FUN
◆ FUN_ARR
◆ AbstractMinimizer() [1/2]
Construct a new AbstractMinimizer object.
- Parameters
-
f | Objective function to minimize. Must take a double as input and return a double. |
abs_tol | Absolute tolerance for the minimization. |
max_iter | Maximum number of iterations. |
◆ AbstractMinimizer() [2/2]
Construct a new AbstractMinimizer object.
- Parameters
-
f | Objective function to minimize. Must take a std::array<double, 1> as input and return a double. |
abs_tol | Absolute tolerance for the minimization. |
max_iter | Maximum number of iterations. |
◆ get_iter()
Get the number of iterations used in the last minimization.
- Returns
- uint Number of iterations.
◆ minimize()
Perform the minimization.
- Returns
- double Minimimum of the objective function.
◆ minimize_impl()
◆ set_abs_tol()
Set the absolute tolerance for the minimization.
- Parameters
-
abs_tol | Absolute tolerance. |
◆ set_max_iter()
Set the maximum number of iterations.
- Parameters
-
max_iter | Maximum number of iterations. |
◆ abs_tol
◆ iter
◆ max_iter
The documentation for this class was generated from the following file:
- /home/runner/work/DiFfRG/DiFfRG/DiFfRG/include/DiFfRG/common/minimization.hh