Based on the two-way optimization model, considering the impact of bearing on oil film and propeller hydrodynamic respectively, an improved two-goal bidirectional dynamic optimization model can be obtained. The authors propose interactive iterative approximation algorithm and corresponding calculating examples, which provide a new idea to calculate the shaft position during the dynamic shafting alignment.