From 910ef8cbaf18a3dbab82cc4a11126a21798d6362 Mon Sep 17 00:00:00 2001 From: MohamedLaghdafHABIBOULLAH Date: Mon, 21 Oct 2024 13:16:09 -0400 Subject: [PATCH] Remove the changes in R2_alg.jl --- src/R2_alg.jl | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/R2_alg.jl b/src/R2_alg.jl index f97c756d..89d1918e 100644 --- a/src/R2_alg.jl +++ b/src/R2_alg.jl @@ -21,7 +21,6 @@ mutable struct R2Solver{ Fobj_hist::Vector{R} Hobj_hist::Vector{R} Complex_hist::Vector{Int} - Time_hist::Vector{R} end function R2Solver( @@ -47,7 +46,6 @@ function R2Solver( end Fobj_hist = zeros(R, maxIter + 2) Hobj_hist = zeros(R, maxIter + 2) - Time_hist = zeros(R, maxIter + 2) Complex_hist = zeros(Int, maxIter + 2) return R2Solver( xk, @@ -64,7 +62,6 @@ function R2Solver( Fobj_hist, Hobj_hist, Complex_hist, - Time_hist, ) end @@ -90,7 +87,6 @@ function R2Solver(reg_nlp::AbstractRegularizedNLPModel{T, V}; max_iter::Int = 10 end Fobj_hist = zeros(T, max_iter + 2) Hobj_hist = zeros(T, max_iter + 2) - Time_hist = zeros(T, max_iter + 2) Complex_hist = zeros(Int, max_iter + 2) ψ = @@ -111,7 +107,6 @@ function R2Solver(reg_nlp::AbstractRegularizedNLPModel{T, V}; max_iter::Int = 10 Fobj_hist, Hobj_hist, Complex_hist, - Time_hist, ) end @@ -207,7 +202,6 @@ function R2( γ = options.γ; kwargs_dict..., ) - return stats end function R2( @@ -250,7 +244,6 @@ function R2( outdict = Dict( :Fhist => stats.solver_specific[:Fhist], :Hhist => stats.solver_specific[:Hhist], - :Time_hist => stats.solver_specific[:Time_hist], :Chist => stats.solver_specific[:SubsolverCounter], :NonSmooth => h, :status => stats.status, @@ -294,7 +287,6 @@ function R2( outdict = Dict( :Fhist => stats.solver_specific[:Fhist], :Hhist => stats.solver_specific[:Hhist], - :Time_hist => stats.solver_specific[:Time_hist], :Chist => stats.solver_specific[:SubsolverCounter], :NonSmooth => h, :status => stats.status, @@ -323,7 +315,6 @@ function R2(reg_nlp::AbstractRegularizedNLPModel; kwargs...) solve!(solver, reg_nlp, stats; callback = cb, max_iter = max_iter, kwargs...) set_solver_specific!(stats, :Fhist, solver.Fobj_hist[1:(stats.iter + 1)]) set_solver_specific!(stats, :Hhist, solver.Hobj_hist[1:(stats.iter + 1)]) - set_solver_specific!(stats, :Time_hist, solver.Time_hist[1:(stats.iter + 1)]) set_solver_specific!(stats, :SubsolverCounter, solver.Complex_hist[1:(stats.iter + 1)]) return stats end