Skip to content
Snippets Groups Projects
Commit c58183b5 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix typo in trust_region code.

parent f086359a
Branches
Tags
No related merge requests found
......@@ -76,9 +76,9 @@ while (niter < maxiter && ~info)
fvec = fvec(j1);
fjac = fjac(j1,j2);
else
dh = max(abs(x(j2)),gstep(1)*ones(nn,1))*eps^(1/3);
dh = max(abs(x(j2)),gstep(1)*ones(n,1))*eps^(1/3);
for j = 1:nn
for j = 1:n
xdh = x ;
xdh(j2(j)) = xdh(j2(j))+dh(j) ;
t = fcn(xdh,varargin{:});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment