newrat: properly initialize penalty

covariance-quadratic-approximation
Marco Ratto 2023-12-13 19:40:08 +01:00 committed by Johannes Pfeifer
parent 3ee963c908
commit 8ddd35ddd8
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ end
outer_product_gradient=1;
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{:});
if isempty(dum)
outer_product_gradient=0;