You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using ModelingToolkit
using ModelingToolkit: t_nounits as t, D_nounits as D
@parameters p d
@variablesX(t)
eqs = [0~ p - d*X]
@mtkbuild sys =NonlinearSystem(eqs)
u0 = []
ps = [p =>1.0, d =>1.0] # Value for `d` is missing
prob =NonlinearProblem(sys, u0, ps) # This passes without problem.
prob[X] # Is 1.0
The text was updated successfully, but these errors were encountered:
Actually, that might make sense. Previously you always had to provide guesses through u0 for everything, but now since structural_simplify does some solving before solveX gets eliminated and this behaviour makes sense.
The text was updated successfully, but these errors were encountered: