Abstract. In a hostile environment, it is important for avoiding the threat of ground radar and ground air defense missile. So, in the airlines planning process these are some factors to be studied carefully, such as the terrain, ground radar and anti-aircraft missiles and other factors. Firstly, it is important to construct the battle environment spatial modeling. The battle space is divided by grid-like space nodes. Then set the values of modes attributes in the space node, such as the terrain model, radar model and anti-aircraft missiles model. The probability of detection was calculated based on the positional relationship between the radar and radar aircraft, and anti-aircraft missile shot probability, etc. Then the fitness function of a space node was gotten. Finally, using the ant colony algorithm to search the optimal airline, generate best performance of the airline.