numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Base class of implementations of optimization algorithms. More...
#include <num_collect/opt/optimizer_base.h>
Public Member Functions | |
optimizer_base (logging::log_tag_view tag) | |
Constructor. | |
auto | evaluations () const noexcept -> index_type |
Get the number of function evaluations. | |
auto | iterations () const noexcept -> index_type |
Get the number of iterations. | |
auto | opt_value () const |
Get current optimal value. | |
auto | opt_variable () const |
Get current optimal variable. | |
![]() | |
iterative_solver_base (logging::log_tag_view tag) | |
Constructor. | |
auto | is_stop_criteria_satisfied () const -> bool |
Determine if stopping criteria of the algorithm are satisfied. | |
void | iterate () |
Iterate the algorithm once. | |
void | solve () |
Solve the problem. | |
![]() | |
logging_mixin (log_tag_view tag) | |
Constructor. | |
template<typename Child> | |
void | configure_child_algorithm_logger_if_exists (Child &child) |
Configure a logger of a child algorithm if exists. | |
auto | logger () const noexcept -> const num_collect::logging::logger & |
Access to the logger. | |
auto | logger () noexcept -> num_collect::logging::logger & |
Access to the logger. | |
![]() | |
iteration_logger_mixin ()=default | |
Constructor. | |
void | configure_iteration_logger (num_collect::logging::iterations::iteration_logger< Derived > &iteration_logger) const |
Configure an iteration logger. | |
auto | initialize_iteration_logger () -> num_collect::logging::iterations::iteration_logger< Derived > & |
Get the iteration logger. | |
Additional Inherited Members | |
![]() | |
auto | derived () const noexcept -> const Derived & |
Access derived object. | |
auto | derived () noexcept -> Derived & |
Access derived object. | |
Base class of implementations of optimization algorithms.
Derived | Type of derived class. |
Definition at line 34 of file optimizer_base.h.
|
inlineexplicit |
|
inlinenodiscardnoexcept |
Get the number of function evaluations.
Definition at line 76 of file optimizer_base.h.
|
inlinenodiscardnoexcept |
Get the number of iterations.
Definition at line 67 of file optimizer_base.h.
|
inlinenodiscard |
Get current optimal value.
Definition at line 60 of file optimizer_base.h.
|
inlinenodiscard |
Get current optimal variable.
Definition at line 53 of file optimizer_base.h.