Merge pull request #1064 from JohannesPfeifer/trust_region

Fix exit criterion in trust_region.m
time-shift
MichelJuillard 2015-09-25 10:54:19 +02:00
commit 9cc96b93c0
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