MiniTensor Version of the Day
Loading...
Searching...
No Matches
minitensor::Minimizer< T, N > Struct Template Reference

#include <MiniTensor_Solvers.h>

Public Member Functions

 Minimizer ()
template<typename STEP, typename FN>
void solve (STEP &step_method, FN &fn, Vector< T, N > &x)
void printReport (std::ostream &os)

Public Attributes

Index max_num_iter {256}
Index min_num_iter {0}
Index num_iter {0}
Index num_stagnation_iter {0}
Index max_stagnation_iter {0}
T initial_norm {1.0}
T rel_tol {1.0e-12}
T rel_error {1.0}
T abs_tol {1.0e-12}
T acc_tol {1.0e-12}
T stagnation_tol {1.0}
T abs_error {1.0}
T growth_limit {1.0}
T initial_value {0.0}
T previous_value {0.0}
T final_value {0.0}
bool failed {false}
bool warning {false}
bool converged {false}
bool monotonic {true}
bool bounded {true}
bool non_stagnant {true}
bool enforce_monotonicity {false}
bool enforce_boundedness {false}
bool enforce_non_stagnation {false}
Vector< T, N > initial_guess
Vector< T, N > final_soln
Vector< T, N > final_gradient
Tensor< T, N > final_hessian
char const * step_method_name {nullptr}
char const * function_name {nullptr}
char const * failure_message {"No failure detected"}
char const * warning_message {"No warning detected"}

Private Member Functions

void updateConvergenceCriterion (T const abs_error)
void updateDivergenceCriterion (T const fn_value)
bool continueSolve () const
template<typename FN>
void recordFinals (FN &fn, Vector< T, N > const &x)

Detailed Description

template<typename T, Index N>
struct minitensor::Minimizer< T, N >

Minimizer Struct

Definition at line 219 of file MiniTensor_Solvers.h.


The documentation for this struct was generated from the following file: