Commit Graph

48 Commits (25121bca4f9c97fed28599e9f9adeba2028e5bd0)

Author SHA1 Message Date
Johannes Pfeifer a28d405f74 Make mh_recover continue at last existing MC file with correct seed 2016-03-16 19:01:59 +01:00
Johannes Pfeifer b4941c02d3 Cosmetic Fixes to Metropolis-Hastings routines
- Adds comments and headers and fixes typos in previous ones
- Make naming in random_walk_metropolis_hastings_core.m more intuitive
2015-04-25 19:28:16 +02:00
Stéphane Adjemian (Karaba) f48566aeae Fixed prior bounds (according to the doc in master branch).
* Second  and  third  positional  arguments  after the  name  of  the
   estimated  parameter   in  the  estimated_params   block  are  only
   considered in the optimization stage (not in the MCMC)

 * Do not  store bounds  in bayestopt_, because  bounds do  not always
   reflect restrictions implied by prior shapes.

 * prior_bounds routine  returns a structure  (with fields lb  and ub)
   instead of a matrix.
2014-10-20 16:18:54 +02:00
Stéphane Adjemian (Charybdis) efcf6bd9c0 Use dseries object in the estimation routines. 2014-06-16 17:41:59 +02:00
Stéphane Adjemian (Scylla) fb487bc87e internals --display-mh-history displays the overall acceptance ratios (ie using all the mcmc draws saved on disk) instead of the current acceptance ratios (ie using the mcmc draws generated by the last estimation command). Graphical and text waitbars display the current acceptance ratios. The current acceptance ratios are saved in the mh-history files. 2013-11-27 11:56:38 +01:00
Stéphane Adjemian (Scylla) c92c5c7fb9 Cosmetic change. Renamed "acceptation rates" as "acceptance ratios". 2013-11-27 11:34:49 +01:00
Stéphane Adjemian (Scylla) d52a0d2c89 Changed the logic for mh-history files (keep track of all the previous estimations if load_mh_file is used). Various bug fixes and cosmetic changes. 2013-11-20 18:03:12 +01:00
Stéphane Adjemian (Charybdis) ddd95361ba Cosmetic changes. Added isoctave function to replace exist('OCTAVE_VERSION'). 2013-11-04 10:54:45 +01:00
Sébastien Villemot 61485ab809 Fix copyright notices 2013-06-12 17:04:46 +02:00
Johannes Pfeifer 27fda91c8c Replace relative by absolute filenames
Closes #329
2013-04-27 16:36:10 +02:00
Johannes Pfeifer 6390830b4d Store MCMC information recorded in record in oo_
Closes issue #315 (https://github.com/DynareTeam/dynare/issues/315)
2013-03-17 22:49:28 +01:00
Michel Juillard c722f53955 fixed bug with options mode_compute=0,mode_file=....
added tests for mode_compute=4 and mode_compute=6. They increase computing time of the
test suite by about 30 minutes.
2012-10-06 16:51:42 +02:00
Johannes Pfeifer 24a5bd4868 Fixed bug where when using mode_compute=0 with a mode-file from mode_compute=6, mh_jscale is not loaded. 2012-09-16 12:10:53 +02:00
Michel Juillard e8f159f66b fixing bugs in previous commit 2012-08-30 12:44:46 +02:00
Michel Juillard 1bac2d34c3 adding a trap to catch the case where the random generator of the
master is not available on the slave
2012-08-30 12:24:05 +02:00
Michel Juillard f77b101d7b fixing bugs in random generator handling code 2012-08-29 22:12:50 +02:00
Michel Juillard 378413ed14 fixing typo in previous commit 2012-08-29 21:02:33 +02:00
Michel Juillard dbdbfdd926 adding set_dynare_random_generator_state() and
get_dynare_random_generator_state(). Use now different seeds for
different Metropolis chains. Fixed handling of random generator state
thourghout the code.
2012-08-29 17:58:54 +02:00
Michel Juillard 7e221e5d31 factoring setting of bayestop_.penalty = Inf in Metropolis 2012-08-05 15:27:14 +02:00
Michel Juillard 7959102d43 removed global and varargin in Metropolis routines 2012-08-05 15:10:21 +02:00
Michel Juillard 7408714ea1 added dname as argument to CheckPath function and changed all calls to
this function. Suppressed use of globals in CheckPath.
2011-12-15 17:35:27 +01:00
Marco Ratto c3b5b65fc3 Further generalization of dyn_waitbar for parallel execution and simplification of _core functions accordingly. 2011-12-13 18:32:57 +01:00
Marco Ratto 47787f6f20 Fixed waitbar message from octave slave (matlab master) 2011-06-24 10:57:25 +02:00
Michel Juillard 96384e630d metropolis: fixing bug (thanks to J. Pfeifer) 2011-06-03 15:23:25 +02:00
Marco Ratto ea57a8dc02 traps for mixed matlab/octave clusters 2011-05-10 10:09:31 +02:00
Houtan Bastani 43479f6ef3 use short-circuit ops (|| and &&) as opposed to (| and &) to avoid warnings in Octave (and save time) 2011-02-10 15:54:23 +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
Marco Ratto bed32115d2 Fixes with screen output for parallel/octave + cosmethics 2011-02-02 14:13:11 +01:00
Marco Ratto b186eb7e84 Fixes for console mode in serial and parallel execution 2010-12-17 09:21:30 +01:00
Michel Juillard e04a07c771 changed variable name to make clear that, for multinormal variables, we are using the Cholesky decomposition of the covariance matrix. 2010-12-11 18:09:01 +01:00
Marco Ratto d8121365dd 1) Renamed options according ti WiKi table;
2) get rid of MasterName and DyMo;
3) more comments;
2010-10-22 11:27:26 +02:00
Stéphane Adjemian (Karaba) 567c5bcb1f Fixed bug in the initialization of the metropolis when mode_compute=6 was previously used (so that we have an optimal mh scale factor)
and option load_mh_file is used. After the (stochastic) optimization, the optimal value of the scale parameter is saved in a mat file.
2010-10-18 14:39:48 +02:00
Marco Ratto 25230060e5 Cosmetic changes plus small bug fixes. 2010-10-08 16:19:03 +02:00
JUILLARD Michel 243006b2d7 metropolis: factorizing computation of covariance of proposal 2010-09-15 08:59:51 +02:00
Stéphane Adjemian (Scylla) 6870010e9a Fixed bug related to the console mode (text waitbar). 2010-09-01 22:12:38 +02:00
Marco Ratto 5d9f6ef756 Fixed priordens needs to be properly initialized in remote, slave sessions. 2010-08-25 13:39:48 +02:00
Stéphane Adjemian (Scylla) be1e0f1b8a Fixed bug for mode_compute=6 in Octave. Added an option to replace waitbar in matlab by
textbar (as in Octave). The user has to set options_.console_mode before the
estimation command. Cosmetic changes in gmhmaxlik (mode_compute=6).
2010-06-25 15:03:04 +02:00
Marco Ratto 839b77d679 1) eliminated us of struct2local;
2) changes to header/comments.
2010-05-31 11:55:25 +02:00
Stéphane Adjemian (Karaba) 227d6f9140 Bug fix. 2010-03-04 16:40:02 +01:00
Stéphane Adjemian (Karaba) 2a1889b508 Set penalty equal to minus infinity in mcmc (so that the probability of discarding vectors of
deep parameters such that the steady state does not exist, does not satisfy BK conditions,...
is one).
2010-03-04 16:15:27 +01: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
ratto e601d7bec1 Still some errors in dsgelikelihood are present that are not trapped: use try catch when evaluating target function;
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3078 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-10-23 12:01:34 +00:00
ratto 6c027cf660 Provisions for OCTAVE.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2743 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-09 10:00:43 +00:00
ratto 111d0b0c2c 1) Full parallel structure passed to fmessage status;
2) unix path  syntax;


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2699 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-27 10:29:23 +00:00
ratto 490fc6a900 Single structure in output
(OutputFileName included in the structure).

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2690 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-27 06:46:47 +00:00
sebastien 6f5d4b3c95 trunk: fixed several copyright headers
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2681 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-19 08:57:07 +00:00
ratto 7243a36938 Parallelized version with main and core routine.
1) Contains a trap such that for unix systems no parallel computation is done, for the moment.
2) _core routine uses and stores independent seeds for each chain;
3) Seeds for each chain are stored in record.
4) when no parallel option is chosen, usual serial functionality is kept.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2676 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-05-15 16:36:51 +00:00