The main objective of this thesis is first to adapt energy models for the use in developing countries and second to model sustainable energy transitions and their effects in rapidly developing countries like China and India.