newrat: properly initialize penalty
parent
3ee963c908
commit
8ddd35ddd8
|
@ -93,6 +93,7 @@ end
|
||||||
|
|
||||||
outer_product_gradient=1;
|
outer_product_gradient=1;
|
||||||
if isempty(hh)
|
if isempty(hh)
|
||||||
|
penalty=fval0;
|
||||||
[dum, gg, htol0, igg, hhg, h1, hess_info]=mr_hessian(x,func0,penalty,flagit,htol,hess_info,bounds,prior_std,Save_files,varargin{:});
|
[dum, gg, htol0, igg, hhg, h1, hess_info]=mr_hessian(x,func0,penalty,flagit,htol,hess_info,bounds,prior_std,Save_files,varargin{:});
|
||||||
if isempty(dum)
|
if isempty(dum)
|
||||||
outer_product_gradient=0;
|
outer_product_gradient=0;
|
||||||
|
|
Loading…
Reference in New Issue