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

Implement basic stochastic simulation #38

Merged
merged 19 commits into from
Oct 9, 2023
Merged

Conversation

timmens
Copy link
Member

@timmens timmens commented Oct 5, 2023

In this PR, we implement basic stochastic simulation features for discrete states. We also tidy up the results processing of the simulation function.


Implementation

The key logic is done using dags. We overwrite the stochastic next functions using dynamically generated functions that draw choices from the grids. Then dags handles the rest. The main logic can be found in the simulate.py module in the get_next_states_function.

@timmens timmens force-pushed the stochastic-simulation branch from 67fec34 to fd7a40f Compare October 5, 2023 10:18
@timmens timmens merged commit 9a4d9c2 into main Oct 9, 2023
3 checks passed
@timmens timmens deleted the stochastic-simulation branch October 9, 2023 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant