|
bitsim
Model, simulate, estimate and control robots in C++
|
Controller for iterative algorithms. More...
#include <iterative_algorithm_controller.h>
Public Member Functions | |
| IterativeAlgorithmController (uint_t maxIterations, real_t exitTolerance) | |
| Constructor. | |
| IterativeAlgorithmController (const IterativeAlgorithmController &)=default | |
| Copy constructor. | |
| IterativeAlgorithmController (IterativeAlgorithmController &&)=default | |
| Move copy constructor. | |
| IterativeAlgorithmController & | operator= (const IterativeAlgorithmController &)=default |
| copy assignement | |
| IterativeAlgorithmController & | operator= (IterativeAlgorithmController &&)=default |
| move copy assignement | |
| ~IterativeAlgorithmController ()=default | |
| Destructor. | |
| bool | continue_iterations () |
| Returns true if the iterations of the algorithm should be continued. | |
| bool | show_iterations () const |
| show iterations | |
| bool | track_residuals () const |
| track_residuals | |
| void | set_tolerance (real_t tol) |
| set_tolerance | |
| void | set_show_iterations_flag (bool flag) |
| show iterations | |
| void | set_track_residuals_flag (bool flag) |
| set_track_residuals_flag | |
| void | set_num_threads (uint_t nthreads) |
| Set the number of threads. | |
| void | set_max_itrs (uint_t max_itrs) |
| set_max_itrs | |
| uint_t | get_current_iteration () const |
| Returns the current iteration index. | |
| real_t | get_exit_tolerance () const |
| Returns the exit tolerance for the algorithm. | |
| uint_t | get_max_iterations () const |
| Return the maximum number of iterations. | |
| uint_t | get_num_threads () const |
| Get the number of threads used. | |
| real_t | get_residual () const |
| get_residual | |
| IterativeAlgorithmResult | get_state () const |
| Returns the state of the controller. | |
| void | update_residual (real_t res) |
| Update the residual. | |
| void | reset (const IterativeAlgorithmController &control) |
| reset | |
| void | reset () |
| reset | |
Controller for iterative algorithms.
|
inline |
Constructor.
|
default |
Copy constructor.
|
default |
Move copy constructor.
|
default |
Destructor.
| bool bitrl::utils::IterativeAlgorithmController::continue_iterations | ( | ) |
Returns true if the iterations of the algorithm should be continued.
|
inline |
Returns the current iteration index.
|
inline |
Returns the exit tolerance for the algorithm.
|
inline |
Return the maximum number of iterations.
|
inline |
Get the number of threads used.
|
inline |
get_residual
| IterativeAlgorithmResult bitrl::utils::IterativeAlgorithmController::get_state | ( | ) | const |
Returns the state of the controller.
|
default |
copy assignement
|
default |
move copy assignement
| void bitrl::utils::IterativeAlgorithmController::reset | ( | ) |
reset
| void bitrl::utils::IterativeAlgorithmController::reset | ( | const IterativeAlgorithmController & | control | ) |
reset
|
inline |
set_max_itrs
| max_itrs |
|
inline |
Set the number of threads.
|
inline |
show iterations
|
inline |
set_tolerance
| tol |
|
inline |
set_track_residuals_flag
| flag |
|
inline |
show iterations
|
inline |
track_residuals
|
inline |
Update the residual.