From 07e29125a276198f7b507bc53787e152d76dbbab Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 6 Oct 2015 09:52:16 +0200 Subject: [PATCH] Revert "Merge pull request #1064 from JohannesPfeifer/trust_region" This reverts commit 9cc96b93c0fd35914f54761c5f9ab0667ef024cd, reversing changes made to 1bc965625c9294beb4a67f807e2d86c7691f8a8b. --- matlab/trust_region.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/matlab/trust_region.m b/matlab/trust_region.m index 12f7138cc..53f432527 100644 --- a/matlab/trust_region.m +++ b/matlab/trust_region.m @@ -179,9 +179,8 @@ while (niter < maxiter && ~info) info = 1; end end -if info~=1 - check = 1; -end + +check = ~info; end