parent
07e29125a2
commit
934901036b
|
@ -146,7 +146,11 @@ while (niter < maxiter && ~info)
|
||||||
delta = 0.5*delta;
|
delta = 0.5*delta;
|
||||||
if (delta <= 1e1*macheps*xn)
|
if (delta <= 1e1*macheps*xn)
|
||||||
% Trust region became uselessly small.
|
% Trust region became uselessly small.
|
||||||
info = -3;
|
if (fn1 <= tolf)
|
||||||
|
info = 1;
|
||||||
|
else
|
||||||
|
info = -3;
|
||||||
|
end
|
||||||
break;
|
break;
|
||||||
end
|
end
|
||||||
elseif (abs (1-ratio) <= 0.1)
|
elseif (abs (1-ratio) <= 0.1)
|
||||||
|
@ -179,8 +183,11 @@ while (niter < maxiter && ~info)
|
||||||
info = 1;
|
info = 1;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if info==1
|
||||||
check = ~info;
|
check = 0;
|
||||||
|
else
|
||||||
|
check = 1;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue