By using a dynamic physical model, that is adapted to real process data, robust mathematical process models can be created. By doing this it is possible to build in process know how from many different sources, and also to include factors, that are not easy to measure. From the dynamic model a training simulator can be made. From the dynamic model it may also be possible to do a model reduction to get an MPC, a Model Predictive Control. Data reconciliation is needed, to keep control of the measurements of all kind. A decision support system keeps control over the process status, to support operators. The production is also optimized at several levels. These functions may also be achieved by using principally the same mathematical models and algorithms.