TWI352933B - Scheduling method using meta-heuristics - Google Patents
Scheduling method using meta-heuristics Download PDFInfo
- Publication number
- TWI352933B TWI352933B TW96120967A TW96120967A TWI352933B TW I352933 B TWI352933 B TW I352933B TW 96120967 A TW96120967 A TW 96120967A TW 96120967 A TW96120967 A TW 96120967A TW I352933 B TWI352933 B TW I352933B
- Authority
- TW
- Taiwan
- Prior art keywords
- value
- duty
- scheduling
- class
- path
- Prior art date
Links
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Description
r1352933 九、發明說明: 0 【發明所屬之技術領域】 本發明係Μ於-種運用啟發式演算法之排班方法, , 特別是關於以螞蟻族群演算法(Ant c〇1〇ny办偏⑽加 . ,ACC))為基礎’用以快速規劃出符合排班規定之工作班 表的排班方法。 【先前技術】 癱 ,現今如醫療院所護理人員、工廠生產人員、交通運 輸業駕駿人員或餐飲業服業人員等,其通常必須由單位主 管預先規劃排定符合相關規定之週期性工作班表,方可順 利執行曰常工作勤務,並提供充足之人力資源以隨時應付 』各種況。以目前各醫療院所之護理人㈣工作班表 為例,由於醫療院所之工作特性係為二十四小時全年無休 ,一般而言,單位主管之排班方法,通常會事先參寺ς護 理人員之年資、工作能力、法令規定及其他相關限制因素 • 等,再利用人工排班方式將各護理人員分別排入一工作班 表之各值勤班別,藉以完成該工作班表之規劃排定作業。 惟前述傳統以人工方式所進行之排班方法,於實際 進行時仍會產生諸多問題,再以護理人員之排班方法為例 • 提出說明。由於在進行護理人員之排班作業過程中,其單 位主官仍必須詳細考慮實質上的硬性限制排班規則( ^ C〇nStraintS),例如:現行政府法令規章、醫療院所及工會 特殊的排班政策等;或者亦會配合考慮其他軟性限制排班 規則(soft constraints),例如:各護理人員個人之排班偏 PK10330 07/06/11 1352933 * 好等。虽上述各種排班規定之限制因素皆納入考量後,其 整,排班作業將變得更為複雜,造成該單位主管不易規劃 出符D各種排班規定之工作班表。因此,前述習用排班方 法所建立成之工作班表,無法達到公平及合理的工作分 派要求。另外,以人工方式規劃排定該工作班表的過程中 ,亦會浪費相當多的時間成本,故不符合經濟效益。 再者,參考國内外先前已揭示之各種相關文獻,其 亦有學者試圖利用數學規劃之模式,例如:整數規劃( integer programming)或二次規劃(qUadratic pr〇gramming )等方式,欲藉以尋求排班組合上之較佳解。然而,諸如 前述護理人員之週期性工作班表係是屬於Np__plete問 題(Bartholdi於1981年所證明),並不易利用線性代數等 屆方法求得較佳解’故該另—排班方法仍無法有效解決前述 工作班表之規劃排定作業上可能產生的諸多問題。基於上 述原因,有必要進一步改良上述各習用排班方法。 有鑑於此,本發明改良上述各習用排班方法之缺點 ,其係藉由啟發式演算法中之螞蟻族群演算法(Am Colony Optimization,Ac〇)為基礎,且預先^立一限制 規則條件,以便於規劃排定一工作班表過程中,作為更新 各種不同排班路徑之費洛蒙值的參考依據,以供快速規劃 出符合排班規定之工作班表。 — 【發明内容】 本發明之主要目的係提供一種運用啟發式演算法之 排班方法,其係藉由螞蟻族群演算法之正向回饋 PK10330 07/06/11 ~ 6 — positive feedback)特性,利用一電腦系統將欲進行排班 之數個工作人員分職定為-人卫轉蟻,再配合更新各種 不同排班路徑之費洛蒙值,作為各人工 _ 鳩班別的參考依據’以快速完成一工; 疋作業’使得本發明具有可大幅降低排料間成本及提升 該工作班表適用性之功效。 本發明之次要目的係提供一種運用啟發式演算法之 排班方法,其係藉由—節省演算法作為各人工媽議選取排 班路彼之依據’使得本發明具有可有效降低排班過程甲落 入區域最佳解之機率的功效。 I根據本發明之運用啟發式演算法之排班方法,其包 s班表2體奴步驟,制用m贼據排班天數 及工作人貞數量產生—絲個體;-排班路徑選取步驟, 係基T 蟻族群演算法配合—限制規則條件,於該班表 個體尋找^不同齡路徑;—#洛隸更新步驟,係分析 路k所运反之該限制規則條件的次數,以相對更新 班^^之—費洛蒙值’並透過該費洛蒙值進—步選取 ^口,定之排班路彳S ;以及—I作班表輸出步驟,係配合 之終止條件’ ^成—工作班表之規劃排定。 【實施方式】 為讓本發明之上述及其他目的、特徵及優點能更明 隆下文特舉本發明之較佳實施例,並配合所附圖式 作詳細說明如下: 〇月多照1圖所示,本發明較佳實施例之運用啟發式 PK10330 07/06/11R1352933 IX. Description of the invention: 0 [Technical field to which the invention pertains] The present invention relates to a scheduling method using a heuristic algorithm, in particular, an ant group algorithm (Ant c〇1〇ny (10) Plus. , ACC)) is based on the method of scheduling the work schedules that meet the scheduling requirements. [Prior technology] 瘫, nowadays, such as nursing staff in medical institutions, factory production personnel, transportation industry drivers or catering industry service personnel, etc., usually must be pre-planned by the unit supervisor to schedule periodic work classes that meet relevant regulations. In order to successfully carry out regular work and provide sufficient human resources to cope with all kinds of situations. Take the current nursing staff (4) work schedules of various medical institutions as an example. Since the working characteristics of medical institutions are 24 hours a day, in general, the scheduling method of the unit supervisors usually takes the temple in advance. The nursing staff's seniority, work ability, legal requirements and other relevant limiting factors, etc., and then use the manual scheduling method to discharge each nursing staff into each duty class of the work shift table, so as to complete the planning schedule of the work shift table. Set the job. However, the above-mentioned traditional manual scheduling method still has many problems when it is actually carried out, and the nursing staff's scheduling method is taken as an example. Because during the course of the nursing staff's scheduling work, the unit's chief officer must still consider the basic hard limit scheduling rules (^ C〇nStraintS), for example: current government laws and regulations, medical institutions and trade unions. Class policy, etc.; or will also consider other soft restrictions on soft constraints, such as: individual care staff personal shift PK10330 07/06/11 1352933 * Good. Although the above-mentioned various scheduling restrictions are taken into account, the whole and shifting operations will become more complicated, which makes it difficult for the head of the unit to plan the work schedules of various scheduling requirements. Therefore, the work schedule established by the aforementioned conventional shift schedule cannot meet the fair and reasonable job assignment requirements. In addition, the manual planning of the work schedule will also waste a considerable amount of time and cost, so it is not in line with economic benefits. Furthermore, with reference to various related literatures that have been previously revealed at home and abroad, some scholars have tried to use mathematical programming models such as integer programming or secondary programming (qUadratic pr〇gramming) to seek platoons. The best solution on the class combination. However, the periodic work schedules such as the aforementioned caregivers belong to the Np__plete problem (Bartholdi proved in 1981), and it is not easy to use the linear algebra method to obtain a better solution. Therefore, the other-shift method is still not effective. Solve many problems that may arise in the planning and scheduling of the above work schedule. For the above reasons, it is necessary to further improve the above-mentioned various conventional scheduling methods. In view of the above, the present invention improves the shortcomings of the above-mentioned various conventional scheduling methods, which are based on the ant colony algorithm (Am Colony Optimization, Ac〇) in the heuristic algorithm, and pre-establish a constraint rule condition. In order to plan the schedule of a work shift, as a reference for updating the pheromone value of various shift routes, for quick planning of the work schedule meeting the scheduling requirements. SUMMARY OF THE INVENTION The main object of the present invention is to provide a scheduling method using a heuristic algorithm, which utilizes the positive feedback of the ant group algorithm to PK10330 07/06/11 ~ 6 - positive feedback. A computer system divides the number of staff members who want to be scheduled as a person-to-person ant, and then cooperates with updating the pheromone values of various shift routes as a reference for each manual _ 鸠 ' Completing a work; 疋 operation' makes the invention have the effect of greatly reducing the cost of the discharge and improving the applicability of the work schedule. A secondary object of the present invention is to provide a scheduling method using a heuristic algorithm, which is based on the method of saving the algorithm as the basis for selecting the scheduling of each artificial mother. The effect of A falling into the best solution in the region. I according to the present invention, the heuristic algorithm is used in the scheduling method, the package s class table 2 body slave step, the system uses the m thief according to the number of scheduling days and the number of workers to produce - silk individual; - scheduling path selection steps, The phylogenetic T ant group algorithm cooperates with the constraint rule condition, and finds the different age path in the class; the #洛隶 update step is to analyze the number of times the road k is opposite to the limit rule condition, to update the class ^ ^ _ pheromone value 'and through the pheromone value into - step selection ^ mouth, set the scheduling road ; S; and - I for the shift table output steps, the termination conditions of the cooperation ^ ^ into - work class table Planning and scheduling. The above and other objects, features, and advantages of the present invention will become more apparent from the description of the preferred embodiments of the invention. , the heuristic PK10330 07/06/11 of the preferred embodiment of the present invention
1352933 I 演算法之排班方法係藉由一電腦系統(未繪示)連接至少 一資料庫(未繪示)作為執行架構,並以螞蟻族群演算法 (Ant Colony Optimization,ACO)為實作基礎,用以執 行包含一班表個體設定步驟S1、一排班路徑選取步驟幻 、一費洛蒙值更新步驟S3及一工作班表輪出步驟s4等 。藉此,本發明運用啟發式演算法之排班方法,可應用於 ^醫療院所護理人員、工廠生產人員、交通運輸業^人 貝或^飲業服業人員等週期性工作班表的規劃排定作業。 前述資料庫係透過完整的資料收集及匯整作業,用 以預先儲存—「限舰職件」,該_規職件^參考 法令規章、工作單位或工會所規定之排班規則等硬 ^制排班規則,以及其他如工作人員之個人偏好等軟性 制排班規則。例如:國際I麵e Takeshi等學者所提出 :具=1生=制條件’其包括「一般禁止排班限 π止4理人貝個人換班限制等。 庫亦建立一限制次數表輅J 乃外該貝科 本發明排班方料 (blted Table)’用以記錄 數=程中,各工作人員之「違反限制次 i、」」/ g次數即違反前述限制規則條件之次數, ;ρ (Prohibited) 该Prohibited Table,用以作A名婊 戈於 據。再者,⑽料庫㈣排班路徑搜尋之參考依 關資料,如各工作人員之班之:⑽的相 可作為進行排班作業之參考依據。、工作此力等’其亦 請參照第1及2圖所示,本發明較佳實施例之班表 PK10330 07/06/11 1352933 個體设疋步驟si,其係設定欲進行排班作業之工作人員 數量及排班天數,以便藉由該電腦系統之一顯示介面產生 一班表個體1,該班表個體】之大小即為該工作人員數量 乘以該排班天數之矩陣。於如圖所示之實施例中,該班表 個體1之橫座標可設定為排班日期,縱座標較佳設定為工 作人員之姓名或代號等。而各工作人員可供選取之值勤班 別較佳係包含曰班、夜班、大夜班及休假等(代號依序設 定為D、N、Μ及H)。 g 睛再參照第1及2圖所示,本發明較佳實施例之排 班路徑選取步驟S2 ’其係由該電腦系統將欲進行排班之 各工作人員分別設定為一人工螞蟻,各人工螞蟻初步係隨 機選取該班表個體1之一排班日期的一值勤班別作為一起 始點各人工蜗蟻皆選取完成一起始點後,係必須再分別 選取其他排班日期之—值勤班別,最後再回_起始點。 如第:圖所示,假設一人工螞議(工作人員工)選定2日 之大夜班(M)作為—起始點,其必須於2日以外之各排 班日期(1日、3日至了日)再分別選取一值勤班別,最 後回到2日之大夜班(M)的起始點,當一人工螞犧完成 一排班路徑即稱為一個循環11 (cycle)。另外,各人工螞 二皆完成一個循環11 (cycle)則稱為-個演化世代(即 70成一次工作班表的規劃排定作業)。 曾、土更砰言之,前述各人工螞蟻必需基於一螞蟻族群演 具用以找出違反前述「限制規則條件」最少之排班路 控’以完成一個演化世代。其中,各人工螞蟻較佳可藉由 PK10330 07/06/11 義:ΐ其排班路徑之選取依據,該輪盤演 p(u,v)=— 前述健演算法公Μ,u代表該人μ蟻目前所在 之排班日期的值勤班別;V代表該人工㈣所選取之下一 個排班日㈣絲班別;CGnneet⑻代表已選取完畢之值 ,班別連接至下-個欲選取之值勤班別的集合;r㈣代 表值勤班別u與值勤班別Vm各蒙值;α代表該 人工魏之值勤班斯受賴費洛蒙值的影響值(由 使用者依需求自行設幻;3代表該人工選取之班別 受到等待時_影響值(由使用者依需求自行設定);c W代表該值勤刻U至下―_躲之絲糊違反該 限制規則條狀讀Frequeney(v)_數,其公式較 義如下: ^ φ)=--- 1 + Frequency (ν') 另外,為避免單獨應用該r輪盤演算法」而增加落 入區域最佳解之機率,各人工_較佳可以該「輪 法」為基礎,並配合使用-「節省演算法」作為其排班^ 徑之選取雜。該「輪㈣算法」及L算法」兩者 之使用時機’其係預先於該電腦系統内設定—「門檀 由使用者依需求自行設定)」。各人工螞蟻欲選取下—個排 ΡΚ10330 07/06/11 —10 1352933 班日期之值勤班別前’該電腦系統可配合隨機產生一「機 率值」,當該機率值小於該門檻值時,即利用前述「輪盤 决异法」求取該人工媽蟻之排班路徑’當該機率值大於該 門檻值時’則利用前述「節省演算法」求取該人工螞蟻之 排班路徑,該節省演算法公式較佳定義如下·· p\{u^v) = Min{Frequency{f) + Frequency(w) + Frequency[c)} 請配合參閱第3圖所示,該區塊A係代表The 1352933 I algorithm scheduling method is based on a computer system (not shown) connecting at least one database (not shown) as an execution architecture, and based on Ant Colony Optimization (ACO). The method includes the following steps: an individual setting step S1, a scheduling path selection step, a pheromone value updating step S3, and a work shifting step s4. Therefore, the present invention uses the heuristic algorithm to arrange the scheduling method, which can be applied to the planning of periodic work schedules such as nursing staff, factory production personnel, transportation industry, or people in the transportation industry. Schedule the job. The above-mentioned database is used for pre-storage through a complete data collection and collection operation - "Limited Warships", which refers to laws and regulations, work orders or scheduling rules stipulated by the trade unions, etc. Scheduling rules, as well as other soft scheduling rules such as personal preferences of staff. For example, the international I face e Takeshi and other scholars have proposed: with = 1 student = system conditions 'including the general prohibition of the shift limit π stop 4 Li Renbei personal shift restrictions, etc. The library also establishes a limit number of times 辂 J is outside The blted table of the invention is used to record the number of times in the course of the number of violations, and the number of violations of the above-mentioned restrictions rule is ρ (Prohibited); The Prohibited Table is used to make the A name. Furthermore, (10) the library (4) reference information for the route search, such as the class of each staff member: (10) can be used as a reference for the scheduling work. Please refer to Figures 1 and 2, and the preferred embodiment of the present invention is shown in the table PK10330 07/06/11 1352933. The individual is set to step si, which is to set the work to be scheduled. The number of personnel and the number of shift days, in order to generate a table individual 1 by one display interface of the computer system, the size of the individual table is the matrix of the number of staff members multiplied by the number of shift days. In the embodiment shown in the figure, the abscissa of the individual 1 of the shift table can be set as the shift date, and the ordinate is preferably set to the name or code of the staff member. The duty classes that can be selected by each staff member include off-duty, night shift, big night shift and vacation (the code is set to D, N, Μ and H in order). g, and referring to Figures 1 and 2, the scheduling path selection step S2 of the preferred embodiment of the present invention is performed by the computer system to set each worker to be scheduled as an artificial ant, each artificial The initial ants are randomly selected as one starting point of the shift schedule of the individual 1 of the shift table as a starting point. After each artificial worm is selected to complete a starting point, the department must separately select other scheduling dates - the duty shift class And finally back to _ starting point. As shown in the figure: Assume that an artificial squad (worker's staff) selects the 2nd night shift (M) as the starting point, which must be on the date of each shift outside the 2nd (1st, 3rd to Days) Then select a duty shift class, and finally return to the starting point of the 2nd night shift (M). When an artificial stalk completes a shift path, it is called a cycle 11 (cycle). In addition, each artificial phoenix completes a cycle of 11 (cycle), which is called an evolutionary generation (that is, 70% of the work schedule of a work schedule). Zeng and Tu said that the above-mentioned artificial ants must be based on an ant ethnic group to find out the number of violations of the above-mentioned "restriction rule conditions" to complete an evolutionary generation. Among them, each artificial ant preferably can be determined by PK10330 07/06/11: according to the selection basis of the scheduling path, the roulette plays p(u,v)=—the aforementioned health algorithm is public, u represents the person The value of the shift class on which the μ ant is currently located; V represents the next shift day (four) silk class selected by the labor (4); CGnneet (8) represents the value that has been selected, and the class is connected to the next one. The collection of the class; r (four) represents the value of the duty class u and the duty class Vm; α represents the value of the value of the artificial Wei's duty bans (by the user to set the illusion according to the needs; 3 represents The manually selected class is subject to the waiting time _ impact value (by the user according to their own needs); c W represents the value of the diligent U to the next _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ The formula is equivalent to the following: ^ φ)=--- 1 + Frequency (ν') In addition, in order to avoid the possibility of applying the r-wheel algorithm alone, the probability of falling into the optimal solution of the region is increased, and each artificial_ It can be based on the "round method" and is used together with the "saving algorithm" as the selection of its scheduling. The "time of use of the "round (4) algorithm" and the "L algorithm" is set in advance in the computer system - "the door is set by the user according to the requirements". Each artificial ant wants to select the next one - 1035 07/06/11 - 10 1352933. The computer system can be randomly generated with a probability value. When the probability value is less than the threshold value, Using the above-mentioned "rotation of the roulette method" to obtain the scheduling path of the artificial ant ant 'when the probability value is greater than the threshold value', the above-mentioned "saving algorithm" is used to obtain the scheduling route of the artificial ant, the saving The algorithm formula is preferably defined as follows: · p\{u^v) = Min{Frequency{f) + Frequency(w) + Frequency[c)} Please refer to Figure 3 for the block A representation.
Frequency(f),該區塊 B 係代表 Frequency(w);該區塊 c 係代表Frequency(c);該區塊D代表上述公式的v。其中 該區塊A及B所涵蓋之排班日期,係依照使用者之實際 需求進行設定。該「節省演算法」主要係針對目前該人工 螞犧所在之值勤班別u,分別計算其他所有尚未選取之值 勤班別v違反「限制規則條件」的次數,藉以於各值勤班 別v中選取違反「限制規則條件」的次數最少者,作為該 人工碼蠛下一個欲進行選取之值勤班別。 請再參照第1及2圖所示,本發明較佳實施例之費 洛蒙值更新步驟S3,其係重覆執行前述演化世代,並分 析各演化世代中之不同排班路徑違反「限制規則條件」之 次數,作為更新各人工螞蟻之排班路徑費洛蒙值的主要參 考依據。亦即違反「限制規則條件」次數較少之排班路徑 ,係必須相對加重其費洛蒙值,以供各人工螞蟻可不斷累 積經驗,以便逐步選取符合規則之排班路徑,進而完成其 PK10330 07/06/11 —11 — 工作班表。审上" 文坪S之’當各人工螞蟻選取一值勤班別並移 動至下個值勤班別時,即針對該值勤班別至另一值勤班 别之排班路杈進行費洛蒙值之區域更新作業,該費洛蒙值 區域更新公式較佳定義如下: t{u, v) = (1 — p) · ν) + Δτ(^, ν) 一前述費洛蒙值區域更新公式中,ρ代表費洛蒙濃度的 衰減值(由使用者依需求自行設定),亦即經過一預定時 ,-間後,該人工螞蟻經過之排班路徑所殘留的費洛蒙值會逐 ^ =揮發,該揮發速度係以ρ表示,且ρ的值較佳係設定為 "於〇與1之間’亦即G< Ρ <1。△τ(χι,ν)則代表排班 ^徑被更新之費料強度值,亦即違反「關規則條件」 次數的倒數+ 1,也就是說違反「限制規則條件」次數較 少之排班路徑,其費洛蒙值相對較高,其公式較佳定義如 下:Frequency(f), the block B represents Frequency(w); the block c represents Frequency(c); the block D represents v of the above formula. The schedule dates covered by the blocks A and B are set according to the actual needs of the users. The "saving algorithm" mainly calculates the number of violations of the "restriction rule conditions" for all other duty classes v that have not been selected for the duty class u where the artificial sacrifice is currently located, so as to select among the duty classes v. The number of violations of the "restriction rule conditions" is the least, as the next duty class to be selected for the manual code. Referring to FIGS. 1 and 2 again, the pheromone value updating step S3 of the preferred embodiment of the present invention repeats the foregoing evolution generation and analyzes the different scheduling paths in each evolved generation to violate the "restriction rule". The number of conditions is used as the main reference for updating the pheromone value of the scheduling route of each artificial ant. That is to say, the number of shifts that violate the "restricted rule conditions" is relatively small, and the pheromone value must be relatively increased, so that the artificial ants can continuously accumulate experience, so as to gradually select the scheduling route that meets the rules, and then complete its PK10330. 07/06/11 —11 — Work schedule. Review " Wenping S' when the artificial ants select a duty shift and move to the next duty shift, that is, the pheromone value for the shift shift from the duty shift to another duty shift For the regional update operation, the pheromone region update formula is preferably defined as follows: t{u, v) = (1 - p) · ν) + Δτ(^, ν) in the aforementioned pheromone region update formula , ρ represents the attenuation value of the pheromone concentration (set by the user according to the demand), that is, after a predetermined time, after the interval, the pheromone value remaining by the artificial ant after the scheduling path will be ^= Volatilization, the volatilization rate is expressed by ρ, and the value of ρ is preferably set to " between 〇 and 1', that is, G< Ρ <1. △τ(χι,ν) represents the updated intensity value of the shift, that is, the reciprocal of the number of violations of the "off-rule conditions" + 1, that is, the number of violations of the "restriction rule condition" is less. The path has a relatively high pheromone value, and its formula is preferably defined as follows:
At{u,v)= —____ 1 + Frequency (ν ) 再者,當各人工螞蟻分別選取各排班日期之值勤班 別,以建立屬於各人工螞蟻之一排班路徑p她⑻時,各 人工螞蟻係會沿著該排班路徑Path(k)返回該起始點以完 成一個循帛n (cycle)。#中各人工4|犧在返回該起始點 之過程中转配合留下費洛蒙值。#各人工鄉皆完成二 PK10330 07/06/11 —12 — 個循被(cycle)後(即完成一個演化世代),該電腦系滅 係:據各人工螞蟻所建立之各排班路徑pa_,選出其 中运反❿制規貝|J條件」次數最少之一排班路徑At{u,v)= —____ 1 + Frequency (ν ) Furthermore, when each artificial ant selects the duty shift of each shift date to establish a shift path p (8) belonging to each artificial ant, each The artificial ant will return the starting point along the scheduling path Path(k) to complete a cycle n (cycle). #中人工4| sacrifice in the process of returning to the starting point to match the pheromone value. # Each artificial township has completed two PK10330 07/06/11 —12 — after the cycle (that is, complete an evolutionary generation), the computer system is: according to each of the artificial ants established the scheduling path pa_, Select one of the least frequent shift paths for the number of times
Path(k) ,再將該排班路徑path(k)與其他所有渖化世代反「 限制規職件」魏最奴齡频p'ath(k)相互比對, 進而於各#化世代義-最佳排班路徑Path⑻。最後 ’即針對該最制班雜Path(k)騎料蒙值全域更新 (Giobd Update) ’該費洛蒙值全域更新公式較佳定義如 下:Path(k), and then compare the shift path path(k) with all other generations of anti-“restricted rules” Wei’s sinister age p'ath(k), and then - Best scheduling path Path(8). Finally, the Giobd Update is the best definition for the most comprehensive path (k). The pheromone global update formula is defined as follows:
Q~ p) r(u,v) ,when (μ} ν) g Path{k) 該費洛蒙值全域更新公式中,代表費洛蒙 增量值,其係以一整條排班路徑Path(k)違反「限制規則 條件」次數之總合B (Path(k))的倒數做為心办⑺的值 ,其公式較佳定義如下:Q~ p) r(u,v) ,when (μ} ν) g Path{k) This pheromone value global update formula represents the pheromone delta value, which is a whole shift path Path (k) The reciprocal of the total number B (Path(k)) of the number of violations of the "restriction rule conditions" is taken as the value of the heart (7). The formula is preferably defined as follows:
At. (u,v) - _1 _ B {Path^k)) 請再參照第1圖所示,本發明較佳實施例之工作班 表輸出步驟S4,其係藉由一預設之終止條件完成該工作 班表之規劃排定作業。該終止條件可設定為各人工螞蟻必 須完成一預定次數的演化世代,例如:進行1〇〇〇次的渖 PK10330 07/06/11 —13 — 1352933 化世代。或是亦可藉由分析每一個世代所獲得之工作班表 整=延反「限制規則條件」次數是否低於一標準值,例如 .虽產生一工作班表其違反限制規則條件之次數低於標準 值50時’即終止本發明之各執行步驟。藉由上述之終止 條件’可作為是否完賴工作班表之規觸定作業的主要 依據,以快速規劃出符合排班規定之工作班表。At. (u, v) - _1 _ B {Path^k)) Referring again to FIG. 1, the work shift table of the preferred embodiment of the present invention outputs step S4, which is terminated by a predetermined condition. Complete the planning and scheduling of the work schedule. The termination condition can be set such that each artificial ant must complete a predetermined number of evolutionary generations, for example, one time 渖 PK10330 07/06/11 - 13 - 1352933 generation. Or by analyzing the work schedule obtained by each generation = whether the number of "restriction rule conditions" is lower than a standard value, for example, although a work shift table is generated, the number of violations of the restriction rule condition is lower than When the standard value is 50, the execution steps of the present invention are terminated. The above-mentioned termination conditions can be used as the main basis for determining whether or not to complete the work of the work schedule, so as to quickly plan the work schedule that meets the scheduling requirements.
奋為證明本發明運用啟發式演算法之排班方法,其確 實具有執行時間大幅賴’对反「_規職件」錢 相對較少’而可獲得符合排班規定之工作班表等優點。以 歴 下係以本發明應用於護理人員之排班方法,且列舉數個實 驗結果制之。該韻設備包含cpu〔 Ime】 penti^ 2.8GHz〕、記憶體〔512RAM〕,並以作為演算法之 實作程式語言。又,整體測試過程中主要係採用如下表所 =之各種不同測試條件,以便實驗測試本發明用於護理人 員排班作業之效能。In order to prove that the present invention uses the heuristic algorithm to perform the scheduling method, it has the advantage that the execution time is greatly dependent on the relatively small amount of money for the anti-"provisional job" and the work schedule that meets the scheduling requirements can be obtained. The present invention is applied to the scheduling method of the nursing staff by the present invention, and several experimental results are listed. The rhyme device includes cpu [ Ime] penti^ 2.8GHz], memory [512RAM], and is used as the implementation language of the algorithm. Moreover, the overall test process mainly uses various test conditions as shown in the following table to experimentally test the effectiveness of the present invention for nursing staff to perform shifting operations.
再者,本發明之相關參數設定,係以螞蟻族群演算 法為基礎,其演化世代設定為1000世代,人工螞蟻設= 為扣又,各人工螞犧選取各值勤班別之路徑長度視護理 PK10330 07/06/11 丄妁2933 人員之總數及排班天數而定,前述費洛蒙衰減值p設定為 0.45,決定r(U,v)之參數設定為0.45,決定;7(v)之參數 /5設定為0.65,其測試比對結果如下:Furthermore, the related parameter setting of the present invention is based on the ant group algorithm, and the evolution generation is set to 1000 generations, the artificial ant is set to be the buckle, and the artificial sacs select the path length of each duty class as the nursing PK10330. 07/06/11 丄妁2933 The total number of personnel and the number of shift days, the pheromone attenuation value p is set to 0.45, the parameter of r (U, v) is determined to be 0.45, the decision; 7 (v) parameters The /5 is set to 0.65, and the test comparison results are as follows:
本發兩~~~This hair two ~~~
花費時間 ___(#)Spend time ___(#)
遠反限制規則 條件次數Far anti-limit rule
排班二士述貝驗結果顯示,本發明運㈣發式演算法之 參照表L無論麵於何期、護理人歧量與科別( 表之規劃二表三),皆可於一短時間内完成工作班 規則停件=4並可大巾自降傾工縣表違反「限制 、了用於排疋各種週期性工作班表。 pKl〇33〇 °7/〇6/n 如上所述’相較於f用排班方法所建立完成之工作 〜15 — 及,要求 1 據一 以螞蟻族 限制規 群演算法為實作基礎, 等方 則條件」’並配合「輪盤演算法」或「節省ΐ算法 式,Μ供各人工螞蟻分別尋找出一排班路徑。再\ 由刀析各排轉徑所違反之該限藏則條件的錢,、佳、藉 不斷f新各獅路徑之費洛蒙值,作為各人叫罐選取= 合規定之排班路徑的重要依據,進而可快速規劃出: 性佳之工作班表。 雖然本發明已利用上述較佳實施例揭示,然其並非 用以限定本發明,任何熟習此技藝者在不脫離本發明之精 神和範圍之内,相對上述實施例進行各種更動與修改仍屬 本發明所保護之技術範疇,因此本發明之保護範圍當視後 附之申請專利範圍所界定者為準。 PK10330 07/06/11 —16 — 1352933 【圖式簡單說明】 * 第1圖:本發明較佳實施例之運用啟發式演算法的步 ^ 驟流程不意圖。 第2圖:本發明較佳實施例之運用啟發式演算法所產 生之班表個體的示意圖。 第3圖:本發明較佳實施例之運用啟發式演算法配合 節省法所應用之班表個體的示意圖。 • 【主要元件符號說明】 1 班表個體 11 循環 S1 班表個體設定步驟 ί'ν-'λ S2 排班路徑選取步驟 ~~ S3 費洛蒙值更新步驟 S4 工作班表輸出步驟 • . PK10330 07/06/11 —17 —According to the results of the two-step test, the reference table L of the present invention can be used for a short period of time regardless of the date, the number of caregivers and the department (Table 2 of Table 2). The completion of the work class rules stop = 4 and the towel can be used to reduce the number of periodic work schedules. pKl〇33〇°7/〇6/n as described above. Compared with the work done by f scheduling method~15 — and the requirement 1 is based on the ant restriction group algorithm, and the condition is “' and cooperates with the “rotation algorithm” or "Save the algorithmic formula, for each artificial ant to find a row of shifts separately. Then \ by the knife to analyze the limits of the restrictions on the storage of the various conditions, the money, the best, the new lion path The pheromone value, as an important basis for each person to select the tank selection = the prescribed shift path, can quickly plan out: a good work schedule. Although the invention has been disclosed using the above preferred embodiment, it is not used In order to limit the invention, any person skilled in the art without departing from the spirit and scope of the invention The various modifications and changes to the above-described embodiments are still within the technical scope of the present invention. Therefore, the scope of the present invention is defined by the scope of the appended claims. PK10330 07/06/11 —16 — 1352933 BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a flow of a heuristic algorithm in accordance with a preferred embodiment of the present invention. FIG. 2 is a perspective view of a preferred embodiment of the present invention using a heuristic algorithm. A schematic diagram of the generated individual of the shift table. Fig. 3 is a schematic diagram of an individual using the heuristic algorithm in conjunction with the saving method in the preferred embodiment of the present invention. • [Major component symbol description] 1 shift table individual 11 cycle S1 Individual schedule setting step ί'ν-'λ S2 Shift path selection step ~~ S3 pheromone value update step S4 Work shift table output step • . PK10330 07/06/11 —17 —
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW96120967A TWI352933B (en) | 2007-06-11 | 2007-06-11 | Scheduling method using meta-heuristics |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW96120967A TWI352933B (en) | 2007-06-11 | 2007-06-11 | Scheduling method using meta-heuristics |
Publications (2)
Publication Number | Publication Date |
---|---|
TW200849117A TW200849117A (en) | 2008-12-16 |
TWI352933B true TWI352933B (en) | 2011-11-21 |
Family
ID=44824067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW96120967A TWI352933B (en) | 2007-06-11 | 2007-06-11 | Scheduling method using meta-heuristics |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI352933B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107464018A (en) * | 2017-08-01 | 2017-12-12 | 北京同城必应科技有限公司 | A kind of Distribution path optimization method and device, computer equipment, storage medium |
-
2007
- 2007-06-11 TW TW96120967A patent/TWI352933B/en not_active IP Right Cessation
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107464018A (en) * | 2017-08-01 | 2017-12-12 | 北京同城必应科技有限公司 | A kind of Distribution path optimization method and device, computer equipment, storage medium |
Also Published As
Publication number | Publication date |
---|---|
TW200849117A (en) | 2008-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210295984A1 (en) | Optimized patient schedules based on patient workflow and resource availability | |
Harper | A framework for operational modelling of hospital resources | |
Pandit et al. | Using mean duration and variation of procedure times to plan a list of surgical operations to fit into the scheduled list time | |
US20140039906A1 (en) | Optimized surgery scheduling | |
JP2006277060A (en) | Schedule preparation support system, schedule preparation method and program | |
Lin | An adaptive scheduling heuristic with memory for the block appointment system of an outpatient specialty clinic | |
Sperandio et al. | An intelligent decision support system for the operating theater: A case study | |
Anjomshoa et al. | An exact approach for tactical planning and patient selection for elective surgeries | |
Mackay et al. | Patient flow simulation modelling–an approach conducive to multi-disciplinary collaboration towards hospital capacity management | |
Shumsky et al. | Allocating COVID-19 vaccines: save one for the second dose? | |
Shakoor et al. | Application of discrete event simulation for performance evaluation in private healthcare: The case of a radiology department | |
Yan et al. | Sequential Appointment Scheduling Considering Walk‐In Patients | |
TWI352933B (en) | Scheduling method using meta-heuristics | |
Huang et al. | A cost-effective urgent care policy to improve patient access in a dynamic scheduled clinic setting | |
US20150134312A1 (en) | Evaluation of Service Delivery Models | |
Rinder et al. | Healthcare scheduling by data mining: Literature review and future directions | |
McDaid et al. | Managing uncertainty in agile release planning. | |
Beojone et al. | Improving the shift-scheduling problem using non-stationary queueing models with local heuristic and genetic algorithm | |
Srinivas et al. | Design and analysis of a hybrid appointment system for patient scheduling: An optimisation approach | |
Khlie et al. | Modelling and simulation of the patient pathway with ARENA: Case of the Mother-Child Hospital at Marrakech | |
Dachyar et al. | Hotel revival strategy planning with SWOT-Fuzzy AHP-TOPSIS: A case study of 4-star hotel | |
Kolker | Queuing theory and discrete events simulation for health care: from basic processes to complex systems with interdependencies | |
Ambarwati et al. | Towards Zero Maternal Mortality: The Role of Policy Makers in Maternal Perinatal Audit Surveillance and Response | |
Jayamaha | Drive-Through Vaccination Clinic Modelling Using VBA | |
Anderson | Integer and Stochastic Programming Approaches to Scheduling Nursing Staff at Long-Term Care Homes |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |