We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7559cf commit 97ccbd5Copy full SHA for 97ccbd5
test/test_AL.jl
@@ -0,0 +1,16 @@
1
+problem_list = ["HS8",]
2
+
3
+@testset "Augmented Lagrangian" begin
4
+ for problem_name in problem_list
5
+ nlp = CUTEstModel(problem_name)
6
+ for h in (NormL1(1.0), NormL2(1.0))
7
+ stats = AL(nlp, h, atol = 1e-3, verbose = 1)
8
+ @test stats.status == :first_order
9
+ @test stats.primal_feas <= 1e-2
10
+ @test stats.dual_feas <= 1e-2
11
+ @test length(stats.solution) == nlp.meta.nvar
12
+ @test typeof(stats.solution) == typeof(nlp.meta.x0)
13
+ end
14
+ finalize(nlp)
15
16
+end
0 commit comments