In the lecture LQ Control: Foundations, the solution to Exercise 2 includes the following line:
Rf2 = lq_retired.P
Is this correct? Isn't Rf2 supposed to be the terminal value function not the P matrix? The documentation for the `LQ' constructor says:
| Rf : array_like(float), optional(default=None)
| Rf is the final (in a finite horizon model) payoff(or cost)
| matrix that corresponds with the control variable u and is n x
| n. Should be symetric and non-negative definite