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

What to do with empty systems with non-empty observed equations #650

Open
YingboMa opened this issue Mar 17, 2021 · 2 comments
Open

What to do with empty systems with non-empty observed equations #650

YingboMa opened this issue Mar 17, 2021 · 2 comments

Comments

@YingboMa
Copy link
Member

Simulating an empty system leads to an error, so one has to do something like

julia> sys = structural_simplify(mediumModel)
Model mediumModel with 0 equations
States (0):
Parameters (0):
Incidence matrix:


julia> prob = ODEProblem(sys, nothing, (0, 10.0));

julia> prob.f.observed(medium.P, rand(100), rand(100), 0.0)
101325.0

Would be nice if we can "solve" an empty system.

@anandijain
Copy link
Contributor

what is the solved system supposed to return?

@ChrisRackauckas
Copy link
Member

Should this instead happen at the DiffEqBase level, where the generic higher solve checks some property and returns a solution before hitting a solver?

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

No branches or pull requests

3 participants