A solver for nonlinear, dynamic, stochastic, rational expectations equilibrium models