Tabu3-基于甘特圖的JSP N1鄰域
前面的tabu2是一種FJSP的鄰域結構,搜索的是插入不同機器的解空間。如果不插入不同機器呢?
很顯然,問題轉化為JSP。
因此,小編在咨詢了一些專業人士后,打算嘗試加入JSP的tabu search。

JSP的tabu鄰域比FJSP多一些,比較知名的有N1,N4,N5,N6等鄰域(參考:A tabu search algorithm with a new neighborhood structure for the job shop scheduling problem)。小編目前簡單實現了N1的鄰域,通過類似甘特圖的形式作為解的結構。
在介紹N1之前還要提到一個critical block的概念。在critical path中,如果有若干個連續的工序是在同一機器上加工的,則稱其為一個critical block。很多tabu鄰域都是在critical block內進行操作,包括這里說的N1。
N1的鄰域為:在所有critical block內,交換兩個相鄰工序在機器上的加工位置。
由于甘特圖的形式表示解沒有圖的性質,因此計算makespan、更新starting time的方法和析取圖中又有所不同。簡單來說,需要像GA中查找空閑時間區間一樣不斷插入,然后更新時間。
簡單實現后說下小編實現+測試后的結論:時間上勉強可以接受,不至于跑不出來;但是解的質量不夠理想。但至少說明嵌入個體是可行的。
這里提供一個進一步改進的思路:將第三部分的JSP的tabu鄰域和第二部分的k-insertion結合起來,因為我做第三部分的時候沒有寫成析取圖,所以這部分沒有做。結合之后還要將第二部分進一步改進,至少時間上要縮短,再嵌入到個體中。
Tabu部分大致就介紹到這里,剩下還會有一篇具體講解小編實現的代碼。講解有些地方不夠詳細,要具體研究的小伙伴還是推薦好好研讀論文。
參考
[1]Li, Xinyu , and L. Gao . "An effective hybrid genetic algorithm and tabu search for flexible job shop scheduling problem." International Journal of Production Economics 174.Apr.(2016):93-110.
[2]Zhang, Chao Yong , P. G. Li , and Y. R. Zailin Guan . "A tabu search algorithm with a new neighborhood structure for the job shop scheduling problem." Computers & Operations Research 34.11(2007):3229-3242.
[3]Mastrolilli, Monaldo , and L. M. Gambardella . "Effective Neighbourhood Functions for the Flexible Job Shop Problem." Journal of Scheduling 3.1(2015):3-20.
[4]Zhang, Guohui , L. Gao , and Y. Shi . "An effective genetic algorithm for the flexible job-shop scheduling problem." Expert Systems with Applications 38.4(2011):3563-3573.