Bizarrely, humans weren't used for computation in the Matrix. They were batteries...somehow.
https://en.m.wikipedia.org/wiki/Nuclear_fusion#Astrophysical...
But why didn't the machines just build geothermal generators? I guess it's not much of a story then?