PurposeAluminum foam-filled thin-walled unit structures have received much attention for their excellent energy absorption properties. To improve the energy absorption effect of car energy absorption box under axial compression, this paper optimizes the fiber lay-up sequence, fiber angle and aluminum foam density of aluminum foam filled carbon fiber reinforced plastic (CFRP) thin-walled square tubes.Design/methodology/approachDesign of sample points required to construct the proxy model using design of experiments (DOE) method, and the data sample points of different models are obtained through Abaqus simulation and test. A double high-precision proxy model with the maximum specific energy absorption (SEA) and the minimum initial peak crash force (PCF) as the evaluation index is constructed based on the response surface function method. The NSGA-II multi-objective genetic algorithm was used to optimize the design parameters and obtain the optimal solution for the Pareto front, and the results were verified by using the multi-objective optimization toolbox in design-expert.FindingsThe results show that the optimal solution to the multi-objective optimization problem with the inclusion of the lay-up sequence is ρ = 0.5g/cm3 for a fiber lay-up angle varying in the range ±15–90° and an aluminum foam density varying in the range 0.2g/cm3-0.5g/cm3, with a lay-up method of [±87°/±16°/±15°/±89°]. The two optimization methods correspond to SEA and PCF errors of 2.109% and 4.1828%, respectively. The optimized SEA value is 18.2 J/g and the PCF value is 18,230 N. The optimized design reduces the peak impact force and increases the specific energy absorption, which improves the energy absorption effect of thin-walled energy-absorbing boxes for automobiles.Originality/valueIn this paper, the impact resistance of CFRP thin-walled square tubes filled with aluminum foam is optimized. Based on numerical simulations and experiments to obtain the sample point data for constructing the dual-agent model, we investigate the effect of filling with different densities of aluminum foam under the simultaneous change of fiber lay-up angle and order on its mechanical properties in this process, and carry out the multi-objective optimization design with NSGA-II algorithm.