Skip to main content

Water Resource Allocation

LINEAR PROGRAMMING

Agriculture accounts for 70% of global freshwater withdrawals, yet optimal allocation can increase water use efficiency by 20–35%. Each irrigation cycle requires deciding how much water to send to each field from a limited reservoir. This is a Linear Programming problem — the most widely applied optimization technique, solvable in polynomial time.

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 SchedulingTiming & frequency
Water AllocationVolume per field
Harvest SchedulingEquipment allocation
Farm-to-Market DistributionLogistics & routing

The Problem

From reservoirs to optimization theory

You have a fixed volume of water in a reservoir and several crop fields, each needing between a minimum and maximum amount. The constraint is that total water allocated cannot exceed reservoir capacity, and each field must receive at least its minimum requirement. The question is: how much water should each field get to minimize the total cost of pumping and delivery?

This is a Linear Programming (LP) problem: optimize a linear objective subject to linear constraints. LP is solvable in polynomial time using interior-point methods.

Agriculture DomainLP Model
Water allocationDecision variable xi
Reservoir (5000 m³)Resource constraint
Min water needLower bound li
Max water needUpper bound ui
Irrigation costObjective coefficient ci
min Σ cixi s.t. li ≤ xi ≤ ui, Σxi ≤ 5000

Try It Yourself

Edit field water requirements & costs, adjust reservoir size, then optimize allocation

Field Water Requirements

6 Fields · Click any cell to edit
A farm cooperative manages a 5,000 m³ reservoir supplying 6 fields with different crops. With ample water, the LP allocates extra water to the cheapest fields first.
Reservoir: 5000
FieldCropMin (m³)Max (m³)Cost ($/m³)
Select Method
Water Allocation by Field

The Algorithm

Greedy LP Allocation for Bounded Variables

WHY ALLOCATION METHOD MATTERS — SAME 3 FIELDS, 2000 m³ REMAINING EQUAL SHARE Barley $1.50/m³ → 667m³ Corn $2.50/m³ → 667m³ Canola $3.10/m³ → 667m³ Splits evenly regardless of cost Cost = $4,733 OPTIMAL (CHEAPEST-FIRST) Barley $1.50/m³ → 1000m³ (max) Corn $2.50/m³ → 1000m³ (remain) Canola $3.10/m³ → 0m³ (min only) Fills cheapest fields first, skips expensive ones Cost = $4,000 KEY DIFFERENCE Equal Share ignores cost. The LP sorts by cost coefficient and fills greedily.
1

Assign Minimums

Give each field its minimum required water. This satisfies all lower bound constraints.

2

Compute Remaining Budget

Calculate remaining reservoir capacity after all minimums are assigned.

3

Sort by Cost

Rank fields by cost per m³ (ascending). Cheapest fields get extra water first.

4

Distribute Remainder

Allocate remaining water to cheapest fields up to their maximum, then next cheapest, etc.

Real-World Complexity

Factors beyond the basic LP model

Rainfall Uncertainty

Natural rainfall reduces irrigation needs, but is unpredictable.

Evapotranspiration

Hot weather increases water loss, requiring dynamic allocation adjustments.

Soil Absorption

Sandy vs. clay soils have different absorption rates affecting efficiency.

Time-of-Day Pricing

Electricity for pumping varies by time, making irrigation timing important.

Canal Network

Water must flow through canals with capacity limits between source and fields.

Water Rights

Legal water rights and environmental flow requirements add constraints.

References

Key literature on water resource optimization

Loucks, D.P. & van Beek, E. (2017).
"Water Resource Systems Planning and Management."
Springer, ISBN 978-3-319-44234-1.
Singh, A. (2012).
"An overview of the optimization modelling applications."
Journal of Hydrology, 466–467, 167–182.

Need to optimize water
distribution for agriculture?

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