## 4 Modeling a Solar-Hydrogen System in the University
### Performance Result  
The system's effectiveness and efficiency are demonstrated by the performance data based on the created Microgrid ESS Optimization for the Solar-Hydrogen system. In determining the success of the design, the evaluation takes into account a number of essential factors. The overall energy efficiency of the microgrid is the focus of the performance outcomes (Figures 5 and 6). This includes determining how well the system optimizes solar and hydrogen-derived energy storage, delivery, and consumption, with the goal  
Figure 4: Hybrid Solar-Hydrogen. Figure 3: Microgrid with EMS Optimization for Solar-Hydrogen. of minimizing energy waste. The microgrid's performance is measured in terms of reliability and resilience. This includes measuring how well the optimized energy storage system responds to changes in energy demand, changes in solar availability, and external interruptions, ensuring a continuous and stable power supply. The battery and grid voltage Simulink chart findings provide important information about the system's electrical performance (Figure 5). The average grid voltage stabilizes between 239 and 240 volts, indicating a steady and dependable grid power supply. Conversely, the Battery Voltage displays a dynamic range of 218 to 235 volts, indicating the battery's charge-discharge cycles. A discharge phase is indicated by the lowest recorded voltage of 218 and a charging phase or high battery capacity is indicated by the maximum voltage of 235. The system's adaptive nature is reflected in the battery's variability, which enables it to manage demand fluctuations and intermittent renewable energy inputs while  
Figure 5: Performance Result 1. Figure 6: Performance Result 2.  
efficiently using the grid as a reliable power source. The Simulink diagram highlights how the grid and battery components work well together to provide a dependable and flexible energy source that stays within the designated voltage range. The findings of the Simulink chart that shows the solar currents, storage, and electrolyzer give a thorough picture of the system's energy dynamics (Figure 5). The electrolyzer and Solar Currents are noteworthy for their synchronized patterns, which frequently peak together. A maximum recorded score of 800 amperes was achieved. This coherence implies that the solar panels maximize the production of hydrogen by contributing significantly to the electrolysis process under ideal solar conditions. On the other hand, the storage system's charging and discharging actions are indicated by the Storage Current, which has a maximum score of 100 amperes. The comparatively smaller magnitude when contrasted with the Electrolyzer and Solar Currents suggests that the energy storage and retrieval system is functioning effectively, guaranteeing a consistent and balanced supply of electricity. All things considered, these Simulink chart results highlight how well electrolysis, solar power generation, and energy storage are coordinated, presenting a system that makes the best use of renewable energy sources while preserving a steady and flexible energy supply. The Battery Charge Percentage Simulink chart result offers important insights into the energy storage system's dynamic behavior (Figure 5). When the battery reaches its maximum performance result of 100%, it indicates that it is fully charged, that available energy sources are being used efficiently, or that there may be a period of low energy demand. On the other hand, the drop to the lowest recorded figure of 30% indicates a situation in which the battery has experienced significant discharge, either during a time of increased energy consumption or restricted production of renewable energy. This variation in the battery charge percentage highlights how adaptable the system is, skillfully controlling the amount of energy stored to satisfy changing needs.