Commit Graph

14000 Commits (47477e152a3575b0108f5845ba76ec2ca3c54330)

Author SHA1 Message Date
michel f67d00cd34 v4 parser: corrected Hessian when declared exogenous variables aren't all present in the model;
add VariableTable::get_dyn_var_nbr()

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1141 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-06 11:29:32 +00:00
michel 20ac65e1fe v4 resol.m: ..._steadystate.m takes prioru\ity even for a linear model
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1140 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-06 11:04:30 +00:00
michel 85a34d8046 v4 resol.m: changed options_.olr in options_.ramsey_policy
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1139 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-06 10:37:22 +00:00
michel 3773ad9cc3 v4 parser: used initializer to initialize ModelTree::eq_nbr
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1138 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-05 19:56:39 +00:00
michel 00a6328877 v4 ramsey_dynamic.m: bug correction
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1137 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-05 19:37:00 +00:00
michel 7d1a90e607 v4 McMCDiagnostics.m: corrected bug with size of tmp
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1136 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-04 22:26:32 +00:00
michel 7793bc700f v4 parser: added initialization of eq_nbr=0 in ModelTree::ModelTree()
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1135 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-04 22:25:39 +00:00
michel 1497fa98f0 v4: added initialization of options_.ramsey_policy
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1134 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-04 17:03:41 +00:00
michel 77cdcce658 v4: adding Ramsey policy to parser;
changes to Ramsey policy Matlab code

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1133 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-04 14:42:27 +00:00
sebastien e3bb760692 v4 parser: made OperatorTable static
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1132 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-01-02 15:43:18 +00:00
michel 6b761cf937 v4 parser: added option mh_revover
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1131 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-26 09:23:01 +00:00
sebastien 637ca0f86e v4 parser DynareFlex/DynareBison: removed unused tokens and other minor cosmetic changes
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1130 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-22 11:42:31 +00:00
rattoma ab42518b2f load_redform=0;
git-svn-id: file:///home/sebastien/dynare/gsa_dyn@7 f1850c17-3b45-254b-b221-fcb05880fee1
2006-12-20 17:02:47 +00:00
adjemian 04879d31f3 MH log file (metropolis.log)
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1129 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-19 17:45:34 +00:00
adjemian 682ef48fdd Allow Dynare to recover a crashed mh.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1128 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-19 11:29:28 +00:00
sebastien 022ddd81ba v4 parser ParsingDriver: reintroduce check for existence of symbol in expressions
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1127 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-18 23:50:18 +00:00
sebastien 5bbd779bab v4 parser:
* added planner_objective statement, which triggers the creation of filename_objective_static.m
* added computing pass
* added the possibility of writing the hessian in static output file



git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1126 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-18 23:28:52 +00:00
sebastien 0f9ed33f7d v4 parser: removed ModelParameters class, and moved its components to the relevant places
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1125 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-18 11:29:10 +00:00
michel 927da0e42a v4: added code for Ramsey policy
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1124 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-17 15:01:20 +00:00
michel d035175627 v4 parser: 'check' is also a computing task
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1123 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-17 14:59:39 +00:00
michel f3c3e6d71d v4 dr1.m: use derivatives w.r. to exogenous variables only for the solution of models with exogenous variables and not for only computing the eigenvalues.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1122 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-16 08:59:09 +00:00
sebastien c445ce3a98 v4 parser:
* added a computing pass
* ModelTree:
  - separated checking pass, computing pass, and output writing
  - reorganized static and dynamic model file output code


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1121 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-15 17:31:31 +00:00
sebastien 73d3e17540 v4 parser:
* added an embryonic checking pass after parsing
* modified the decision of which derivatives to compute:
  - if a simul statement is present, compute the jacobian vs endogenous variables only, and no hessian
  - if a stoch_simul/estimation/olr/osr statement is present, compute the jacobian vs all variables, plus the hessian
  - if the two previous conditions are simultaneously fulfilled, abort with an error
  - if none of these two conditions are fulfilled, abort with an error (nothing to compute)
* fixed a minor bug with the size of the jacobian matrix when computing it only vs endogenous variables


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1120 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-15 11:44:58 +00:00
adjemian 47ae595059 Bug corrections : TeX output, oo_ structure (posterior density), posterior IRF.
Added : Posterior IRFs for BVAR-DSGE, conditional forecasts

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1119 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-15 11:37:24 +00:00
sebastien be18e12a43 v4 parser VariableTable:
* cleaned and simplified the code
* incorporated VariableTable as a private member of DataTree/ModelTree


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1118 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-14 22:19:39 +00:00
sebastien 4f9e8a6e27 v4 parser:
* clearly separated the parsing process from the output writing, using an abstract intermediary representation of the mod file
* created the Statement class, and its derivatives, for that purpose
* fixed bug with "corr" statements in "shocks" blocks (variables indexes given to matlab were incorrect)
* fixed bug with "optim" option of "estimation" (this option was not passed to matlab)
* fixed bug with "dynatype" and "dynasave" (variable list was not passed correctly to matlab)
* fixed bug with "calib" and "calib_var" (they were unusable because of flex misspecification)
* fixed segmentation fault with "estimated_params_bound" and "estimation_params_init"


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1117 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-12 11:54:30 +00:00
michel 9337cdef34 v4 dynare_estimation.m: corrected bug in bayestopt_.restrict_var_list_nonstationary
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1114 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-12-01 20:46:51 +00:00
sebastien 09c165f386 v4 parser: fixed bug related to non-associativity of POWER operator
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1113 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-28 15:14:14 +00:00
sebastien f84feddb02 v4 parser: added missing tokens in DynareFlex.ll; added error message for unrecognized characters; fixed minor bugs in DynareBison.yy
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1112 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-28 14:26:06 +00:00
sebastien 4e324b8410 v4 parser DynareFlex.ll: adding missing pound (#) token; removed catch-all rule
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1111 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-28 13:39:04 +00:00
sebastien d5ac5b1fbd v4 parser: created ModFile class, which is the abstract representation of a mod file; removed all static variables
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1110 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-28 11:56:02 +00:00
rattoma 705bcb1712 demo files
git-svn-id: file:///home/sebastien/dynare/gsa_dyn@6 f1850c17-3b45-254b-b221-fcb05880fee1
2006-11-28 10:31:26 +00:00
ratto 442bf232b0 Fixed when one wants all the runs (no cut).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1109 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-27 14:45:12 +00:00
ratto f19b66c4b2 Parsimonious initialisation of matrices used only in diffuse steps.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1108 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-27 14:44:03 +00:00
ratto 2141998a93 Initialised aK
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1107 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-27 14:38:57 +00:00
ratto c37932d6f8 Shifted order of loops for nblock and files, to easily allow cumulated mean plots.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1106 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-27 14:24:29 +00:00
ratto c9f297ba7f Limit number of iterations to 1200.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1105 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-27 14:10:44 +00:00
ratto 11da7c6eb2 Needs persistent p1 and p2;
global estim_params abd bayestopt_.
Debugged generalised beta prior.
index (i) missing somewhere


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1104 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-27 14:07:57 +00:00
ratto b3bcbf79dc Don't sort MC samples and let Reshape know which type of sample (prior, metropolis, GSA).
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1103 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-27 13:53:53 +00:00
ratto 3ff4c65f6a Added GSA options; ReshapeMatFiles needs to know if it is prior, metropolis, GSA.
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1102 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-27 13:48:23 +00:00
michel 2a63a0f0e8 v4 parser.src: Makefile for cross compilation on Linux with
CROSS_WIN32=yes
	       Uses i586-mingw32msvc-g++


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1100 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-25 20:12:55 +00:00
michel d9e6129dc6 v4 parser.src: Makefile for cross compilaton
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1099 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-25 20:09:29 +00:00
michel f2b1f68e75 v4: prior_analysis, again
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1098 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-25 17:55:02 +00:00
michel de7e3fdfac test
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1097 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-25 09:18:23 +00:00
michel a955e818b1 test
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1096 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-25 09:06:16 +00:00
michel f5d35c9737 v4: new set of graphs in forecast with prior uncertainty
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1095 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-25 08:54:17 +00:00
sebastien 9ff865e84b v4 parser NumericalConstants.{cc,hh}: optimization to avoid multiple IDs for the same constant
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1094 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-23 19:10:41 +00:00
sebastien 56f54de49a v4 parser: removed Objects class; fixed memory leaks associated to parsing
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1093 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-22 19:01:40 +00:00
michel 7375a2c071 test
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1092 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-11-22 12:54:16 +00:00
rattoma 554c3c09ed re-organisation of folders to package separately GSA tools
git-svn-id: file:///home/sebastien/dynare/gsa_dyn@5 f1850c17-3b45-254b-b221-fcb05880fee1
2006-11-22 08:20:49 +00:00