Skip to content

Conversation

YingboMa
Copy link
Member

@YingboMa YingboMa commented Feb 28, 2021

Fix #834

default_u0 = Dict(value(k) => value(default_u0[k]) for k in keys(default_u0))
default_p = Dict(value(k) => value(default_p[k]) for k in keys(default_p))
NonlinearSystem(eqs, value.(states), value.(ps), observed, name, systems, default_u0, default_p, nothing)
NonlinearSystem(eqs, value.(states), value.(ps), observed, name, systems, default_u0, default_p, nothing, [])
Copy link
Member

Choose a reason for hiding this comment

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

so we need this in all systems?

Copy link
Member Author

Choose a reason for hiding this comment

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

Only for systems that support structural_simplify.

YingboMa and others added 2 commits February 28, 2021 14:17
Co-authored-by: Christopher Rackauckas <Contact@ChrisRackauckas.com>
@YingboMa YingboMa merged commit 336e5cb into master Feb 28, 2021
@YingboMa YingboMa deleted the myb/obsfix branch February 28, 2021 20:52
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.

Calculating observed variables which are functions of algebraic variables fails
2 participants