With the rapid development of the regional economy, the urbanization process is gradually accelerated, and the ecological safety problems of the urban water body network gradually appear, so this paper is based on linear planning to optimize the ecological landscape water body network. The study first gives a detailed description of the linear planning theory and highlights the gray linear planning model used. Based on the ecological constraints of the landscape pattern quantity optimization research, the “top-down” gray linear planning model from six aspects to build ecological constraints and objective function, through the simplex method to solve, resulting in different scenarios of the total amount of control of the optimization program. Three practicable optimization scenarios are obtained through repeated debugging of the optimization results, and the three scenarios achieve different results in terms of economic and ecological values. In this paper, effective optimization schemes are proposed for different optimization purposes, which on the one hand make the optimization results more realistically reflect the changes of the ecological landscape water body network, and on the other hand provide an optimal model for the management and development of the ecological landscape water body network, and promote the sustainable development of the region.