Skip to content

Commit 786841c

Browse files
fix logging
1 parent 94c5ec6 commit 786841c

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/R2DH.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ function SolverCore.solve!(
294294
:fx => "f(x)",
295295
:hx => "h(x)",
296296
:xi => "√(ξ/ν)",
297-
:normsdnu => "sₖ‖/ν",
297+
:normsdnu => "s‖/ν",
298298
:normx => "‖x‖",
299299
:norms => "‖s‖",
300300
:arrow => "R2DH",
@@ -479,7 +479,7 @@ function SolverCore.solve!(
479479

480480
if verbose > 0 && stats.status == :first_order
481481
@info log_row(Any[stats.iter, fk, hk, sqrt_ξ_νInv, norm_sdν, ρk, σk, norm(xk), norm_s, ""], colsep = 1)
482-
@info "R2DH: terminating with √(ξ/ν) = $(sqrt_ξ_νInv) and ‖sₖ‖/ν = $(norm_sdν)"
482+
@info "R2DH: terminating with √(ξ/ν) = $(sqrt_ξ_νInv) and ‖s‖/ν = $(norm_sdν)"
483483
end
484484

485485
set_solution!(stats, xk)

src/R2N.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function SolverCore.solve!(
284284
:fx => "f(x)",
285285
:hx => "h(x)",
286286
:xi => "√(ξ1/ν)",
287-
:norms1dnu => "sₖ₁‖/ν",
287+
:norms1dnu => "s₁‖/ν",
288288
:normx => "‖x‖",
289289
:norms => "‖s‖",
290290
:normB => "‖B‖",
@@ -532,7 +532,7 @@ function SolverCore.solve!(
532532
Any[stats.iter, 0, fk, hk, sqrt_ξ1_νInv, norm_s_cauchydν, ρk, σk, norm(xk), norm(s), λmax, ""],
533533
colsep = 1,
534534
)
535-
@info "R2N: terminating with √(ξ1/ν) = $(sqrt_ξ1_νInv) and ‖sₖ₁‖/ν = $(norm_s_cauchydν)"
535+
@info "R2N: terminating with √(ξ1/ν) = $(sqrt_ξ1_νInv) and ‖s₁‖/ν = $(norm_s_cauchydν)"
536536
end
537537

538538
set_solution!(stats, xk)

src/TRDH_alg.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,13 @@ function SolverCore.solve!(
306306

307307
if verbose > 0
308308
@info log_header(
309-
[:iter, :fx, :hx, :xi, , , :normx, :norms, :normD, :arrow],
310-
[Int, T, T, T, T, T, T, T, T, Char],
309+
[:iter, :fx, :hx, :xi, :normsdnu, :ρ, , :normx, :norms, :normD, :arrow],
310+
[Int, T, T, T, T, T, T, T, T, T, Char],
311311
hdr_override = Dict{Symbol, String}( # TODO: Add this as constant dict elsewhere
312312
:fx => "f(x)",
313313
:hx => "h(x)",
314314
:xi => "√(ξ/ν)",
315+
:normsdnu => "‖s‖/ν",
315316
:normx => "‖x‖",
316317
:norms => "‖s‖",
317318
:normD => "‖D‖",
@@ -539,7 +540,7 @@ function SolverCore.solve!(
539540
Any[stats.iter, fk, hk, sqrt_ξ_νInv, norm_sdν, ρk, Δk, χ(xk), sNorm, norm(D.d), ""],
540541
colsep = 1,
541542
)
542-
@info "TRDH: terminating with √(ξ/ν) = $(sqrt_ξ_νInv) and ‖sₖ‖/ν = $(norm_sdν)"
543+
@info "TRDH: terminating with √(ξ/ν) = $(sqrt_ξ_νInv) and ‖s‖/ν = $(norm_sdν)"
543544
end
544545

545546
set_solution!(stats, xk)

src/TR_alg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ function SolverCore.solve!(
544544
Any[stats.iter, solver.substats.iter, fk, hk, sqrt_ξ1_νInv, norm_s_cauchydν, ρk, Δk, χ(xk), χ(s), λmax, ""],
545545
colsep = 1,
546546
)
547-
@info "TR: terminating with √(ξ1/ν) = $(sqrt_ξ1_νInv) and ‖sₖ₁‖/ν = $(norm_s_cauchydν)"
547+
@info "TR: terminating with √(ξ1/ν) = $(sqrt_ξ1_νInv) and ‖s₁‖/ν = $(norm_s_cauchydν)"
548548
end
549549

550550
set_solution!(stats, xk)

0 commit comments

Comments
 (0)