From d67f1ecdb1d1e48509fcaae3aa1529acf14f7916 Mon Sep 17 00:00:00 2001 From: stepan Date: Fri, 5 Jun 2009 10:25:45 +0000 Subject: [PATCH] + Added comments. + Cosmetic changes. git-svn-id: https://www.dynare.org/svn/dynare/trunk@2725 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/get_prior_info.m | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/matlab/get_prior_info.m b/matlab/get_prior_info.m index 2bcc30c3e..f64077858 100644 --- a/matlab/get_prior_info.m +++ b/matlab/get_prior_info.m @@ -107,14 +107,13 @@ function get_prior_info(info) end if info==2% Prior optimization. - + % Initialize to the prior mode if possible k = find(~isnan(bayestopt_.p5)); xparam1(k) = bayestopt_.p5(k); - + % Pertubation of the initial condition. look_for_admissible_initial_condition = 1; scale = 1.0; iter = 0; - while look_for_admissible_initial_condition xinit = xparam1+scale*randn(size(xparam1)); if all(xinit>bayestopt_.p3) && all(xinit