Commit Graph

65 Commits (cb411e5642ecd6978c86d4ad3dfca15fa840c913)

Author SHA1 Message Date
Houtan Bastani 5c24fea322 preprocessor: allow variables that become state variables in ramsey_policy to be set in histval. closes #1193 2017-09-11 18:14:56 +02:00
Stéphane Adjemian (Charybdis) 7af01dd0a2 Merge branch 'master' into json 2017-06-16 20:03:36 +02:00
Houtan Bastani 5e1cc8d8e5 preprocessor: clean up initval output 2017-05-18 18:02:22 +02:00
Houtan Bastani 7c09ae7f3d preprocessor: remove unused filed histval_present from mod_file_struct 2017-04-03 15:23:01 +02:00
Houtan Bastani 915bea91a1 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 58951045d9 preprocessor: JSON output for statements, #1387 2017-02-20 11:23:10 +01:00
Houtan Bastani 4486df9f8f preprocessor: bug fix for writing of parameter values. Closes #1394 2017-02-13 14:03:44 +01:00
Winant Pablo 96b35ff078 FIX: JSON remove space before symbols + quote values 2017-02-12 16:45:05 +01:00
Houtan Bastani 64642d928c preprocessor: write JSON output. #1387 2017-02-06 17:41:18 +01:00
Houtan Bastani 50ead246b1 preprocessor: add all_values_required option to histval. closes #261 2016-06-02 12:57:11 +02:00
Stéphane Adjemian (Hermes) d3da9eb990 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 2ea7d40fc2 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 fa6a08e8c5 histval: replaced initialization with NaN by zeros 2015-07-23 14:25:18 +02:00
Houtan Bastani 4102e0cc56 Revert "Merge branch 'rmExtraExo'"
This reverts commit 28ffa9c56fd021cc75415aeafc13d3810d1b3132, reversing
changes made to 60b3577a09f3eb9cf3cc590241343b1f0fee8706.

Conflicts:
	preprocessor/Shocks.cc
	preprocessor/SymbolTable.cc
2015-06-09 16:42:51 +02:00
Houtan Bastani 6d727f534e Merge branch 'rmExtraExo' 2015-05-28 12:33:56 +02:00
Houtan Bastani 35cd407f5f preprocessor: add minimal_workspace option to dynare statement, #946 2015-05-28 11:50:39 +02:00
Houtan Bastani 6905456cb3 preprocessor: provide more info in error message 2015-04-16 18:47:31 +02:00
Houtan Bastani 6df3bb785e preprocessor: fix error message for InitParamStatement clone/reindex method 2015-04-09 16:17:47 +02:00
Houtan Bastani bddcc87c6e preprocessor: replace catch all exceptions in catch statements for clone/reindex methods 2015-04-09 16:17:22 +02:00
Houtan Bastani 3deea8367d preprocessor: remove unnecessary cloneAndReindexSymbIds method 2015-04-09 16:14:25 +02:00
Houtan Bastani cb08675696 preprocessor: pointer to symbol_table unnecessary 2015-04-09 16:08:55 +02:00
Houtan Bastani 5cc4ad033f preprocessor: remove spurious print statement 2015-03-10 11:24:20 +01:00
Houtan Bastani 96a5949d9e preprocessor: remove extraneous varexo, update model and statements, #841 2015-03-06 16:44:17 +01:00
Sébastien Villemot e040e4d0d6 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 8c2e9b3c02 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 86c3a2b862 Revert "ms-dsge: remove unnecessary output"
This reverts commit 2568e87b4394961fed1da7d2337d6cae637b4166.
2014-02-24 13:33:48 +01:00
Houtan Bastani fa50201348 ms-dsge: remove unnecessary output 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
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 bbc422cf5a Fix copyright notices 2013-06-12 17:04:46 +02:00
Sébastien Villemot 0474406e3b Revert "Reset oo_.{exo_}steady_state to zero before endval"
This reverts commit cf146ec4e50b83bb17f6890b936d8d89e7ef6664.
2013-05-27 17:31:41 +02:00
Sébastien Villemot 00c4aa9597 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 d8cbb55ee7 all_values_required keyword for initval and endval 2012-11-06 15:45:08 +01:00
Sébastien Villemot 1c98c34724 Amend the workaround for ticket #35, so that shocks+endval+simul can looped over 2012-07-30 17:01:42 +02:00
Houtan Bastani e4916a1d84 preprocessor: display a summary of preprocessor warnings at the end of a Dynare run 2012-01-30 10:44:14 +01:00
Houtan Bastani 4b0f0adcbb bug_fix: add missing ifstream close statement 2012-01-18 14:43:04 +01:00
Sébastien Villemot 8b86760bda Store histval information for endogenous in M_.endo_histval
Really closes: #157
2011-12-28 11:35:22 +01:00
Sébastien Villemot 5ddc0a595b Workaround for ticket #157 2011-02-04 12:38:12 +01:00
Sébastien Villemot 81d85196cb Fix bug in histval with exogenous variables in a stochastic setup 2011-01-13 18:18:57 +01:00
Sébastien Villemot e9474ae9cc Histval: fixed bug for exogenous introduced in previous commit 2010-10-20 14:56:35 +02:00
Sébastien Villemot 615f2ae322 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 2c10d03368 Preprocessor: rename "NodeID" in "expr_t" 2010-09-17 12:13:26 +02:00
Sébastien Villemot c8fdd5d9d1 Preprocessor: uniformize typedef names (with a "_t" suffix) 2010-09-16 19:00:48 +02:00
Michel Juillard 6612ef7a30 Preprocessor: corrected bug on HISTVAL with lags > 1 2010-09-10 11:43:48 +02:00
Houtan Bastani ee9b19fadc DSGE-VAR: support deprecated way of declaring dsge_prior_weight 2010-06-22 10:38:54 +02:00
sebastien 3aa8876538 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 760085d6fe 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 2f1382fab5 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 9595358690 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 a8dec6adf9 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