Commit Graph

64 Commits (74ed99c6cac1df5456f197cea88ca054353c59f1)

Author SHA1 Message Date
Stéphane Adjemian (Charybdis) 119b5a62f2 Merge branch 'master' into json 2017-06-16 20:03:36 +02:00
Houtan Bastani 95da783110 preprocessor: clean up initval output 2017-05-18 18:02:22 +02:00
Houtan Bastani 052d62e150 preprocessor: remove unused filed histval_present from mod_file_struct 2017-04-03 15:23:01 +02:00
Houtan Bastani a4171ad4ab preprocessor: output JSON after different steps, write static, dynamic, params derivs files in JSON. #1387 2017-02-24 17:43:22 +01:00
Houtan Bastani 1007ea1301 preprocessor: JSON output for statements, #1387 2017-02-20 11:23:10 +01:00
Houtan Bastani 181ffd65c5 preprocessor: bug fix for writing of parameter values. Closes #1394 2017-02-13 14:03:44 +01:00
Winant Pablo 8ee9d081e8 FIX: JSON remove space before symbols + quote values 2017-02-12 16:45:05 +01:00
Houtan Bastani d05dd34d30 preprocessor: write JSON output. #1387 2017-02-06 17:41:18 +01:00
Houtan Bastani ea4ec224e1 preprocessor: add all_values_required option to histval. closes #261 2016-06-02 12:57:11 +02:00
Stéphane Adjemian (Hermes) 0398832e4f Assign parameter values in main julia module.
See PR #1102 by spencerlyon2.

Added support for filling in the model.params Vector.
2016-05-23 13:48:19 +02:00
Michel Juillard 7d11ed7642 histval: use now the same treatment for exogenous and exogenous det
variables as for endogenous ones. Closes issue #617.
2015-07-29 16:12:53 +02:00
Michel Juillard b8194f7845 histval: replaced initialization with NaN by zeros 2015-07-23 14:25:18 +02:00
Houtan Bastani 383a852c9c Revert "Merge branch 'rmExtraExo'"
This reverts commit 28ffa9c56f, reversing
changes made to 60b3577a09.

Conflicts:
	preprocessor/Shocks.cc
	preprocessor/SymbolTable.cc
2015-06-09 16:42:51 +02:00
Houtan Bastani 28ffa9c56f Merge branch 'rmExtraExo' 2015-05-28 12:33:56 +02:00
Houtan Bastani fe8750c1bc preprocessor: add minimal_workspace option to dynare statement, #946 2015-05-28 11:50:39 +02:00
Houtan Bastani acb6f70a29 preprocessor: provide more info in error message 2015-04-16 18:47:31 +02:00
Houtan Bastani a8888f4c70 preprocessor: fix error message for InitParamStatement clone/reindex method 2015-04-09 16:17:47 +02:00
Houtan Bastani c71d1e77a9 preprocessor: replace catch all exceptions in catch statements for clone/reindex methods 2015-04-09 16:17:22 +02:00
Houtan Bastani 1f58e0cc64 preprocessor: remove unnecessary cloneAndReindexSymbIds method 2015-04-09 16:14:25 +02:00
Houtan Bastani 4d8e0c7f3b preprocessor: pointer to symbol_table unnecessary 2015-04-09 16:08:55 +02:00
Houtan Bastani 9443157a66 preprocessor: remove spurious print statement 2015-03-10 11:24:20 +01:00
Houtan Bastani 6c937b1554 preprocessor: remove extraneous varexo, update model and statements, #841 2015-03-06 16:44:17 +01:00
Sébastien Villemot a03bc44d45 Remove workaround preventing the use of "shocks" before "endval".
It now works correctly since 82b31156.

Closes #35
2014-04-08 17:53:10 +02:00
Sébastien Villemot 9eebfc87b0 Improvements to smoother2histval (ref #594)
- fix handling of auxiliary variables related to lagged endogenous
- add preprocessor interface
- add histval_file
- add tests (for smoother2histval with outfile, and for histval_file)
2014-04-03 15:05:20 +02:00
Michel Juillard 98a7d67478 Revert "ms-dsge: remove unnecessary output"
This reverts commit 2568e87b4394961fed1da7d2337d6cae637b4166.
2014-02-24 13:33:48 +01:00
Houtan Bastani 14fbc49c9b ms-dsge: remove unnecessary output 2014-02-24 12:41:02 +01:00
Houtan Bastani 0c5966d487 ms-dsge: add param initialization to C output 2014-02-24 12:41:02 +01:00
Sébastien Villemot 9ba5814c2c 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 61485ab809 Fix copyright notices 2013-06-12 17:04:46 +02:00
Sébastien Villemot 9ba5ffd68e Revert "Reset oo_.{exo_}steady_state to zero before endval"
This reverts commit cf146ec4e5.
2013-05-27 17:31:41 +02:00
Sébastien Villemot cf146ec4e5 Reset oo_.{exo_}steady_state to zero before endval
This is necessary to enforce the documented behavior which says that, if a
variable is not given a value in the endval block, a zero value is assumed.
2013-04-22 18:02:32 +02:00
Houtan Bastani 3530417cf2 all_values_required keyword for initval and endval 2012-11-06 15:45:08 +01:00
Sébastien Villemot 5657dc8228 Amend the workaround for ticket #35, so that shocks+endval+simul can looped over 2012-07-30 17:01:42 +02:00
Houtan Bastani 0ca000cdc9 preprocessor: display a summary of preprocessor warnings at the end of a Dynare run 2012-01-30 10:44:14 +01:00
Houtan Bastani 58a03937ec bug_fix: add missing ifstream close statement 2012-01-18 14:43:04 +01:00
Sébastien Villemot 30cbcdbb55 Store histval information for endogenous in M_.endo_histval
Really closes: #157
2011-12-28 11:35:22 +01:00
Sébastien Villemot 551db4a446 Workaround for ticket #157 2011-02-04 12:38:12 +01:00
Sébastien Villemot 6f93b18802 Fix bug in histval with exogenous variables in a stochastic setup 2011-01-13 18:18:57 +01:00
Sébastien Villemot 57a2e33828 Histval: fixed bug for exogenous introduced in previous commit 2010-10-20 14:56:35 +02:00
Sébastien Villemot 4a252d8d7c Histval block:
- fail when user tries to initialize a variable at a period which is not in the model, and make the error message explicit
- correctly handle exogenous variables in stochastic mode, which are also substituted with an aux var
- added test files
2010-10-20 14:47:03 +02:00
Sébastien Villemot dbc9795a08 Preprocessor: rename "NodeID" in "expr_t" 2010-09-17 12:13:26 +02:00
Sébastien Villemot 25cf12f4f1 Preprocessor: uniformize typedef names (with a "_t" suffix) 2010-09-16 19:00:48 +02:00
Michel Juillard a5b5f39987 Preprocessor: corrected bug on HISTVAL with lags > 1 2010-09-10 11:43:48 +02:00
Houtan Bastani bab490fc7f DSGE-VAR: support deprecated way of declaring dsge_prior_weight 2010-06-22 10:38:54 +02:00
sebastien e6f1a53e60 Beautified preprocessor code (uncrustify + emacs + manual adjustments, in particular with templates in MacroValue)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3249 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 17:13:23 +00:00
sebastien ffd9b2d405 preprocessor: clean-up workaround for acosh(), asinh(), atanh() on Win 64 platforms
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3101 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-29 17:16:10 +00:00
sebastien 97cb944831 preprocessor:
* In stochastic mode, now transforms the model by removing leads and lags greater or equal to 2 (creating auxiliary variables and equations in the process)
* Information about these variables is in structure M_.aux_vars
* Automatically add the necessary initialization for auxiliary vars after the initval block or load_params_and_steady_state


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3002 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-30 15:10:31 +00:00
sebastien 479f3340f7 Preprocessor: various minor changes, including
* moved some declarations from ExprNode.hh to BlockTriangular.hh to which they conceptually belong
* replaced non standard boolean operators (and, or, not) by standard ones (&&, ||, !)


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2812 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-06 10:36:36 +00:00
sebastien cbbaf112e3 trunk preprocessor: fixed bug when loading non-existent steady-state file
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2753 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-10 14:45:41 +00:00
sebastien d55470ca88 trunk preprocessor: cosmetic changes
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2614 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-20 15:54:19 +00:00