General method for the analysis of cogeneration systems by Liviu Ruieneanu