Source: https://perso.limsi.fr/bourdin/master/Cogenerationcours2010.pdf