Multivariable predictive functional control of an autoclave