We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd9bd50 commit 22fbd68Copy full SHA for 22fbd68
Project.toml
@@ -32,6 +32,7 @@ julia = "1.2"
32
[extras]
33
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
34
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
35
+StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"
36
37
[targets]
-test = ["OrdinaryDiffEq", "Test"]
38
+test = ["OrdinaryDiffEq", "Test", "StochasticDiffEq"]
test/sdesystem.jl
@@ -11,17 +11,17 @@ eqs = [D(x) ~ σ*(y-x),
11
D(y) ~ x*(ρ-z)-y,
12
D(z) ~ x*y - β*z]
13
14
-noiseeqs = [0.01*x,
15
- 0.01*y,
16
- 0.01*z]
+noiseeqs = [0.1*x,
+ 0.1*y,
+ 0.1*z]
17
18
de = SDESystem(eqs,noiseeqs,t,[x,y,z],[σ,ρ,β])
19
f = eval(generate_diffusion_function(de)[1])
20
-@test f(ones(3),rand(3),nothing) == 0.01ones(3)
+@test f(ones(3),rand(3),nothing) == 0.1ones(3)
21
22
f = SDEFunction(de)
23
prob = SDEProblem(SDEFunction(de),f.g,[1.0,0.0,0.0],(0.0,100.0),(10.0,26.0,2.33))
24
-sol = solve(prob,SOSRI())
+sol = solve(prob,SRIW1())
25
26
noiseeqs_nd = [0.01*x 0.01*x*y 0.02*x*z
27
σ 0.01*y 0.02*x*z
@@ -42,4 +42,4 @@ f(du,[1,2,3.0],[0.1,0.2,0.3],nothing)
42
43
prob = SDEProblem(SDEFunction(de),f.g,[1.0,0.0,0.0],(0.0,100.0),(10.0,26.0,2.33),
44
noise_rate_prototype = zeros(3,3))
45
-sol = solve(prob,EM(),dt=0.1)
+sol = solve(prob,EM(),dt=0.001)
0 commit comments