Deep Q-network演算法應用於並行機台調度問題
Parallel Machine Scheduling with Deep Q-network Algorithm
摘要
平行機台調度是個經典的問題,並且在許多產業領域中皆有與平行機台調度相關的問題,近期平行機台調度仍然是一個熱門的研究議題。平行機台調度問題是一個在有限資源以及時間內,能夠完成全部或是最多任務的一個決策過程,所以平行機台調度可以被視為組合最佳化問題,許多研究會使用數學規劃法來求解此類型的問題。然而當使用數學規劃法求解大規模的問題時,此類的問題將會變成相當棘手且複雜,甚至是無法求解。因此近幾年大部分的研究將會使用近似最佳解的方法來解決此類型的問題,像是啟發式演算法、調度規則或是強化學習的方法。然而近幾年深度學習在許多領域中獲得了驚人的成就。平行機台調度問題可被視為馬可夫決策過程,該特性跟深度強化學習相同,促使我們嘗試使用深度強化學習來解決經典的平行機台調度問題。
此研究提出一個利用Deep Q-network (DQN)演算法來解決最小化完工時間的平行機台調度問題,如果所有任務將平均分配給所有機台,此決策結果對平行機台調度問題來說為最佳解,因此我們將機台負荷平衡以及一些有關排程的知識設計成動作以及獎勵,期望能夠讓我們提出的演算法靈活運用在問題上,且從實驗結果中歸納出一些強化學習適合用於平行機台調度問題上的規則,這些規則將有利於未來相關研究使用。我們使用實驗結果來顯示我們提出的演算法是有效率且能夠妥善解決問題,在同一規模的問題下能夠快速地給予有競爭力的可行解。就我們所知,此研究將是第一個單獨使用DQN演算法來求解平行機台調度問題的研究,而不是輔佐其他演算法來解決問題。
此研究提出一個利用Deep Q-network (DQN)演算法來解決最小化完工時間的平行機台調度問題,如果所有任務將平均分配給所有機台,此決策結果對平行機台調度問題來說為最佳解,因此我們將機台負荷平衡以及一些有關排程的知識設計成動作以及獎勵,期望能夠讓我們提出的演算法靈活運用在問題上,且從實驗結果中歸納出一些強化學習適合用於平行機台調度問題上的規則,這些規則將有利於未來相關研究使用。我們使用實驗結果來顯示我們提出的演算法是有效率且能夠妥善解決問題,在同一規模的問題下能夠快速地給予有競爭力的可行解。就我們所知,此研究將是第一個單獨使用DQN演算法來求解平行機台調度問題的研究,而不是輔佐其他演算法來解決問題。
The Parallel machine scheduling problem (PMSP) is a problem that is concerned about resource allocation to complete all or the maximal number of tasks in limited time and resources, so it could be viewed as a combinatorial optimization problem. However, PMSP has been recognized as an NP-complete/hard problem, making it to become an intractable problem when confronted with large-scale problems. Thus, other algorithms that could obtain sub-optimal solutions have been devised over decades. These approaches involved meta-heuristic, dispatching rules, and reinforcement learning. Deep reinforcement learning (DRL), combining deep learning and reinforcement learning, has achieved promising results in several domains. Meanwhile, the PMSP, whose processing time is deterministic, can be formulated as a Markov decision process (MDP) problems, inspiring us to use DRL to cope with PMSP. This work proposes an Deep Q-network (DQN) algorithm for minimization of makespan in PMSP. If all tasks are equally assigned to each machine, this scheduling result will be an optimal solution for PMSP. Therefore, we design machine load balancing and some scheduling domain knowledge for action and reward. The goal is to empirically indicate that the proposed algorithm is competitive and effective. Moreover, we will provide in-depth analysis to summarize which designs are suitable for the application of reinforcement learning in PMSP. To the best of our knowledge, this is the first work attempting to use DQN algorithm alone to attack PMSP.