|
A sparse MPC solver for walking motion generation.
|
API of the sparse MPC solver. More...
#include <smpc_solver.h>
Public Member Functions | |
| solver_as (const int N, const double gain_position=2000.0, const double gain_velocity=150.0, const double gain_acceleration=0.02, const double gain_jerk=1.0, const double tol=1e-7, const unsigned int max_added_constraints_num=0, const bool constraint_removal_on=true, const bool obj_computation_on=false) | |
| Constructor: initialize an active set method solver. More... | |
| ~solver_as () | |
| void | set_parameters (const double *, const double *, const double, const double *, const double *, const double *, const double *, const double *) |
| These functions are documented in the definition of the base abstract class smpc::solver. More... | |
| void | form_init_fp (const double *, const double *, const state_com &, double *) |
| These functions are documented in the definition of the base abstract class smpc::solver. More... | |
| void | form_init_fp (const double *, const double *, const state_zmp &, double *) |
| These functions are documented in the definition of the base abstract class smpc::solver. More... | |
| void | solve () |
| These functions are documented in the definition of the base abstract class smpc::solver. More... | |
| void | get_next_state (state_com &) const |
| These functions are documented in the definition of the base abstract class smpc::solver. More... | |
| void | get_next_state (state_zmp &) const |
| These functions are documented in the definition of the base abstract class smpc::solver. More... | |
| void | get_state (state_com &, const int) const |
| These functions are documented in the definition of the base abstract class smpc::solver. More... | |
| void | get_state (state_zmp &, const int) const |
| These functions are documented in the definition of the base abstract class smpc::solver. More... | |
| void | get_first_controls (control &) const |
| These functions are documented in the definition of the base abstract class smpc::solver. More... | |
| void | get_controls (control &, const int) const |
| These functions are documented in the definition of the base abstract class smpc::solver. More... | |
Public Member Functions inherited from smpc::solver | |
| virtual | ~solver ()=0 |
| Virtual destructor. More... | |
Public Attributes | |
| unsigned int | added_constraints_num |
| Number of added constraints (the constraints, that were removed are also counted). More... | |
| unsigned int | removed_constraints_num |
| Number of removed constraints. More... | |
| unsigned int | active_set_size |
| The final size of the active set. More... | |
| std::vector< double > | objective_log |
| Contains values of objective function after each iteration, the initial value is also included. More... | |
| qp_as * | qp_sol |
| Internal representation. More... | |
API of the sparse MPC solver.
Definition at line 313 of file smpc_solver.h.
| smpc::solver_as::solver_as | ( | const int | N, |
| const double | gain_position = 2000.0, |
||
| const double | gain_velocity = 150.0, |
||
| const double | gain_acceleration = 0.02, |
||
| const double | gain_jerk = 1.0, |
||
| const double | tol = 1e-7, |
||
| const unsigned int | max_added_constraints_num = 0, |
||
| const bool | constraint_removal_on = true, |
||
| const bool | obj_computation_on = false |
||
| ) |
Constructor: initialize an active set method solver.
| [in] | N | Number of sampling times in a preview window |
| [in] | gain_position | Position gain (Alpha) |
| [in] | gain_velocity | Velocity gain (Beta) |
| [in] | gain_acceleration | Acceleration gain (Gamma) |
| [in] | gain_jerk | Jerk gain (Eta) |
| [in] | tol | tolerance |
| [in] | max_added_constraints_num | limit the number of added constraints (NOT the size of active set), no limit if set to 0. |
| [in] | constraint_removal_on | enable/disable removal of activated constraints. |
| [in] | obj_computation_on | compute and keep values of the objective function |
Definition at line 46 of file smpc_solver.cpp.
| smpc::solver_as::~solver_as | ( | ) |
Definition at line 69 of file smpc_solver.cpp.
|
virtual |
These functions are documented in the definition of the base abstract class smpc::solver.
Implements smpc::solver.
Definition at line 93 of file smpc_solver.cpp.
|
virtual |
These functions are documented in the definition of the base abstract class smpc::solver.
Implements smpc::solver.
Definition at line 106 of file smpc_solver.cpp.
|
virtual |
These functions are documented in the definition of the base abstract class smpc::solver.
Implements smpc::solver.
Definition at line 204 of file smpc_solver.cpp.
|
virtual |
These functions are documented in the definition of the base abstract class smpc::solver.
Implements smpc::solver.
Definition at line 198 of file smpc_solver.cpp.
|
virtual |
These functions are documented in the definition of the base abstract class smpc::solver.
Implements smpc::solver.
Definition at line 166 of file smpc_solver.cpp.
|
virtual |
These functions are documented in the definition of the base abstract class smpc::solver.
Implements smpc::solver.
Definition at line 135 of file smpc_solver.cpp.
|
virtual |
These functions are documented in the definition of the base abstract class smpc::solver.
Implements smpc::solver.
Definition at line 172 of file smpc_solver.cpp.
|
virtual |
These functions are documented in the definition of the base abstract class smpc::solver.
Implements smpc::solver.
Definition at line 141 of file smpc_solver.cpp.
|
virtual |
These functions are documented in the definition of the base abstract class smpc::solver.
Implements smpc::solver.
Definition at line 80 of file smpc_solver.cpp.
|
virtual |
These functions are documented in the definition of the base abstract class smpc::solver.
Implements smpc::solver.
Definition at line 119 of file smpc_solver.cpp.
| unsigned int smpc::solver_as::active_set_size |
The final size of the active set.
Definition at line 394 of file smpc_solver.h.
| unsigned int smpc::solver_as::added_constraints_num |
Number of added constraints (the constraints, that were removed are also counted).
Definition at line 380 of file smpc_solver.h.
| std::vector<double> smpc::solver_as::objective_log |
Contains values of objective function after each iteration, the initial value is also included.
Definition at line 404 of file smpc_solver.h.
| qp_as* smpc::solver_as::qp_sol |
Internal representation.
Definition at line 413 of file smpc_solver.h.
| unsigned int smpc::solver_as::removed_constraints_num |
Number of removed constraints.
Definition at line 387 of file smpc_solver.h.
1.8.15