This paper describes the optimization of a linear discrete time controller and nonlinear fuzzy controller for a cylindrical tank located horizontally. The tank model is characterized by several non-linear behaviors like single positive action of the actuator, nonlinear relationship between the height and the inflow and saturation of the actuator given by the maximum flow. The results show a suitable tuning of fuzzy controller through the optimization process.