Closed hersle closed 1 month ago
More fundamentally, it is not possible to make (not remake) an ODEProblem
with defaults involving the independent parameter:
using ModelingToolkit
using ModelingToolkit: t_nounits as t, D_nounits as D
using DifferentialEquations
@variables x(t)
@mtkbuild sys = ODESystem([D(x) ~ 0], t; defaults = [x => t])
prob = ODEProblem(structural_simplify(sys), [], (1.0, 2.0), [])
I should probably have reported this first. I add it here since it is very related.
Yeah that shouldn't be too hard to solve.
Currently, it seems to me that
remake
cannot reinitialize a system usingdefaults
that involve the independent parameter (oftent
). It would be nice if this worked:All three fail with slightly different error messages.