Design of organic Rankine cycles for conversion of waste heat in a polygeneration plant