Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/LMTR_alg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ function LMTR(
set_residuals!(stats, zero(eltype(xk)), ξ1 ≥ 0 ? sqrt(ξ1) : ξ1)
set_iter!(stats, k)
set_time!(stats, elapsed_time)
set_solver_specific!(stats, :radius, Δk)
set_solver_specific!(stats, :Fhist, Fobj_hist[1:k])
set_solver_specific!(stats, :Hhist, Hobj_hist[1:k])
set_solver_specific!(stats, :NonSmooth, h)
Expand Down
1 change: 1 addition & 0 deletions src/LM_alg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ function LM(
set_residuals!(stats, zero(eltype(xk)), ξ1 ≥ 0 ? sqrt_ξ1_νInv : ξ1)
set_iter!(stats, k)
set_time!(stats, elapsed_time)
set_solver_specific!(stats, :sigma, σk)
set_solver_specific!(stats, :Fhist, Fobj_hist[1:k])
set_solver_specific!(stats, :Hhist, Hobj_hist[1:k])
set_solver_specific!(stats, :NonSmooth, h)
Expand Down
2 changes: 2 additions & 0 deletions src/R2DH.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function R2DH(
set_residuals!(stats, zero(eltype(xk)), sqrt_ξ_νInv)
set_iter!(stats, k)
set_time!(stats, outdict[:elapsed_time])
set_solver_specific!(stats, :sigma, outdict[:sigma])
set_solver_specific!(stats, :Fhist, outdict[:Fhist])
set_solver_specific!(stats, :Hhist, outdict[:Hhist])
set_solver_specific!(stats, :Time_hist, outdict[:Time_hist])
Expand Down Expand Up @@ -313,6 +314,7 @@ function R2DH(
:hk => hk,
:sqrt_ξ_νInv => sqrt_ξ_νInv,
:elapsed_time => elapsed_time,
:sigma => σk
)

return xk, k, outdict
Expand Down
1 change: 1 addition & 0 deletions src/R2N.jl
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ function R2N(
set_residuals!(stats, zero(eltype(xk)), sqrt_ξ1_νInv)
set_iter!(stats, k)
set_time!(stats, elapsed_time)
set_solver_specific!(stats, :sigma, σk)
set_solver_specific!(stats, :Fhist, Fobj_hist[1:k])
set_solver_specific!(stats, :Hhist, Hobj_hist[1:k])
set_solver_specific!(stats, :NonSmooth, h)
Expand Down
2 changes: 2 additions & 0 deletions src/R2_alg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ function SolverCore.solve!(
set_objective!(stats, fk + hk)
set_solver_specific!(stats, :smooth_obj, fk)
set_solver_specific!(stats, :nonsmooth_obj, hk)
set_solver_specific!(stats, :sigma, σk)

φk(d) = dot(∇fk, d)
mk(d)::T = φk(d) + ψ(d)::T
Expand Down Expand Up @@ -498,6 +499,7 @@ function SolverCore.solve!(
set_objective!(stats, fk + hk)
set_solver_specific!(stats, :smooth_obj, fk)
set_solver_specific!(stats, :nonsmooth_obj, hk)
set_solver_specific!(stats, :sigma, σk)
set_iter!(stats, stats.iter + 1)
set_time!(stats, time() - start_time)

Expand Down
2 changes: 2 additions & 0 deletions src/TRDH_alg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function TRDH(
set_residuals!(stats, zero(eltype(xk)), sqrt_ξ_νInv)
set_iter!(stats, k)
set_time!(stats, outdict[:elapsed_time])
set_solver_specific!(stats, :radius, outdict[:radius])
set_solver_specific!(stats, :Fhist, outdict[:Fhist])
set_solver_specific!(stats, :Hhist, outdict[:Hhist])
set_solver_specific!(stats, :NonSmooth, outdict[:NonSmooth])
Expand Down Expand Up @@ -362,6 +363,7 @@ function TRDH(
:hk => hk,
:sqrt_ξ_νInv => sqrt_ξ_νInv,
:elapsed_time => elapsed_time,
:radius => Δk,
)

return xk, k, outdict
Expand Down
1 change: 1 addition & 0 deletions src/TR_alg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ function TR(
set_residuals!(stats, zero(eltype(xk)), sqrt_ξ1_νInv)
set_iter!(stats, k)
set_time!(stats, elapsed_time)
set_solver_specific!(stats, :radius, Δk)
set_solver_specific!(stats, :Fhist, Fobj_hist[1:k])
set_solver_specific!(stats, :Hhist, Hobj_hist[1:k])
set_solver_specific!(stats, :NonSmooth, h)
Expand Down
2 changes: 2 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,7 @@ function RegularizedExecutionStats(reg_nlp::AbstractRegularizedNLPModel{T, V}) w
stats = GenericExecutionStats(reg_nlp.model, solver_specific = Dict{Symbol, T}())
set_solver_specific!(stats, :smooth_obj, T(Inf))
set_solver_specific!(stats, :nonsmooth_obj, T(Inf))
set_solver_specific!(stats, :sigma, T(Inf))
set_solver_specific!(stats, :radius, T(Inf))
return stats
end
Loading