Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ for (h, h_name) ∈ ((NormL0(λ), "l0"), (NormL1(λ), "l1"), (IndBallL0(10 * com
@test length(out.solver_specific[:Fhist]) == length(out.solver_specific[:Hhist])
@test length(out.solver_specific[:Fhist]) == length(out.solver_specific[:SubsolverCounter])
@test length(out.solver_specific[:Fhist]) == length(out.solver_specific[:NLSGradHist])
@test out.solver_specific[:NLSGradHist][end] == bpdn_nls.counters.neval_jprod_residual + bpdn_nls.counters.neval_jtprod_residual - 1
@test out.solver_specific[:NLSGradHist][end] ==
bpdn_nls.counters.neval_jprod_residual + bpdn_nls.counters.neval_jtprod_residual - 1
@test obj(bpdn_nls, out.solution) == out.solver_specific[:Fhist][end]
@test h(out.solution) == out.solver_specific[:Hhist][end]
@test out.status == :first_order
Expand All @@ -109,7 +110,8 @@ for (h, h_name) ∈ ((NormL1(λ), "l1"),)
@test length(LMTR_out.solver_specific[:Fhist]) ==
length(LMTR_out.solver_specific[:SubsolverCounter])
@test length(LMTR_out.solver_specific[:Fhist]) == length(LMTR_out.solver_specific[:NLSGradHist])
@test LMTR_out.solver_specific[:NLSGradHist][end] == bpdn_nls.counters.neval_jprod_residual + bpdn_nls.counters.neval_jtprod_residual - 1
@test LMTR_out.solver_specific[:NLSGradHist][end] ==
bpdn_nls.counters.neval_jprod_residual + bpdn_nls.counters.neval_jtprod_residual - 1
@test obj(bpdn_nls, LMTR_out.solution) == LMTR_out.solver_specific[:Fhist][end]
@test h(LMTR_out.solution) == LMTR_out.solver_specific[:Hhist][end]
@test LMTR_out.status == :first_order
Expand Down