Neural management for heat and power cogeneration plants