The self-adapting algorithms are improved to optimize a beam configuration in the direct drive laser fusion system with the solid state lasers. A configuration of 32 laser beams is proposed for achieving a high uniformity illumination, with a root-mean-square deviation at 10−4 level. In our optimization, the parameters such as beam number, beam arrangement, and beam intensity profile are taken into account. The illumination uniformity robustness versus the parameters such as intensity profile deviations, power imbalance, intensity profile noise, the pointing error, and the target position error is also discussed. In this study, the model is assumed a solid-sphere illumination, and refraction effects of incident light on the corona are not considered. Our results may have a potential application in the design of the direct-drive laser fusion of the Shen Guang-II Upgrading facility (SG-II-U, China).