The invention discloses an operation optimization method and device for a multi-energy system based on hydrogen energy and energy storage equipment. The system consists of a fuel cell, an electrolytic cell, an absorption refrigerator, a waste heat recovery device, a photovoltaic power generation system, a solar water heater, and a wind power generator set , hydrogen storage tank, compressor, hot water tank and cold water tank. This method adopts the scenario tree method to solve the randomness problem. According to the predicted values and deviations of wind force, solar radiation intensity, electricity demand, cooling demand, and heat demand, a scenario of wind power generation, photovoltaic power generation, solar heat production, and user electric cooling and heating demand is established. In anticipation scenarios, with the goal of minimizing the average operating cost in all scenarios, the mixed integer linear optimization of the system is carried out to study the operating strategy of the system. In this optimization problem, the operating strategies of the fuel cell and the absorption chiller are kept the same in all scenarios, while the operating strategies of the electrolyzer, hydrogen storage tank, hot water tank and cold water tank are variable in different scenarios to achieve The purpose of absorbing renewable energy.