1111
1111
1111
ASSIGNMENT # 01
BY
Lubna Javed
ROLL #
21021509-104
BS Mathematics (7’B’)
Submitted To:
Dr Jamshed
Department Of Mathematics
The healthcare sector faces increasing pressures due to growing populations and the demand for quality
care. One of the central challenges is ensuring that the flow of patients through a healthcare system,
from arrival to discharge, is managed efficiently without overwhelming medical staff or exhausting
available resources. Inspired by this challenge, this assignment utilizes a system of ordinary differential
equations (ODEs) to simulate the patient flow and highlight potential areas for system optimization.
Through this project, I explored the application of ODEs in modeling real-life scenarios and learned how
simulation tools, like MATLAB, can help visualize complex systems. The insights gained from this
simulation underscore the importance of mathematical modeling in decision-making, particularly in
sectors like healthcare, where the consequences of inefficiency can directly affect human lives.
This assignment represents not only an academic exercise but also a reflection of the importance of
interdisciplinary knowledge, blending mathematics with healthcare management. I would like to express
my sincere appreciation to Dr. Jamshed, my course instructor, for his invaluable guidance and support
throughout this project. His insights into the world of simulation modeling have greatly contributed to
my understanding of the subject matter.
Lastly, I hope that the findings presented in this assignment can serve as a basis for further
explorations in healthcare simulations, helping to identify areas where mathematical models can
lead to real-world improvements in patient care and resource management.
s 1.Healthcare System Simulation: Patient Flow Model
1.1 Introduction
This model simulates the flow of patients through a healthcare system, specifically
from their arrival at a facility to their treatment and eventual discharge. By
analyzing this flow, healthcare managers can optimize operations, improve patient
care, and effectively allocate resources. The model consists of three key phases:
arrival to admission, admission to treatment, and treatment to discharge.
The model will be described by three ODEs that represent the changes in patient
numbers in each stage over time.
1. Admission (A): Patients arrive at a rate λ and are admitted to the hospital.
2. Treatment (T): Patients move from admission to treatment at a rate α,
depending on available resources (e.g., doctors or beds).
3. Discharge (D): After receiving treatment, patients are discharged at a rate
β, which represents the effectiveness of the treatment process.
dA
= λ−αA (t)
dt
Where:
dT
=αA ( t )− βT (t )
dt
Where:
:
4.Third ODE Number of Patients Discharged
The number of patients discharged, D (t), increases based on the rate at which
patients are successfully treated. The ODE is:
dD
=βT (t)
dt
Where:
5.Simulation Setup
5.1 Parameters
For this simulation, we will define the following parameters:
6. Simulation in Matlab:
7. Graph:
7.1 Interpretation:
This represents the number of patients admitted into the healthcare facility over time.
The blue line is flat, indicating that the number of patients in admission remains
constant at 50. This suggests that the rate of patient admissions and the rate of transfer to
treatment are balanced.
The green line shows the number of patients in the treatment phase.
Initially, there is a small increase in the number of patients in treatment, as patients move
from admission to treatment. After around 10 to 15 hours, the curve stabilizes and flattens
out. This indicates that the treatment system reaches a steady state, where the number
of patients entering and exiting the treatment phase balances out.
The red line represents the number of patients discharged over time.
The discharge curve increases steadily, indicating that patients are consistently being
treated and discharged from the system. The linear upward trend suggests that the discharge
process is operating smoothly, with a constant number of patients being discharged per unit
time.
8. Conclusion
9. References