Skip to content

Commit c69c894

Browse files
committed
try fix 1.6 again
1 parent 90405df commit c69c894

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/miscellaneous_tests/nonlinear_solve.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### Fetch Packages ###
22

33
# Fetch packages.
4-
using Catalyst, NonlinearSolve, OrdinaryDiffEq, SteadyStateDiffEq, DifferentialEquations
4+
using Catalyst, NonlinearSolve, OrdinaryDiffEq, SteadyStateDiffEq
55
using Random, Test
66

77
# Sets rnd number.
@@ -25,7 +25,7 @@ let
2525
nl_prob = NonlinearProblem(steady_state_network_1, u0, p)
2626

2727
# Solves it using standard algorithm and simulation based algorithm.
28-
sol1 = solve(nl_prob; abstol=1e-12, reltol=1e-12).u
28+
sol1 = solve(nl_prob, LevenbergMarquardt(); abstol=1e-12, reltol=1e-12).u
2929
sol2 = solve(nl_prob, DynamicSS(Rosenbrock23(); abstol=1e-12, reltol=1e-12); abstol=1e-12, reltol=1e-12).u
3030

3131
# Tests solutions are correct.
@@ -54,7 +54,7 @@ let
5454
nl_prob = NonlinearProblem(steady_state_network_2, u0, p)
5555

5656
# Solves it using standard algorithm and simulation based algorithm.
57-
sol1 = solve(nl_prob; abstol=1e-12, reltol=1e-12).u
57+
sol1 = solve(nl_prob, LevenbergMarquardt(); abstol=1e-12, reltol=1e-12).u
5858
sol2 = solve(nl_prob, DynamicSS(Rosenbrock23(); abstol=1e-12, reltol=1e-12); abstol=1e-12, reltol=1e-12).u
5959

6060
# Computes NonlinearFunction (manually and automatically).
@@ -90,7 +90,7 @@ let
9090
nl_prob_2 = NonlinearProblem(steady_state_network_3, u0, p)
9191

9292
# Solves it using standard algorithm and simulation based algorithm.
93-
sol1 = solve(nl_prob_1; abstol=1e-12, reltol=1e-12)
93+
sol1 = solve(nl_prob_1, LevenbergMarquardt(); abstol=1e-12, reltol=1e-12)
9494
sol2 = solve(nl_prob_2, DynamicSS(Rosenbrock23(); abstol=1e-12, reltol=1e-12); abstol=1e-12, reltol=1e-12)
9595

9696
# Checks output using NonlinearFunction.

0 commit comments

Comments
 (0)