Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scenario.simulate(): set initial values automatically if not specified #206

Closed
lisphilar opened this issue Aug 23, 2020 · 0 comments · Fixed by #207
Closed

Scenario.simulate(): set initial values automatically if not specified #206

lisphilar opened this issue Aug 23, 2020 · 0 comments · Fixed by #207
Labels
enhancement New feature or request

Comments

@lisphilar
Copy link
Owner

Summary of new feature

When we use SIR-F model for estimation and use SIR-FV model for scenario analysis, we need to specifiy initial value of Vaccinated for simulation with Scenario.simulate(y0_dict={"Vaccinated: 0}) in the previous versions.
In most cases, initial values are zeros.

Solution

PhaseUnit.simulate(y0_dict=None): when initial values were not specified, zeros will be used as the initial values rather than raising ValueError.

@lisphilar lisphilar added the enhancement New feature or request label Aug 23, 2020
@lisphilar lisphilar added this to the Release CovsirPhy v2.8.0 milestone Aug 23, 2020
@lisphilar lisphilar mentioned this issue Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant