Add ER simulation example using Actions API#389
Add ER simulation example using Actions API#389Austin-dev-dot wants to merge 3 commits intomesa:mainfrom
Conversation
Emergency room simulation demonstrating Mesa's Action system: - Triage and Treat actions with lifecycle hooks - Interruptible/resumable treatments for priority scheduling - Stochastic patient arrivals via schedule_event Follows up on mesa/mesa#3533, moved here per maintainer guidance.
for more information, see https://pre-commit.ci
|
Thanks for the PR, ER is probably a good use case for this! Could you:
|
ShreyasN707
left a comment
There was a problem hiding this comment.
This PR looks good to me.
One suggestion: in _on_arrival() the variable nurse refers to a doctor returned by _get_free_doctor(). Renaming it to doctor might improve clarity.
Thanks for the review.Ya ur right renaming the variable would make the intent clear |
|
|
Thanks both for your initial efforts. You’re on the right track. A review should take place on a deeper level. Basically:
The former is more important than the latter. |
|
@EwoutH sure ! Once I get back I will take a deeper look into the PRs . Thankyou for the guidance. |
definitely I'll |
|
I ran the model localy and it works well : @Austin-dev-dot can you improve the Readme.md so that it can be more readable and the startup of the model can be understood easily by other contributors. |
Expanded the README to provide a detailed explanation of the emergency room simulation model, including its features, running instructions, project structure, and parameters for experimentation.
|
Hey, great work on this! A few things to fix:
Overall solid though, especially the README! |
Thank you so much for the time given to review this |
|
Happy to help, good luck with it! |


Adds an emergency room simulation that demonstrates Mesa's Action system.
Follows up on mesa/mesa#3533, which was closed with the suggestion to submit the example here instead (per @EwoutH).
What it demonstrates:
Files added: