This paper takes the native vegetation in Hanzhong City as the research object, and constructs a multiobjective linear programming model to optimize the distribution of the suitability of the native vegetation in Hanzhong City. The ArcGIS software was used to test the sample consistency and screen the environmental variables of the native vegetation data in Hanzhong City represented by alfalfa, and the model in the software was used to predict the distribution of alfalfa’s suitability area. Based on the prediction results, this paper constructs a multi-objective linear planning model with economic and ecological benefits as the objective function and the land area of different utilization types as the decision variables to optimize the distribution of the suitability of native vegetation in Hanzhong. At the same time, the fuzzy mathematical planning method was used to solve the constructed model. After the model optimization, the area of fitness distribution of native vegetation in Hanzhong City increased significantly, and the growth of the fitness distribution area of each vegetation by 2080 was 49.61%, 35.51%, 36.41%, 28.11%, 15.36%, 24.75%, 27.92%, 28.40%, 31.22%, and 31.52%, respectively. In addition, the optimization of the distribution of native vegetation suitability using the model of this paper can produce obvious economic and ecological benefits, which fully demonstrates the effectiveness of the model of this paper.