Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Translate Particle problem to EnsembleProblem#942

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
baggepinnen wants to merge1 commit intoSciML:master
base:master
Choose a base branch
Loading
frombaggepinnen:patch-1

Conversation

@baggepinnen
Copy link
Contributor

This PR adds WIP functionality that automatically translates anODEPRoblem{<:Particles} into anEnsembleProblem, solves the ensemble problem, and finally repackages the solution into an ODESolution with Particles.

This is an attempt at making MCM work with DAEs and other things that might be thrown off by the uncertain numbers.

The PR is WIP, I am quite unsure about how to create the finalODESolution{Particles}. The current state of the PR kind-of works in some cases but not in others. There might also be problems in the interaction between the plotting recipe forParticles and that forODESolution, if I plot a single state-variable only, it works fine, but when plotting multipleidxs at the same time I get a garbage plot.

Any initial comments on what I might be doing wrong when I create the solution below is appreciated.


# [state_index][mc_index]
utraj=map(t)do t
data=reduce(hcat, OrdinaryDiffEq.EnsembleAnalysis.componentwise_vectors_timepoint(esol,t))# nmc × nx

Choose a reason for hiding this comment

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

Suggested change
data=reduce(hcat,OrdinaryDiffEq.EnsembleAnalysis.componentwise_vectors_timepoint(esol,t))# nmc × nx
data=reduce(hcat,SciMLBase.EnsembleAnalysis.componentwise_vectors_timepoint(esol,t))# nmc × nx

@ChrisRackauckas
Copy link
Member

In principle this looks fine, though it should probably go to SciMLBase.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ChrisRackauckasChrisRackauckasChrisRackauckas left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@baggepinnen@ChrisRackauckas

[8]ページ先頭

©2009-2025 Movatter.jp