Thermo-economic optimization of a real polygenerative district