Heterogeneous agent model

I’m working on a heterogeneous agent problem.I set up a lot of agents whose parameters are different. I want to solve the model under different parameters by changing this parameter in a loop, and then get the decision function of the corresponding agent. How to achieve this through the interaction between MATLAB and Dyanre?

The big question is whether the model can be solved in Dynare. If yes, then it’s a simple matter of doing a loop.

I just want to change the parameters of the model in each loop, and then extract the decision function, and I only need the first order approximation solution.Please tell me how to do it.Thank you very much.


Thank you very much again.