The paper presents an optimization algorithm for constructing pseudopotentials, specifically optimized norm-conserving Vanderbilt (ONCV) pseudopotentials, for elements up to Z=83 (excluding Lanthanides). The authors introduce a quality function that assesses the agreement between pseudopotential calculations and all-electron FLAPW results, as well as the necessary plane-wave energy cutoff. This function allows the use of a Nelder-Mead optimization algorithm on a training set of materials to optimize the input parameters of the pseudopotential construction. The accuracy of the resulting pseudopotentials is controlled on a test set of materials independent of the training set. The automatically constructed pseudopotentials provide good agreement with all-electron results obtained using the FLEUR code with a plane-wave energy cutoff of approximately 60 Ry. The paper also discusses the computational details, including the quality function, the sets of materials used, and the optimization process. The results show that the ONCV pseudopotentials have similar accuracy to ultrasoft pseudopotentials (USPP) and projector augmented wave (PAW) potentials, with a modest increase in the energy cutoff. The ONCV pseudopotentials are available in UPF and XML formats.The paper presents an optimization algorithm for constructing pseudopotentials, specifically optimized norm-conserving Vanderbilt (ONCV) pseudopotentials, for elements up to Z=83 (excluding Lanthanides). The authors introduce a quality function that assesses the agreement between pseudopotential calculations and all-electron FLAPW results, as well as the necessary plane-wave energy cutoff. This function allows the use of a Nelder-Mead optimization algorithm on a training set of materials to optimize the input parameters of the pseudopotential construction. The accuracy of the resulting pseudopotentials is controlled on a test set of materials independent of the training set. The automatically constructed pseudopotentials provide good agreement with all-electron results obtained using the FLEUR code with a plane-wave energy cutoff of approximately 60 Ry. The paper also discusses the computational details, including the quality function, the sets of materials used, and the optimization process. The results show that the ONCV pseudopotentials have similar accuracy to ultrasoft pseudopotentials (USPP) and projector augmented wave (PAW) potentials, with a modest increase in the energy cutoff. The ONCV pseudopotentials are available in UPF and XML formats.