An efficient scheme for the optimization of ultrashort femtosecond pulse shapes interacting with an
atom to control high harmonics spectrum and double attosecond pulse generation is presented. The
time-dependent Schrödinger equation of one-dimensional hydrogen atom is solved numerically
to obtain electric field emission. The genetic algorithm optimization method is used to control
the phase and amplitude of ultrashort excitation laser pulses to generate the desired attosecondshaped
pulses. An appropriate cost function is introduced for genetic algorithm optimization of
double attosecond pulse generation. It is shown that the relative intensity of two generated pulses,
their delay time and duration can be controlled in this approach. Finally, the parameters of the
optimized emitted attosecond pulse are compared with those of desired pulses, and the underlying
physical mechanisms are discussed in detail.