This paper presents a solution of the three tank benchmark problem modeled using the Mixed Logical and Dynamical (MLD) system framework and controlled using model predictive control (MPC). Compared to the existing works using the same approach, this work is different in the Mixed Integer Quadratic Programming, especially in the tuning method of the weighting matrices.