Skip to content

Commit 5911835

Browse files
committed
All polyalg in 23 test problems
1 parent 75c0fb6 commit 5911835

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/algorithms/lbroyden.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ function LinearAlgebra.mul!(y::AbstractVector, x::AbstractVector, J::BroydenLowR
159159
return y
160160
end
161161

162-
function LinearAlgebra.mul!(
163-
J::BroydenLowRankJacobian, u, vᵀ::LinearAlgebra.AdjOrTransAbsVec, α::Bool, β::Bool)
162+
function LinearAlgebra.mul!(J::BroydenLowRankJacobian, u::AbstractArray,
163+
vᵀ::LinearAlgebra.AdjOrTransAbsVec, α::Bool, β::Bool)
164164
@assert α & β
165165
idx_update = mod1(J.idx + 1, size(J.U, 2))
166166
copyto!(@view(J.U[:, idx_update]), _vec(u))

test/core/23_test_problems_tests.jl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ end
4040
export test_on_library, problems, dicts
4141
end
4242

43+
@testitem "PolyAlgorithms" setup=[RobustnessTesting] begin
44+
alg_ops = (RobustMultiNewton(), FastShortcutNonlinearPolyalg())
45+
46+
broken_tests = Dict(alg => Int[] for alg in alg_ops)
47+
broken_tests[alg_ops[1]] = []
48+
broken_tests[alg_ops[2]] = []
49+
50+
test_on_library(problems, dicts, alg_ops, broken_tests)
51+
end
52+
4353
@testitem "NewtonRaphson" setup=[RobustnessTesting] begin
4454
alg_ops = (NewtonRaphson(),)
4555

@@ -91,7 +101,7 @@ end
91101
test_on_library(problems, dicts, alg_ops, broken_tests)
92102
end
93103

94-
@testitem "Broyden" retries=5 setup=[RobustnessTesting] begin
104+
@testitem "Broyden" setup=[RobustnessTesting] begin
95105
alg_ops = (Broyden(), Broyden(; init_jacobian = Val(:true_jacobian)),
96106
Broyden(; update_rule = Val(:bad_broyden)),
97107
Broyden(; init_jacobian = Val(:true_jacobian), update_rule = Val(:bad_broyden)))

0 commit comments

Comments
 (0)