Skip to content

Commit 16d8440

Browse files
committed
Change the mode default in 3 further places (i forgot to save in editor).
1 parent fe4f28a commit 16d8440

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/plans/nonlinear_least_squares/nls_general_plan.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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)
@@ -268,7 +268,7 @@ end
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
273273
Compute the scalings for the residual ``y`` and within the operator ``C`` that are required for the robust
274274
rescaling within [`LevenbergMarquardt`](@ref)s [`get_vector_field`](@ref) and [`get_linear_operator`](@ref),
@@ -312,7 +312,7 @@ This function offers two `mode`s
312312
"""
313313
function 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

Comments
 (0)