Unable to initialize simulation with all_first_states #1871
-
Describe the bug To Reproduce
Expected behaviour Screenshots Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @sravanpannala! You can't use it as a starting solution as this would append the new solution to the starting one and there is a mismatch in the classes. What you can do is to initialise the model with the corresponding first state: model.set_initial_conditions_from(first_states[1]) and then create a simulation with this model. This should do what you want I think. |
Beta Was this translation helpful? Give feedback.
-
Yes, this worked. Thank You!! |
Beta Was this translation helpful? Give feedback.
Hi @sravanpannala! You can't use it as a starting solution as this would append the new solution to the starting one and there is a mismatch in the classes. What you can do is to initialise the model with the corresponding first state:
and then create a simulation with this model. This should do what you want I think.