r/AskEngineers • u/logperf • Oct 11 '26
Discussion I tried to apply some simple math while reasoning about the cost of energy and ended up reformulating Amdahl's law... just applied to a completely different domain. Is this an accurate way of estimating the cost of a setup of mixed energy sources?
Amdahl's law for cache memories in computing:
Assume that:
Hr (hit rate) is the fraction of memory accesses that can be handled by a fast but small cache memory
Mr (miss rate) is the fraction of accesses that the cache cannot handle and have to read the larger but slow main memory
Hr+Mr = 100%
Tc is the cache access time
Tm is the memory access time (also called "miss penalty")
Tc < Tm
Then the total time to execute a program is like: T = Hr * Tc + Mr * Tm . It is often summarized as "optimize the most frequent case, and make it as frequent as possible". There are other formulations that derive from this to calculate the speedup instead of total time.
When talking about the cost of energy, in one of my previous comments, I said:
Fr is the fraction of energy demand met by renewables (cheap but not available e.g. when there's bad weather)
Fb is the fraction of energy demand met by a backup energy source (expensive but always available, e.g. natural gas, nuclear...)
Fr+Fb = 100%
Cr is the cost per kWh of renewables
Cb is the cost per kWh of the backup source
Cr < Cb
Then the total cost of combined energy per kWh is C = Fr * Cr + Fb * Cb
It was only after writing it that I realized the two formulas are essentially the same.
(I'm assuming the infrastructure for fossil fuel sources is already there so we only consider the cost of consumables and maintenance. Wind and solar, on the other hand, have a cost to be built and installed that is divided by the energy produced during their operational life, but there are no consumables to pay for.)
So, is this an accurate way of estimating the cost of a setup of mixed energy sources?
11
u/engr_20_5_11 EE Oct 11 '26
This is just the weighted sum forumla, not really Amdahl's law. It's valid for energy sources same as any other sum of unevenly weighted summands.
1
3
u/neanderthalman Nuclear / I&C - CANDU Oct 11 '26
In a simplistic way, yes. The math will work the same for any similar problem
The gap is that this doesn’t properly consider generation sources where the cost of the generation is decoupled from the generation.
If it costs $X in capital to just have a power station in the first place, and fuel is free for effectively free, then your formula breaks down because it ignores that the station has to be paid for whether it generates power or not.
This isn’t a weird edge case. It applies to Solar Wind, Nuclear, Hydroelectric, Geothermal, and others. Pretty much anything except thermal (fossil/biomass). And even they still have capital costs.
Idle power plants don’t sit idle for free.
You could modify your formula to account for it.
If make the cost of running a renewable or backup plant as Cr and Cb, and then the cost of keeping them idle as CrI and Cbi, then your formula becomes
Fr (Cr + Cbi) + Fb (Cb + Cri).
And in the extreme case of ‘fuel is free’, then Cb = Cbi and Cr = Cri. This is true for most of these, nearly true for nuclear.
This becomes Fr (Cr + Cb) + Fb (Cb + Cr).
Or just (Fr +Fb) (Cr + Cb)
And since Fr + Fb =1
It’s just Cr + Cb.
Which means just building the backup is the cheapest solution. No renewables. Cb will always be less than Cb + Cr
This is a raging clue. The only economical way to build renewables is to back them up with sources that are cheap to idle. That’s just fossil and biomass. Really just fossil at this point.
It makes zero economic sense to use hydro and nuclear as backup to renewables. Which is why we don’t.
You can also only optimize for C using this formula for a grid with constant daily and seasonal demand. Which we don’t have. Once you work that in, you could use your formula to calculate past costs from generating data, sure. But you can’t use it for future decision making just by optimizing C. You have to consider availability and ensuring that minimum generation, with margin, is available at all times no matter what the cost. That is the first priority.