Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Add multilevel Monte Carlo simulation to EKI.
This technique uses a hierarchy of accuracy levels to the forward model. Most EKI particles will use coarse, cheap models, while only a few need to simulate the full-resolution model.
To-do
This PR is a proof of concept. I have attempted an implementation that is as non-intrusive as possible, but there are many ways to implement our MLMC algorithm, so I can adapt to feedback by the maintainers. This draft PR serves to gauge whether EKP.jl is interested in multilevel particle methods, while at the same time showing that implementing this is feasible. The implementation is not documented yet; if the maintainers decide that MLMC is desirable, I will of course add documentation.
MLMC, as proposed in the paper linked above, also applies to other particle methods such as EKS. This proof of concept is purposefully limited to EKI.
Content
LevelScheduler
object assigns levels to each particle in the ensemble. When evaluating the forward model in a particle, the corresponding level determines the minimum accuracy for the forward-model evaluation.LevelScheduler
.Summary
I would like to contribute an implementation of the MLMC approach to simulation particle methods, which is detailed in our recent paper. This draft PR