- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 233
 
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
It is encouraged to get/set initial ODE values with e.g.
prob.ps[Initial(x)] = 1.0Therefore, for consistency, I really think it should also work to create an ODEProblem like this:
using ModelingToolkit, OrdinaryDiffEq
using ModelingToolkit: t_nounits as t, D_nounits as D
@variables x(t)
@named M = ODESystem([D(x) ~ 0], t)
Ms = structural_simplify(M)
prob = ODEProblem(Ms, [], (0.0, 1.0), [Initial(x) => 1.0])However, this fails:
ERROR: Initialization incomplete. Not all of the state variables of the
DAE system can be determined by the initialization. Missing
variables:
Any[x(t)]
I think Initial(x) should be recognized as a parameter consistently across XProblem, remake, setp, getp, etc.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working