Commit d12e1b78 authored by MichelJuillard's avatar MichelJuillard
Browse files

replaced BayesInfo.penalty by penalty as it is now a persistent variable

parent 412d7d29
......@@ -209,7 +209,7 @@ if EstimatedParameters.ncx
a = diag(eig(Q));
k = find(a < 0);
if k > 0
fval = BayesInfo.penalty+sum(-a(k));
fval = penalty+sum(-a(k));
exit_flag = 0;
info = 43;
return
......@@ -233,7 +233,7 @@ if EstimatedParameters.ncn
a = diag(eig(H));
k = find(a < 0);
if k > 0
fval = BayesInfo.penalty+sum(-a(k));
fval = penalty+sum(-a(k));
exit_flag = 0;
info = 44;
return
......
......@@ -121,7 +121,7 @@ if EstimatedParameters.ncx
a = diag(eig(Q));
k = find(a < 0);
if k > 0
fval = BayesInfo.penalty+sum(-a(k));
fval = penalty+sum(-a(k));
exit_flag = 0;
info = 43;
return
......@@ -145,7 +145,7 @@ if EstimatedParameters.ncn
a = diag(eig(H));
k = find(a < 0);
if k > 0
fval = BayesInfo.penalty+sum(-a(k));
fval = penalty+sum(-a(k));
exit_flag = 0;
info = 44;
return
......
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