Since it is the dominant paradigm of the business cycle and growth literatures, the stochastic growth model has been used to test the performance of alternative numerical methods. This paper applies the finite element method to this example. I show that the method is easy to apply and, for examples such as the stochastic growth method, gives accurate solutions within a second or two on a desktop computer. I also show how inequality constraints can be handled by redefining the optimization problem with penalty functions.
Published in: _Journal of Economic Dynamics and Control_ (Vol 20, Num 1-3, March 1996, pp. 19-42) https://doi.org/10.1016/0165-1889(94)00842-0.
[M-files and Ftools](https://researchdatabase.minneapolisfed.org/concern/datasets/765371353?locale=en)