PatWie / CppNumericalSolvers

a lightweight header-only C++17 library of numerical optimization methods for nonlinear functions based on Eigen
MIT License
878 stars 201 forks source link

Optimization report? #109

Closed Daiver closed 6 years ago

Daiver commented 6 years ago

Is it possible to obtain information about number of passed iterations, number of function/gradient calls, etc after optimization? I only found commented lines "std::cout << "iter: ""

PatWie commented 6 years ago

This is what the Criterial object is for. See the example

https://github.com/PatWie/CppNumericalSolvers/blob/97e97c55d5a514c102f6aa746e4f3719d9eefe4c/src/examples/simple_withoptions.cpp#L42-L49