This study is to develop the structure analysis and optimization algorithm of the strut supported temporary structure for underground constructions. Developed algorithm performs the analysis and the optimization of each strut, wale, and H pile of temporary structures separately. The design variables of nonlinear optimization consist of the cross-sections of temporary structures such as strut, wale, and H pile and the solution of the nonlinear programming is searched using for the method of successive unconstranint minimization technique. The weight of the structure is used for the object function of nonlinear programming. the constraints are derived from the specification of the temporary structures as compressive axial, bending, shear, composite stress and serviceability. The structural analysis is performed based on the elastoplastic beam theory. This developed program can be used to evaluate the applicability, convergence, and effectiveness of the temporary structures.