diff --git a/src/JSOSolvers.jl b/src/JSOSolvers.jl index 85afc4fe..a6596ac0 100644 --- a/src/JSOSolvers.jl +++ b/src/JSOSolvers.jl @@ -7,7 +7,6 @@ using LinearAlgebra, Logging, Printf using Krylov, LinearOperators, NLPModels, NLPModelsModifiers, SolverCore, SolverTools import SolverCore.solve! -import Krylov.solve! export solve! # Unconstrained solvers diff --git a/src/fomo.jl b/src/fomo.jl index 6da891a2..bcf3b047 100644 --- a/src/fomo.jl +++ b/src/fomo.jl @@ -448,7 +448,7 @@ Compute value `βmax` that saturates the contribution of the momentum term to th 2. ‖∇f(xk)‖ ≥ θ2 * ‖(1-βmax) * ∇f(xk) .+ βmax .* m‖ with `m` the momentum term and `mdot∇f = ∇f(xk)ᵀm` """ -function find_beta(diff_norm::T, mdot∇f::T, norm_∇f::T, β::T, θ1::T, θ2::T) where {T, V} +function find_beta(diff_norm::T, mdot∇f::T, norm_∇f::T, β::T, θ1::T, θ2::T) where {T} n1 = norm_∇f^2 - mdot∇f β1 = n1 > 0 ? (1 - θ1) * norm_∇f^2 / n1 : β β2 = diff_norm != 0 ? (1 - θ2) * norm_∇f / diff_norm : β