Horizon of MPC.
More...
#include <horizon.hpp>
◆ Horizon() [1/2]
Constructs the horizon. If alpha <= 0.0, then the fixed-length Tf is used. If alpha > 0.0, then the time-varying length Tf * (1.0-exp(-alpha * (t-t0))) is used.
- Parameters
-
| [in] | Tf | The parameter of the horizon length. Must be positive. |
| [in] | alpha | The parameter of the time-varying horizon length. Default is 0.0 (i.e., fixed-length horizon). |
| [in] | t0 | The parameter of the time-varying horizon length. Default is 0.0. |
◆ Horizon() [2/2]
| cgmres::Horizon::Horizon |
( |
| ) |
|
|
default |
◆ ~Horizon()
| cgmres::Horizon::~Horizon |
( |
| ) |
|
|
default |
◆ disp()
| void cgmres::Horizon::disp |
( |
std::ostream & |
os | ) |
const |
|
inline |
◆ reset()
Resets the length of the horizon (for time-varying horizon).
- Parameters
-
| [in] | t0 | The parameter of the time-varying horizon length. |
◆ T()
Gets the length of the horizon.
- Parameters
-
| [in] | t | The initial time of the horizon. If this horizon is time-varying (i.e., alpha > 0.0), then this value must not be less than t0. |
◆ operator<<
The documentation for this class was generated from the following file:
- /home/runner/work/autogenu-jupyter/autogenu-jupyter/include/cgmres/horizon.hpp