From 2bc7944286c61e17b38271ff76d6395081781c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Wed, 11 Mar 2020 12:47:23 +0100 Subject: [PATCH] Removed warning. --- matlab/trust_region.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matlab/trust_region.m b/matlab/trust_region.m index 08fb6c9c8..5069a37df 100644 --- a/matlab/trust_region.m +++ b/matlab/trust_region.m @@ -188,7 +188,7 @@ end function x = dogleg (r, b, d, delta) % Get Gauss-Newton direction. -x = r \ b; +x = decomposition(r, 'CheckCondition', false) \ b; xn = norm (d .* x); if (xn > delta) % GN is too big, get scaled gradient. @@ -218,3 +218,4 @@ if (xn > delta) x = alpha * x + ((1-alpha) * min (snm, delta)) * s; end end +