| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
In order to give instructions to Dynare, the user has to write a model file whose filename extension must be ‘.mod’. This file contains the description of the model and the computing tasks required by the user. Its contents is described in The Model file.
Once the model file is written, Dynare is invoked using the
dynare command at the MATLAB or Octave prompt (with the filename
of the ‘.mod’ given as argument).
In practice, the handling of the model file is done in two steps: in the
first one, the model and the processing instructions written by the user
in a model file are interpreted and the proper MATLAB or GNU
Octave instructions are generated; in the second step, the program
actually runs the computations. Boths steps are triggered automatically
by the dynare command.
Description
This command launches Dynare and executes the instructions included in ‘FILENAME.mod’. This user-supplied file contains the model and the processing instructions, as described in The Model file.
dynare begins by launching the preprocessor on the ‘.mod’
file. By default (unless use_dll option has been given to
model), the preprocessor creates three intermediary files:
Contains variable declarations, and computing tasks
Contains the dynamic model equations
Contains the long run static model equations
These files may be looked at to understand errors reported at the simulation stage.
dynare will then run the computing tasks by executing ‘FILENAME.m’.
Options
noclearallBy default, dynare will issue a clear all command to
MATLAB or Octave, thereby deleting all workspace variables; this options
instructs dynare not to clear the workspace
debugInstructs the preprocessor to write some debugging information about the scanning and parsing of the ‘.mod’ file
notmptermsInstructs the preprocessor to omit temporary terms in the static and dynamic files; this generally decreases performance, but is used for debugging purposes since it makes the static and dynamic files more readable
savemacro[=FILENAME]Instructs dynare to save the intermediary file which is obtained
after macro-processing (see section Macro-processing language); the saved
output will go in the file specified, or if no file is specified in
‘FILENAME-macroexp.mod’
onlymacroInstructs the preprocessor to only perform the macro-processing step, and stop just after. Mainly useful for debugging purposes or for using the macro-processor independently of the rest of Dynare toolbox.
nolinemacroInstructs the macro-preprocessor to omit line numbering information in
the intermediary ‘.mod’ file created after the maco-processing
step. Useful in conjunction with savemacro when one wants that to
reuse the intermediary ‘.mod’ file, without having it cluttered by
line numbering directives.
warn_uninitDisplay a warning for each variable or parameter which is not initialized. See section Parameter initialization, or load_params_and_steady_state for initialization of parameters. See section Initial and terminal conditions, or load_params_and_steady_state for initialization of endogenous and exogenous variables.
consoleActivate console mode: Dynare will not use graphical waitbars for long computations. Note that this option is only useful under MATLAB, since Octave does not provide graphical waitbar capabilities.
cygwinTells Dynare that your MATLAB is configured for compiling MEX files with
Cygwin (see section Software requirements). This option is only available
under Windows, and is used in conjunction with use_dll.
msvcTells Dynare that your MATLAB is configured for compiling MEX files with
Microsoft Visual C++ (see section Software requirements). This option is
only available under Windows, and is used in conjunction with
use_dll.
parallel[=CLUSTER_NAME]Tells Dynare to perform computations in parallel. If CLUSTER_NAME is passed, Dynare will use the specified cluster to perform parallel computations. Otherwise, Dynare will use the first cluster specified in the configuration file. See section The Configuration File, for more information about the configuration file.
conffile=FILENAMESpecifies the location of the configuration file if it differs from the default. See section The Configuration File, for more information about the configuration file and its default location.
parallel_slave_open_modeInstructs Dynare to leave the connection to the slave node open after computation is complete, closing this connection only when Dynare finishes processing.
parallel_testTests the parallel setup specified in the configuration file without executing the ‘.mod’ file. See section The Configuration File, for more information about the configuration file.
Output
Depending on the computing tasks requested in the ‘.mod’ file,
executing command dynare will leave in the workspace variables
containing results available for further processing. More details are
given under the relevant computing tasks.
The M_, oo_ and options_ structures are also saved
in a file called ‘FILENAME_results.mat’.
Example
dynare ramst dynare ramst.mod savemacro |
The output of Dynare is left into three main variables in the MATLAB/Octave workspace:
Structure containing various informations about the model.
Structure contains the values of the various options used by Dynare during the computation.
Structure containing the various results of the computations.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by Sébastien Villemot on May 24, 2011 using texi2html 1.82.