We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656aec2 commit 9cbca5fCopy full SHA for 9cbca5f
src/input_affine_form.jl
@@ -42,6 +42,7 @@ The function assumes that the equations are affine in the inputs. If the equatio
42
are nonlinear in the inputs, an error is thrown.
43
"""
44
function input_affine_form(eqs, inputs)
45
+ any(is_alg_equation, eqs) && error("All equations must be differential equations.")
46
g, f, flag = Symbolics.linear_expansion(getfield.(eqs, :rhs), inputs)
47
flag || error("The system is not affine in the inputs.")
48
return f, g
0 commit comments