Model-based control of drinking-water treatment plants door