Head Correction
Linearised correction for variable head in the SDDP subproblem, based on Kompendium 2 §5.4.6.
Problem
The standard SDDP LP uses PQ curves at a fixed reference head. In reality, the net head changes with reservoir level:
- Higher reservoir → higher head → more power per m³ of discharge
- Lower downstream reservoir → higher head → more power
For Dokka, M802 (Dokkfløyvatnet) has elevation range 670–735m while TORPA's reference head is 465m. The actual head varies from ~405m (empty) to ~470m (full) — a 14% range that affects the optimal storage policy.
Linearised Correction
The correction adds a premium/penalty term c_k × v_k to the LP objective for each reservoir k, where:
c_k = price × dt × Σ_plants [ P(u) / (A_k × H_net) ]P(u)= current production [MW] at mean dischargeA_k = ∂V/∂h= reservoir surface area [Mm³/m] from HV curve slopeH_net= upstream elevation − downstream elevation [m]dt= hours per time step
A positive c_k means storing more water increases head and therefore production efficiency. The LP is directly incentivised to maintain higher reservoir levels.
For a downstream reservoir, the sign flips: higher downstream level reduces head and power.
Two-Pass Approach
The correction coefficients depend on the operating point (mean volumes and discharges), which is only known after running the SDDP. The implementation uses two passes:
- Pass 1: Run SDDP without head correction → extract mean volumes and discharges from the simulation.
- Pass 2: Compute correction coefficients from pass-1 results. Rebuild LP with corrections added to volume variable objectives. Re-run SDDP (warm-started from pass-1 cuts).
This approximately doubles the runtime, which the compendium acknowledges.
Usage
julia --project=HydroRunner HydroRunner/bin/run_case.jl cases/dokka --head-correctionresult = run_case("cases/dokka"; head_correction=true)API
# Compute corrections from mean operating point
corrections = compute_head_corrections(
cascade, mean_volumes, mean_discharges, mean_price;
resolution=WEEKLY)
# corrections[k] = NOK/Mm³ to add to v_k in LP objective