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

Does this simulator has the property of time-delay? #69

Closed
Tony-chenjw opened this issue Oct 20, 2023 · 1 comment
Closed

Does this simulator has the property of time-delay? #69

Tony-chenjw opened this issue Oct 20, 2023 · 1 comment

Comments

@Tony-chenjw
Copy link

Tony-chenjw commented Oct 20, 2023

I'm interested in whether this simulator is time-delayed or not? In the provided gym environment, if the patient was injected with certain amount of insulin, would this affect the patient's subcutaneous glucose (or obs) in the following few env steps, other than just next step?

@jxx123
Copy link
Owner

jxx123 commented Oct 20, 2023

Yes, it is time-delayed. The dynamics are defined here https://github.com/jxx123/simglucose/blob/master/simglucose/patient/t1dpatient.py#L119-L208 The ODE follows the UVa/Padova Simulator, which models the insulin delay effect.

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

No branches or pull requests

2 participants