Commit 2a1889b5 authored by Stéphane Adjemian (Karaba)'s avatar Stéphane Adjemian (Karaba)
Browse files

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).
parent e511f575
......@@ -26,6 +26,8 @@ global bayestopt_ estim_params_ options_ M_ oo_
struct2local(myinputs);
% (re)Set the penalty
bayestopt_.penalty = -Inf;
MhDirectoryName = CheckPath('metropolis');
......
......@@ -26,6 +26,8 @@ global bayestopt_ estim_params_ options_ M_ oo_
struct2local(myinputs);
% (re)Set the penalty
bayestopt_.penalty = -Inf;
MhDirectoryName = CheckPath('metropolis');
......@@ -90,7 +92,7 @@ for b = fblck:nblck,
else
logpost = -inf;
end
if (logpost > -inf) & (log(rand) < logpost-ilogpo2(b))
if (logpost > -inf) && (log(rand) < logpost-ilogpo2(b))
x2(irun,:) = par;
ix2(b,:) = par;
logpo2(irun) = logpost;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment