Skip to content

Commit

Permalink
We might not find the exact same solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrych committed Nov 13, 2024
1 parent 8df89dc commit 493ed89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/strong_convexity_and_sharpness.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ using FrankWolfe
# Strong convexity: μ = minimum(eigvals(Q))
# Sharpness: M = sqrt(2/μ), θ = 1/2


seed = 0x5526f8e0e9a68f36
Random.seed!(seed)

@testset "Strong convexity" begin

@testset "Log barrier" begin
Expand Down Expand Up @@ -109,7 +113,6 @@ using FrankWolfe
)

@test isapprox(f(x), f(sol), atol=1e-5, rtol=1e-2)
@test sum(x .== sol) == n
end
end

Expand Down Expand Up @@ -209,6 +212,5 @@ end
)

@test isapprox(f(x), f(sol), atol=1e-5, rtol=1e-2)
@test sum( x .== sol) == n
end
end

0 comments on commit 493ed89

Please sign in to comment.