Michel Juillard
e2dd3cb88f
fixing more problems with steady state refactoring
2011-10-13 17:14:41 +02:00
Michel Juillard
ee7078e56c
factoring out steady-state computations; steady_state_model now
...
generates <fname>_steadystate2.m returning parameters as well in case
they have been modified by the user. Added several test cases.
2011-10-12 21:51:14 +02:00
Stéphane Adjemian (Charybdis)
560800bcc5
Changed the order of the output arguments in kronecker product related mex routines.
2011-09-05 18:57:42 +02:00
Michel Juillard
044d19c5d2
fixed bug in detection of near 0/0 eigenvalues
2011-09-04 14:59:48 +02:00
Michel Juillard
3c0ebb4cc5
added error for near 0/0 on diagonal of Real Generalized Schur decomposition (info=7) and corrected error in test for singular w1 submatrix, introduced in Sept. 2010.
2011-09-01 11:37:40 +02:00
Houtan Bastani
d22b86c2d8
clarify error message
2011-08-30 16:11:59 +02:00
Michel Juillard
cee82819f3
changed test for NaN and Inf in Jacobian, changed info error number, changed error message
2011-08-18 22:22:23 +02:00
Michel Juillard
2de9113889
update to ramsey_policy
2011-07-24 20:56:30 +02:00
Michel Juillard
1617b6a410
improving Ramsey policy
2011-06-22 11:31:35 +02:00
Stéphane Adjemian (Gpm)
60c2211ce7
Added error message when options_.qz_criterium is empty.
2011-05-03 12:41:45 +02:00
Michel Juillard
554849a704
modifyimg *.m files for ramsey_policy when FOC are computed by the preprocessor
2011-03-27 16:54:49 +02:00
Ferhat Mihoubi
31b6c08347
Correct a bug when the model contains deterministic exogenous variables and bytecode option is used.
...
Note that stochastic simulations do not work for the moment with block option.
2011-03-18 01:09:20 +01:00
Ferhat Mihoubi
f48aa28e39
Corrections for steady_state operator bug with bytecode. bytecode is now fixed.
2011-03-14 17:46:00 +01:00
Michel Juillard
55bb27c5f6
new correction for steady_state operator bug. Steady_state vector is passed as argument to *_dynamic model function. As a result, bytecode is currently broken.
2011-03-13 17:06:57 +01:00
Sébastien Villemot
02652f6eb8
Updated copyright notices
2011-02-04 17:27:33 +01:00
Sébastien Villemot
757a9067c0
Global reindentation of MATLAB files
2011-02-04 17:17:48 +01:00
Houtan Bastani
85332744d8
Ticket #59 : add cases for errors that were not being caught and convert AIM error codes so that they don't overlap with other error codes in print_info
2011-02-04 15:47:56 +01:00
Michel Juillard
f36247ceed
modifications to ramsey_policy code to allow for estimation
2011-01-26 21:24:47 +01:00
Michel Juillard
91e30d45f7
corrected bug related to ramsey_policy
2011-01-26 21:24:46 +01:00
Ferhat Mihoubi
2707965da1
- extends the compatibility of dr1 with bytecode
2010-12-31 15:56:49 +01:00
Ferhat Mihoubi
b356c5e58e
add_auxiliary_variables_to_steadystate is compatible with bytecode option
...
+ minor corrections in steady_.m
2010-11-25 16:00:54 +01:00
Stéphane Adjemian (Charybdis)
d60c32e6a2
Fixed bug in dealing with _steadystate functions that modify deep parameters. See trac ticket #103 .
2010-11-15 14:35:21 +01:00
Stéphane Adjemian (Charybdis)
5c709e4733
Changed set_dynare_threads.m. The number of threads in parallelized mex files to be used if dynare is built with the openmp flag
...
(--with-openmp) is not passed by an environment variable anymore. The function set_dynare_threads changes the default value of the
number of threads (default is 1) in the options_.threads structure. Changed calls to sparse_hessian_times_B_kronecker_C and
A_times_B_kronecker_C dlls accordingly.
2010-11-15 13:06:39 +01:00
Ferhat Mihoubi
1aceb504fd
Check command is now compatible with block and bytecode options
2010-10-27 15:34:48 +02:00
Sébastien Villemot
609293b398
dr1.m: move up error message for purely forward models, otherwise it is not displayed with k_order_perturbation
2010-10-14 11:36:13 +02:00
Sébastien Villemot
153f627dfe
Explicit error message for 2nd and 3rd order purely forward models
2010-10-13 18:52:13 +02:00
Pablo Winant
45ebd1b3fb
Compatibility fix for Octave. In dr1, line 384, if w1 is a scalar, condest(w1) raises an error in octave. It is equal to 1 in matlab.
2010-09-23 11:33:54 +02:00
Houtan Bastani
982b4d0491
gensylv: remove instances of mexErrMsgTxt
2010-09-23 10:45:27 +02:00
Houtan Bastani
e57056ad14
sparse_hessian_times_B_kronecker_C: remove instances of mexErrMsgTxt
2010-09-23 10:45:18 +02:00
Houtan Bastani
ca24c92ed7
A_times_B_kronecker_C: remove instances of mexErrMsgTxt
2010-09-23 10:45:08 +02:00
Houtan Bastani
7b0d6da920
mjdgges: remove instances of mexErrMsgTxt
2010-09-23 10:44:59 +02:00
Michel Juillard
3d0420d220
corrected bug in dr1 when used for check of eigenvalues in a deterministic setup (simul and not stoch_simul)
2010-07-23 10:52:33 +02:00
Michel Juillard
039611223b
Author: Michel Juillard <michel.juillard@ens.fr>
...
--- log message follows this line ---
ramsey_policy adding printing of steady state value of Lagrange multipliers
2010-06-01 20:35:27 +02:00
Michel Juillard
124a6c5c12
correct bug when <fname>_steadystate.m file changes the value of parameters + display steady state in Ramsey policy
2010-05-29 07:48:00 +02:00
Michel Juillard
7f74639cc1
ramsey_policy: dr1 returns with info(1)=20 and info(2) = resids'*resids if we can't find the steady state under Ramsey policy
2010-05-21 15:57:27 +02:00
michel
2b5e551ad2
trunk: added error message for 2nd or 3rd order approximation of purely backward models (to be merged in 4.1)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3275 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-19 15:37:56 +00:00
sebastien
502e3e1df8
Beautified MATLAB code (Unix newline convention + Emacs indentation), except: AIM, swz, particle
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3250 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 17:17:34 +00:00
michel
9f57f73d74
4.1: shortcircuit simplified code for backward models when order > 1
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3243 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-15 15:07:48 +00:00
michel
28f5c66f5d
4.1: fixing bug in estimating backward models with loglinear option
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3242 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-15 14:12:53 +00:00
michel
0cf6180bb8
4.1: removed commented out code
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3241 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-15 13:33:03 +00:00
sebastien
cf77c3f245
* Fix USE_DLL option at order 2 ( closes #64 )
...
* Added a corresponding test
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3236 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-14 11:06:29 +00:00
michel
74a8acc29c
4.1 adding instruments option to ramsey_policy; ramsey_policy can now use a *_steadystate.m file
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3219 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-10 14:59:32 +00:00
michel
48dad3e37a
4.1: add preprocessor interface for k_order_solver
...
rename use_k_order to k_order_solver in Matlab procedures
fix tests
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3179 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-30 19:54:45 +00:00
michel
a715408698
v4.1: Matlab routines for k_order_perturbation
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3171 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-29 21:01:40 +00:00
sebastien
a2cef7009d
Fixes for ticket #57
...
preprocessor:
* add a field "M_.orig_endo_nbr" containing the nbr of endogenous before adding aux vars
* always provide "M_.aux_vars" (define it to "[]" when there is no aux var)
* rename "M_.aux_vars().orig_endo_index" to "M_.aux_vars().orig_index"
M-files:
* for commands which accept a list of variables (stoch_simul, osr, estimation, dynasave, dynatype, datatomfile), when no variable is given, use only the set of original endogenous (without aux vars) as the default
* when displaying the decision rule, when there is aux vars in the state variables, replace them by their original name (with the right lag)
* in "steady", don't display aux vars
* special exception for ramsey policy: all vars (including aux vars) are displayed, because the system of aux vars from ramsey policy is not compatible with the aux vars from the preprocessor
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3166 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-25 10:22:39 +00:00
sebastien
aa6ff983a9
AIM solver:
...
* added interface in the MOD file, with a new option "aim_solver" to stoch_simul and estimation
* documented the option in the reference manual
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3059 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-20 15:44:56 +00:00
michel
6eba462caa
v4.1: fixing bug in 2nd order approximation when there are no variable appearing in the model at some intermediary lead or lag
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2984 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-09-24 20:06:28 +00:00
sebastien
8c143e29fc
trunk dr1.m: removed workaround for USE_DLL (no longer needed, since USE_DLL is now broken at order 2)
...
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2789 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-25 12:13:42 +00:00
stepan
271b16a879
+ Moved the definition of dr_.qz_criterium from dr1.m to global_initialization.m.
...
+ dr1.m: Removed useless field declarations in dr1.m.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2748 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-09 15:06:21 +00:00
michel
057e9b157a
4.1: renamed functions ramsey_static. -> dyn_ramsey_static_.m
...
ramsey_dynamic. -> dyn_ramsey_dynamic_.m
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2630 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-25 08:42:29 +00:00