@@ -25,14 +25,7 @@ for (mod, mod_name) ∈ ((x -> x, "exact"), (LSR1Model, "lsr1"), (LBFGSModel, "l
2525 out = solver (mod (bpdn), h, args... , options, x0 = x0)
2626 @test typeof (out. solution) == typeof (bpdn. meta. x0)
2727 @test length (out. solution) == bpdn. meta. nvar
28- @test typeof (out. solver_specific[:Fhist ]) == typeof (out. solution)
29- @test typeof (out. solver_specific[:Hhist ]) == typeof (out. solution)
30- @test typeof (out. solver_specific[:SubsolverCounter ]) == Array{Int, 1 }
3128 @test typeof (out. dual_feas) == eltype (out. solution)
32- @test length (out. solver_specific[:Fhist ]) == length (out. solver_specific[:Hhist ])
33- @test length (out. solver_specific[:Fhist ]) == length (out. solver_specific[:SubsolverCounter ])
34- @test obj (bpdn, out. solution) == out. solver_specific[:Fhist ][end ]
35- @test h (out. solution) == out. solver_specific[:Hhist ][end ]
3629 @test out. status == :first_order
3730 end
3831 end
@@ -66,15 +59,7 @@ for (mod, mod_name) ∈ ((LSR1Model, "lsr1"), (LBFGSModel, "lbfgs"))
6659 TR_out = TR (mod (bpdn), h, NormL2 (1.0 ), options, x0 = x0)
6760 @test typeof (TR_out. solution) == typeof (bpdn. meta. x0)
6861 @test length (TR_out. solution) == bpdn. meta. nvar
69- @test typeof (TR_out. solver_specific[:Fhist ]) == typeof (TR_out. solution)
70- @test typeof (TR_out. solver_specific[:Hhist ]) == typeof (TR_out. solution)
71- @test typeof (TR_out. solver_specific[:SubsolverCounter ]) == Array{Int, 1 }
7262 @test typeof (TR_out. dual_feas) == eltype (TR_out. solution)
73- @test length (TR_out. solver_specific[:Fhist ]) == length (TR_out. solver_specific[:Hhist ])
74- @test length (TR_out. solver_specific[:Fhist ]) ==
75- length (TR_out. solver_specific[:SubsolverCounter ])
76- @test obj (bpdn, TR_out. solution) == TR_out. solver_specific[:Fhist ][end ]
77- @test h (TR_out. solution) == TR_out. solver_specific[:Hhist ][end ]
7863 @test TR_out. status == :first_order
7964 end
8065 end
0 commit comments