This work is interested in the study and analysis of the functioning of a hybrid energy production system made up of three energy sources: Wind energy, a photovoltaic generator, and a battery. The control of each part of the multi-source production chain generates the optimization of the functioning of the global system. The multi-level inverter is inserted in the chain of the hybrid system which can also improve the quality of the energy injected into the alternating load and consequently reduce the harmonic rate. The stability of the voltage across the DC bus capacitor plays a very important role in the healthy functioning of the production chain. For this purpose, an adjustment based on a sliding mode controller which ensures the adjustment of the DC voltage. Among the solutions deployed in order to obtain an excellent quality of energy to the network or to the AC load is the use of multi-level inverters. The major interest of this work is to extract the maximum power from the DC bus based on fuzzy logic control. The load requirements are often varied and to meet them, an algorithm for managing the energy flow between the different production sources is proposed. The implementation of the proposed system is carried out under the Matlab / Simulink environment, the results obtained validate the effectiveness of the technique and its feasibility in simulation and even in the case of practical implementation in real time.