This paper aims to obtain an application software using Ansys software in which a static, dynamic, and modal analysis for the power transmission of ships is presented. The objective functions of this research are maximum static stress, maximum dynamic stress, shaft mass, and modal shaft frequency analysis. A complete, comprehensive, and generalizable model for metal shaft types is presented. Then, using the kriging response surface and multi-objective genetic algorithm (NSGA II), these goals are optimized simultaneously. In this research, the optimization parameters are geometric parameters of the shaft design, including the position of the supports and the inner and outer diameters of the shaft. As a result of this optimization, the shaft's maximum static and dynamic stresses are reduced by 36% and 42%, respectively. The shaft's mass, which is one of the most critical factors during the shaft and its vibrations, is reduced by about 9%. In this regard, the first natural frequency of the optimized shaft increased by about 28.5% compared to the initial shaft.