I. Introduction
With the rapid development of the national economy, the large increase of urban population and the expansion of urban hardening area. In the process of urban construction, there are often such phenomena as encroaching and occupying farmland, land reclamation, building houses, and littering in urban areas. These phenomena will affect the flood control capacity of urban rivers, and even affect the stability of various flood control facilities in serious cases [1]. Especially in summer and autumn, most areas are in the rainy season, and continuous days of rainfall or sudden rainstorms may cause floods. Water flowing into unattended underground garages, substations, power distribution rooms, underground switching stations and other places may cause hidden dangers [2]. In particular, once the urban subway is flooded by flood (tide) water, its economic loss is huge, and it may also cause heavy casualties, affect people’s normal life, and even affect people’s work order [3]. Therefore, for urban construction, flood control is a serious and urgent priority. It is very necessary to make disaster prevention and rescue plans for similar special areas, especially floods have the characteristics of short duration, wide impact and great harm [4]. In order to reduce or avoid similar problems, the author designs an automatic flood control and leakage stoppage door system, which can be installed in the above-mentioned places. When the flood is poured in, the flood control and leakage stoppage system will start automatically to keep the flood out of the above places, and the structure is simple and reliable. The cost of construction or renovation is low, and it is easy to implement and popularize [5]. In the process of the development of human society, people are inspired by nature and have made many creative achievements [6]. Today, with the high development of science and technology, people have not forgotten to get inspiration from nature, and have developed the model of bionic optimization algorithm to solve the problems encountered in scientific practice. As a heuristic algorithm, the first problem to be solved by ACA is combinatorial optimization, which is also the most studied and widely used problem at present [7]. In this paper, ant colony optimization algorithm is applied to mechanical optimization design, and this novel optimization algorithm is used to solve the automatic flood control function of flood gates.