Dynamic optimisation of a boiler-turboalternator model