# An actor-critic algorithm with policy gradients to solve the job shop scheduling problem using deep double recurrent agents

심층 이중 순환 에이전트를 이용해 작업장 일정 계획 문제를 풀기 위한 정책 경사 기반 액터-크리틱 알고리즘

Marta Monaci, Valerio Agasucci, Giorgio Grani · arXiv · 2021년 10월 18일

- **연구 문제** JSSP는 기계 배정과 operation 순서를 함께 정해 makespan을 최소화해야 하며 NP-hard라서 정확해법의 계산 시간과 휴리스틱의 품질 사이에 trade-off가 있습니다.
- **연구 방법** JSSP를 MDP로 정식화하고, PPO 기반 actor-critic에서 두 개의 연결된 LSTM으로 가변 크기 상태를 처리하여 greedy형 스케줄링 정책을 학습합니다.
- **주요 결과** Gaussian 시험 집합의 40×35 클래스에서 제안 방법의 평균 makespan은 CPLEX branch-and-cut보다 91% 낮았고, ADA 대비 makespan은 3%에서 27.5% 낮았습니다. 계산 시간도 여러 클래스에서 낮게 보고됩니다.

![Table 10: RL vs BB-CPLEX on the Taillard benchmark instances : comparison on the on the makespan Cmax. BB-CPLEX 1 represent the branch-and-cut procedure implem…](https://refivu.com/papers/cb0f9a5c-40b9-4bc4-9021-aeb7940bbe8d/figures/figure-48ac302b45f203c46df42616ef891d99.png?thumb=512)

**Table 10** : RL vs BB-CPLEX on the Taillard benchmark instances : comparison on the on the makespan Cmax. BB-CPLEX 1 represent the branch-and-cut procedure implemented in CPL EX with a time limit of one minute, while BB-CPLEX 5 stops after ﬁve minutes.

[원문](https://arxiv.org/abs/2110.09076v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Marta Monaci, Valerio Agasucci, Giorgio Grani · An actor-critic algorithm with policy gradients to solve the job shop scheduling problem using deep double recurrent agents · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

## 문제 설정: JSSP와 greedy 휴리스틱의 한계

Job Shop Scheduling Problem(JSSP)은 여러 작업(job)의 operation을 정해진 순서에 따라 기계에 배정하여 makespan, 즉 모든 operation의 최대 완료 시간을 최소화하는 문제입니다. 원문은 이 문제가 NP-hard이며 기계가 셋 이상인 경우 대부분의 구조에서 최적해를 찾기 어렵다고 설명합니다. 정확해법인 branch-and-cut은 규모가 커질수록 계산 시간이 빠르게 늘어나고, 우선순위 규칙 기반 휴리스틱은 빠르지만 품질에 한계가 있습니다.

이 논문은 이 사이를 메우기 위해 강화학습으로 greedy형 스케줄링 정책을 학습하는 방향을 택합니다. 핵심 질문은 작은 인스턴스에서 학습한 정책이 더 큰 인스턴스와 다른 처리 시간 분포로 일반화되며, 기존 방법과 비교해 경쟁력 있는 makespan과 계산 시간을 얻을 수 있는지입니다.

## MDP 정식화와 이중 LSTM actor-critic

논문은 JSSP를 Markov Decision Process로 정식화합니다. 상태 s\_t는 작업마다 남은 operation 목록과 각 operation의 기계, 처리 시간, 가능한 최조 시작 시각을 담은 가변 길이 자료 구조입니다. 행동 a\_t는 현재 가능한 operation 중 하나를 선택하는 것이며, 보상은 선택한 operation이 현재 makespan을 늘린 만큼의 음수로 정의됩니다. 이 정의에 따라 누적 보상의 음의 값이 최종 makespan과 일치합니다.

actor는 두 개의 연결된 LSTM을 사용합니다. 첫 LSTM은 각 operation의 임베딩을 만들고, 작업마다 마지막 operation의 임베딩만 취해 두 번째 LSTM에 넣습니다. 두 번째 LSTM의 출력을 스칼라로 압축해 작업 수 크기의 벡터를 얻은 뒤, 유효하지 않은 행동을 가리는 action masking과 softmax를 거쳐 정책을 계산합니다. critic은 같은 이중 LSTM 구조 뒤에 세 개의 은닉층을 가진 피드포워드 네트워크를 붙여 상태 가치를 추정합니다.

![Table 20: Actor-critic network conﬁgurations](https://refivu.com/papers/cb0f9a5c-40b9-4bc4-9021-aeb7940bbe8d/figures/figure-1070a3f3cd30581dea6de8219c50e46a.png?thumb=512)

**Table 20** : Actor-critic network conﬁgurations.

[원문](https://arxiv.org/abs/2110.09076v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Marta Monaci, Valerio Agasucci, Giorgio Grani · An actor-critic algorithm with policy gradients to solve the job shop scheduling problem using deep double recurrent agents · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.

학습은 PPO에 기반하며, 목적함수는 surrogate advantage에서 KL 벌점 항을 뺀 형태입니다. 벌점 계수 β는 목표 KL 값 δ를 기준으로 갱신됩니다. critic은 수집한 rewards-to-go와의 평균 제곱 오차로 갱신됩니다.

## 실험 설정과 비교 기준

학습 데이터는 8×6부터 20×15까지 다섯 클래스, 클래스당 200개, 총 1000개의 무작위 인스턴스이며 처리 시간은 N(100, 10)에서 생성됩니다. 학습은 5000 episode, episode당 10개 roll-out으로 진행되고, 탐색 확률 ε은 0.2에서 0까지 감소합니다.

![Table 1: Training set](https://refivu.com/papers/cb0f9a5c-40b9-4bc4-9021-aeb7940bbe8d/figures/figure-8f6215d675402bd05d17602032b6b8ae.png?thumb=512)

**Table 1** : Training set.

[원문](https://arxiv.org/abs/2110.09076v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Marta Monaci, Valerio Agasucci, Giorgio Grani · An actor-critic algorithm with policy gradients to solve the job shop scheduling problem using deep double recurrent agents · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

![Table 21: Training settings](https://refivu.com/papers/cb0f9a5c-40b9-4bc4-9021-aeb7940bbe8d/figures/figure-0bef4b335ee1952d841c048b079ec1c0.png?thumb=512)

**Table 21** : Training settings.

[원문](https://arxiv.org/abs/2110.09076v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Marta Monaci, Valerio Agasucci, Giorgio Grani · An actor-critic algorithm with policy gradients to solve the job shop scheduling problem using deep double recurrent agents · 원문 그림 인용 · 원본 PDF 28쪽에서 그림 영역을 추출했습니다.

시험에서는 30×25부터 50×45까지 Gaussian 분포 집합과 Poisson 분포(λ=100) 집합을 각각 사용합니다. 비교 대상은 CPLEX의 branch-and-cut, 적응형 알고리즘 ADA, 17개의 우선순위 규칙 휴리스틱, 그리고 Graph Neural Network 기반 심층강화학습 방법입니다. 다만 Taillard 비교에서는 \[74\]와 같은 클래스 단위 재학습이 아니라 6×6부터 20×20까지를 포함하는 one-shot 학습을 사용했다고 원문은 보고합니다.

![Table 3: Taillard’s benchmark set](https://refivu.com/papers/cb0f9a5c-40b9-4bc4-9021-aeb7940bbe8d/figures/figure-3331bffc93e3dfe8f4b84ef2222ad793.png?thumb=512)

**Table 3** : Taillard’s benchmark set.

[원문](https://arxiv.org/abs/2110.09076v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Marta Monaci, Valerio Agasucci, Giorgio Grani · An actor-critic algorithm with policy gradients to solve the job shop scheduling problem using deep double recurrent agents · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

## CPLEX·ADA·휴리스틱과의 결과 비교

CPLEX branch-and-cut과의 비교에서 Gaussian 집합의 40×35 클래스는 제안 방법의 makespan이 평균적으로 branch-and-cut보다 91% 낮았다고 원문은 보고합니다. Poisson 집합의 같은 클래스에서는 87%입니다. 계산 시간에서도 제안 방법은 모든 클래스에서 평균적으로 빨랐으며, 최대 개선율은 Gaussian 40×35에서 78%, Poisson 집합에서는 67%입니다. 다만 일부 클래스에서는 CPLEX 시간 제한 초과로 인스턴스 수가 100보다 적습니다.

ADA와의 비교에서는 Gaussian 집합의 makespan 개선율이 3%에서 27.5% 사이, Poisson 집합에서는 15%에서 26.3% 사이로 보고됩니다. 계산 시간 개선율은 66%에서 86%입니다. 우선순위 규칙 비교에서는 LRM만이 일부 클래스에서 제안 방법보다 낮은 makespan을 보였습니다.

시간 제한을 60초로 둔 CPLEX 비교에서는 결과가 달라집니다. 작은 클래스에서는 CPLEX가 더 낮은 목적값을 얻었고, 50×45 Gaussian 클래스에서만 제안 방법이 앞섰습니다. 따라서 CPLEX와의 우위는 시간 제한과 클래스 크기에 따라 달라지는 조건부 결과입니다.

## 적용 범위와 한계

branch-and-cut은 정확해법이므로 시간 제한을 늘리면 목적값이 낮아지고, 시간 제한을 제안 방법의 계산 시간에 맞춘 비교와 충분한 시간을 준 비교는 결론이 다릅니다. 따라서 제안 방법의 CPLEX 대비 우위는 짧은 계산 시간 예산에서의 greedy 해 품질로 읽어야 하며, 최적성 보장을 가진 방법과 같은 기준으로 판단할 수는 없습니다.

또한 Taillard 재학습 비교는 계산 자원 제약으로 30×15와 30×20 클래스를 학습에서 제외했으며, 원문은 이 두 클래스가 학습 분포에 포함되지 않았다고 설명합니다. 일반화 결과도 Gaussian과 Poisson 처리 시간이라는 제한된 분포와 최대 50×45 규모의 인스턴스에 대해 확인된 것입니다.

![Table 19: RL vs \[74\] on the Taillard generated instances: com parison on the makespan Cmax](https://refivu.com/papers/cb0f9a5c-40b9-4bc4-9021-aeb7940bbe8d/figures/figure-76b322e7d75cd9697d308fedae991d12.png?thumb=512)

**Table 19** : RL vs \[74\] on the Taillard generated instances: com parison on the makespan Cmax.

[원문](https://arxiv.org/abs/2110.09076v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Marta Monaci, Valerio Agasucci, Giorgio Grani · An actor-critic algorithm with policy gradients to solve the job shop scheduling problem using deep double recurrent agents · 원문 그림 인용 · 원본 PDF 24쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Marta Monaci, Valerio Agasucci, Giorgio Grani
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 10월 18일
- **등록일**: 2026년 11월 6일
- **수정일**: 2023년 11월 21일
- **버전**: v2
- **arXiv**: 2110.09076
- **DOI**: 10.1016/j.ejor.2023.07.037
- **분류**: math.OC · cs.AI · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2110.09076v2) · [원문 PDF ↗](https://arxiv.org/pdf/2110.09076v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

There is a growing interest in integrating machine learning techniques and optimization to solve challenging optimization problems. In this work, we propose a deep reinforcement learning methodology for the job shop scheduling problem (JSSP). The aim is to build up a greedy-like heuristic able to learn on some distribution of JSSP instances, different in the number of jobs and machines. The need for fast scheduling methods is well known, and it arises in many areas, from transportation to healthcare. We model the JSSP as a Markov Decision Process and then we exploit the efficacy of reinforcement learning to solve the problem. We adopt an actor-critic scheme, where the action taken by the agent is influenced by policy considerations on the state-value function. The procedures are adapted to take into account the challenging nature of JSSP, where the state and the action space change not only for every instance but also after each decision. To tackle the variability in the number of jobs and operations in the input, we modeled the agent using two incident LSTM models, a special type of deep neural network. Experiments show the algorithm reaches good solutions in a short time, proving that is possible to generate new greedy heuristics just from learning-based methodologies. Benchmarks have been generated in comparison with the commercial solver CPLEX. As expected, the model can generalize, to some extent, to larger problems or instances originated by a different distribution from the one used in training.

## 원문 인용

Marta Monaci, Valerio Agasucci, Giorgio Grani (2021). An actor-critic algorithm with policy gradients to solve the job shop scheduling problem using deep double recurrent agents. arXiv:2110.09076v2. https://doi.org/10.1016/j.ejor.2023.07.037

**BibTeX**

```
@article{monaci2021actor,
  title = {{An actor-critic algorithm with policy gradients to solve the job shop scheduling problem using deep double recurrent agents}},
  author = {Marta Monaci and Valerio Agasucci and Giorgio Grani},
  year = {2021},
  eprint = {2110.09076},
  archivePrefix = {arXiv},
  doi = {10.1016/j.ejor.2023.07.037},
  url = {https://arxiv.org/abs/2110.09076v2}
}
```

## 이 논문의 용어

- [makespan](https://refivu.com/terms/7da7079dccb9-makespan)
- [action masking](https://refivu.com/terms/f3d18867392f-action-masking)
- [Job Shop Scheduling Problem](https://refivu.com/terms/a6be6a97c203-job-shop-scheduling-problem)

## 다른 논문 해설

- [Deep reinforcement learning for irrigation scheduling using high-dimensional sensor feedback](https://refivu.com/papers/870a3e0a-1d1e-449c-9bfe-8069d8a2ed5f-deep-reinforcement-learning-for-irrigation-scheduling-using.md)
- [OmniDrones: An Efficient and Flexible Platform for Reinforcement Learning in Drone Control](https://refivu.com/papers/a6123ef2-f3fd-4830-9456-36176ead03f1-omnidrones-an-efficient-and-flexible-platform-for.md)
- [Explainability in Deep Reinforcement Learning, a Review into Current Methods and Applications](https://refivu.com/papers/63038708-5f7a-46ac-a947-1db060f5882e-explainability-in-deep-reinforcement-learning-a-review-into.md)
- [Development of a Soft Actor Critic Deep Reinforcement Learning Approach for Harnessing Energy Flexibility in a Large Office Building](https://refivu.com/papers/aa7f10e6-3c4e-47d8-8908-552080e6dfb6-development-of-a-soft-actor-critic-deep-reinforcement.md)
- [Offline Reinforcement Learning for Safer Blood Glucose Control in People with Type 1 Diabetes](https://refivu.com/papers/e7f4edeb-0036-430a-b4bf-3e3ab3381a56-offline-reinforcement-learning-for-safer-blood-glucose.md)
- [DRLinFluids -- An open-source python platform of coupling Deep Reinforcement Learning and OpenFOAM](https://refivu.com/papers/6f2a0c5b-dcb1-4c26-a81e-bf180699192a-drlinfluids-an-open-source-python-platform-of-coupling.md)
- [Explainable Artificial Intelligence Recommendation System by Leveraging the Semantics of Adverse Childhood Experiences: Proof-of-Concept Prototype Development](https://refivu.com/papers/9e8744e0-d237-40b0-81d0-59bb2e4d0e01-explainable-artificial-intelligence-recommendation-system-by.md)
- [InteLiPlan: An Interactive Lightweight LLM-Based Planner for Domestic Robot Autonomy](https://refivu.com/papers/474009c4-3245-4799-8b7d-c8ca7b3d3017-inteliplan-an-interactive-lightweight-llm-based-planner-for.md)
- [A Machine Learning-Based Framework for Clustering Residential Electricity Load Profiles to Enhance Demand Response Programs](https://refivu.com/papers/7a41a40e-c1d1-4ef3-b132-93c0f0527fe0-a-machine-learning-based-framework-for-clustering.md)
- [Pro-tuning: Unified Prompt Tuning for Vision Tasks](https://refivu.com/papers/1dea8a56-c732-4a49-8b59-db6329ac8d4d-pro-tuning-unified-prompt-tuning-for-vision-tasks.md)
- [Hierarchical Multi-Agent DRL-Based Framework for Joint Multi-RAT Assignment and Dynamic Resource Allocation in Next-Generation HetNets](https://refivu.com/papers/967ee93f-c3c3-4ed1-a757-9f15d03f2a28-hierarchical-multi-agent-drl-based-framework-for-joint.md)
- [Emojis as Anchors to Detect Arabic Offensive Language and Hate Speech](https://refivu.com/papers/54ae4dfd-b346-4202-8849-71299de38771-emojis-as-anchors-to-detect-arabic-offensive-language.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/cb0f9a5c-40b9-4bc4-9021-aeb7940bbe8d-an-actor-critic-algorithm-with-policy-gradients-to)
