Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade implicit solvers to the latest nlsolve #99

Merged
merged 16 commits into from
Aug 19, 2018
Merged

Conversation

YingboMa
Copy link
Member

No description provided.

@YingboMa YingboMa changed the title WIP: Upgrade implicit solvers to the latest nlsolve Upgrade implicit solvers to the latest nlsolve Aug 19, 2018
@ChrisRackauckas
Copy link
Member

Looks like this is very far along, just some test setup issues now?

https://github.com/JuliaDiffEq/StochasticDiffEq.jl/blob/a575b2211421dce96be59031bb5ea8a44bb51b08/test/sde/sde_convergence_tests.jl#L67-L68

ISSEM is a 1/2 order algorithm. ImplicitEM is a 1/2 order algorithm. ImplicitRKMil is an order 1 algorithm. So the tests

https://github.com/JuliaDiffEq/StochasticDiffEq.jl/blob/a575b2211421dce96be59031bb5ea8a44bb51b08/test/sde/sde_convergence_tests.jl#L67-L72

have too high of convergence coefficients, which seems to be the failure.

@ChrisRackauckas
Copy link
Member

ChrisRackauckas commented Aug 19, 2018

Actually on additive noise those should all be 1.0 with possible super convergence. Since that was all in the same file and only on the additive test, I think this is pointing to a possible issue with how the time values are set there.

J, W = calc_W!(integrator, cache, γdt, repeat_step)
if nlsolve! isa NLNewton
J, nlcache.W = calc_W!(integrator, cache, γdt, repeat_step)
uf.t = t
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should go before?

J, W = calc_W!(integrator, cache, γdt, repeat_step)
if nlsolve! isa NLNewton
J, nlcache.W = calc_W!(integrator, cache, γdt, repeat_step)
uf.t = t
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should go before?

tol = cache.tol
if nlsolve! isa NLNewton
J, nlcache.W = calc_W!(integrator, cache, dt*theta, repeat_step)
uf.t = t
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the current time needs to be set before the Jacobian is calculated in order to make sure it's at the correct time point.

@ChrisRackauckas
Copy link
Member

Upping the number of Monte Carlo runs got rid of the superconvergence and made the results match the theoretical results perfectly, so I think those are good now. Fingers crossed tests pass.

@ChrisRackauckas
Copy link
Member

Something seems wrong in the split tests

@YingboMa YingboMa merged commit ad44fc7 into master Aug 19, 2018
@ChrisRackauckas ChrisRackauckas deleted the myb/nlsolve branch August 19, 2018 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants