nmpc_fmpc
|
Optimization variables. More...
#include <FmpcSolver.h>
Public Member Functions | |
Variable (int _horizon_steps=0) | |
Constructor. More... | |
void | reset (double _x, double _u, double _lambda, double _s, double _nu) |
Reset variables. More... | |
bool | containsNaN () const |
Check whether NaN or infinity is containd. More... | |
Public Attributes | |
int | horizon_steps |
Number of steps in horizon. More... | |
std::vector< StateDimVector > | x_list |
Sequence of state (x[0], ..., x[N-1], x[N]) More... | |
std::vector< InputDimVector > | u_list |
Sequence of input (u[0], ..., u[N-1]) More... | |
std::vector< StateDimVector > | lambda_list |
Sequence of Lagrange multipliers of equality constraints (lambda[0], ..., lambda[N-1], lambda[N]) More... | |
std::vector< IneqDimVector > | s_list |
Sequence of slack variables of inequality constraints (s[0], ..., s[N-1]) More... | |
std::vector< IneqDimVector > | nu_list |
Sequence of Lagrange multipliers of inequality constraints (nu[0], ..., nu[N-1]) More... | |
int | print_level = 1 |
Print level (0: no print, 1: print only important, 2: print verbose, 3: print very verbose) More... | |
Optimization variables.
Definition at line 117 of file FmpcSolver.h.
nmpc_fmpc::FmpcSolver< StateDim, InputDim, IneqDim >::Variable::Variable | ( | int | _horizon_steps = 0 | ) |
Constructor.
horizon_steps | number of steps in horizon |
Definition at line 32 of file FmpcSolver.hpp.
bool nmpc_fmpc::FmpcSolver< StateDim, InputDim, IneqDim >::Variable::containsNaN |
Check whether NaN or infinity is containd.
Definition at line 71 of file FmpcSolver.hpp.
void nmpc_fmpc::FmpcSolver< StateDim, InputDim, IneqDim >::Variable::reset | ( | double | _x, |
double | _u, | ||
double | _lambda, | ||
double | _s, | ||
double | _nu | ||
) |
Reset variables.
_x | x |
_u | u |
_lambda | lambda |
_s | s (must be non-negative) |
_nu | nu (must be non-negative) |
Definition at line 42 of file FmpcSolver.hpp.
int nmpc_fmpc::FmpcSolver< StateDim, InputDim, IneqDim >::Variable::horizon_steps |
Number of steps in horizon.
Definition at line 139 of file FmpcSolver.h.
std::vector<StateDimVector> nmpc_fmpc::FmpcSolver< StateDim, InputDim, IneqDim >::Variable::lambda_list |
Sequence of Lagrange multipliers of equality constraints (lambda[0], ..., lambda[N-1], lambda[N])
Definition at line 148 of file FmpcSolver.h.
std::vector<IneqDimVector> nmpc_fmpc::FmpcSolver< StateDim, InputDim, IneqDim >::Variable::nu_list |
Sequence of Lagrange multipliers of inequality constraints (nu[0], ..., nu[N-1])
Definition at line 154 of file FmpcSolver.h.
int nmpc_fmpc::FmpcSolver< StateDim, InputDim, IneqDim >::Variable::print_level = 1 |
Print level (0: no print, 1: print only important, 2: print verbose, 3: print very verbose)
Definition at line 157 of file FmpcSolver.h.
std::vector<IneqDimVector> nmpc_fmpc::FmpcSolver< StateDim, InputDim, IneqDim >::Variable::s_list |
Sequence of slack variables of inequality constraints (s[0], ..., s[N-1])
Definition at line 151 of file FmpcSolver.h.
std::vector<InputDimVector> nmpc_fmpc::FmpcSolver< StateDim, InputDim, IneqDim >::Variable::u_list |
Sequence of input (u[0], ..., u[N-1])
Definition at line 145 of file FmpcSolver.h.
std::vector<StateDimVector> nmpc_fmpc::FmpcSolver< StateDim, InputDim, IneqDim >::Variable::x_list |
Sequence of state (x[0], ..., x[N-1], x[N])
Definition at line 142 of file FmpcSolver.h.