In the present work, the working state of the crane leg is analyzed and discussed, and its structure is optimized. SolidWorks software is used for modeling; ANSYS software is used for finite element analysis. First of all, the constrained finite element method (CFEM) is used to analyze the linear eigenvalue buckling and geometric nonlinear buckling of outriggers with different cross-section shapes. Prove that the curved leg has certain advantages in buckling. At the same time, analyzing the leg along a different path of buckling condition and stress changes provide the basis for the design of the subsequent reinforcement. After selecting the best cross-section shape of the outrigger, the agent-based multi-island genetic algorithm is used to optimize the structural parameters of the outrigger under the transverse stiffened plate reinforced structure and the longitudinally stiffened plate reinforced structure respectively. It is proved that the outrigger with the transverse stiffened plate has a significant effect in improving the bearing capacity and in the lightweight of the structure. Finally, the gap between the movable leg and the fixed leg was changed, the stress of different gaps was analyzed by using the finite element method, and the appropriate gap value was selected according to the high-order fitting curve.