The page runs one model, hill_climb_human. Its equations are written once, in R, and this page runs a JavaScript copy GENERATED from them (identical to 1e-15). The runner is a point moving along a straight switchback path; the clock runs in steps of s.
1. The line
The mountainside rises at α. You choose the gradient i (rise over run) of your path, at most the fall line tan α. A gentler path zig-zags at an angle β off the fall line and is longer.
2. What a metre costs
Minetti and colleagues measured the net energy cost of walking and running on a treadmill from −45 % to +45 % gradient. Per kilogram per metre travelled:
Running costs about the same per metre at any speed. Walking has a cheapest speed ( m/s); the page multiplies the walking cost by a factor that grows slowly below it and steeply above it, which is why walking turns into running near 2 m/s on the flat. Steeper than ±45 % the polynomials are extrapolated: the fifth-power term is what makes the fall line of a steep slope so expensive. Per metre climbed, hiking is cheapest at a gradient of about .
3. Critical power and W'
Below its critical power CP a body can keep going for a long time. Above it, it draws on a finite reserve W'. This runner has of net metabolic CP and of W'.
The refill is the differential form of Skiba and colleagues (2015): fast when W' is nearly empty, slow near full. When W' falls to 5 % the runner stops until it is back at the share you chose. At this runner's start, CP pace on your path is .
4. Glycogen, food and altitude
The carbohydrate share of the fuel rises from 30 % at rest to 100 % at CP. The gut absorbs at most of what you eat. Below of glycogen you hit the wall: CP falls toward 60 % of its value. Above 1,500 m, CP also falls by 7 % per 1,000 m.
5. Why there is a best line and a best pace
- Line. At a given power, your vertical speed is power divided by the cost per metre climbed. That cost is high on a gentle path (a long way to go) and high on a steep one (the steep end of the cost curve), with a broad minimum between.
- Pace. Above CP every metre is as expensive as at CP, and the stops add time. Below CP you are leaving power unused. Steady at about CP is the backbone.
- Push. W' is free time if you arrive with it empty. Spend it on the last stretch, faster on the same line. Going straight up at the end does not help here: the fall line costs more per metre climbed.
6. How the optimum is computed
- For each gait: an 8 × 10 grid over gradient and pace, then a pattern search that halves its steps.
- Then the final push: 20 m steps, pushes from 1.1 to 1.7 times the pace.
- The result is snapped to the slider steps and its neighbours are climbed with exactly the run you get. Food is set to the gut limit and the restart to 80 %.
7. What the model leaves out
Turning at the switchbacks, terrain, heat, descending, pacing that changes along the way (apart from the push), and fatigue that is not W' or glycogen. The physiological constants are plausible for a fit amateur trail runner, from memory, not fitted to anyone.
Further reading
- Minetti et al. 2002, Energy cost of walking and running at extreme uphill and downhill slopes (the cost curves).
- Hitting the wall: what happens when glycogen runs out.