I want to run Dynare multiple times as part of an estimation. But the results depend on the parameters value when I call Dynare for the first time.
Attached is an example. Running run1.m and run2.m should give the same answer. But run1.m calls LLR1.mod where eta=0.5 and run2.m calls LLR2.mod where eta=0.3. Afterwards I set eta=0.8 using set_param_value and I call stoch_simul.