The algorithm based on nonlinear optimisation as presented in this paper is applicable to the control of complex processes. The systematic approach is doing without the formulation of rules. In case of competing control targets a weighting in the sense of minimising a cost criterion is done. As application example, coordinated control in combined sewer networks is presented.