Page 1 of 1

new help

PostPosted: Sun Oct 23, 2016 6:06 pm
by hamideconomy80
hi

please see the model file that is attachment
the file is the simulation file in dynare
but in this file i have two models that i will run it
in fact i will know can it file run?
if it is possible to run, how changes does it need?
in general
in advance i want to know can i write a program when i run it
at first run in model 1 and show the results then run in model 2 and show the results
thanks a lot

Re: new help

PostPosted: Mon Oct 24, 2016 9:21 am
by jpfeifer
You cannot sensibly have two different models in the same file. You either need to split them into two files are use the macro-processor to select the model to be executed. The proper way to execute two models after each other is to write two mod-files and then call them via a Matlab script.