QuantEcon / ContinuousDPs.jl

Continuous state dynamic programming
BSD 3-Clause "New" or "Revised" License
13 stars 10 forks source link

Fail to obtain True solution. #24

Open tokuma09 opened 5 years ago

tokuma09 commented 5 years ago

I'm testing this package by computing optimal growth model with productivity shocks.

However, the result by using ContinuousDPs.jl is different from true solution, if I correctly use this package.

Model settings and my implimentation is here. In this example, I use PFI but VFI also fails to obtain true solution.

This package may have some bugs in solve method.

oyamad commented 5 years ago

@tokupooh Thanks. Will you write your Bellman equation in the notebook?

tokuma09 commented 5 years ago

Sure. I add Bellman equation in the notebook. We can access my updated notebook by above link.

In addition, I recognize some difference between this package and algorithm in Judd(1998), however, this may not be related with this problem.

In this package, we check the convergence of polynomial coefficients to stop iteration. On the other hand, Judd proposed we need to check the convergence of approximated value function to stop iteration.

Doesn't this matter ?

oyamad commented 5 years ago