MemoSimagent-based modeling studio

Library/Health and life sciences

Hospital bed and staff allocation

Arrivals: Each tick, a new patient arrives with probability arrival-rate (percent).

Run in your browser Download .nlogox Get MemoSim verified in NetLogo Web · or open in MemoSim
Read the assumptions first. The model itself says it is illustrative and uncalibrated. Treat its output as a demonstration of a mechanism, not an estimate of a real system.

Category: Health and Life Sciences Status: Illustrative and uncalibrated. This is an educational model, not a scientifically validated result.

What it does

This model simulates a small hospital ward with a fixed number of beds and a limited staff capacity. Patients arrive at a random rate, wait in a queue, are admitted to a free bed (limited by how many staff can treat patients per tick), stay for a random length of time, and are then discharged.

Mechanism

1. Arrivals: Each tick, a new patient arrives with probability arrival-rate (percent). 2. Admission: Waiting patients are admitted to free beds, but at most staff-capacity patients can be admitted per tick (representing limited nursing/medical staff). 3. Length of stay: Each patient has a random stay time (5–14 ticks). When it expires, the patient is discharged and the bed becomes free. 4. Queue: Patients who cannot be admitted (no free bed or staff at capacity) wait, accumulating wait time.

Controls

| Widget | Meaning | Units | |---|---|---| | number-of-beds | Total beds in the ward | beds | | staff-capacity | Max patients admitted per tick | patients/tick | | arrival-rate | Probability of a new arrival each tick | % | | initial-patients | Patients present at setup | patients |

Monitors and plot

  • Waiting patients – current queue length.
  • In-bed patients – current occupancy.
  • Free beds – available beds.
  • Total discharged – cumulative discharges.
  • Plot – queue, occupancy, and free beds over time.

Assumptions and limitations

  • All patients are identical (no severity, no triage).
  • Length of stay is a simple random integer, not drawn from a real distribution.
  • Staff capacity is a flat per-tick limit; no shifts, no fatigue.
  • No patient deterioration, no transfers, no mortality.
  • The world is small (21×21 patches) and the population is bounded.
  • The model is illustrative only and is not calibrated to any real hospital data.
Field
Health and life sciences
Model file
Hospital-bed-and-staff-allocation-2c393c185a39.nlogox · 41 KB
Controls
number-of-beds, staff-capacity, arrival-rate, initial-patients
Reporters
none recorded
Procedures
setup, go
Experiment
none pinned in this file
Documentation
5/7 · 297 words in the Info tab