Page 1 of 1

loop to compute and display the values of the objective func

PostPosted: Wed Aug 26, 2015 6:12 pm
by nk178
Hi all,

I understand how we can use the macro-processor in mod files/or matlab files in order to add loops for several parameter values. However, I have noticed that for optimal policy problems, the result for the value of the objective function displayed is the one for the last value that the parameter (that we use the loop) takes.

Is any example available for adding loops to compute and display all the values of the objective function for several parameter immediately?


Best,

Re: loop to compute and display the values of the objective

PostPosted: Mon Aug 31, 2015 8:45 am
by jpfeifer
The answer depends on the type of optimal policy exercise you are trying to conduct. For discretionary_policy, you simply need to loop over stoch_simul.