numerical solution for a problem with closed-form solution
Mostrar comentarios más antiguos
I am trying to solve the following problem numerically: An agnet lives for 10 periods, starts with wealth = 20, there is a constant 3% rate on return on assets, utlity is CRRA with risk aversion coefficient 1.2, intertemporal parameter is 0.9709. I want to get the optinal consumption path. I can solve the problem analitycally and therefore I know the solution is a constant consumption stream of 2.2763. However, I cannot get an accurate solution when solving it numerically with Matlab. IS this the best Matlab can do or am I doing something wrong?
2 comentarios
Walter Roberson
el 1 de Abr. de 2011
If you post what you have done, people could examine it to see if there is anything wrong with the code.
John D'Errico
el 10 de En. de 2023
That you did not get a solution that makes you happy need not be a reflection that MATLAB could not do a better job of solving it, but that you may have written the solution in some inadequate way. MATLAB is just a tool. The workman who blames the tools for poor work may be putting the blame in the wrong place.
Respuestas (0)
Categorías
Más información sobre Common Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!