  In high energy resolution X-ray spectroscopy beamlines of synchrotron
radiation facilities, it is important to keep X-ray spectrometer operating in
optimal conditions. The adjusting process is normally very time consuming due
to the irregular light source beam point, and it is difficult to get global
optimum. This study aims to develop an intelligent adjusting system based on
global optimization algorithm for high energy resolution X-ray spectroscopy
beamline commissioning. First of all, based on the two dimensional experimental
data, automatic adjustment process was established. Then the automatic
optimization was applied to adjust X-ray spectrometer practically, and upgraded
iteratively. Online tests results show that this automatic adjustment process
converges to the optimal solution quickly, and the convergence time is about
several hundred steps, more efficient than manual optimization process. After
automatic adjustment, we can get correct X-ray spectrum based on the adjusted
spectrometer.
