Skip to content

Commit cbf0861

Browse files
authored
Merge pull request #307 from avik-pal/ap/relax_term_cond
2 parents f627f4e + a968a99 commit cbf0861

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
group:
25-
- All
25+
- Core
26+
- NLLS
27+
- 23TestProblems
28+
- Wrappers
29+
- Miscellaneous
2630
version:
2731
- '1'
2832
- '~1.10.0-0'

test/23_test_problems.jl

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ function test_on_library(problems, dicts, alg_ops, broken_tests, ϵ = 1e-4;
1212
@testset "$idx: $(dict["title"])" begin
1313
for alg in alg_ops
1414
try
15-
sol = solve(nlprob, alg; maxiters = 10000,
16-
termination_condition = AbsNormTerminationMode())
15+
sol = solve(nlprob, alg; maxiters = 10000)
1716
problem(res, sol.u, nothing)
1817

1918
skip = skip_tests !== nothing && idx in skip_tests[alg]
@@ -99,20 +98,12 @@ end
9998
broken_tests = Dict(alg => Int[] for alg in alg_ops)
10099
broken_tests[alg_ops[1]] = [1, 5, 6, 11]
101100
broken_tests[alg_ops[2]] = [1, 5, 6, 8, 11, 18]
102-
broken_tests[alg_ops[3]] = [1, 4, 5, 6, 9, 11]
101+
broken_tests[alg_ops[3]] = [1, 5, 6, 9, 11]
103102
broken_tests[alg_ops[4]] = [1, 5, 6, 8, 11]
104-
broken_tests[alg_ops[5]] = [1, 3, 4, 5, 6, 8, 9, 11, 12, 15, 21]
105-
broken_tests[alg_ops[6]] = [3, 4, 5, 6, 8, 9, 11, 12, 21]
106-
107-
skip_tests = Dict(alg => Int[] for alg in alg_ops)
108-
skip_tests[alg_ops[1]] = [2, 22]
109-
skip_tests[alg_ops[2]] = [2, 22]
110-
skip_tests[alg_ops[3]] = [2, 22]
111-
skip_tests[alg_ops[4]] = [2, 22]
112-
skip_tests[alg_ops[5]] = [2, 22]
113-
skip_tests[alg_ops[6]] = [2, 22]
114-
115-
test_on_library(problems, dicts, alg_ops, broken_tests; skip_tests)
103+
broken_tests[alg_ops[5]] = [1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 21]
104+
broken_tests[alg_ops[6]] = [2, 3, 4, 5, 6, 8, 9, 11, 12, 21, 22]
105+
106+
test_on_library(problems, dicts, alg_ops, broken_tests)
116107
end
117108

118109
@testset "Klement 23 Test Problems" begin
@@ -121,7 +112,7 @@ end
121112

122113
broken_tests = Dict(alg => Int[] for alg in alg_ops)
123114
broken_tests[alg_ops[1]] = [1, 2, 4, 5, 6, 11, 22]
124-
broken_tests[alg_ops[2]] = [1, 2, 4, 5, 6, 8, 9, 10, 11, 13, 17, 21, 22, 23]
115+
broken_tests[alg_ops[2]] = [1, 2, 4, 5, 6, 8, 9, 10, 11, 13, 17, 21, 22]
125116
broken_tests[alg_ops[3]] = [2, 4, 5, 6, 7, 18, 22]
126117

127118
test_on_library(problems, dicts, alg_ops, broken_tests)

test/runtests.jl

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ end
1313

1414
@time begin
1515
if GROUP == "All" || GROUP == "Core"
16-
@time @safetestset "Quality Assurance" include("qa.jl")
1716
@time @safetestset "Basic Tests + Some AD" include("basictests.jl")
18-
@time @safetestset "Sparsity Tests" include("sparse.jl")
19-
@time @safetestset "Polyalgs" include("polyalgs.jl")
20-
@time @safetestset "Matrix Resizing" include("matrix_resizing.jl")
21-
@time @safetestset "Infeasible Problems" include("infeasible.jl")
17+
end
18+
19+
if GROUP == "All" || GROUP == "NLLS"
2220
@time @safetestset "Nonlinear Least Squares" include("nonlinear_least_squares.jl")
21+
end
22+
23+
if GROUP == "All" || GROUP == "Wrappers"
2324
@time @safetestset "MINPACK" include("minpack.jl")
2425
@time @safetestset "NLsolve" include("nlsolve.jl")
2526
end
@@ -28,6 +29,14 @@ end
2829
@time @safetestset "23 Test Problems" include("23_test_problems.jl")
2930
end
3031

32+
if GROUP == "All" || GROUP == "Miscellaneous"
33+
@time @safetestset "Quality Assurance" include("qa.jl")
34+
@time @safetestset "Sparsity Tests" include("sparse.jl")
35+
@time @safetestset "Polyalgs" include("polyalgs.jl")
36+
@time @safetestset "Matrix Resizing" include("matrix_resizing.jl")
37+
@time @safetestset "Infeasible Problems" include("infeasible.jl")
38+
end
39+
3140
if GROUP == "GPU"
3241
activate_downstream_env()
3342
@time @safetestset "GPU Tests" include("gpu.jl")

0 commit comments

Comments
 (0)