The efficiency of the simplex method of compensation for the stationary wind refraction of the beam is numerically investigated. Control of the beam is performed based on the class of the first– and second–order wavefront aberrations. The search for the maximum illumination from the object being focused with the use of the simplex method is found to reduce the number of measurements of the goal function by the factor of 1.5–2 in comparison with the gradient procedure.