Model based optimisation and control of chemical reactors with distributed parameters door