Skip to content

Unable to initialize simulation with all_first_states #1871

Discussion options

You must be logged in to vote

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sravanpannala
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1862 on December 22, 2021 08:52.