We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DiscreteSystem
1 parent 0a19c0a commit c83976cCopy full SHA for c83976c
src/systems/nonlinear/initializesystem.jl
@@ -219,7 +219,10 @@ function generate_initializesystem(sys::AbstractSystem;
219
pars = [pars; map(unwrap, collect(keys(new_params)))]
220
is_time_dependent(sys) && push!(pars, get_iv(sys))
221
222
- if is_time_dependent(sys)
+ # FIXME: observed equations for discrete systems are broken. They don't express
223
+ # relations at the current time and instead express them in terms of past values.
224
+ # This precludes them from being useful in initialization.
225
+ if is_time_dependent(sys) && !(sys isa DiscreteSystem)
226
# 8) use observed equations for guesses of observed variables if not provided
227
for eq in trueobs
228
haskey(defs, eq.lhs) && continue
0 commit comments