Real-time operational optimization of a complex DHC plant