## 5 Results  
Table 5 and Figure 5 list the optimal configuration composed by PV arrays, wind turbines, a converter, and batteries. Table 6 shows the total and annual costs of the components in the simulation. The combination of 12,780 kW-capacity of the PV arrays, 17,965 battery units with a 1525 kW-capacity of the electric converter is suggested to respond to the electricity demand of Chiang Mai University.  
The optimal configuration shows $5,168,399 of the annual costs with $0.728 per kWh of the COE level. The cash flow is introduced in Figure 6. The annual electricity production was estimated to be 20,768,330 kWh. Figure 7 presents the monthly electricity production. The monthly PV power production and battery state of charge are presented in Figures 8 and 9, respectively.  
\begin{table}
\begin{tabular}{l l l l l l} \hline \hline
**Category** & **Component** & **Capital (S)** & **Replacement (S)** & **O\&M (S)** & **Salvage (S)** & **Total (S)** \\ \hline Total cost & PV array & 23,004,000 & 8,065,651 & 4,336,400 & \(-\)4,654,895 & 30,751,156 \\  & Batteries & 22,078,984 & 18,050,268 & 2,438,292 & \(-\)5,460,543 & 37,106,988 \\  & Converter & 1,525,000 & 694,860 & 206,980 & \(-\)137,149 & 2,289,690 \\  & System & 46,607,984 & 26,810,779 & 6,981,672 & \(-\)10,252,586 & 70,147,848 \\ \hline Annual cost & PV array & 1,694,904 & 594,266 & 319,500 & \(-\)342,966 & 2,265,704 \\  & Batteries & 1,626,750 & 1,329,919 & 179,650 & \(-\)402,325 & 2,733,993 \\  & Converter & 112,360 & 51,196 & 15,250 & \(-\)10,105 & 168,701 \\  & System & 3,434,013 & 1,975,382 & 514,400 & \(-\)755,397 & 5,168,399 \\ \hline \hline \end{tabular}
\end{table}
Table 6: Total and annual costs of the optimal configuration (created by the authors).  
Figure 5: The suggested configuration (created by the authors).  
\begin{table}
\begin{tabular}{l c l l} \hline \hline
**Components** & **Index** & **Components** & **Index** \\ \hline PV array & 12,780 kW & Initial capital cost & \$46,607,984 \\ Wind turbine & 0 unit & Operating cost & \$1,734,385 per year \\ Battery & 17,965 units & Total net present cost & \$70,147,848 \\ Converter & 1525 kW & Cost of energy & \$0.728 per kWh \\ Renewable fraction & 100\% & & \\ \hline \hline \end{tabular}
\end{table}
Table 5: Optimal configuration for Chiang Mai University (created by the authors).  
Figure 8: Monthly PV power production of the suggested configuration (created by the authors).  
Figure 6: Summary of cash flow in the suggested configuration (created by the authors).  
Figure 7: Monthly production of electricity from the suggested configuration (created by the authors).  
The key findings from the simulation results in the current study could be introduced as follows. First, the combination of PV array-batteries-converter was proposed for Chiang Mai University. Second, the suggested configuration from the simulation shows $70,147,828 of the total NPC level with $0.728 kWh of the COE level. Third, the optimal configuration meets the 100% renewable fraction, because the purpose of this study was to present independent renewable electricity generation systems for Chiang Mai University.  
Moreover, there are the notable amounts of the annual reduced environmental pollutants of the proposed configurations, instead of using the current grid system. 4,487,738 kg of CO\({}_{2}\), 19,456 kg of SO\({}_{2}\), and 9515 kg of NO and NO\({}_{2}\) cannot be annually emitted by employing the proposed configuration in this study.