Optimal population allocation layout over the Earth Does exist some model of optimal people occupancy over whole our planet?

Something accounting for climate, resources (with and without existing settlements) availability, progress and grows perspectives and so on.
I would like to find it in form of heat map.
All I can find is just studies about cities layout or population size and density.

I came to the question thinking about advisability of my little hometown existence and ways to improve it - may be the game is not worth the candle.
The closest I can find to what I believe you’re looking for would be the biocapacity map of the Global Footprint Network. They don't seem to publish granular spatial data, i.e. where in a country its biocapacity is located.
Note, however, that actual economic activity does not correspond to local biocapacity because high density stock energy (fossil fuel) can be transported to population centres. (Source)