Sébastien Villemot
7a3ff5b7fc
Merge pull request #636 from JohannesPfeifer/preprocessor
...
Fix comments in header of dynamic and static files
2014-03-17 15:10:31 +01:00
Johannes Pfeifer
892b565fc8
Fix comments in header of dynamic and static files
...
Columns and rows were confused
2014-03-14 10:21:42 +01:00
Sébastien Villemot
bd2405e292
Fix crash when the model contains 1st or 2nd ext fcn deriv nodes.
...
In the case where the external function computes itself its derivatives, the
TEF terms were not always created before being used, hence leading to a
preprocessor crash. This problem could only happen with ramsey_policy, because
otherwise the model does not contain derivatives of external functions.
2014-03-13 12:27:13 +01:00
Sébastien Villemot
8882f809c3
Introduce a new abstract class for external function nodes.
...
This fixes the following bugs:
- 1st and 2nd ext fcn deriv nodes were incorrectly added to
DataTree::external_function_node_map, because of the chaining of
constructors.
- the following methods of FirstDerivExternalFunctionNode were not overloaded:
toStatic(), buildSimilarExternalFunctionNode()
- the following methods of SecondDerivExternalFunctionNode were not overloaded:
toStatic(), buildSimilarExternalFunctionNode(), compile(),
compileExternalFunctionOutput()
2014-03-13 12:12:17 +01:00
Sébastien Villemot
ca7fe60252
Cosmetic renaming for consistency between DataTree method names.
2014-03-11 18:56:48 +01:00
Sébastien Villemot
140db861d5
Implement cloneDynamic() for {First,Second}DerivExternalFunction.
...
Since the method was not implement, the method of the parent class was used.
This was leading to wrong results in the context of Ramsey Policy (basically
derivative operators on external functions were dropped from FOCs).
2014-03-11 18:56:48 +01:00
Sébastien Villemot
0612bca00f
Remove spurious test.
2014-03-11 18:56:48 +01:00
Sébastien Villemot
380df90748
Fix output of external functions (and their derivatives) in LaTeX.
2014-03-11 15:31:08 +01:00
Michel Juillard
8d042b8121
finishing ramsey_model implementation
2014-03-09 12:15:32 +01:00
Michel Juillard
6364e74a3e
adding ramsey_model to ComputingTasks
2014-03-09 12:15:32 +01:00
Michel Juillard
bb67c63599
adding ramsey_model to ParsingDriver
2014-03-09 12:15:32 +01:00
Michel Juillard
46bcfea9e5
adding ramsey_model to Dynare grammar
2014-03-09 12:15:32 +01:00
Johannes Pfeifer
d43a2bce09
Add option mh_conf_sig
...
Fixes #598
2014-03-06 10:06:55 +01:00
Sébastien Villemot
c2cec94af8
Verify types of the symbols in estimated_params{,_init,_bounds} statements.
...
Closes #624
2014-02-28 18:01:03 +01:00
Sébastien Villemot
2ab9614fad
steady_state_model: fix bug introduced in 8fddca92
...
- don't emit warnings if the steady_state_model block is not used
- the ramsey_policy check is spurious, there is another one deeper
2014-02-25 17:58:25 +01:00
Sébastien Villemot
b1d7f8f223
Fix bug in external functions introduced in 711a4f62.
2014-02-25 16:45:55 +01:00
Sébastien Villemot
9a0dddef31
Rename OutputType to FileOutputType (to distinguish it from ExprOutputType).
...
Also rename DynareOutput.hh to FileOutputType.hh. Include the latter in dist
tarball, and add copyright/license header.
2014-02-25 16:45:55 +01:00
Sébastien Villemot
d9f78ae336
Remove obsolete files.
2014-02-25 16:45:55 +01:00
Houtan Bastani
90d0bafac9
preprocessor: include avDiffForward in switch statement to supress clang warning
2014-02-25 11:32:01 +01:00
Sébastien Villemot
cb9d603edc
Add a warning if some endogenous is not present in steady_state_model block.
...
Closes #556
2014-02-24 17:27:35 +01:00
Sébastien Villemot
eaf02155cb
Remove some limitations of steady state model:
...
- allow recursive definitions (Closes #554 )
- allow a variable to be defined twice, simply emit a warning (Ref #556 )
2014-02-24 17:27:34 +01:00
Sébastien Villemot
dab2dde8af
Small improvements to external functions code.
2014-02-24 17:27:34 +01:00
Michel Juillard
3d11273a61
extended-preprocessor: update test example1
2014-02-24 13:33:48 +01:00
Michel Juillard
416b7b849f
extended-preprocessor: adding back writing of model local variables (#)
2014-02-24 13:33:48 +01:00
Michel Juillard
6bee53c658
extended_preprocessor: fixed computation of steady state out of
...
steady_state_model
2014-02-24 13:33:48 +01:00
Michel Juillard
1cfaddcd44
extended_preprocessor: renaming files/class and bug fixing
2014-02-24 13:33:48 +01:00
Michel Juillard
86c3a2b862
Revert "ms-dsge: remove unnecessary output"
...
This reverts commit 2568e87b4394961fed1da7d2337d6cae637b4166.
2014-02-24 13:33:48 +01:00
Michel Juillard
17d0177276
returning sparse matrix in compressed format
2014-02-24 13:33:48 +01:00
Michel Juillard
6e0ef026ac
write C++ version of model functions without temporary terms
2014-02-24 13:33:48 +01:00
Michel Juillard
71824b3d4c
extended-preprocessor: finished removing c_driver mechanism
2014-02-24 13:27:14 +01:00
Michel Juillard
2e7afdb22b
extended-preprocessor: adding line options output= and cuda; starting
...
to change ModFile::c_driver mechanism
2014-02-24 13:27:14 +01:00
Houtan Bastani
96513df4bf
rebase fixes
2014-02-24 12:41:02 +01:00
Houtan Bastani
0e469dc6e8
pretty end to dynare processing
2014-02-24 12:41:02 +01:00
Houtan Bastani
109045a97b
ms-dsge: add options statement
...
Conflicts:
preprocessor/ComputingTasks.cc
preprocessor/ComputingTasks.hh
preprocessor/ParsingDriver.cc
2014-02-24 12:41:02 +01:00
Houtan Bastani
1424f34eed
ms-dsge: write C output
...
Conflicts:
preprocessor/ComputingTasks.cc
preprocessor/ComputingTasks.hh
2014-02-24 12:41:02 +01:00
Houtan Bastani
fa50201348
ms-dsge: remove unnecessary output
2014-02-24 12:41:02 +01:00
Houtan Bastani
8a50eee858
ms-dsge: change types of output for better packaging
2014-02-24 12:41:02 +01:00
Houtan Bastani
bc27f79d06
ms-dsge: aesthetic fix
2014-02-24 12:41:02 +01:00
Houtan Bastani
e1cebde83a
ms-dsge: add param initialization to C output
2014-02-24 12:41:02 +01:00
Houtan Bastani
053ee41ac0
ms-dsge: create C driver file without statements
...
Conflicts:
preprocessor/DynareMain2.cc
preprocessor/ModFile.cc
preprocessor/ModFile.hh
preprocessor/Statement.hh
2014-02-24 12:41:02 +01:00
Houtan Bastani
516491941d
ms-dsge: add number_of_lags and parameters option to front end
2014-02-24 12:37:18 +01:00
Sébastien Villemot
dea58be558
Fix size of M_.endo_histval.
...
Should fix crashes on models with leads/lags of more than one on exogenous.
Closes #617
2014-02-17 17:52:37 +01:00
Sébastien Villemot
58d71bb44e
Implement syntaxes for moment_calibration and irf_calibration.
...
Ref #267
2014-02-10 19:23:06 +01:00
Sébastien Villemot
9e962e7a93
Add new options consider_all_endogenous and consider_only_observed.
...
Closes #336
2014-02-04 14:49:06 +01:00
Sébastien Villemot
9624478766
Exit gracefully if an external function name is used as a model local variable.
...
Closes #599
2014-02-03 16:23:29 +01:00
Stéphane Adjemian (Scylla)
1ae4bebf5e
Added logdata option. Closes #600 .
2014-01-31 11:27:36 +01:00
Sébastien Villemot
47a8fd0147
Add line numbers of equations in preprocessor error messages.
...
Closes #584
2014-01-27 16:41:43 +01:00
Houtan Bastani
4d2f91813b
build system: replace hard-coded flex include dir with that found by autoconf, #575
2014-01-13 11:35:13 -05:00
Sébastien Villemot
314f9ccb0d
It's bison 2.5 that's actually required now.
2014-01-13 14:56:56 +01:00
Sébastien Villemot
12b9d6d8b9
Remove more remnants from old deterministic conditional forecast syntax.
2014-01-03 12:09:39 +01:00