robotoc
robotoc - efficient ROBOT Optimal Control solvers
Loading...
Searching...
No Matches
solver_options.hpp
Go to the documentation of this file.
1#ifndef ROBOTOC_SOLVER_OPTIONS_HPP_
2#define ROBOTOC_SOLVER_OPTIONS_HPP_
3
4#include <iostream>
5
9
10
11namespace robotoc {
12
22 int nthreads = 1;
23
28 int max_iter = 100;
29
34 double kkt_tol = 1.0e-07;
35
39 double mu_init = 1.0e-03;
40
45 double mu_min = 1.0e-03;
46
51 double kkt_tol_mu = 1.0e-07;
52
59
66
70 bool enable_line_search = false;
71
76
85
97
107 double initial_sto_reg = 1.0e30;
108
113 double kkt_tol_mesh = 0.1;
114
119 double max_dt_mesh = 0.0;
120
133 double max_dts_riccati = 0.1;
134
140
146
150 bool enable_benchmark = false;
151
155 void disp(std::ostream& os) const;
156
157 friend std::ostream& operator<<(std::ostream& os,
158 const SolverOptions& solver_options);
159
160};
161
162} // namespace robotoc
163
164#endif // ROBOTOC_SOLVER_OPTIONS_HPP_
Definition: constraint_component_base.hpp:17
DiscretizationMethod
Discretization method of the optimal control problem.
Definition: discretization_method.hpp:10
InterpolationOrder
Order of the interpolation.
Definition: interpolation_order.hpp:10
Settings for the line search.
Definition: line_search_settings.hpp:22
Options of optimal control solvers.
Definition: solver_options.hpp:17
double mu_superlinear_decrease_power
Superlinear decrease rate of barrier parameter. Default is 1.5.
Definition: solver_options.hpp:65
double mu_init
Initial barrier parameter. Must be positive. Default is 1.0e-03.
Definition: solver_options.hpp:39
bool enable_benchmark
If true, the CPU time is measured at each solve().
Definition: solver_options.hpp:150
double kkt_tol
Tolerance of the l2-norm of the (perturbed) KKT residual for convergence. Default is 1....
Definition: solver_options.hpp:34
bool enable_solution_interpolation
If true, the solution initial guess is constructed from the linear interpolation of the previous solu...
Definition: solver_options.hpp:139
friend std::ostream & operator<<(std::ostream &os, const SolverOptions &solver_options)
bool enable_line_search
Flag to enable the line search. Default is false.
Definition: solver_options.hpp:70
double max_dts_riccati
Maximum magnitude of the nominal direction of the switching time computed by the Riccati recursion al...
Definition: solver_options.hpp:133
DiscretizationMethod discretization_method
Discretization method of the optimal control problem. Only used in OCPSolver without the STO problem....
Definition: solver_options.hpp:84
void disp(std::ostream &os) const
Displays the solver settings onto a ostream.
int max_iter
Maximum number of iterations. Must be non-negative. Default is 100.
Definition: solver_options.hpp:28
double mu_min
Minimum barrier parameter. Must be positive. Default is 1.0e-03 (that is, no barrier parameter reduct...
Definition: solver_options.hpp:45
double mu_linear_decrease_factor
Linear decrease rate of barrier parameter. Default is 0.2.
Definition: solver_options.hpp:58
InterpolationOrder interpolation_order
Order of the solution interpolation if enable_solution_interpolation is true.
Definition: solver_options.hpp:145
double kkt_tol_mu
Tolerance of the l2-norm of the (perturbed) KKT residual for the barrier parameter update....
Definition: solver_options.hpp:51
double kkt_tol_mesh
Tolerance of the KKT residual to perform mesh-refinement in the STO problem. Default is 1....
Definition: solver_options.hpp:113
int nthreads
Number of the threads of parallel computations. Must be positive. Default is 1.
Definition: solver_options.hpp:22
LineSearchSettings line_search_settings
Line search settings.
Definition: solver_options.hpp:75
double initial_sto_reg
Magnitude of the large regularization for the STO problem at the initial iterations speficied by init...
Definition: solver_options.hpp:107
int initial_sto_reg_iter
Number of initial inner iterations in which a large regularization for the STO problem is added,...
Definition: solver_options.hpp:96
double max_dt_mesh
Tolerance of the maximum discretization step size to perform mesh-refinement in the STO problem....
Definition: solver_options.hpp:119