The optimal design of single-span portal frame is a design with geometric and physical restrictions.Using penalty function well solves the problems resulting from optimal design of the single-span tapered portal frame,and satisfactory results are got.