Dynamic long-term modelling of generation capacity investment and capacity margins https://energieclimat.hypotheses.org/7128