Fix exit criterion in trust_region.m

Otherwise, error code -3 (Trust region became uselessly small) was accepted as a solved steady state
time-shift
Johannes Pfeifer 2015-09-25 09:11:47 +02:00
parent d7d8af34a0
commit c01352ea3b
1 changed files with 3 additions and 2 deletions

View File

@ -179,8 +179,9 @@ while (niter < maxiter && ~info)
info = 1;
end
end
check = ~info;
if info~=1
check = 1;
end
end