Commit Graph

1775 Commits (b92b48c58ed16ff47bcc78d9031723d0f81c2fc5)

Author SHA1 Message Date
michel ef26fae773 v4: adding interface for shock decomposition
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2853 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-23 08:31:48 +00:00
ferhat 220a4c7ff6 - deletes useless files (pctimer_h.hh simulate.c and simulate.cc => needs for the no more supported options "compile")
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2852 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-21 16:00:54 +00:00
ferhat 1d9260251d - sparse_dll option works fine with feedback variables
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2851 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-21 15:50:12 +00:00
michel f5920bbc34 v4: correcting bug related to nonstationary variables
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2850 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-21 11:52:35 +00:00
george 486b0d333d More Linux compatible syntax adjustments
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2849 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-17 15:47:06 +00:00
george 426a6c2fcc More Linux compatible Makefiles and syntax adjustments
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2848 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-17 15:41:19 +00:00
michel 4f09fc89f0 v4: update of shock decomposition code
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2847 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-17 05:38:19 +00:00
george 20747649ea Linux Makefiles and some linux syntax adjustments
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2846 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-16 09:59:28 +00:00
michel 9341a9bf54 v4: bug correction in computation of decomp
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2844 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-15 00:28:14 +00:00
george 056d5487da - Extending basic C++ KF with performance boosting algorithm for checking if P is steady within tolerance and performing reduced operations if so;
- added new functions to GeneralMatrix::isDiff* to check if matrices are different within tolerance level
- adjusting test and dll drivers accordingly


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2843 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-14 17:05:48 +00:00
george b7f96a4748 - adding overloaded multInvRight to PLUFact,
- inlining log likelihood and 
- refactoring class constructors from kalman loop


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2842 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-13 18:41:40 +00:00
sebastien a52d38c856 Preprocessor: handle model local variables in blocks_mfs mode of steady command
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2841 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-13 13:44:46 +00:00
sebastien 515be5ad3a Preprocessor: refactor usage of GNU g++ specific features
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2840 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-13 09:13:42 +00:00
sebastien d9aca4bc4e Preprocessor:
* new ExprNode method for computing set of ModelLocalVariables of an expression
* factorized code with collectEndogenous() and collectExogenous() methods


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2839 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-10 16:42:08 +00:00
ferhat 171632be23 - mex_interface in testing subdirectory
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2838 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-10 16:16:00 +00:00
ferhat 08c97bbef7 - Files needed to debug simulate.dll
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2837 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-10 15:40:31 +00:00
ferhat 45c28cadc2 - minor modifications in Reorder_the_recursive_variables prototype
- no function comment in MinimumFeedbackSet.cc
- writeChaineRuleDerivative in DynamicModel.cc instead of ModelTree.cc


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2836 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-10 15:37:51 +00:00
ferhat d2dfda62d6 - Correction of several bugs
- Reduction of the SparseMatrix.cc code

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2835 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-10 15:10:11 +00:00
ferhat d19ccced9a - Complete implementation of feedback variables in dynamic model with sparse option
- Normalization of linear in endogenous variable equations 

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2834 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-10 15:05:09 +00:00
sebastien 4ba6a505db Preprocessor: bugfixes to block_mfs option of steady
* sort recursive variables in topological order in the _static.m file
* collectEndogenous() returs type specific IDs, not symb_id!


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2833 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-10 14:22:40 +00:00
sebastien 1db8b0d277 Homotopy:
* fixed bug with Octave in modes 1 and 3
* enhanced tests


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2832 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-10 13:14:17 +00:00
george d448eb4e71 - adding assignment operator to PLUFact,
- refactoring class constructors from kalman loop and
- tidying up multInvRight in GeneralMatrix


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2831 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-10 11:38:57 +00:00
george 631c4f8794 Added multInvRight function and temporary matrix space for reducing constructor calls to GeneralMatrix
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2830 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-09 17:16:12 +00:00
sebastien e8700bc046 Implemented MATLAB part of the block_mfs option to steady.
(Still need to fix a bug)


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2829 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-09 16:35:07 +00:00
stepan a089e59f3c dynare/trunk::
+ Added a  new option for likinit=2 used to define  the numbers on the
initial diagonal Pstar matrix.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2828 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-09 15:41:11 +00:00
stepan a4d01dc31d dynare/trunk:: (dsge-var)
+ Added support for xls files.
+ Fixed a bug  appearing when the dafa file and the  mod files are not
in the same directory.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2827 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-09 15:03:11 +00:00
george c9d08951bf DsgeLikelihood_hh.m lik calculation compatibility and consistency changes
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2825 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-08 16:38:24 +00:00
george f4c3482acd P convergence likelihood bug fix
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2824 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-08 12:20:21 +00:00
stepan 181b268699 + Do not plot likelihood and posterior density if cost_flag = 0, put a
red bullet on the abscissa instead.
+ Cosmetic changes.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2821 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-08 10:11:38 +00:00
sebastien 5495f0c6c0 Preprocessor, static model handling: added code to output M-file when in block+MFS mode
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2820 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-07 15:58:17 +00:00
george cbefd7ab41 Next stage refactoring of kalman.cpp to use dgemm and dgemv directly and bypass some of re-casting matrix constructors.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2819 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-07 15:42:12 +00:00
sebastien b0f252c2f4 Some restructurings in the preprocessor:
* StaticModel: dropped creation of C file in USE_DLL mode
* StaticModel: added computation of derivatives for block MFS mode
* DynamicModel: catch error codes of mkdir()
* ModelTree: moved "mode" member variable to DynamicModel
* ModFile::writeOutput(): moved manipulations relative to dynamic model file to DynamicModel


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2818 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-07 14:20:48 +00:00
ratto c8966e2452 plot posterior and lik-kernel with the correct sign (i.e. with a maximum shape).
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2817 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-07 12:07:40 +00:00
sebastien 5779737c80 Build system: minor adjustments
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2816 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-06 21:11:11 +00:00
sebastien 4f271781fe Build system:
* updated autoconf tests for MATLAB, to make them work with recent versions of MATLAB
* added autoconf test for Dynare++ source tree
* incorporated these tests in the configure script


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2815 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-06 17:01:12 +00:00
sebastien 27a884f9a1 Build system: adding M4 macros from package m-config 4.0 for testing MATLAB from configure
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2814 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-06 13:57:43 +00:00
stepan 3692d5f99b + Added missing semicolon.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2813 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-06 12:34:57 +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 1cde972d91 Preprocessor: changes to code for chain rule derivation
* fixed a bug in the handling of VariableNode: we now make a copy of the recursive_variables map, instead of modifying that of the caller
* factorized code shared with standard derivation
* various minor cleanups


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2811 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-06 09:34:21 +00:00
michel 05189497a5 changed handling of nonstationary variables:
- oo_.mean, oo_.var, oo_.gamma_y contains all selected variables
- moments of non-stationary variables are set to NaN
options_.Schur_vec_tolerance lowered to 10^-11


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2810 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-04 14:11:51 +00:00
george 80921e4042 Adding kalmanlib.def to avoid some spurious linking errors
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2809 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-03 12:51:30 +00:00
george 9277cb44ff Refactoring kalman.cpp to use dgemm more directly and bypass some of re-casting matrix constructors.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2808 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-03 12:45:55 +00:00
sebastien e9a4e5e18f Workaround for Octave 3.2.0:
In Octave 3.2.0, the which() function doesn't accept filenames, but accepts function names.
This bug will be fixed in Octave 3.2.1, but this workaround solves the issue.


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2807 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-03 10:36:11 +00:00
sebastien 37745150b5 Fixed header of dsge_posterior_kernel.m
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2806 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-03 10:22:22 +00:00
sebastien 4e9b23363a Reorganized the way we deal with functions which exist under only some versions of MATLAB and/or some versions of Octave:
* Created a directory matlab/missing to store them under subdirectories
* Add the needed subdirectories to the path from dynare_config.m
* Moved content of matlab/matlab/ and matlab/octave/ to matlab/missing/*/
* matlab/missing/ordeig/ordeig.m: new name of matlab/my_ordeig
* matlab/missing/ordschur/ordschur.m: fake replacement, displays an error message
* Removed old matlab/matlab/ and matlab/octave/ directories


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2805 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-03 10:20:42 +00:00
sebastien ff54854507 Build system: added missing targets in clean rules
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2804 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-03 08:26:35 +00:00
sebastien 30ba893514 Reference manual: updated synopsis for optim_weights, osr, osr_params, planner_objective, ramsey_policy, dynare_sensitivity, rplot, dynatype, dynasave
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2803 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-02 16:54:19 +00:00
sebastien db382f1f6f Changes to the write_latex_{static,dynamic}_model:
* fixed bug in the dynamic version (was putting time subscripts to parameters)
* changed symbol for multiplication to a space (was a dot)


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2802 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-02 14:51:14 +00:00
sebastien fbff270180 * Added BVAR a la sims examples in Octave testsuite
* Switched BVAR example data to M-file instead of XLS


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2801 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-01 13:23:28 +00:00
sebastien 5b06ad8ae5 Fixed bug with bvar_forecast under Octave (mkdir doesn't have the implicit "-p" option)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2800 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-01 13:17:44 +00:00