Skip to main content

Harvest Processing Line

FLOW SHOP SCHEDULING

Approximately 10% of global grain harvest is lost to post-harvest handling delays and quality degradation (FAO, 2019). Each harvest cycle requires deciding the order in which grain lots pass through cutting, transport, cleaning, and drying stages. This is the Permutation Flow Shop Problem (Fm|prmu|Cmax) — one of the foundational NP-hard problems in scheduling theory.

Where This Decision Fits

Agricultural operational chain — the highlighted step is what this page optimizes

Land Use & Crop SelectionStrategic planning
Seed & Input ProcurementPre-season purchasing
Irrigation & GrowthWater allocation
Harvest ProcessingLot sequencing
Post-Harvest StorageSilo management
Farm-to-Market DistributionLogistics & routing

The Problem

From grain fields to optimization theory

You have a set of grain lots that must each pass through the same sequence of processing stages — cutting, transport, cleaning, and drying. The constraint is that each stage can only handle one lot at a time, and every lot must visit stages in the same fixed order. The question is: in what order should the lots be processed to finish all of them as quickly as possible?

This is the Permutation Flow Shop Problem (Fm|prmu|Cmax): n jobs on m machines in the same order. NP-hard for m ≥ 3.

Agriculture DomainFlow Shop Model
Grain lotJob
Processing stageMachine
Stage duration (hours)Processing time pij
Finish all lots ASAPMinimize Cmax
Fm | prmu | Cmax — NEH heuristic: O(n² · m), best constructive method

Try It Yourself

Edit processing times, add/remove lots, and find the best sequence through the harvest line

Processing Times (hours)

6 Lots · 4 Stages · Click any cell to edit
A grain elevator receives 6 lots of mixed grain types during fall harvest. With balanced processing times across stages, the algorithms produce moderate differences in makespan.
Lot NameCuttingTransportCleaningStorage
Select Algorithm
Flow Shop Gantt Chart

The Algorithm

NEH Constructive Heuristic for Flow Shop

WHY SEQUENCING METHOD MATTERS — SAME 4 LOTS, 4 STAGES PALMER'S SLOPE INDEX Cutting Corn Wht Soy Can Storage Cmax = 31h Sorts by slope index — ignores insertion effects NEH (INSERT-AT-BEST) Cutting Soy Corn Can Wht Storage Cmax = 27h Tries each lot in every position — minimizes idle gaps KEY DIFFERENCE Palmer sorts once by a slope index. NEH tests every insertion position to minimize inter-stage idle time.
1

Sort by Total Processing Time

Order jobs in decreasing total processing time across all machines. Jobs with more work are placed first.

2

Initialize with First Job

Start the partial sequence with the job having the largest total processing time.

3

Insert Each Job at Best Position

For each remaining job, try inserting it at every possible position in the current sequence. Keep the position that minimizes makespan.

4

Return Final Sequence

After all jobs are inserted, the resulting permutation is the NEH solution. Complexity: O(n² · m).

Real-World Complexity

Factors beyond the basic flow shop model

Weather Dependence

Cutting times vary with moisture content, which changes with weather conditions.

Transport Variability

Field distance and road conditions create variable transport times.

Storage Capacity

Limited silo space creates blocking constraints between cleaning and storage.

Setup Times

Switching between grain types requires equipment cleaning, adding setup times.

Quality Degradation

Grain quality degrades over time, making no-wait constraints desirable.

Crew Coordination

Different stages need different crews, adding resource constraints.

References

Key literature on flow shop scheduling

Nawaz, M., Enscore, E.E. & Ham, I. (1983).
"A heuristic algorithm for the m-machine, n-job flow-shop sequencing problem."
Omega, 11(1), 91–95.
Ruiz, R. & Maroto, C. (2005).
"A comprehensive review and evaluation of permutation flowshop heuristics."
European Journal of Operational Research, 165(2), 479–494.

Need to optimize harvest
processing throughput?

Get in Touch
Data shown is illustrative. This is a simplified model for educational purposes.
 Home
ESC