# An Optimization Model and Computer Simulation for Allocation Planning of Hospital Bed Resources

Authors: Qingyuan Xue; Yancun Fan; Junjie Wang; Yuanyuan Kuang; Yingsong Chen
Journal: Mathematical Problems in Engineering
 (2022)

---

## Abstract

Aim. This study intends to improve the arrangement of hospital beds, make rational use of limited beds to minimize the time for patients to seek medical care, improve service quality, and reduce hospital operating costs. Methods. This study determines the reasonable evaluation indices, established a reasonable evaluation index system, and assesses the merits and demerits of the bed arrangement model for this problem. After observing and dealing with various types of patients’ conditions in the ophthalmology outpatient department of the hospital, some effective hospitalization rules are proposed. The coefficients of each evaluation index under the FCFS (first-come first-service) and hospitalization rules are obtained, and a mathematical model of evaluation indices is constructed. The merits and demerits of the evaluation index system under each rule are found with MATLAB programming. At the same time, considering that the five types of patients are in a certain serial sequence during the queuing process for medical treatments, a random planning model with the least average stay time of patient is established via introducing the corresponding joint probability density function for the stay time of each patient. The proportional allocation of beds is obtained by genetic algorithms with the speed and convenience of computer calculations. Results. The proportions of beds allocated to the five categories of patients with trauma, cataract in one eye, cataract in both the eyes, glaucoma, and retina are 15%, 16%, 28%, 11%, and 29%, respectively. Conclusion. The results are in good agreement with the actual situation, and the optimization model has a certain degree of reference significance for the reasonable allocation of beds.


---

## Body

## 1. Problem Statement

Queuing in hospitals for medical treatments is a common phenomenon in the society today. It is a prominent manifestation of the contradiction between patient needs and insufficient resources in hospitals and also an important fuse for the tension between doctors and patients. How to rationally arrange limited beds and make use of relatively insufficient resources to reduce patients’ queuing time for medical treatments to the maximum degree and extent has always been a concern of scholars and hospital management. Queuing theory is widely used in the design, operation, and analysis of medical systems [1], such as to determine the number of medical personnel [2], hospital bed allocation [3, 4], medical staff scheduling [5–7], and patient waiting time [8–10]. In response to issues related to inpatient bed planning, research studies mainly focused on increasing the utilization rate of inpatient beds and reducing the waiting time of patients. Beds are one of the most important resources in a hospital. Berry Jaeker and Tucker found an inverted U-shaped relationship between utilization and throughput time. Meanwhile, patient’ length of stay (LOS) increased as occupancy increases, until a tipping point, after which patients were discharged early to alleviate congestion. More interestingly, the two years of inpatient data from 203 California hospitals revealed the second tipping point of 93% occupancy, beyond which additional occupancy leads to a longer LOS. Thomas Schneider et al. employed discrete event simulation (DES) to evaluate the impact of allocating beds in inpatient wards to accommodate emergency admissions and analyze the impact of pooling the number of beds allocated for emergency admissions in inpatient wards. Kao and Tung adopted a queuing model to approximate the patient population dynamics for each service, with admission rates provided by forecasts, the expected overflows under each configuration are computed via a normal loss integral. Bed allocation was done in two stages. First, they established a baseline requirement for each service, so that it can handle a prescribed amount of patient load based on a yearly projection of demand. They then employed marginal analysis to distribute the remaining beds to minimize the expected total average overflows while taking month-to-month demand fluctuations into account. Xie et al. proposed the bed shortage index (BSI) to capture more facets of bed shortage risk than traditional metrics such as the occupancy rate, the probability of shortages, and expected shortages; they also proposed optimization models to plan for bed capacity via this metric. Meanwhile, [15, 16] took an eye hospital as an example; they established comparatively perfect decision-making models of the patient admission scheduling and based on overall analysis on waiting times for hospital admission, waiting times for surgery, and the length of waiting list for hospital admission, and they also introduced the genetic algorithm and overall satisfaction evaluation model to optimize patient admission scheduling.Considering all above, in this study, we take the same eye hospital used by [15, 16] to collect the data, and we adopt a reasonable mathematical model to solve the problem of reasonably arranging its beds and maximizing its resource benefits.The specific situation of the ophthalmology hospital is as follows. The ophthalmology clinic of this hospital is open every day, and there are 79 beds in the inpatient department. The ophthalmological operations of the hospital can only perform the following four types of surgery: cataract, retinal disease, glaucoma, and trauma. The specific conditions of various ophthalmic operations in the ophthalmology department of the hospital are as follows. Cataract surgery is relatively simple, and there is no emergency. At present, the hospital offers cataract surgeries every Monday and Wednesday. The preparation time for such patients is only one or two days. There are more patients with surgery for two eyes than those with one eye, accounting for about 60%. If a person needs surgeries for both the eyes, the surgery on one eye is on Monday and then the other is on Wednesday. Trauma disease is usually an emergency, so hospital admission will be arranged immediately when the bed is available, and surgery will be arranged the next day after admission. The surgeries for other eye diseases are more complicated, and there are various conditions, but surgery can be performed within 2-3 days after admission, and usually, the observation time after surgery is longer. The operation time for this type of disease can be arranged according to needs and generally not on Monday or Wednesday. Considering the rationality of FCFS basis for patient admission scheduling, we assume the following: patients with the same type of disease will be admitted according to the order in which they arrive and patients with the same type of disease will have surgery in the order of their admissions [17].According to the specific conditions of the various types of patients in the hospital, this study intends to solve the following three problems: determine a reasonable evaluation index system, establish a reasonable bed arrangement model, and establish the proportional hospital bed allocation model that keep all patients in the system with the shortest average stay time.


## 2. Model Assumptions and Symbol Description

### 2.1. Model Assumptions

(1)
It is assumed that the impact of seasons and weather changes on the condition of the disease is not considered(2)
It is assumed that other ophthalmic diseases other than traumas are not considered for emergencies(3)
It is assumed that the serious illness caused by delay in treatment is not considered(4)
It is assumed that the referral of patients due to too long waiting time or waiting team is not considered within a certain time frame(5)
It is assumed that there will be no sporadic large-scale sudden eye surgery(6)
It is assumed that the ophthalmic surgery technique has not been significantly improved, resulting in a significant reduction in the length of stay (LOS)


### 2.2. Symbol Description

n is the evaluation index unit, m is the evaluation index exponent, aij is the raw data of the ith evaluation index and the jth evaluation exponent, rij is the rated value of aij, TG is the expected LOS of glaucoma patients, TR is the expected LOS of retinal patients, TC1 is the expected LOS of patients with cataract in one eye, TC2 is the expected LOS for cataract patients with cataract in both the eyes, and TT is the expected LOS for trauma patients.


## 2.1. Model Assumptions

(1)
It is assumed that the impact of seasons and weather changes on the condition of the disease is not considered(2)
It is assumed that other ophthalmic diseases other than traumas are not considered for emergencies(3)
It is assumed that the serious illness caused by delay in treatment is not considered(4)
It is assumed that the referral of patients due to too long waiting time or waiting team is not considered within a certain time frame(5)
It is assumed that there will be no sporadic large-scale sudden eye surgery(6)
It is assumed that the ophthalmic surgery technique has not been significantly improved, resulting in a significant reduction in the length of stay (LOS)


## 2.2. Symbol Description

n is the evaluation index unit, m is the evaluation index exponent, aij is the raw data of the ith evaluation index and the jth evaluation exponent, rij is the rated value of aij, TG is the expected LOS of glaucoma patients, TR is the expected LOS of retinal patients, TC1 is the expected LOS of patients with cataract in one eye, TC2 is the expected LOS for cataract patients with cataract in both the eyes, and TT is the expected LOS for trauma patients.


## 3. Mathematical Model Establishment and Solution

First, it is required to determine reasonable evaluation indices and then establish a reasonable evaluation index system to evaluate the pros and cons of the bed arrangement model for this problem. Second, observe and deal with the various types of patients’ conditions in the ophthalmology outpatient department of the hospital, propose some effective hospitalization rules, and obtain the coefficients of each evaluation index under the FCFS rules and these hospitalization rules. Based on the evaluation index mathematical model, MATLAB programming is employed to find the pros and cons of the evaluation index system under each rule. Determine which patients should be hospitalized the next day using this model according to the known number of patients to be discharged on the second day. The recursive method could assist in predicting the admission time interval of outpatients according to the specific situation of the patients who have been discharged from the hospital and the patients’ hospitalization. At the same time, considering that the five types of patients are in a certain serial sequence during the queuing process for medical treatment, a random planning model with the least average stay time of patient can be established via introducing the corresponding joint probability density function for the stay time of each patient, and the speed and convenience of computer calculations can be employed to solve the proportional allocation of beds by genetic algorithms.


### 3.1. Evaluation Index System

#### 3.1.1. Selection of Evaluation Indices

In order to effectively evaluate the pros and cons of the ophthalmological bed arrangement model of the hospital, this study selects the following four important evaluation indices: number of bed turnovers, number of discharges, average bed working days, and the average length of stay (LOS) of discharged patients.


#### 3.1.2. Evaluation Index Model Based on the TOPSIS Method

It is found from the literature review that the average LOS has an inverse effect on the number of bed turnovers [18, 19]. Therefore, shortening the average LOS of discharged patients and accelerating bed turnover can reduce the patient’s medical care expenses, expand the capacity of hospitals to admit and treat patients and improve social and economic benefits, and improve the current shortage of beds to a certain extent.Evaluation index mathematical model: based on the TOPSIS method [20], through the same trending and normalization of the original data, the closeness of the index is reflected in the calculation of the ratio of the distance between the actual value and the optimal value. The sorting result makes full use of the original data and can be applied to multilevel evaluation of multiple indicators.(1)
Build the original data matrix(1)A=a11a12a13a14a21a22a23a24a31a32a33a34⋮⋮⋮⋮an1an2an3an4.(2)
Same trending to establish high-quality indices and low-quality indices:Among them, the number of bed turnovers, the number of discharged patients, and the average bed working days are high-quality indices, and the average LOS of discharged patients is a low-quality index. The average LOS of discharged patients is an absolute number index, using the reciprocal method, that is,1/ai4 is transformed into a high-quality index.(3)
Standardized data matrix(2)A′=a11a12a131a14a21a22a231a24a31a32a331a34⋮⋮⋮⋮an1an2an31an4.(4)
Normalization processing to normalize the matrix after the same trending(3)rij=aij∑i=1naij2i=1,2,…,n;j=1,2,…,m.(5)
Define the “optimal value” and “worst value” of each evaluation indexThe optimal value is the maximum rated value of each evaluation index:(4)Bj=max1≤i≤nriji=1,2,…,n;j=1,2,…,m.The worst value is the minimum rated value of each evaluation index:(5)Sj=min1≤i≤nriji=1,2,…n;j=1,2,…,m.The optimal value and the worst value of each evaluation index are as follows: The optimal value:Bj=B1,B2,B3,…,Bm. The worst value: Sj=S1,S2,S3,…,Sm.Calculate the distance between each evaluation index and the optimal value and the worst value:(6)di+=∑j=1mrij−Bj2,di−=∑j=1mrij−Sj2.The close value is zero-dimensional, in which the maximum distance and the minimum distance between the optimal value and the worst value of each unit are mentioned. Then, it makes its own comparison and comprehensive evaluation of the closeness of the optimal value and the worst value of this problem.(7)Denoted by:d+=min1≤i≤ndi+,d−=max1≤i≤ndi−,The close value:Ci=di−d−+d+.When the value ofci becomes larger and larger, the evaluation unit gets closer and closer to the optimal point and farther and farther away from the worst point. Therefore, C can be adopted to measure the pros and cons of the bed arrangement model.


### 3.2. Hospital Bed Arrangement Model

#### 3.2.1. Queuing System Model ([21, 22])

(1)
Average patient arrival rate per day:(8)λ=∑nifi∑fi.(2)
Average interval of patient arrival time:(9)1λ=∑fi∑nifi.(3)
Average number of people completing inspections per day:(10)μ=∑fv∑vfv.(4)
Average time for each patient to see a doctor:(11)1μ=∑vfv∑fv.Perform a statistical test (χ2 inspection) for λ, μ. First, assume that the arrival law conforms to the parameter λ Poisson distribution:(12)χ2=∑012fi−npi2npi,pi=e−λλnini!.(5)
Service intensity and idle probability:(13)ρ=λμ,P0=1−ρ,P=1−P0.(6)
Operational indicators:(a)
Average number of patients in the system (expected value of queue length):(14)Ls=λμ−λ.(b)
Average number of patients waiting in the queue (expected value of queue length):(15)Lq=ρλμ−λ.(c)
Expected value of patient stay time in the system:(16)Ws=1μ−λ.(d)
Expected waiting time of patients in the queue:(17)Wq=ρμ−λ.(e)
Patient loss of time:(18)R=Wq1/μ=Wq×μ.


#### 3.2.2. Information on Different Types of Patients Visiting the Ophthalmology Clinic of the Hospital

Based on Tables1–5, it is noted that each type of patients visiting the ophthalmology clinic of the hospital conformed to the Poisson distribution, through which, the expected LOS could be calculated for each kind of patients in the ophthalmology department of the hospital.(19)TG=10days,TT=7days,Tc1=5days,Tc2=9days,TT=7days.Table 1
Information on trauma patients visiting the ophthalmology clinic of the hospitalλ=64÷61=1.0492.
Number of trauma patients arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T02100.344521.01631.2700e − 005120200.367122.39450.2560216320.195611.93151.387334120.06954.23800.0134Total61641.6567Table 2
Information on retina patients visiting the ophthalmology clinic of the hospitalλ=170÷61=2.7869.
Number of retina patients arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T0200.06163.75840.8227116160.171710.47422.9152211220.239314.59520.8856311330.222313.55840.482749360.15499.44640.0211510500.08635.26524.25786160.04012.44560.85457170.01600.97377.1297e − 004Total6117010.2403Table 3
Information on patients with cataract in one eye visiting the ophthalmology clinic of the hospitalλ=100÷61=1.6393.
Number of patients with cataract in one eye arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T0900.197312.03630.7659124240.320219.53421.0209215300.259915.85160.045737210.14068.57540.289445200.05703.47940.66465150.01851.12940.0148Total611002.8013Table 4
Information on patients with cataract in both the eyes visiting the ophthalmology clinic of the hospitalλ=128÷61=2.0984.
Number of patients with cataract in both the eyes arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T0800.11306.89330.1777120200.246415.02961.6438210200.268616.38472.4880312360.195211.90807.1044e − 00446240.10646.49080.037153150.04642.83040.01026160.01691.02857.9227e − 0047170.00530.32041.4418Total611285.8001Table 5
Information on glaucoma patients visiting the ophthalmology clinic of the hospitalλ=63÷61=1.0328.
Number of glaucoma patients arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T02000.350221.36370.0870125250.367422.41440.2983213260.192811.75840.13113000.06744.11224.112243120.01771.07863.4227Total61638.0513Based on this, the following hospitalization rules are proposed:(1)
Priority queuing rules based on waiting time: for traumatic diseases, hospital admission will be arranged immediately when the bed is available, and surgery will be arranged the next day after admission; patients of cataract (one eye) are only admitted on Saturday, Sunday, Monday, or Tuesday, patients of cataract (both eyes) are only admitted on Saturday or Sunday; patients of cataract (both eyes) have a higher priority between patients of cataract (one eye) and cataract (both eyes); for patients with glaucoma and retinal diseases, if there is a cataract surgery on Monday or Wednesday on the 4th and 5th day after their admission, the admission will be postponed, and the admission is made if not. Glaucoma has a higher priority between glaucoma and retinal diseases.This rule is abbreviated as Rule 1.(2)
First-come, first-served rule for classification discussion: divide all kinds of patients into 5 situations according to their conditions and then arrange the beds according to the principle of first-come, first-served for all kinds of patients.This rule is abbreviated as Rule 2.(3)
Rules based on the principle of priority of each illness using the expert scoring method: the priority of each illness condition is set according to the expert scoring method. Among them, trauma is the highest priority, cataract is the second priority, retina is the third priority, and glaucoma is the lowest priority. Hospital beds are arranged for all types of patients according to this priority.This rule is abbreviated as Rule 3.According to Table6, the coefficients of each evaluation index are found under this rule as follows.Table 6
Coefficients of evaluation indices under various rules.
Hospital bed arrangement indexNumber of bed turnoversNumber of discharged patientsAverage bed working daysAverage LOS of discharged patientsFCFS4.8378548.8Rule 15.4428537.3Rule 25.1403537.6Rule 34.9387548.1The number of bed turnovers is 5.4 (persons/piece); the number of discharged patients is 428 (persons); the average number of bed working days is 53 (days); the average LOS of discharged patients is 7.3 (days); in the same way, the coefficients of various evaluation indices based on other rules can be obtained, as given in Table6.According to the mathematical model of the evaluation index, the evaluation index system under various rules is calculated via programming with MATLAB:(20)A′=4.83785411.36365.44285313.69865.14035313.15794.93875412.3457.From this calculation,rij==0.00600.47600.06800.01430.00650.51880.06670.01730.00630.49740.06670.01660.00620.48730.06800.0155.From this calculation,Bj=0.00650.51880.06800.0173.(21)Sj=0.00600.47600.06670.0143.From this calculation,di+=0.04290.00130.02150.0315,di−=0.00130.04290.02150.0115.From this calculation,Ci=0.02850.97150.50080.2668.Combine the data obtained above into a table, as given in Table7.Table 7
Results of the evaluation index system under various rules.
Bed arrangementdi+d−CiRanking resultsFCFS0.04290.00130.02854Rule 10.00130.04290.97151Rule 20.02150.02150.50082Rule 30.03150.01150.26683Based on this study, it is concluded that the bed arrangement model of Rule 1 is the best. According to this model, which patients should be arranged for hospitalization on the next day could be determined based on the known number of patients to be discharged on the next day.


### 3.3. The Proportional Hospital Bed Allocation Model

The establishment of the model offu,v,w,l,m is to express the combined probability density function [23] of the stay time of the five types of patients: trauma, cataract in one eye, cataract in both the eyes, glaucoma, and retina. The five types of patients have a certain priority in the process of queuing for medical treatment, so the process is sequential and belongs to a series of activities. The stay time of the five types of patients is equal to the sum of their stay time; thus,(22)ET=ET1+ET2+ET3+ET4+ET5,∫0∞t×fl1tdt+∫0∞t×fl2tdt+∫0∞t×fl3tdt+∫0∞t×fl4tdt+∫0∞t×fl5tdt=∫0xt×ftdt,At the same time:∫0xt×ftdt=∭u+v+w≤xu,v,w×fu,v,wdwdvdu=∫0x∫0x−u∫0x−u−vu+v+w×f13wf12vf11udwdvdu,where fl1t,fl2t,fl3t,fl4t, and fl5t are, respectively, the probability density functions of the stay time of the five types of patients, T1,T2,T3,T4, and T5 are the stay time of those five types of patients, and ET means the average stay time of the five types of patients.The goal of this article is to find how the hospital should provide a matrix of bed numbersm1,m2,m3,m4,m5 for the five types of patients in order to minimize the average stay time of patients.Suppose that when a certain patient (glaucoma) arrives, the number of beds used for glaucoma in the hospital isn. When n<m4, the patient does not need to wait and can be directly prepared for admission, and the admission time is tλ≥2. When n≥m4, the patient can choose the shortest time to wait, and the stay time is subject to the roundn/m4+1 order of Erlang distribution. It is easy to calculate the probability of the patient’s stay time as(23)P0=∑K=041K!λμK+15!11−eλμ5−1.To minimize the average stay time of patients, it is necessary to make(24)minTs.t.P∑i=15Ti≤ET.


## 3.1. Evaluation Index System

### 3.1.1. Selection of Evaluation Indices

In order to effectively evaluate the pros and cons of the ophthalmological bed arrangement model of the hospital, this study selects the following four important evaluation indices: number of bed turnovers, number of discharges, average bed working days, and the average length of stay (LOS) of discharged patients.


### 3.1.2. Evaluation Index Model Based on the TOPSIS Method

It is found from the literature review that the average LOS has an inverse effect on the number of bed turnovers [18, 19]. Therefore, shortening the average LOS of discharged patients and accelerating bed turnover can reduce the patient’s medical care expenses, expand the capacity of hospitals to admit and treat patients and improve social and economic benefits, and improve the current shortage of beds to a certain extent.Evaluation index mathematical model: based on the TOPSIS method [20], through the same trending and normalization of the original data, the closeness of the index is reflected in the calculation of the ratio of the distance between the actual value and the optimal value. The sorting result makes full use of the original data and can be applied to multilevel evaluation of multiple indicators.(1)
Build the original data matrix(1)A=a11a12a13a14a21a22a23a24a31a32a33a34⋮⋮⋮⋮an1an2an3an4.(2)
Same trending to establish high-quality indices and low-quality indices:Among them, the number of bed turnovers, the number of discharged patients, and the average bed working days are high-quality indices, and the average LOS of discharged patients is a low-quality index. The average LOS of discharged patients is an absolute number index, using the reciprocal method, that is,1/ai4 is transformed into a high-quality index.(3)
Standardized data matrix(2)A′=a11a12a131a14a21a22a231a24a31a32a331a34⋮⋮⋮⋮an1an2an31an4.(4)
Normalization processing to normalize the matrix after the same trending(3)rij=aij∑i=1naij2i=1,2,…,n;j=1,2,…,m.(5)
Define the “optimal value” and “worst value” of each evaluation indexThe optimal value is the maximum rated value of each evaluation index:(4)Bj=max1≤i≤nriji=1,2,…,n;j=1,2,…,m.The worst value is the minimum rated value of each evaluation index:(5)Sj=min1≤i≤nriji=1,2,…n;j=1,2,…,m.The optimal value and the worst value of each evaluation index are as follows: The optimal value:Bj=B1,B2,B3,…,Bm. The worst value: Sj=S1,S2,S3,…,Sm.Calculate the distance between each evaluation index and the optimal value and the worst value:(6)di+=∑j=1mrij−Bj2,di−=∑j=1mrij−Sj2.The close value is zero-dimensional, in which the maximum distance and the minimum distance between the optimal value and the worst value of each unit are mentioned. Then, it makes its own comparison and comprehensive evaluation of the closeness of the optimal value and the worst value of this problem.(7)Denoted by:d+=min1≤i≤ndi+,d−=max1≤i≤ndi−,The close value:Ci=di−d−+d+.When the value ofci becomes larger and larger, the evaluation unit gets closer and closer to the optimal point and farther and farther away from the worst point. Therefore, C can be adopted to measure the pros and cons of the bed arrangement model.


## 3.1.1. Selection of Evaluation Indices

In order to effectively evaluate the pros and cons of the ophthalmological bed arrangement model of the hospital, this study selects the following four important evaluation indices: number of bed turnovers, number of discharges, average bed working days, and the average length of stay (LOS) of discharged patients.


## 3.1.2. Evaluation Index Model Based on the TOPSIS Method

It is found from the literature review that the average LOS has an inverse effect on the number of bed turnovers [18, 19]. Therefore, shortening the average LOS of discharged patients and accelerating bed turnover can reduce the patient’s medical care expenses, expand the capacity of hospitals to admit and treat patients and improve social and economic benefits, and improve the current shortage of beds to a certain extent.Evaluation index mathematical model: based on the TOPSIS method [20], through the same trending and normalization of the original data, the closeness of the index is reflected in the calculation of the ratio of the distance between the actual value and the optimal value. The sorting result makes full use of the original data and can be applied to multilevel evaluation of multiple indicators.(1)
Build the original data matrix(1)A=a11a12a13a14a21a22a23a24a31a32a33a34⋮⋮⋮⋮an1an2an3an4.(2)
Same trending to establish high-quality indices and low-quality indices:Among them, the number of bed turnovers, the number of discharged patients, and the average bed working days are high-quality indices, and the average LOS of discharged patients is a low-quality index. The average LOS of discharged patients is an absolute number index, using the reciprocal method, that is,1/ai4 is transformed into a high-quality index.(3)
Standardized data matrix(2)A′=a11a12a131a14a21a22a231a24a31a32a331a34⋮⋮⋮⋮an1an2an31an4.(4)
Normalization processing to normalize the matrix after the same trending(3)rij=aij∑i=1naij2i=1,2,…,n;j=1,2,…,m.(5)
Define the “optimal value” and “worst value” of each evaluation indexThe optimal value is the maximum rated value of each evaluation index:(4)Bj=max1≤i≤nriji=1,2,…,n;j=1,2,…,m.The worst value is the minimum rated value of each evaluation index:(5)Sj=min1≤i≤nriji=1,2,…n;j=1,2,…,m.The optimal value and the worst value of each evaluation index are as follows: The optimal value:Bj=B1,B2,B3,…,Bm. The worst value: Sj=S1,S2,S3,…,Sm.Calculate the distance between each evaluation index and the optimal value and the worst value:(6)di+=∑j=1mrij−Bj2,di−=∑j=1mrij−Sj2.The close value is zero-dimensional, in which the maximum distance and the minimum distance between the optimal value and the worst value of each unit are mentioned. Then, it makes its own comparison and comprehensive evaluation of the closeness of the optimal value and the worst value of this problem.(7)Denoted by:d+=min1≤i≤ndi+,d−=max1≤i≤ndi−,The close value:Ci=di−d−+d+.When the value ofci becomes larger and larger, the evaluation unit gets closer and closer to the optimal point and farther and farther away from the worst point. Therefore, C can be adopted to measure the pros and cons of the bed arrangement model.


## 3.2. Hospital Bed Arrangement Model

### 3.2.1. Queuing System Model ([21, 22])

(1)
Average patient arrival rate per day:(8)λ=∑nifi∑fi.(2)
Average interval of patient arrival time:(9)1λ=∑fi∑nifi.(3)
Average number of people completing inspections per day:(10)μ=∑fv∑vfv.(4)
Average time for each patient to see a doctor:(11)1μ=∑vfv∑fv.Perform a statistical test (χ2 inspection) for λ, μ. First, assume that the arrival law conforms to the parameter λ Poisson distribution:(12)χ2=∑012fi−npi2npi,pi=e−λλnini!.(5)
Service intensity and idle probability:(13)ρ=λμ,P0=1−ρ,P=1−P0.(6)
Operational indicators:(a)
Average number of patients in the system (expected value of queue length):(14)Ls=λμ−λ.(b)
Average number of patients waiting in the queue (expected value of queue length):(15)Lq=ρλμ−λ.(c)
Expected value of patient stay time in the system:(16)Ws=1μ−λ.(d)
Expected waiting time of patients in the queue:(17)Wq=ρμ−λ.(e)
Patient loss of time:(18)R=Wq1/μ=Wq×μ.


### 3.2.2. Information on Different Types of Patients Visiting the Ophthalmology Clinic of the Hospital

Based on Tables1–5, it is noted that each type of patients visiting the ophthalmology clinic of the hospital conformed to the Poisson distribution, through which, the expected LOS could be calculated for each kind of patients in the ophthalmology department of the hospital.(19)TG=10days,TT=7days,Tc1=5days,Tc2=9days,TT=7days.Table 1
Information on trauma patients visiting the ophthalmology clinic of the hospitalλ=64÷61=1.0492.
Number of trauma patients arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T02100.344521.01631.2700e − 005120200.367122.39450.2560216320.195611.93151.387334120.06954.23800.0134Total61641.6567Table 2
Information on retina patients visiting the ophthalmology clinic of the hospitalλ=170÷61=2.7869.
Number of retina patients arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T0200.06163.75840.8227116160.171710.47422.9152211220.239314.59520.8856311330.222313.55840.482749360.15499.44640.0211510500.08635.26524.25786160.04012.44560.85457170.01600.97377.1297e − 004Total6117010.2403Table 3
Information on patients with cataract in one eye visiting the ophthalmology clinic of the hospitalλ=100÷61=1.6393.
Number of patients with cataract in one eye arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T0900.197312.03630.7659124240.320219.53421.0209215300.259915.85160.045737210.14068.57540.289445200.05703.47940.66465150.01851.12940.0148Total611002.8013Table 4
Information on patients with cataract in both the eyes visiting the ophthalmology clinic of the hospitalλ=128÷61=2.0984.
Number of patients with cataract in both the eyes arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T0800.11306.89330.1777120200.246415.02961.6438210200.268616.38472.4880312360.195211.90807.1044e − 00446240.10646.49080.037153150.04642.83040.01026160.01691.02857.9227e − 0047170.00530.32041.4418Total611285.8001Table 5
Information on glaucoma patients visiting the ophthalmology clinic of the hospitalλ=63÷61=1.0328.
Number of glaucoma patients arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T02000.350221.36370.0870125250.367422.41440.2983213260.192811.75840.13113000.06744.11224.112243120.01771.07863.4227Total61638.0513Based on this, the following hospitalization rules are proposed:(1)
Priority queuing rules based on waiting time: for traumatic diseases, hospital admission will be arranged immediately when the bed is available, and surgery will be arranged the next day after admission; patients of cataract (one eye) are only admitted on Saturday, Sunday, Monday, or Tuesday, patients of cataract (both eyes) are only admitted on Saturday or Sunday; patients of cataract (both eyes) have a higher priority between patients of cataract (one eye) and cataract (both eyes); for patients with glaucoma and retinal diseases, if there is a cataract surgery on Monday or Wednesday on the 4th and 5th day after their admission, the admission will be postponed, and the admission is made if not. Glaucoma has a higher priority between glaucoma and retinal diseases.This rule is abbreviated as Rule 1.(2)
First-come, first-served rule for classification discussion: divide all kinds of patients into 5 situations according to their conditions and then arrange the beds according to the principle of first-come, first-served for all kinds of patients.This rule is abbreviated as Rule 2.(3)
Rules based on the principle of priority of each illness using the expert scoring method: the priority of each illness condition is set according to the expert scoring method. Among them, trauma is the highest priority, cataract is the second priority, retina is the third priority, and glaucoma is the lowest priority. Hospital beds are arranged for all types of patients according to this priority.This rule is abbreviated as Rule 3.According to Table6, the coefficients of each evaluation index are found under this rule as follows.Table 6
Coefficients of evaluation indices under various rules.
Hospital bed arrangement indexNumber of bed turnoversNumber of discharged patientsAverage bed working daysAverage LOS of discharged patientsFCFS4.8378548.8Rule 15.4428537.3Rule 25.1403537.6Rule 34.9387548.1The number of bed turnovers is 5.4 (persons/piece); the number of discharged patients is 428 (persons); the average number of bed working days is 53 (days); the average LOS of discharged patients is 7.3 (days); in the same way, the coefficients of various evaluation indices based on other rules can be obtained, as given in Table6.According to the mathematical model of the evaluation index, the evaluation index system under various rules is calculated via programming with MATLAB:(20)A′=4.83785411.36365.44285313.69865.14035313.15794.93875412.3457.From this calculation,rij==0.00600.47600.06800.01430.00650.51880.06670.01730.00630.49740.06670.01660.00620.48730.06800.0155.From this calculation,Bj=0.00650.51880.06800.0173.(21)Sj=0.00600.47600.06670.0143.From this calculation,di+=0.04290.00130.02150.0315,di−=0.00130.04290.02150.0115.From this calculation,Ci=0.02850.97150.50080.2668.Combine the data obtained above into a table, as given in Table7.Table 7
Results of the evaluation index system under various rules.
Bed arrangementdi+d−CiRanking resultsFCFS0.04290.00130.02854Rule 10.00130.04290.97151Rule 20.02150.02150.50082Rule 30.03150.01150.26683Based on this study, it is concluded that the bed arrangement model of Rule 1 is the best. According to this model, which patients should be arranged for hospitalization on the next day could be determined based on the known number of patients to be discharged on the next day.


## 3.2.1. Queuing System Model ([21, 22])

(1)
Average patient arrival rate per day:(8)λ=∑nifi∑fi.(2)
Average interval of patient arrival time:(9)1λ=∑fi∑nifi.(3)
Average number of people completing inspections per day:(10)μ=∑fv∑vfv.(4)
Average time for each patient to see a doctor:(11)1μ=∑vfv∑fv.Perform a statistical test (χ2 inspection) for λ, μ. First, assume that the arrival law conforms to the parameter λ Poisson distribution:(12)χ2=∑012fi−npi2npi,pi=e−λλnini!.(5)
Service intensity and idle probability:(13)ρ=λμ,P0=1−ρ,P=1−P0.(6)
Operational indicators:(a)
Average number of patients in the system (expected value of queue length):(14)Ls=λμ−λ.(b)
Average number of patients waiting in the queue (expected value of queue length):(15)Lq=ρλμ−λ.(c)
Expected value of patient stay time in the system:(16)Ws=1μ−λ.(d)
Expected waiting time of patients in the queue:(17)Wq=ρμ−λ.(e)
Patient loss of time:(18)R=Wq1/μ=Wq×μ.


## 3.2.2. Information on Different Types of Patients Visiting the Ophthalmology Clinic of the Hospital

Based on Tables1–5, it is noted that each type of patients visiting the ophthalmology clinic of the hospital conformed to the Poisson distribution, through which, the expected LOS could be calculated for each kind of patients in the ophthalmology department of the hospital.(19)TG=10days,TT=7days,Tc1=5days,Tc2=9days,TT=7days.Table 1
Information on trauma patients visiting the ophthalmology clinic of the hospitalλ=64÷61=1.0492.
Number of trauma patients arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T02100.344521.01631.2700e − 005120200.367122.39450.2560216320.195611.93151.387334120.06954.23800.0134Total61641.6567Table 2
Information on retina patients visiting the ophthalmology clinic of the hospitalλ=170÷61=2.7869.
Number of retina patients arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T0200.06163.75840.8227116160.171710.47422.9152211220.239314.59520.8856311330.222313.55840.482749360.15499.44640.0211510500.08635.26524.25786160.04012.44560.85457170.01600.97377.1297e − 004Total6117010.2403Table 3
Information on patients with cataract in one eye visiting the ophthalmology clinic of the hospitalλ=100÷61=1.6393.
Number of patients with cataract in one eye arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T0900.197312.03630.7659124240.320219.53421.0209215300.259915.85160.045737210.14068.57540.289445200.05703.47940.66465150.01851.12940.0148Total611002.8013Table 4
Information on patients with cataract in both the eyes visiting the ophthalmology clinic of the hospitalλ=128÷61=2.0984.
Number of patients with cataract in both the eyes arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T0800.11306.89330.1777120200.246415.02961.6438210200.268616.38472.4880312360.195211.90807.1044e − 00446240.10646.49080.037153150.04642.83040.01026160.01691.02857.9227e − 0047170.00530.32041.4418Total611285.8001Table 5
Information on glaucoma patients visiting the ophthalmology clinic of the hospitalλ=63÷61=1.0328.
Number of glaucoma patients arriving each day,nActual frequency,fnn×fnProbability,pnTheoretical frequency,TT−fn2/T02000.350221.36370.0870125250.367422.41440.2983213260.192811.75840.13113000.06744.11224.112243120.01771.07863.4227Total61638.0513Based on this, the following hospitalization rules are proposed:(1)
Priority queuing rules based on waiting time: for traumatic diseases, hospital admission will be arranged immediately when the bed is available, and surgery will be arranged the next day after admission; patients of cataract (one eye) are only admitted on Saturday, Sunday, Monday, or Tuesday, patients of cataract (both eyes) are only admitted on Saturday or Sunday; patients of cataract (both eyes) have a higher priority between patients of cataract (one eye) and cataract (both eyes); for patients with glaucoma and retinal diseases, if there is a cataract surgery on Monday or Wednesday on the 4th and 5th day after their admission, the admission will be postponed, and the admission is made if not. Glaucoma has a higher priority between glaucoma and retinal diseases.This rule is abbreviated as Rule 1.(2)
First-come, first-served rule for classification discussion: divide all kinds of patients into 5 situations according to their conditions and then arrange the beds according to the principle of first-come, first-served for all kinds of patients.This rule is abbreviated as Rule 2.(3)
Rules based on the principle of priority of each illness using the expert scoring method: the priority of each illness condition is set according to the expert scoring method. Among them, trauma is the highest priority, cataract is the second priority, retina is the third priority, and glaucoma is the lowest priority. Hospital beds are arranged for all types of patients according to this priority.This rule is abbreviated as Rule 3.According to Table6, the coefficients of each evaluation index are found under this rule as follows.Table 6
Coefficients of evaluation indices under various rules.
Hospital bed arrangement indexNumber of bed turnoversNumber of discharged patientsAverage bed working daysAverage LOS of discharged patientsFCFS4.8378548.8Rule 15.4428537.3Rule 25.1403537.6Rule 34.9387548.1The number of bed turnovers is 5.4 (persons/piece); the number of discharged patients is 428 (persons); the average number of bed working days is 53 (days); the average LOS of discharged patients is 7.3 (days); in the same way, the coefficients of various evaluation indices based on other rules can be obtained, as given in Table6.According to the mathematical model of the evaluation index, the evaluation index system under various rules is calculated via programming with MATLAB:(20)A′=4.83785411.36365.44285313.69865.14035313.15794.93875412.3457.From this calculation,rij==0.00600.47600.06800.01430.00650.51880.06670.01730.00630.49740.06670.01660.00620.48730.06800.0155.From this calculation,Bj=0.00650.51880.06800.0173.(21)Sj=0.00600.47600.06670.0143.From this calculation,di+=0.04290.00130.02150.0315,di−=0.00130.04290.02150.0115.From this calculation,Ci=0.02850.97150.50080.2668.Combine the data obtained above into a table, as given in Table7.Table 7
Results of the evaluation index system under various rules.
Bed arrangementdi+d−CiRanking resultsFCFS0.04290.00130.02854Rule 10.00130.04290.97151Rule 20.02150.02150.50082Rule 30.03150.01150.26683Based on this study, it is concluded that the bed arrangement model of Rule 1 is the best. According to this model, which patients should be arranged for hospitalization on the next day could be determined based on the known number of patients to be discharged on the next day.


## 3.3. The Proportional Hospital Bed Allocation Model

The establishment of the model offu,v,w,l,m is to express the combined probability density function [23] of the stay time of the five types of patients: trauma, cataract in one eye, cataract in both the eyes, glaucoma, and retina. The five types of patients have a certain priority in the process of queuing for medical treatment, so the process is sequential and belongs to a series of activities. The stay time of the five types of patients is equal to the sum of their stay time; thus,(22)ET=ET1+ET2+ET3+ET4+ET5,∫0∞t×fl1tdt+∫0∞t×fl2tdt+∫0∞t×fl3tdt+∫0∞t×fl4tdt+∫0∞t×fl5tdt=∫0xt×ftdt,At the same time:∫0xt×ftdt=∭u+v+w≤xu,v,w×fu,v,wdwdvdu=∫0x∫0x−u∫0x−u−vu+v+w×f13wf12vf11udwdvdu,where fl1t,fl2t,fl3t,fl4t, and fl5t are, respectively, the probability density functions of the stay time of the five types of patients, T1,T2,T3,T4, and T5 are the stay time of those five types of patients, and ET means the average stay time of the five types of patients.The goal of this article is to find how the hospital should provide a matrix of bed numbersm1,m2,m3,m4,m5 for the five types of patients in order to minimize the average stay time of patients.Suppose that when a certain patient (glaucoma) arrives, the number of beds used for glaucoma in the hospital isn. When n<m4, the patient does not need to wait and can be directly prepared for admission, and the admission time is tλ≥2. When n≥m4, the patient can choose the shortest time to wait, and the stay time is subject to the roundn/m4+1 order of Erlang distribution. It is easy to calculate the probability of the patient’s stay time as(23)P0=∑K=041K!λμK+15!11−eλμ5−1.To minimize the average stay time of patients, it is necessary to make(24)minTs.t.P∑i=15Ti≤ET.


## 4. Solve the Model

Due to the growing complexity of the structure of the stochastic programming model, the traditional precise algorithms become unworkable, leaving only computer simulation algorithms available. This study employs genetic algorithms to solve the problem. The steps are given in the following sections.


### 4.1. Data Distribution

The selected samples are divided into two parts: one part is used as a training sample set to train the model and the other part is used to test whether the model met the basic skills required to implement the model. In the research, 3–8 training samples are selected for each weight in a small sample, whereas 5–10 training samples are selected for each weight in a large sample. In practical applications, to ensure that the subspace of the test sample is included in the training, there are roughly two methods for selecting the number of nodes in the middle hidden layer at present:One type is the static construction method, that is, the structure does not change during the process of updating and learning of the weight and threshold of the network [24]. In this method, the appropriate number of hidden layer nodes for the network model at the beginning is not known, and the appropriate weights under the optimized network structure are not known either. So, the network structure can only be determined based on past experiences. The constructed network space is large and the training time is long.The other is the dynamic construction method, that is, the number of input and output nodes is unchanged, while the number of hidden layer nodes is variable. Initially put enough hidden layer nodes and then gradually delete those inoperative nodes until the nodes cannot be contracted. This study employs the second method. Substitute the SCG and COB algorithms [25] with the best BP network iteration effect into the MATLAB program to run 10 times, take the average, and finally get the best number of hidden layer nodes of the network model as 5. According to this, the optimal network topology based on the BP neural network bed allocation model is 6 × 5 × 1.


### 4.2. Establishment of the Mathematical Model of the BP Neural Network

First, based on the following most basic mathematical formulas along the direction of information propagation, the state equation of the network is given. Usinginji and outji, the input and output relationships of the various layers of the network [26] can be described as follows.Layer 1 (input layer): introduce the input to the neural network.(25)outi1=ini1=xi=1,2,…,n.Layer 2 (hidden layer): different forms can be taken forgx, such as(26)Sfunction:gx=11+e−x.Gaussian functiongx=ex−a2/b2, as well as radial basis function, spline basis function, and wavelet function. Gaussian function is adopted for the convenience and effectiveness of research.Layer 3 (output layer):(27)yk=outk3=ink3=∑j=1lwjk2∗outj2;k=1,2,3,…,m.Based on the conditions of the model in this article,i=6,l=4,k=1, the basic network construction of the neural network is completed above.


### 4.3. Determining the Learning Algorithm of the Network

The basic idea of learning is adjust the weight of the network through a certain algorithm, so that the actual output of the network is as close as possible to the expected output. In this network, the error back propagation (BP) algorithm is adopted to adjust the weight (that is, the BP neural network). The basic principle is when the input of the network, that is, the corresponding influence factorX=x1,x2,x3,x4,x5, the actual output of the network is Y=y1,y2,y3,y4,y5, the expected output of the network (that is, the actual number of wards allocated) D=d1,d2,d3,d4,d5 [26].The objective function to define learning is (mean square error method used by [27])(28)δ=12∑i=1mdi−yi2=12∑i=1mei2.At the same time, the BP algorithm employs the following formula to adjust the weight to minimize the objective function (steepest descent method used by [26]):(29)wt+1=wt−η∂δ∂w,where η is the learning rate. By specifically analyzing each layer of the neural network, the following equation is obtained:(30)wij1t+1=wij1t+η1∂δ∂wij1,wjk2t+1=wij2t+η1∂δ∂wjk2.Based on the following formula, the deviation is gradually reversed:(31)∂δ∂wjk2=∂δ∂yk⋅∂yk∂outk3⋅∂outk3∂ink3⋅∂ink3∂wjk2,∂δ∂wij1=∑k=1m∂δ∂yk⋅∂yk∂ink3⋅∂ink3∂outj2⋅∂outk2∂inj2⋅∂inij2∂wij1.Subsequently, the matric for the number of beds equipped for five types of patients is obtained, and the number of bed arrangements is given in Table8.Table 8
Results of bed allocation for five types of patients.
TraumaCataract in one eyeCataract in both the eyesGlaucomaRetina121322923Through the MATLAB software, the number of beds allocated to the five types of patients with trauma, cataract in one eye, cataract in both eyes, glaucoma, and retina is 12, 13, 22, 9, and 23, respectively; the allocated bed ratios are 15%, 16%, 28%, 11%, and 29%, and the results obtained are in good agreement with the actual situation.From the perspective of models, the models of [15, 16] are poor in taking the fairness among the patients with different types of diseases into account, and the results are different from those in this study. It can be visually seen that the model of this study is more in line with the reality through the different rules and has a high degree of matching and consistency with the actual situation. It also has a high reference value.


## 4.1. Data Distribution

The selected samples are divided into two parts: one part is used as a training sample set to train the model and the other part is used to test whether the model met the basic skills required to implement the model. In the research, 3–8 training samples are selected for each weight in a small sample, whereas 5–10 training samples are selected for each weight in a large sample. In practical applications, to ensure that the subspace of the test sample is included in the training, there are roughly two methods for selecting the number of nodes in the middle hidden layer at present:One type is the static construction method, that is, the structure does not change during the process of updating and learning of the weight and threshold of the network [24]. In this method, the appropriate number of hidden layer nodes for the network model at the beginning is not known, and the appropriate weights under the optimized network structure are not known either. So, the network structure can only be determined based on past experiences. The constructed network space is large and the training time is long.The other is the dynamic construction method, that is, the number of input and output nodes is unchanged, while the number of hidden layer nodes is variable. Initially put enough hidden layer nodes and then gradually delete those inoperative nodes until the nodes cannot be contracted. This study employs the second method. Substitute the SCG and COB algorithms [25] with the best BP network iteration effect into the MATLAB program to run 10 times, take the average, and finally get the best number of hidden layer nodes of the network model as 5. According to this, the optimal network topology based on the BP neural network bed allocation model is 6 × 5 × 1.


## 4.2. Establishment of the Mathematical Model of the BP Neural Network

First, based on the following most basic mathematical formulas along the direction of information propagation, the state equation of the network is given. Usinginji and outji, the input and output relationships of the various layers of the network [26] can be described as follows.Layer 1 (input layer): introduce the input to the neural network.(25)outi1=ini1=xi=1,2,…,n.Layer 2 (hidden layer): different forms can be taken forgx, such as(26)Sfunction:gx=11+e−x.Gaussian functiongx=ex−a2/b2, as well as radial basis function, spline basis function, and wavelet function. Gaussian function is adopted for the convenience and effectiveness of research.Layer 3 (output layer):(27)yk=outk3=ink3=∑j=1lwjk2∗outj2;k=1,2,3,…,m.Based on the conditions of the model in this article,i=6,l=4,k=1, the basic network construction of the neural network is completed above.


## 4.3. Determining the Learning Algorithm of the Network

The basic idea of learning is adjust the weight of the network through a certain algorithm, so that the actual output of the network is as close as possible to the expected output. In this network, the error back propagation (BP) algorithm is adopted to adjust the weight (that is, the BP neural network). The basic principle is when the input of the network, that is, the corresponding influence factorX=x1,x2,x3,x4,x5, the actual output of the network is Y=y1,y2,y3,y4,y5, the expected output of the network (that is, the actual number of wards allocated) D=d1,d2,d3,d4,d5 [26].The objective function to define learning is (mean square error method used by [27])(28)δ=12∑i=1mdi−yi2=12∑i=1mei2.At the same time, the BP algorithm employs the following formula to adjust the weight to minimize the objective function (steepest descent method used by [26]):(29)wt+1=wt−η∂δ∂w,where η is the learning rate. By specifically analyzing each layer of the neural network, the following equation is obtained:(30)wij1t+1=wij1t+η1∂δ∂wij1,wjk2t+1=wij2t+η1∂δ∂wjk2.Based on the following formula, the deviation is gradually reversed:(31)∂δ∂wjk2=∂δ∂yk⋅∂yk∂outk3⋅∂outk3∂ink3⋅∂ink3∂wjk2,∂δ∂wij1=∑k=1m∂δ∂yk⋅∂yk∂ink3⋅∂ink3∂outj2⋅∂outk2∂inj2⋅∂inij2∂wij1.Subsequently, the matric for the number of beds equipped for five types of patients is obtained, and the number of bed arrangements is given in Table8.Table 8
Results of bed allocation for five types of patients.
TraumaCataract in one eyeCataract in both the eyesGlaucomaRetina121322923Through the MATLAB software, the number of beds allocated to the five types of patients with trauma, cataract in one eye, cataract in both eyes, glaucoma, and retina is 12, 13, 22, 9, and 23, respectively; the allocated bed ratios are 15%, 16%, 28%, 11%, and 29%, and the results obtained are in good agreement with the actual situation.From the perspective of models, the models of [15, 16] are poor in taking the fairness among the patients with different types of diseases into account, and the results are different from those in this study. It can be visually seen that the model of this study is more in line with the reality through the different rules and has a high degree of matching and consistency with the actual situation. It also has a high reference value.


## 5. Conclusion

The bed is an indispensable factor of hospital medical resources. With the gradual deepening of public hospital reforms and the accelerated development of the medical market, the competition among major hospitals has become increasingly fierce. At the same time, the contradiction between the needs of patients for medical treatment and the shortage of beds has become increasingly prominent, which has aggravated the tension between doctors and patients to a certain extent. According to the latest statistics, the utilization efficiency of hospital beds in our country is generally low, with an average utilization rate of less than 85% [28]. It can be seen that on the one hand, there is a shortage of beds and a serious shortage of medical resources; on the other hand, there is a serious waste of health resources. Therefore, it has been a topic worthy of exploration and research for the scientific, reasonable, and effective allocation of hospital beds to improve the efficiency of the use of hospital beds and alleviate the excessive demand for medical treatment. This study established a reasonable bed arrangement model by determining a reasonable evaluation index system, established a bed proportional allocation model for the hospital by constructing a bed proportional allocation model that minimizes the average stay time of all patients in the system, and adopted the MATLAB programming algorithm to get the calculation results. The results obtained are in good agreement with the actual situation, which has a certain significance for reference. This model can be widely applied in related fields of hospital management. For general hospitals, the above methods can be adopted to build a bed allocation system suitable for the hospital according to the specific conditions of the beds for each hospital, the waiting period of the disease and other factors to improve service capabilities, reduce patient waiting time, and save health resources.



---

*Source: 3469641-2022-06-14.xml*