From 227d6f9140c5463658649cc030b9466e4b4629ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Karaba=29?= Date: Thu, 4 Mar 2010 16:40:02 +0100 Subject: [PATCH] Bug fix. --- matlab/independent_metropolis_hastings_core.m | 2 +- matlab/random_walk_metropolis_hastings_core.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/independent_metropolis_hastings_core.m b/matlab/independent_metropolis_hastings_core.m index 22bd89e4e..05abefeb1 100644 --- a/matlab/independent_metropolis_hastings_core.m +++ b/matlab/independent_metropolis_hastings_core.m @@ -27,7 +27,7 @@ global bayestopt_ estim_params_ options_ M_ oo_ struct2local(myinputs); % (re)Set the penalty -bayestopt_.penalty = -Inf; +bayestopt_.penalty = Inf; MhDirectoryName = CheckPath('metropolis'); diff --git a/matlab/random_walk_metropolis_hastings_core.m b/matlab/random_walk_metropolis_hastings_core.m index 419ff3a7b..840bbc028 100644 --- a/matlab/random_walk_metropolis_hastings_core.m +++ b/matlab/random_walk_metropolis_hastings_core.m @@ -27,7 +27,7 @@ global bayestopt_ estim_params_ options_ M_ oo_ struct2local(myinputs); % (re)Set the penalty -bayestopt_.penalty = -Inf; +bayestopt_.penalty = Inf; MhDirectoryName = CheckPath('metropolis');