The combined operation of electricity and gas is an important way of an integrated energy interconnection in the future. To meet the demands of multiple interests in the joint operation of electricity and gas, the master-slave game theory model is developed. In game model the power supply company and the gas company are the master players and the household load aggregation cluster is the slave player. The multi-energy joint load characteristics of household load aggregation and the uncertainty of the price demand response are used to obtain a payment function for each party to the game. The master-slave game model is built with the objective of maximizing the benefits on the supply side and minimizing the payments on the demand side. The master uses price as the strategy set and the slave uses demand response as the strategy set. The tripartite game equilibrium solution is screened by an optimal response function combined with Non-dominated sorting genetic algorithm (NSGA). Through the simulation analysis of an example, the frontier solution set of the tripartite game is obtained. Subjective scoring method and K-means clustering algorithm are used to select the optimal solution and discuss the application of the model under the influence of photovoltaic and gas turbine, the application of master-slave game and traditional NASH equilibrium solution, the application of game and general objective optimization in this paper. The model can be used to optimize the economic benefits of the parties in the long-term operation dispatch, and provide a reference for the optimal operation of market decisions under energy interconnection.