IEEE TEVC · 2026

EvoDR: Evolving Dispatching Rules via Large Language Model for Dynamic Flexible Assembly Flow Shop Scheduling

Junhao Qiu1, Haoyang Zhuang2, Fei Liu1, Jianjun Liu2, Qingfu Zhang1,*

1 City University of Hong Kong  ·  2 Guangdong University of Technology

junhaoqiu2-c@my.cityu.edu.hk  ·  * Corresponding author

IEEE Transactions on Evolutionary Computation (TEVC), 2026

Framework arXiv Paper GitHub

Abstract

Dynamic flexible assembly flow shop scheduling with multi-product delivery is a critical combinatorial problem, characterized by kitting supply and machine flexibility. Genetic programming (GP) is widely used to automatically generate dispatching rules, enabling responsive scheduling that reduces manual effort while meeting high responsiveness demands. However, GP methods depend on fixed terminal sets and have weak interpretability.

We develop EvoDR, an evolving dispatching rules framework that leverages the semantic understanding and generation capabilities of large language models to achieve cross-domain integration of algorithm design and scheduling knowledge. Multi-stage assembly supply decisions are modeled as priority sorting of directed edges on heterogeneous graphs. A dual-expert co-evolution mechanism is implemented, where LLM-A generates code while LLM-S conducts scheduling analysis and reflection. Guided by improvements in hybrid evaluation, adaptive rules that fit dynamic features are continuously evolved.

Experimental results show that EvoDR achieves lower average tardiness than state-of-the-art approaches. In 24 scenarios with different resource configurations and disturbance levels, totaling 480 instances, it consistently outperforms expert-designed competitors, demonstrating superior robustness.

动态柔性装配流水车间调度(FAFSP)以装配物料结构配套与机器柔性为主要特征。GP 能自动生成调度规则,但依赖固定终结符集、可解释性弱。本文提出 EvoDR:把多阶段装配供应决策建模为异构图上有向边的优先级排序,并以双专家协同进化机制驱动规则演化——LLM-A 负责生成可执行代码,LLM-S 负责调度语义分析与反思。在 24 个场景、480 个实例上,EvoDR 的平均拖期优于现有 AHD 方法与专家手工规则。

1. Problem & Motivation

In a flexible assembly flow shop, parts are processed first and then assembled into products, and a product can only be delivered once its entire item set is complete (dual kitting: structure-level kitting for assembly, delivery-level kitting for the product set). Under dynamic order arrivals, processing and assembly decisions happen asynchronously: processing wants low changeover loss and complete kits, while assembly wants to coordinate different products of the same order for consolidated delivery.

The gap. Priority dispatching rules (PDRs) are the standard real-time remedy, but designing them is expert-intensive. GP-based hyper-heuristics automate the search yet rely on a predefined terminal set, which implicitly encodes problem-specific knowledge and limits both transferability and interpretability. Existing LLM-based automated heuristic design (AHD) methods evolve rules on the code level, without an explicit notion of the multi-stage, hierarchical decision structure of the assembly supply chain.

柔性装配流水车间中,零件先加工再装配,整单产品集齐才能交付(结构级配齐 + 交付级配齐,即双 kitting 约束)。订单动态到达时,加工与装配决策异步发生:加工侧追求换型损失小、配套完整,装配侧追求同订单多产品协同交付。PDR 是实时调度的常用手段,但设计依赖专家;GP 类超启发式依赖固定终结符集,隐含注入问题知识,可解释性与迁移性受限。现有 LLM-AHD 方法在代码层进化规则,缺少对多阶段层级决策结构的显式建模。
EvoDR Framework Overview

EvoDR overview: dynamic order arrivals flow through the job buffer into a heterogeneous-graph decision model, are dispatched by an evolved PDR on event-triggered (j, m) arc ranking, and the rule itself is improved by an Initialization → Evaluation → Evolution loop.

ParadigmLimitation
Manual PDR design (EDD, FIFO, MWKR, ...)Expert-intensive; single rules react poorly to changing load and disturbance levels
Genetic Programming / GEPFixed terminal set; problem knowledge baked into the search space; weak interpretability
LLM single-rule AHD (EoH, FunSearch, MCTS-AHD, ReEvo)Code-level evolution only; no explicit model of multi-stage assembly supply or of scheduling semantics
EvoDR (Ours)Heterogeneous-graph MDP + dual-expert co-evolution of rules and design knowledge

2. Problem Modeling: Heterogeneous Graph and MDP

Processing jobs, assembly jobs and delivery requests are treated as nodes of a heterogeneous graph, with precedence, kitting and product-set relations as typed edges. At each event-triggered decision step t, the system ranks feasible (job, machine) arcs — i.e., joint machine assignment and job sequencing — rather than ranking jobs and machines separately. This avoids the decision-preference inconsistency between the processing stage (efficiency, complete kits) and the assembly stage (product-set coordination), where hand-crafted rule combinations tend to fail.

The dynamic problem is then cast as an MDP over this graph, where the state is the current shop-floor state plus the dynamic feature vector, the action is the selected arc, and the reward is derived from order tardiness, so that the dispatching rule is a policy defined on the graph rather than a fixed priority formula.

将加工任务、装配任务与交付请求建模为异构图的节点,前置约束、配套约束、产品集约束作为类型化边。每次事件触发的决策步不是分别给工件和机器打分,而是对可行 (工件, 机器) 弧排序,避免了加工阶段(效率、配套)与装配阶段(产品集协同)之间的决策偏好冲突,手工规则组合往往就失效在这一步。整个动态问题随后被形式化为该图上的 MDP,调度规则即为图上的策略。

3. The EvoDR Framework

EvoDR Evolution Loop

One iteration of EvoDR: elite-knowledge-guided initialization → hybrid evaluation (objective fitness + LLM-S semantic feedback) → feature-fitting rule evolution through four operators (C1, C2, M1, M2).

Phase 1: Individual Encoding

Each individual carries four fields: a textual description of the design idea, an executable code block (a cal_priority function with a fixed interface), the objective fitness cs measured by simulation on multiple instances, and the semantic evaluation ce produced by LLM-S. Evolving the description together with the code keeps the search at the design level instead of drifting into syntax mutation.

每个个体包含四部分:设计思想文本描述、可执行代码块(固定接口的 cal_priority 函数)、模拟器测得的目标适应度 c^s、以及 LLM-S 给出的语义评价 c^e。描述与代码同步进化,使搜索停留在设计层而非语法变异层。
Phase 2: Elite-Knowledge-Guided Initialization

Instead of a random initial population, an elite rule is executed in the simulator, LLM-S analyses its behaviour and produces improvement suggestions, and LLM-A expands this into a structurally diverse initial population. Sampling temperatures are spread over a range so that early individuals stay conservative while later ones add diversity; the temperature of the best individual found during initialization is recorded and reused as the evolution temperature u0.

初始种群不用随机生成:先在模拟器上跑一条精英规则,由 LLM-S 分析其行为并给出改进建议,再由 LLM-A 扩展出结构多样的初始种群。采样温度在区间内均匀铺开(前期保守、后期增强多样性),初始化阶段最优个体对应的温度被记录下来,作为后续进化温度 u₀。
Phase 3: Hybrid Evaluation

Two independent channels. The objective channel computes fitness in the simulator and is the only basis for updating the incumbent, parent selection and survival selection. The semantic channel (LLM-S) returns a structured report — advantages, limitations, actionable suggestions — that is injected into the generation prompt but never into fitness or selection. Semantic feedback therefore affects the search direction only, not how rules are ranked.

两条独立通道:目标通道在模拟器中算适应度,是更新当前最优、选择父代、生存选择的唯一依据;语义通道由 LLM-S 输出结构化报告(优势、局限、可执行建议),只注入生成提示,不参与适应度和选择计算。语义反馈因此只影响搜索方向,不改变规则排序。
Phase 4: Feature-Fitting Rule Evolution

Four operators are implemented purely by prompt manipulation, so the evolutionary operators themselves are language-level and need no problem-specific primitive set:

OperatorMechanismRole
C1: Dominance-Fusion CrossoverTwo parents + "combine the advantages of the two"Merge structural strengths into a stronger offspring
C2: Exploratory CrossoverParent code + "create a completely different algorithm"Break premature convergence, escape local optima
M1: Directed OptimizationParent code + LLM-S suggestion ceTurn natural-language suggestions into code-level refinement
M2: Parameter TuningParent code + "identify parameters, change their settings"Numerical refinement inside an existing logic structure
Prompt Structure of LLM-A and LLM-S

Two prompt templates: pS feeds code, fitness and dynamic features to LLM-S along with the best/worst rules of the population; pA combines the semantic feedback ce with an operator instruction to drive LLM-A.

四个算子都只靠修改提示实现,本身不需要任何问题相关的原语集合。C1 融合双亲优势;C2 强制生成形态完全不同的规则以跳出局部最优;M1 把 LLM-S 的自然语言建议翻译成代码层改进;M2 只调参数不改结构。p^S 会把种群中最好和最差的规则一并交给 LLM-S,使其给出相对性判断而非孤立打分。

4. Experimental Results

Setup
DimensionConfiguration
InstancesReal industrial data from a Chinese home-appliance manufacturer + generated instances (Poisson order arrivals, exponential inter-arrival time under load)
Scale factorsMachine configuration m (3×6 / 5×12), flexibility φ (0.5 / 0.7), arriving orders α (20 / 50), load factor μ (1 / 2 / 4)
BaselinesEDD; 8 hybrid heuristics (FIFO / MOPNR / LWKR / MWKR × SPT / EET); GP; GEP; RandSample; FunSearch; EoH; MCTS-AHD; ReEvo
MetricAverage tardiness (lower is better), ARI = (Tmax − Tcurrent) / Tmax
LLMGPT-4o-mini (96.0% code accuracy, $0.09 per run) after comparing 5 models
Budget20 iterations, population 4–6; 200 samples for AHD comparison; decision time is millisecond-level
EvoDR vs. State-of-the-Art AHD Methods

On 20 instances with real industrial characteristics (10 train / 10 test), all AHD methods are compared under the same 200-sample budget and identical dynamic features:

MethodTypeAll (Avg. tardiness)ARI ↑Avg. Rank
EDDManual6957.340.00%7.85
GPTraditional AHD6229.4310.46%5.00
GEPTraditional AHD6649.564.42%6.35
RandSampleLLM6009.9113.62%4.25
FunSearchLLM6008.4613.64%3.90
EoHLLM6074.4412.69%3.35
MCTS-AHDLLM6206.5310.79%4.95
ReEvoLLM6238.4910.33%5.55
EvoDRLLM + dual expert5788.1116.81%2.65

On the test split the gain is larger (ARI 18.63%), while GP degrades markedly on test instances — the fixed terminal set helps it fit the training set but does not transfer. Friedman test over the 20 instances rejects equality of methods (p < 0.0001); two-tailed Wilcoxon signed-rank tests put EvoDR ahead of every competitor (all p ≤ 0.0025, below the Bonferroni threshold 0.0071), winning 62–82 of 100 paired runs. Note that EvoDR is not the best method on every single instance — its advantage appears in the aggregate and in rank.

测试集上增益更大(ARI 18.63%),而 GP 在测试集上明显退化——固定终结符集利于拟合训练集,但迁移性差。Friedman 检验拒绝各方法性能相同(p < 0.0001);Wilcoxon 符号秩检验显示 EvoDR 显著优于所有对比方法(p ≤ 0.0025,低于 Bonferroni 阈值 0.0071),在 100 组配对中赢 62–82 组。需要说明:EvoDR 并非在每个单实例上都最优,优势体现在整体均值与平均排名上。
Box Plot of Tardiness across AHD Methods

Tardiness distribution of the best PDR found by each method (5 independent design runs). Red markers: mean; black lines: median.

Convergence of Different AHD Methods

Convergence under a 200-sample budget. GP finds a good rule within ~70 samples but plateaus; EvoDR starts weaker and keeps improving after 100 samples, overtaking the incumbent eight times.

Convergence Analysis of a Single Design Run

A single design run: beyond the 150th sample — where GP-style methods have already plateaued — the curve shows a second convergence phase (7581.21 → 7371.61), driven by LLM-S pointing to feature-level fixes such as adding a historical-performance factor or predictive processing times.

Robustness across 24 Operating Scenarios

480 instances over 24 scenarios are constructed by varying machine configuration, flexibility, arriving-order volume and load factor. EvoDR is re-designed and re-tested independently for each scenario:

Condition (m-φ-α-μ)EDDFIFO+SPTMWKR+EETEvoDR
3-6-0.5-20-11710.451729.202091.601117.80
3-6-0.5-50-430322.8830122.0737470.9225278.60
3-6-0.7-50-431499.5332061.0235879.2422108.98
5-12-0.5-50-12353.79449.261676.96409.58
5-12-0.7-20-1975.55134.31705.70129.94
5-12-0.7-50-46207.294818.255996.554553.07
Average (24 scenarios)7470.746483.537943.185387.17
ARI ↑10.72%22.51%5.07%35.62%

EvoDR attains the lowest tardiness in 19 of the 24 scenarios and the lowest average overall (ARI 35.62%). The remaining cases are mostly low-load settings where a single hybrid rule is already near-optimal, e.g. 5-12-0.7-20-1, where FIFO+SPT reaches 134.31 against EvoDR's 129.94. The gap widens as load increases: under 3-6-0.7-50-4 the best hybrid rule sits at 34045.23 while EvoDR reaches 22108.98.

EvoDR 在 24 个场景中的 19 个取得最低拖期,整体均值最优(ARI 35.62%)。未取胜的场景多为低负载工况——此时单一混合规则已接近最优,例如 5-12-0.7-20-1 场景 FIFO+SPT 为 134.31、EvoDR 为 129.94(注:该场景更优的 MOPNR+SPT 为 127.94)。负载越高差距越大:3-6-0.7-50-4 场景下最优混合规则为 34045.23,EvoDR 为 22108.98。
Robustness across Operating Conditions

Tardiness distribution of all methods across the 24 operating conditions. Traditional hybrids are highly condition-sensitive; EvoDR stays stable as μ increases.

Ablation Study
VariantWhat is removedAvg. tardinessARI ↑
EDR-DDynamic features in the prompt1195.37 ± 55.696.08%
EDR-EElite-knowledge-guided initialization1434.77 ± 291.70−12.73%
EDR-CCrossover operators (C1, C2)1151.20 ± 33.069.55%
EDR-MImprovement operators (M1, M2)1185.85 ± 88.086.83%
EDR-F(order)Order-level features1579.27 ± 227.22−24.08%
EDR-F(machine)Machine-level features1140.60 ± 65.3010.39%
EDR-F(arc)Arc-level (graph topology) features1630.28 ± 54.90−28.09%
EDR-SLLM-S semantic evaluation (hybrid evaluation)1272.80 ± 52.730.00%
EDR-S(fix)LLM-S replaced by fixed suggestions1215.87 ± 101.794.47%
EDR-S(random)LLM-S replaced by random suggestions1107.07 ± 8.4913.02%
EvoDR(full model)1084.17 ± 12.5614.82%

Feature design dominates: dropping arc (−28.09%) or order (−24.08%) features is catastrophic, while dropping machine features still leaves a competitive rule — under dual kitting constraints, topological and job-level dynamics matter far more than the processing units themselves. Elite-knowledge initialization is the second largest contributor.

The hybrid-evaluation result deserves a caveat: removing LLM-S entirely hurts (1272.80), but replacing it with random suggestions scores 1107.07, only 23 above the full model. So the benefit is not simply "semantic quality"; any clear feedback that widens the search helps. The paper therefore checks stability: with a small suggestion pool (4) random feedback stays competitive, but with an expanded pool (37) it becomes markedly unstable and degrades, whereas LLM-S's scheduling-specific feedback keeps the directed value. Random feedback is a lucky configuration, not a robust substitute.

特征设计影响最大:去掉弧特征(−28.09%)或订单特征(−24.08%)会灾难性退化,而机器特征缺失仍能保持有竞争力——在双 kitting 约束下,拓扑与订单级动态远比加工单元本身重要。精英知识初始化是第二大贡献项。 混合评估这一项并不单调:完全去掉 LLM-S 会退化到 1272.80,但换成随机建议也有 1107.07,仅比完整模型差 23。收益并不完全来自语义质量本身——任何清晰的反馈都能拓宽搜索。论文对稳定性做了验证:建议池小(4 条)时随机反馈尚有竞争力,扩大到 37 条后明显不稳定并退化,而 LLM-S 的调度专属反馈保持定向价值。随机反馈只是碰巧合适的配置,不是稳健替代。
Convergence with 4 and 37 Suggestion Pools

Convergence of the random-feedback variant with a suggestion pool of 4 (left) and 37 (right): competitive when small, unstable when expanded.

Cost
MethodAll (Avg.)TokensCode accuracyCost (USD)
EoH1297.40.32M87.3%0.131
ReEvo1242.91.36M70.4%0.558
EvoDR1185.10.30M / 0.16M89.3%0.123 / 0.066

Cost is reported as LLM-A / LLM-S. A full run costs about $0.19 in total, with LLM-S adding roughly 0.16M tokens on top of LLM-A's 0.30M. This is a one-time offline design cost: at run time the evolved rule only performs one priority ranking over candidate arcs per decision, executes in sub-milliseconds, and makes no LLM call. The honest comparison is that EvoDR costs somewhat more than EoH ($0.19 vs $0.131) and buys a much larger tardiness reduction for it.

成本按 LLM-A / LLM-S 分别报告。完整一次设计约 $0.19,其中 LLM-S 在 LLM-A 的 0.30M token 之外额外消耗约 0.16M。这笔开销只发生一次:在线运行时进化出的规则每次决策只做一次候选弧排序,亚毫秒级,不调用 LLM。EvoDR 的成本高于 EoH($0.19 vs $0.131),换取明显更低的拖期。

5. What the Design Buys

Modelling decisions as arcs, not as separate scores
Ranking (job, machine) arcs on a heterogeneous graph lets one rule serve processing, assembly and delivery at once. Most failures of hand-crafted hybrids come from assigning job and machine priorities independently.
在异构图上对 (工件, 机器) 弧排序,一条规则同时服务加工、装配与交付;手工混合规则的失效多源于把工件优先级与机器优先级独立打分。
The scheduling expert steers, but does not rank
LLM-S output enters the generation prompt only. Fitness, parent selection and survival selection stay purely objective, which keeps the evolutionary pressure honest while still injecting scheduling semantics that numbers cannot express.
LLM-S 的输出只进入生成提示;适应度、父代选择与生存选择保持纯客观。进化压力不被主观评价污染,同时又能注入数字指标表达不出的调度语义。
Operators as prompts, so no primitive set is needed
C1, C2, M1 and M2 are four task descriptions rather than four genetic operators. Unlike GP, nothing about the problem has to be pre-encoded as terminals, which is why the same framework transfers across 24 operating conditions.
C1/C2/M1/M2 是四段任务描述,不是四个遗传算子。与 GP 不同,问题无需预先编码成终结符集合,因此同一框架可跨 24 种工况迁移。

BibTeX

@article{qiu2026evodr, title = {EvoDR: Evolving Dispatching Rules via Large Language Model for Dynamic Flexible Assembly Flow Shop Scheduling}, author = {Qiu, Junhao and Zhuang, Haoyang and Liu, Fei and Liu, Jianjun and Zhang, Qingfu}, journal = {IEEE Transactions on Evolutionary Computation}, year = {2026}, note = {arXiv:2601.15738}, url = {https://github.com/jhqiu1/EvoDR} }