robotoc
robotoc - efficient ROBOT Optimal Control solvers
Loading...
Searching...
No Matches
line_search_settings.hpp
Go to the documentation of this file.
1#ifndef ROBOTOC_LINE_SEARCH_SETTINGS_HPP_
2#define ROBOTOC_LINE_SEARCH_SETTINGS_HPP_
3
4#include <iostream>
5
6
7namespace robotoc {
8
13enum class LineSearchMethod {
14 Filter,
16};
17
23public:
30
35
39 double min_step_size = 0.05;
40
45
51
56 double armijo_control_rate = 0.001;
57
62 double margin_rate = 0.05;
63
67 double eps = 1.0e-08;
68
72 void disp(std::ostream& os) const;
73
74 friend std::ostream& operator<<(std::ostream& os,
75 const LineSearchSettings& line_search_settings);
76
77};
78
79} // namespace robotoc
80
81#endif // ROBOTOC_LINE_SEARCH_SETTINGS_HPP_
Definition: constraint_component_base.hpp:17
LineSearchMethod
Type of the line search method.
Definition: line_search_settings.hpp:13
Settings for the line search.
Definition: line_search_settings.hpp:22
double min_step_size
Minimum step size.
Definition: line_search_settings.hpp:39
double eps
A small positive value. Used to calculate directional derivative.
Definition: line_search_settings.hpp:67
double armijo_control_rate
Control rate in Armijo condition. This value sets the slope of the linear approximation in the Armijo...
Definition: line_search_settings.hpp:56
double step_size_reduction_rate
Reduction rate of the step size.
Definition: line_search_settings.hpp:34
friend std::ostream & operator<<(std::ostream &os, const LineSearchSettings &line_search_settings)
void disp(std::ostream &os) const
Displays the line search settings onto a ostream.
double margin_rate
Margin rate to determine penalty parameter in the merit function.
Definition: line_search_settings.hpp:62
double filter_constraint_violation_reduction_rate
The reduction rate of the constraint violation in the filter line search method.
Definition: line_search_settings.hpp:50
double filter_cost_reduction_rate
The reduction rate of the cost in the filter line search method.
Definition: line_search_settings.hpp:44
LineSearchMethod line_search_method
If set to LineSearchMethod::Filter, filter method is used as a search scheme. If set to LineSearchMet...
Definition: line_search_settings.hpp:29