File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
lib/NonlinearSolveHomotopyContinuation/test Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ alg = HomotopyContinuationJL{true}(; threading = false)
40
40
41
41
@testset " `HomotopyContinuationFunction`" begin
42
42
denominator = function (u, p)
43
- return [u - 0.7 ]
43
+ return [u - 0.7 , u - 0.9 ]
44
44
end
45
45
polynomialize = function (u, p)
46
46
return sin (u)
@@ -59,7 +59,7 @@ alg = HomotopyContinuationJL{true}(; threading = false)
59
59
@test sin (sol. u[1 ][1 ]) ≈ 0.5
60
60
61
61
@testset " no valid solutions" begin
62
- prob2 = remake (prob; p = [0.7 , 0.7 ])
62
+ prob2 = remake (prob; p = [0.7 , 0.9 ])
63
63
sol2 = solve (prob2, alg)
64
64
@test ! sol2. converged
65
65
@test length (sol2) == 1
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ alg = HomotopyContinuationJL{false}(; threading = false)
31
31
32
32
@testset " `HomotopyContinuationFunction`" begin
33
33
denominator = function (u, p)
34
- return [u - 0.7 ]
34
+ return [u - 0.7 , u - 0.9 ]
35
35
end
36
36
polynomialize = function (u, p)
37
37
return sin (u)
@@ -49,7 +49,7 @@ alg = HomotopyContinuationJL{false}(; threading = false)
49
49
@test sin (sol. u[1 ])≈ 0.5 atol= 1e-10
50
50
51
51
@testset " no valid solutions" begin
52
- prob2 = remake (prob; p = [0.7 , 0.7 ])
52
+ prob2 = remake (prob; p = [0.7 , 0.9 ])
53
53
sol2 = solve (prob2, alg)
54
54
@test sol2. retcode == SciMLBase. ReturnCode. Infeasible
55
55
end
You can’t perform that action at this time.
0 commit comments