Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Jutho committed Jun 5, 2020
1 parent 0326cd9 commit 4f4f85d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ using LinearAlgebra
@testset "Linesearch" for (fg, x₀) in [(x->(sin(x) + x^4, cos(x) + 4*x^3), 0.),
(x->(x^2, 2*x), 1.),
(x->(exp(x)-x^3, exp(x)-3*x^2), 3.9), # should trigger bisection
(x->(exp(x)-x^3, exp(x)-3*x^2), 2), # should trigger infinities
(x->(sum(x.^2), 2*x), [1.,2.]),
(x->(2*x[1]^2 + x[2]^4 - x[3]^2 + x[3]^4, [4*x[1], 4*x[2]^3, -2*x[3]+4*x[3]^3]), [1.,2.,3.])]
f₀, g₀ = fg(x₀)
Expand Down

0 comments on commit 4f4f85d

Please sign in to comment.