Skip to content

Commit c678fa3

Browse files
committed
add test
1 parent 2a6dc34 commit c678fa3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/problems/test_lasso_small.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,20 @@
138138

139139
end
140140

141+
@testset "AFBA" begin
142+
143+
x0 = zeros(T, n)
144+
y0 = zeros(T, n)
145+
146+
solver = ProximalAlgorithms.AFBA{R}(theta=R(1), mu=R(1), tol=R(1e-6))
147+
x_afba, y_afba, it_afba = solver(
148+
x0, y0, f=f2, g=g, betaQ=opnorm(A)^2,
149+
)
150+
@test eltype(x_afba) == T
151+
@test eltype(y_afba) == T
152+
@test norm(x_afba - x_star, Inf) <= 1e-4
153+
@test it_afba <= 80
154+
155+
end
156+
141157
end

0 commit comments

Comments
 (0)