In electrical power engineering, elements such as reliability analysis, modeling, and optimization for complex systems are of the utmost importance. Although there exist myriad studies regarding reliability optimization with conventional methods, researchers are still seeking to find more efficient and accurate methods to address the issue of the redundancy allocation problem. To that effect, an ideal power energy management approach is put forward for the operation of a hybrid microgrid system with different kinds of productions. In the present study, we suggest three algorithms in order to optimize the series-parallel power energy system: the Firefly (FA), Bat (BA), and Interior Search (ISA) algorithms. Moreover, the reliability estimate of the system is solved with the Ushakov algorithm (UMGF). The components may completely fail, which decreases their performance rate. Furthermore, the optimization results are achieved using objective functions that include the total cost of the system, emission gases (NOX, SO2, and CO2) of the power production from fuel cells, diesel generators, and gas turbines, and take into consideration the dependability indices. Devices used in power subsystems are characterized based on their dependabilities, performances, capital costs, and maintenance costs. Reliability hinges on a functioning system, which naturally entails meeting customer demand; as a result, it is influenced by the accumulated batch curve. This method provides an idea with regards to the economic cost optimization of microgrid systems. Finally, we present the results of numeric simulations.