USing Differential Ricatti Equation with final value condition and dynamic equation with initial condition using ode45
조회 수: 4 (최근 30일)
이전 댓글 표시
I want to solve an LQR problem using ode45(or any other matlab differential equation solver).
I have time invariant A,B,Q and R matrix. They are used to yield P(t) by solving differential riccati equation.
Differential Riccati equation has final value condition and I can use ode45 to solve it. This gives us P(t).
The resulting diffrential equation yields u = -R^{-1}B'P(t)x, which is then utilized to solve system dynamic equation using initial value equation.
I know how to solve both of them individually. However, the issue is I am not sure about the time steps in ode45.
Since P(t) solved by ode45 has its own time stamp and I can ensure time stamps by passing time vector.
However, how can I ensure that the time steps are sufficients for ode45 used with system dynamics with initial value condition.
Is there a way to get around this problem.
Thanks
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Computations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!