Commit Graph

58 Commits (7dd2dd5e24a343fbeaf3522ea5e535c27d8b9f95)

Author SHA1 Message Date
adjemian 27886047cf * Changed numgrad.m. If fcn(x+h) is not well defined (for instance cost_flag=0 because of BK conditions) we compute the gradient using (fcn(x)-fcn(x-h))/h instead of the original formula (fcn(x+h)-fcn(x))/h.
* Added function numgrad3.m. This new function uses a three point formula to compute the gradient. By default Dynare uses the two point formula. By setting options_.gradient_method=3 Dynare switches to the three point formula. Note that an input argument has been added to csminwel.
* Added automatic detection of needed constant in dsge-var model (may be problematic is some cases)

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1935 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-07 12:58:13 +00:00
michel d0b87d6c32 corrections to optimal policy code required by making M_, options_, oo_ and it_ local
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1914 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-07-02 07:42:50 +00:00
sebastien 75fb140b5c v4 matlab+preprocessor:
* removed global variables from "static" and "dynamic" files (in standard and USE_DLL modes only)
* added extra arguments when those functions are called from M-files


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1859 ac1d8469-bf42-47a9-8791-bf33cf982152
2008-06-06 14:01:02 +00:00
michel 482c5d2c3a v4 osr1: correcting the correction ...
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1324 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-20 13:57:31 +00:00
michel 9c935698a5 v4 osr1: corrected bug in call to dynare_solve
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1323 ac1d8469-bf42-47a9-8791-bf33cf982152
2007-06-20 13:51:53 +00:00
michel 1f56e496b1 v4: corrected osr
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@924 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-09-21 15:48:01 +00:00
michel d56694a3e1 v4 osr: bug corrections
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@848 ac1d8469-bf42-47a9-8791-bf33cf982152
2006-07-31 15:45:12 +00:00
michel 9a9872fd33 dynare_v4 from CVS
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@8 ac1d8469-bf42-47a9-8791-bf33cf982152
2005-02-18 19:54:39 +00:00