Skip to content

Commit 0d8ef1f

Browse files
committed
add ridge regression to make DataDrivenSparse test pass
1 parent 48ae274 commit 0d8ef1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/DataDrivenSparse/test/sparse_linear_solve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ end
6464
cos.(0.5 .* t .^ 2 .- 0.1), exp.(-t))))
6565
Y = permutedims(0.5 * X[1, :] + 0.22 * X[4, :] - 2.0 * X[3, :])
6666
X = vcat(X, Y)
67-
for alg in [STLSQ, ADMM, SR3]
68-
opt = ImplicitOptimizer(alg())
67+
for alg in [STLSQ(0.1, 1.0), ADMM(), SR3()]
68+
opt = ImplicitOptimizer(alg)
6969
rescoeff, _... = opt(X, Y, options = DataDrivenCommonOptions(maxiters = 2000))
7070
@test vec(rescoeff)[0.25; 0.0; -1.0; 0.11; 0.0; -0.5] atol=5e-2
7171
end

0 commit comments

Comments
 (0)