This paper deals predictive control and influence control horizon to quality of control. The paper has two parts. The first part of this paper deals with the design of algoritms for predictive control for discrete second order model. The next part performed simulations for different control horizons and evaluation of quality control.