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
When running a casadi model with the simulator, .alg variables do not get an initial value through the config, leading to the default value of 0. This leads to errors when dividing by an .alg variable.
How to fix?
Add initial values for algebraic values through the config. In the do_step() function of the casadi model, add z0 as an input:
while t_sim < t_sample:
result = self.integrator(x0=curr_x, p=pars)
The text was updated successfully, but these errors were encountered:
When running a casadi model with the simulator,
.alg
variables do not get an initial value through the config, leading to the default value of 0. This leads to errors when dividing by an.alg
variable.How to fix?
Add initial values for algebraic values through the config. In the do_step() function of the casadi model, add
z0
as an input:The text was updated successfully, but these errors were encountered: