@@ -239,7 +239,7 @@ mutable struct LevenbergMarquardtLinearSurrogateObjective{
239239 value_cache:: TVC
240240 function LevenbergMarquardtLinearSurrogateObjective (
241241 objective:: ManifoldNonlinearLeastSquaresObjective{E} ;
242- penalty:: R = 1.0e-6 , threshold:: R = 1.0e-4 , mode:: Symbol = :Default ,
242+ penalty:: R = 1.0e-6 , threshold:: R = 1.0e-4 , mode:: Symbol = :Strict ,
243243 residuals:: TVC = zeros (residuals_count (get_objective (objective))),
244244 ) where {E, R <: Real , TVC <: AbstractVector }
245245 return new {E, R, typeof(objective), TVC} (objective, penalty, threshold, mode, residuals)
268268
269269
270270"""
271- residual_scaling, operator_scaling = get_LevenbergMarquardt_scaling(ρ_prime::Real, ρ_double_prime::Real, FSq::Real, threshold::Real=1.0e-5, mode::Symbol=:Default )
271+ residual_scaling, operator_scaling = get_LevenbergMarquardt_scaling(ρ_prime::Real, ρ_double_prime::Real, FSq::Real, threshold::Real=1.0e-5, mode::Symbol=:Strict )
272272
273273Compute the scalings for the residual ``y`` and within the operator ``C`` that are required for the robust
274274rescaling within [`LevenbergMarquardt`](@ref)s [`get_vector_field`](@ref) and [`get_linear_operator`](@ref),
@@ -312,7 +312,7 @@ This function offers two `mode`s
312312"""
313313function get_LevenbergMarquardt_scaling (
314314 ρ_prime:: Real , ρ_double_prime:: Real , FkSq:: Real ,
315- threshold:: Real = 1.0e-5 , mode:: Symbol = :Default
315+ threshold:: Real = 1.0e-5 , mode:: Symbol = :Strict
316316 )
317317 # second derivative existent and negative: In strict mode (motivated by ceres) -> return sqrt(ρ_prime), 0
318318 (ismissing (ρ_double_prime) || (ρ_double_prime < 0 && mode == :Strict )) && return (sqrt (ρ_prime), 0.0 )
0 commit comments