Skip to content

Commit dbb50c3

Browse files
committed
add unit tests
1 parent 2bf11e6 commit dbb50c3

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

test/runtests.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ using ADNLPModels,
1414
Random.seed!(0)
1515
const global compound = 1
1616
const global nz = 10 * compound
17-
const global options =
18-
ROSolverOptions= 1.0, β = 1e16, ϵa = 1e-6, ϵr = 1e-6, verbose = 10, neg_tol = 1e-2)
17+
const global options = ROSolverOptions= 1.0, β = 1e16, ϵa = 1e-6, ϵr = 1e-6, verbose = 10)
1918
const global bpdn, bpdn_nls, sol = bpdn_model(compound)
2019
const global bpdn2, bpdn_nls2, sol2 = bpdn_model(compound, bounds = true)
2120
const global λ = norm(grad(bpdn, zeros(bpdn.meta.nvar)), Inf) / 10
@@ -138,8 +137,8 @@ for (mod, mod_name) ∈ (
138137
end
139138

140139
# iR2/iR2N
141-
context = ProxTVContext(bpdn.meta.nvar, :lp, p_val, κs = 0.9, λ = λ)
142-
hp = NormLp(λ, p_val, context)
140+
context = ProxTVContext(bpdn.meta.nvar, :lp, p_val, κs = 0.9, λ = 0.1)
141+
hp = NormLp(0.1, p_val, context)
143142
@testset "bpdn-iR2N-Lp" begin
144143
x0 = zeros(bpdn.meta.nvar)
145144
out = iR2N(LBFGSModel(bpdn), hp, options, x0 = x0)

0 commit comments

Comments
 (0)