Coal will be increasingly squeezed out of the power generation market over the next three decades as the cost of renewables plunges and technology improves the flexibility of grids globally.