Preprint
Article

This version is not peer-reviewed.

EGD-ILS: Hybrid Energy Gradient Descent Optimization for Job Shop Scheduling

Submitted:

29 July 2026

Posted:

29 July 2026

Read the latest preprint version here

Abstract
We tackle the problem of job shop scheduling. Exact methods are limited to small instances, and traditional metaheuristics do not guarantee feasibility at each iteration. In this research, we propose a new two phases hybrid metaheuristic. The first phase uses Gradient Descent on a convex energy function to quickly construct a feasible solution by fixing the operations sequence. We provide a mathematical proof of convergence for this phase to a feasible solution. The second phase applies an Iterated Local Search to explore solutions space and minimize the makespan.This separation of objectives guarantees convergence of initial phase and simplifies parameter tuning. Experiments on standard FT and LA benchmarks show that EGD-ILS achieves competitive results with reduced computation time.
Keywords: 
;  ;  ;  ;  

1. Introduction

The JSSP is a central problem in operations research and production management. It consists of assigning a set of n jobs on a set of m machines. Each job J j consists of m operations O j o that must be processed in a given order. An operation O j o has a processing time p j o and it has a predefined machine M j o . Our goal is to achieve the minimum makespan. Precedence and resource constraints must be satisfied.
This problem is NP-hard. Exact approaches such as Integer Linear Programming or Constraint Programming fail when the size exceeds 10x10. Metaheuristics such as Genetic Algorithms, Simulated Annealing, or Particle Swarm Optimization provide good results but require fine parameter tuning and spend much time in infeasible regions of the search space [1].
Since the late 1980s, Hopfield networks were applied to JSSP by encoding each decision as a binary variable V j o t indicating if job j is processed on operation o at time t [2]. This leads to O ( n m T ) neurons with T is the number of time steps. With Deep Learning, GNN (Graph Neural Networks) and RL (Reinforcement Learning) methods achieved strong results but require GPU and large datasets [3]. Recently, hybrid approaches have emerged to combine the advantages of different methods. The approach involves breaking down the problem into two parts: 1. Find a feasible solution, 2. Optimize the objective function [4].
We propose EGD-ILS, a hybrid metaheuristics that uses the energy-based philosophy but optimize directly the continuous vector of start times S R + n × m . A differentiable energy E ( S ) measures the magnitude of violations. Minimizing E ( S ) via gradient descent repairs an infeasible solution until an admissible schedule is obtained. Iterated Local Search explores admissible solutions to find optimal or near optimal solution. Our main contributions are threefold:
1.
We prove mathematically that by fixing the operation sequence, the feasibility search becomes a convex optimization problem that converges to E=0.
2.
We propose a simple and efficient architecture that combines the speed of Gradient Descent for feasibility and the power of Iterated Local Search for optimization.
3.
Experimental validation on FT and LA benchmarks.
4.
Our work is the first work that provides a theoretical convergence guarantee for the feasibility phase of a hybrid JSSP solver based on gradient methods.
The rest of the paper is laid out this way. Section 2 presents the literature review. Section 3 presents the EGD-ILS methodology with the convergence proof. Section 4 discus experimental results. Section 5 concludes.

3. Methodology: The EGD-ILS Approach

3.1. Problem Formulation

We developed a mathematical statement of the JSSP problem [9]. Without loss of generality, Let’s use the instance Table 1 as example highlight the mathematical model used.
S i j is the starting time of operation O i j . M i j is the resource used. P i j is the processing time . H : Sum of all processing times H = i = 1 n j = 1 m P i j .
We introduce the Boolean variable:
Y i p = 1 i f S i j S p w a n d M i j = M p w        Y i p = 0 i f S p w S i j a n d M i j = M p w
The goal is: minimize C m a x = m a x { S i j + P i j }    subject to :
Starting Time constraints : n × m equations
S 11 0 ; S 12 8 0 ; S 13 20 0 S 21 0 ; S 22 11 0 ; S 23 16 0
Precedence Constraints : n × ( m 1 ) equations
S 12 S 11 8 0 ; S 13 S 12 12 0 S 22 S 21 11 0 ; S 23 S 22 5 0
Machine Constraints : n × m × ( n 1 ) equations
S 22 S 11 + H ( 1 Y 12 ) 8 0 ; S 11 S 22 + H × Y 12 5 0
S 23 S 12 + H ( 1 Y 12 ) 12 0 ; S 12 S 23 + H × Y 12 14 0
S 21 S 13 + H ( 1 Y 12 ) 3 0 ; S 13 S 21 + H × Y 12 11 0

3.2. Phase 1: Feasible Construction by Gradient Descent with Fixed Sequence

3.2.1. Starting Energy

S = S 11 S 12 S 13 S 21 S 22 S 23 W s = I 6 = 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 B s = 0 8 20 0 11 16
Z s = W s × S + B s
Z s must be non negative.
A s = max ( 0 ; W s × S B s )
We define the starting energy as:
E s ( S ) = i = 1 n × m A s ( i , 1 ) 2

3.2.2. Precedence Energy

S = S 11 S 12 S 13 S 21 S 22 S 23 W p = 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1 B p = 0 8 12 0 11 5
Z p = W p × S + B p
Z p must be non negative.
A p = max ( 0 ; W p × S B p )
We define the precedence energy as:
E p ( S ) = i = 1 n × m A p ( i , 1 ) 2

3.2.3. Machine Conflict Energy

The key idea of EGD-ILS is to fix the operation sequence in phase 1. This transforms the disjunctive machine constraint into a linear constraint. Without any loss of generality, consider that π = 1 ; 2 ; 2 ; 1 ; 2 ; 1 is a fixed operation sequence. Machine Constraints becomes:
S 22 S 11 8 0 ; S 11 S 22 + H 5 0
S 23 S 12 12 0 ; S 12 S 23 + H 14 0
S 21 S 13 + H 3 0 ; S 13 S 21 11 0
S = S 11 S 12 S 13 S 21 S 22 S 23 W m = 1 0 0 0 1 0 1 0 0 0 1 0 0 1 0 0 0 1 0 1 0 0 0 1 0 0 1 1 0 0 0 0 1 1 0 0 B m = 8 H 5 12 H 14 H 3 11
Z m = W m × S + B m
Z m must be non negative.
A m = max ( 0 ; W m × S B m )
We define the Machine Conflict Energy as:
E m ( S ) = i = 1 n × m A m ( i , 1 ) 2

3.2.4. Resolution Algorithm

We define the energy function to minimize:
E ( S , π ) = E s ( S ) + E p ( S ) + E m ( S , π )
Algorithm 1 Energy Descent for JSSP
  • Input: Instance , π , Maxiter , α : Learning rate
  • Calculate W s , B s , W p , B p , W m , B m
  • Initialize S = B s
  • for k = 1 to M a x i t e r  do
  •    Compute E(S, π )
  •    if  E ( S , π ) = 0  then
  •     Return S
  •    else
  •      [ E , g ] Compute Gradient(S)
  •      S S α · g
  •      S max ( 0 , S )
  •    end if
  • end for
  • Return S

3.2.5. Mathematical Proof of Convergence

Lemma 1.
The energy function E ( S , π ) , which was defined above for a fixed order π, is convex and L-smooth.
Proof. 
E ( S , π ) has the form [ m a x ( 0 , W × S B ) ] 2 . g ( z ) = m a x ( 0 , Z ) 2 is convex and 2-smooth. g ( z ) = 2 m a x ( 0 , Z ) . | g ( Z 1 ) g ( Z 2 ) | 2 | Z 1 Z 2 | . Z is an affine function of S. The composition is convex and L-smooth.
The function E ( S , π ) is a sum of convex and smooth functions. Therefore E ( S , π ) is convex and L-smooth [10].    □
Lemma 2.
For any fixed order π, there exists S * such that E ( S * , π ) = 0 .
Proof. 
By definition of the JSSP, for any order π there exists at least one feasible schedule. For this schedule, all violations are 0 . As E 0 , E = 0 is the global minimum.    □
Theorem 1.
For any step 0 < α < 2 / L , S ( t ) converges to S * such that E ( * ) = 0 .
Proof. 
S ( t + 1 ) = max ( 0 , S ( t ) ) α E ( S ( t ) ) From Lemma 1, we can see that E is convex and L-smooth. From Lemma 2, we know that the set of minima is non-empty. Moreover E is L-Lipschitz. We apply the classical convergence theorem of gradient descent for convex functions. ([11], Sec. 9.1)    □

3.3. Phase 2: Optimization by Iterated Local Search

The ILS explores the set of admissible schedules by using neighbours structure and deciding to transit or not to the candidate solution.
Algorithm 2 Optimization by ILS
  • Input: Instance ; β ; T 0
  • Initialize π 0 ;
  • [ S ] A l g o r i t h m 1 ( I n s t a n c e ; π 0 )
  • π ( b e s t ) π 0 ;     π π 0 ;     T T 0
  • Compute C m a x ( π )
  • for k = 1 to K do
  •    Choose π from neighbours of N 5 ( π )
  •     [ S ] A l g o r i t h m 1 ( I n s t a n c e ; π )
  •    Compute C m a x ( π )
  •    if  C m a x ( π ) < C m a x ( π )  then
  •      π := π
  •     if  C m a x ( π ) < C m a x ( π ( b e s t ) )  then
  •        π ( b e s t ) := π
  •     end if
  •    else
  •      Δ = C m a x ( π ) C m a x ( π )
  •     if  r a n d o m e x p ( Δ / T )  then
  •        π := π
  •     end if
  •    end if
  •    T := β × T
  • end for
Denote N 1 permutes two operations. N 2 is right shift insertion. N 3 uses left shift insertion. N 4 is inversion blocks between two positions [12]. N 5 uses random combination of the four neighbours N k ( π ) , k = 1 , . . . , 4 .
An initial temperature of T 0 is given. The parameter β [ 0.5 ; 0.95 ] the speed of convergence.

4. Experimental Results

The RPD is: R P D = C m a x C m a x * C m a x * × 100 where C m a x is the makespan found by the EGD-ELS; and C m a x * is the optimal makespan.
The Table 2 and Table 3 present the results on FT and LA benchmarks.
EGD-ILS delivers high-quality solutions on FT and LA benchmarks with reduced computation time. It achieves RPD < 3.9%, solving FT06 and LA05 to LA15 optimally.

5. Conclusions

We proposed a straightforward energy-based approach for JSSP that’s simple and fast. EGD-ILS shows strong performance on FT and LA benchmarks with RPD < 3.9% , solving FT06 and LA05-LA15 optimally with reduced computation time.

References

  1. Pinedo, M.L. Scheduling: Theory, Algorithms, and Systems, 5 ed.; Springer: New York, 2016. [Google Scholar]
  2. Foo, Y.P.S.; Takefuji, Y. Stochastic neural networks for solving job-shop scheduling. I. Problem representation. In Proceedings of the Proceedings of the IEEE International Conference on Neural Networks; IEEE, 1988; Vol. 2, pp. 275–282. [Google Scholar]
  3. Zhang, C.; et al. Learning to Share in Multi-Agent Reinforcement Learning. In Proceedings of the Proceedings of the 39th International Conference on Machine Learning (ICML), 2022. [Google Scholar]
  4. Garey, M.R.; Johnson, D.S. Computers and Intractability: A Guide to the Theory of NP-Completeness; W. H. Freeman: San Francisco, 1979. [Google Scholar]
  5. Van den Bout, D.; Miller, T. A traveling salesman approach to job shop scheduling. In Proceedings of the International Joint Conference on Neural Networks (IJCNN), 1990. [Google Scholar]
  6. Peng, B.; Lü, Z.; Chiang, T.C. A new Lagrangian dual method for the job shop scheduling problem. Eur. J. Oper. Res. 2016, 255, 356–366. [Google Scholar]
  7. Wang, C.; Zheng, H.F. A Two-Stage Approach for Job Shop Scheduling. In Proceedings of the IEEE International Conference on Systems, Man, and Cybernetics (SMC); IEEE, 1998. [Google Scholar]
  8. Alet, F.; et al. Neural Constraint Satisfaction for Combinatorial Optimization. Tech report, DeepMind, 2024. [Google Scholar]
  9. Nohair, L.; El Adraoui, A.; Namir, A. Solving non-delay job-shop scheduling problems by a new matrix heuristic. Procedia Comput. Sci. 2022, 198, 410–416. [Google Scholar] [CrossRef]
  10. Nesterov, Y. Introductory Lectures on Convex Optimization: A Basic Course. In Applied Optimization; Kluwer Academic Publishers: Boston, 2004; Vol. 87. [Google Scholar]
  11. Boyd, S.; Vandenberghe, L. Convex Optimization; Cambridge University Press: New York, 2004. [Google Scholar]
  12. Belabid, J.; Aqil, S.; Allali, K. Solving Permutation Flow Shop Scheduling Problem with Sequence-Independent Setup Time. J. Appl. Math. 2020, 2020, 7132469. [Google Scholar] [CrossRef]
Table 1. 2 jobs, 3 machines H=53.
Table 1. 2 jobs, 3 machines H=53.
Jobs Operation 1 Operation 2 Operation 3
J 1 M2(8) M1(12) M3(3)
J 2 M3(11) M2(5) M2(14)
Table 2. Simulation results on FT benchmarks.
Table 2. Simulation results on FT benchmarks.
Instance Size C m a x * C m a x RPD% Max iterations T 0 α
FT06 6*6 55 55 0 2000 2000 0,7
FT10 10*10 930 957 2,90 10000 1800 0,9
FT20 20*5 1165 1197 2,75 10000 1800 0,9
Table 3. Simulation results on LA instances.
Table 3. Simulation results on LA instances.
Instance Size C m a x * C m a x RPD% Max iterations T 0 α
LA 01 10X5 666 666 0 3000 1400 0,95
LA 02 10X5 655 667 1,83 5000 1600 0,95
LA 03 10X5 597 604 1,17 5000 1400 0,7
LA 04 10X5 590 598 1,36 10000 1600 0,95
LA 05 10X5 593 593 0 3000 1600 0,95
LA 06 15X5 926 926 0 3000 1600 0,95
LA 07 15X5 890 890 0 3000 1600 0,95
LA 08 15X5 863 863 0 3000 1600 0,95
LA 09 15X5 951 951 0 3000 1600 0,95
LA 10 15X5 958 958 0 3000 1600 0,95
LA 11 20X5 1222 1222 0 3000 1600 0,95
LA 12 20X5 1039 1039 0 3000 1600 0,95
LA 13 20X5 1150 1150 0 3000 1600 0,95
LA 14 20X5 1292 1292 0 3000 1600 0,95
LA 15 20X5 1207 1207 0 5000 1600 0,95
LA 16 10X10 945 982 3,91 5000 1600 0,95
LA 17 10X10 784 793 1,15 10000 2000 0,7
LA 18 10X10 848 861 1,53 5000 1600 0,95
LA 19 10X10 842 875 3,92 10000 2000 0,7
LA 20 10X10 902 914 1,33 10000 2000 0,7
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.