Pest Control Scheduling
SINGLE MACHINE SCHEDULING
Delayed pest control reduces crop yield by 5–30% depending on pest type and crop growth stage, with aphid infestations doubling every 2–3 days. Each growing season, a farm must decide the order in which to treat multiple pest infestations using a single specialized sprayer. This is the Single Machine Weighted Tardiness Problem (1||ΣwjTj) — one of the strongly NP-hard foundational problems in scheduling theory.
Where This Decision Fits
Agricultural operational chain — the highlighted step is what this page optimizes
The Problem
From pest infestations to optimization theory
You have a set of pest treatment tasks, each requiring a certain number of hours on the farm's single spraying rig. The constraint is that only one treatment can run at a time, and each has a deadline set by the pest lifecycle and a weight reflecting crop value at risk. The question is: in what order should you treat the infestations to minimize the total damage from late treatments?
This is the Single Machine Weighted Tardiness Problem (1||ΣwjTj): sequence n jobs to minimize total weighted tardiness. Strongly NP-hard.
| Agriculture Domain | Single Machine Model | |
|---|---|---|
| Pest treatment | Job | |
| Spraying rig | Machine | |
| Treatment duration | Processing time pj | |
| Pest window end | Due date dj | |
| Crop value at risk | Weight wj |
Try It Yourself
Edit treatment durations, deadlines & urgency weights, then find the optimal schedule
Pest Treatments
8 Treatments · 1 Rig · Click any cell to edit| ID | Target Pest | Duration (hrs) | Deadline | Weight |
|---|
The Algorithm
Apparent Tardiness Cost (ATC) Dispatching Rule
Compute Priority Index
For each unscheduled job at time t: Ij(t) = (wj/pj) · exp(−max(dj−pj−t, 0) / (K·p̄)). Combines WSPT ratio with due date urgency.
Schedule Highest Priority
Select the job with the highest ATC index. Process it immediately.
Advance Time
Update current time by adding the processing time of the scheduled job.
Repeat
Recalculate priorities for remaining jobs (they change as time advances). Continue until all jobs are scheduled.
Real-World Complexity
Factors beyond the basic scheduling model
Wind Speed
Spraying is prohibited above certain wind speeds, creating variable availability.
Rain Washoff
Rain within hours of application washes off pesticides, requiring reapplication.
Temperature Sensitivity
Some pesticides are only effective in specific temperature ranges.
Setup Times
Switching between different pesticide types requires cleaning equipment.
Field Proximity
Travel time between fields affects the effective processing time.
References
Key literature on single machine scheduling