Skip to content

Commit 6771d11

Browse files
update alg in test
1 parent 525990f commit 6771d11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/OptimizationLBFGSB/test/runtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ using Test
1414

1515
optf = OptimizationFunction(rosenbrock, OptimizationBase.AutoForwardDiff())
1616
prob = OptimizationProblem(optf, x0)
17-
@time res = solve(prob, OptimizationLBFGSB.LBFGS(), maxiters = 100)
17+
@time res = solve(prob, OptimizationLBFGSB.LBFGSB(), maxiters = 100)
1818
@test res.retcode == ReturnCode.Success
1919

2020
prob = OptimizationProblem(optf, x0, lb = [-1.0, -1.0], ub = [1.0, 1.0])
21-
@time res = solve(prob, OptimizationLBFGSB.LBFGS(), maxiters = 100)
21+
@time res = solve(prob, OptimizationLBFGSB.LBFGSB(), maxiters = 100)
2222
@test res.retcode == ReturnCode.Success
2323

2424
function con2_c(res, x, p)
@@ -29,7 +29,7 @@ using Test
2929
prob = OptimizationProblem(optf, x0, lcons = [1.0, -Inf],
3030
ucons = [1.0, 0.0], lb = [-1.0, -1.0],
3131
ub = [1.0, 1.0])
32-
@time res = solve(prob, OptimizationLBFGSB.LBFGS(), maxiters = 100)
32+
@time res = solve(prob, OptimizationLBFGSB.LBFGSB(), maxiters = 100)
3333
@test res.retcode == SciMLBase.ReturnCode.Success
3434

3535
x0 = (-pi):0.001:pi
@@ -52,6 +52,6 @@ using Test
5252
l0 = optf(initpars, (x0, y0))
5353
prob = OptimizationProblem(optf, initpars, (x0, y0), lcons = [-Inf], ucons = [0.5],
5454
lb = [-10.0, -10.0, -10.0, -10.0, -10.0], ub = [10.0, 10.0, 10.0, 10.0, 10.0])
55-
opt1 = solve(prob, OptimizationLBFGSB.LBFGS(), maxiters = 1000, callback = callback)
55+
opt1 = solve(prob, OptimizationLBFGSB.LBFGSB(), maxiters = 1000, callback = callback)
5656
@test opt1.objective < l0
5757
end

0 commit comments

Comments
 (0)