Modelling and real-time optimisation of a heat-exchanger network