-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tests] Fix RuntimeWarning in lqcontrol.py #506
Comments
I think this is a divide by zero error. Does it make sense to shift the discount parameter default to something like 0.99? |
Thanks @duncanhobbs When It should be checked here: QuantEcon.py/quantecon/lqcontrol.py Lines 137 to 146 in d9c1e8a
The pair of default values ( QuantEcon.py/quantecon/lqcontrol.py Line 115 in d9c1e8a
@jstac ? |
I'm a bit confused. I think See, e.g., https://en.wikipedia.org/wiki/Linear%E2%80%93quadratic_regulator#Infinite-horizon,_discrete-time_LQR Yet it clearly causes an issue here. I have to think about this when I have a bit of time. |
Perhaps we can't have So first best is that we allow |
@jstac Thanks, And here (in the method QuantEcon.py/quantecon/lqcontrol.py Line 244 in d9c1e8a
if self.beta == 1:
d = 0.
else:
d = self.beta * np.trace(dot(P, dot(C, C.T))) / (1 - self.beta) |
Fixed by #509. |
The text was updated successfully, but these errors were encountered: