Skip to content

Commit 9e4e9ff

Browse files
update set_residuals
1 parent fd5daa3 commit 9e4e9ff

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/LMTR_alg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,6 @@ function SolverCore.solve!(
506506
end
507507

508508
set_solution!(stats, xk)
509-
set_residuals!(stats, zero(T), sqrt_ξ1_νInv)
509+
set_residuals!(stats, zero(T), min(sqrt_ξ1_νInv, norm_s_cauchydν))
510510
return stats
511511
end

src/LM_alg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,6 @@ function SolverCore.solve!(
497497
end
498498

499499
set_solution!(stats, xk)
500-
set_residuals!(stats, zero(T), sqrt_ξ1_νInv)
500+
set_residuals!(stats, zero(T), min(sqrt_ξ1_νInv, norm_s_cauchydν))
501501
return stats
502502
end

src/R2DH.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,6 @@ function SolverCore.solve!(
483483
end
484484

485485
set_solution!(stats, xk)
486-
set_residuals!(stats, zero(eltype(xk)), sqrt_ξ_νInv)
486+
set_residuals!(stats, zero(eltype(xk)), min(sqrt_ξ_νInv, norm_sdν))
487487
return stats
488488
end

src/R2N.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ function SolverCore.solve!(
536536
end
537537

538538
set_solution!(stats, xk)
539-
set_residuals!(stats, zero(eltype(xk)), sqrt_ξ1_νInv)
539+
set_residuals!(stats, zero(eltype(xk)), min(sqrt_ξ1_νInv, norm_s_cauchydν))
540540
return stats
541541
end
542542

src/R2_alg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,6 @@ function SolverCore.solve!(
544544
end
545545

546546
set_solution!(stats, xk)
547-
set_residuals!(stats, zero(eltype(xk)), sqrt_ξ_νInv)
547+
set_residuals!(stats, zero(eltype(xk)), min(sqrt_ξ_νInv, norm_sdν))
548548
return stats
549549
end

src/TRDH_alg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,6 @@ function SolverCore.solve!(
544544
end
545545

546546
set_solution!(stats, xk)
547-
set_residuals!(stats, zero(eltype(xk)), sqrt_ξ_νInv)
547+
set_residuals!(stats, zero(eltype(xk)), min(sqrt_ξ_νInv, norm_sdν))
548548
return stats
549549
end

src/TR_alg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,5 +548,5 @@ function SolverCore.solve!(
548548
end
549549

550550
set_solution!(stats, xk)
551-
set_residuals!(stats, zero(eltype(xk)), sqrt_ξ1_νInv)
551+
set_residuals!(stats, zero(eltype(xk)), min(sqrt_ξ1_νInv, norm_s_cauchydν))
552552
end

0 commit comments

Comments
 (0)