Adaptive wavefront control based on genetic algorithm for the enhancement of high-order harmonic generation driven by two-cycle laser pulses