5 #ifndef __pinocchio_algorithm_proximal_hpp__
6 #define __pinocchio_algorithm_proximal_hpp__
9 #include "pinocchio/multibody/model.hpp"
10 #include "pinocchio/multibody/data.hpp"
23 template<
typename _Scalar>
26 typedef _Scalar Scalar;
52 PINOCCHIO_CHECK_INPUT_ARGUMENT(
53 check_expression_if_real<Scalar>(accuracy >= 0.) &&
"Accuracy must be positive.");
54 PINOCCHIO_CHECK_INPUT_ARGUMENT(
55 check_expression_if_real<Scalar>(
mu >= 0.) &&
"mu must be positive");
56 assert(
max_iter >= 1 &&
"max_iter must be greater or equal to 1");
75 PINOCCHIO_CHECK_INPUT_ARGUMENT(
77 &&
"Absolute accuracy must be positive.");
78 PINOCCHIO_CHECK_INPUT_ARGUMENT(
80 &&
"Relative accuracy must be positive.");
81 PINOCCHIO_CHECK_INPUT_ARGUMENT(
82 check_expression_if_real<Scalar>(
mu >= 0.) &&
"mu must be positive");
83 assert(
max_iter >= 1 &&
"max_iter must be greater or equal to 1");
115 #if PINOCCHIO_ENABLE_TEMPLATE_INSTANTIATION
116 #include "pinocchio/algorithm/proximal.txx"
Main pinocchio namespace.
Structure containing all the settings parameters for the proximal algorithms.
ProximalSettingsTpl()
Default constructor.
ProximalSettingsTpl(const Scalar accuracy, const Scalar mu, const int max_iter)
Constructor with all the setting parameters.
int max_iter
Maximal number of iterations.
Scalar relative_accuracy
Relative proximal accuracy between two iterates.
Scalar absolute_accuracy
Absolute proximal accuracy.
Scalar mu
Regularization parameter of the proximal algorithm.
int iter
Total number of iterations of the algorithm when it has converged or reached the maximal number of al...
Scalar relative_residual
Relatice residual between two iterates.
Scalar absolute_residual
Absolute residual.
ProximalSettingsTpl(const Scalar absolute_accuracy, const Scalar relative_accuracy, const Scalar mu, const int max_iter)
Constructor with all the setting parameters.