Skip to content

Commit a6982b5

Browse files
committed
Wrong eps was taken there
1 parent 7c9377a commit a6982b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plans/stopping_criterion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ end
493493
function StopWhenRelativeAPosterioriCostChangeLessOrEqual(tol::F) where {F <: Real}
494494
return StopWhenRelativeAPosterioriCostChangeLessOrEqual{F}(tol, -1, zero(tol), 2 * tol)
495495
end
496-
StopWhenRelativeAPosterioriCostChangeLessOrEqual(; factr::F = 1.0e7) where {F <: Real} = StopWhenRelativeAPosterioriCostChangeLessOrEqual(factr * eps(factr))
496+
StopWhenRelativeAPosterioriCostChangeLessOrEqual(; factr::F = 1.0e7) where {F <: Real} = StopWhenRelativeAPosterioriCostChangeLessOrEqual(factr * eps(typeof(factr)))
497497
function (c::StopWhenRelativeAPosterioriCostChangeLessOrEqual)(
498498
problem::AbstractManoptProblem, state::AbstractManoptSolverState, iteration::Int
499499
)

0 commit comments

Comments
 (0)