© 2003-2012 IEEE. Adaptive Optics (AO) is a technique used to mitigate the effect of the atmosphere in the resolution of scientific images. The performance of an adaptive optics system strongly depends on the quality of the laser beam projected to the sky in terms of amplitude and phase. Currently, cumbersome procedures are carried out to optimize the laser beam. This paper presents the performance of a Model Predictive Controller (MPC) to adjust the quality of the laser in a system of two deformable mirrors. The Results shows that the MPC effectively corrects the amplitude and phase of the laser beam using deformable mirrors with about 140 actuators and a separation between mirrors z = 3 [m].