This paper investigates the size optimization of truss structure under displacement and stress constraints. Firstly, based on finite element analysis and symbolic computation, explicit function of displacement constraints is obtained by approximate method. Secondly, combined with calculation formula of stress constraints of truss structure, mathematical model of optimization problem is established. Finally, optimization solution is carried out by Lingo and Matlab. The results show that solutions of the two methods are close to each other, and they both can reduce effectively the weight of desi...