An improved algorithm called mINFO is developed, based on the modification of the original weIghted meaN oF vectOrs Optimizer (INFO). In this article, to enhance the original INFO method, an improved version called mINFO is presented by incorporating the sine-cosine function and balancing exploration/exploitation strategy through the control randomization parameter. This suggested mINFO algorithm is applied to obtain the optimal size design of two hybrid renewable power sources (HRPS), the first configuration consists of the photovoltaic (PV)/biomass system (BS)/fuel cells (FC) and the second configuration consists of the PV/BS/battery storage units. This HRPS are designed to generate the power needed to meet the loads supply on the campus of Aswan University in the Sahary region of Aswan city, Egypt. The proposed mINFO approach is developed to avoid the weaknesses of the original INFO method by enhancing the balance between the exploration and exploitation phases and preventing the conventional INFO method from getting stuck in local minima. In order to prove the efficiency and robust search capabilities of the developed mINFO algorithm, the mINFO algorithm is tested by using 10 IEEE CEC’20 test suites and its results are compared with the original INFO method and other well-known optimization algorithms. The proposed mINFO algorithm achieved the first rank in terms of the Friedman mean rank-sum test over F2, F3, F4, F6, F9, and F10, and the second rank after the original INFO algorithm over F1 and F7. Boxplot analysis is also used to show the features of data distribution. For the majority of functions, the boxplots generated by the mINFO algorithm have the narrowest ranges of values out of all comparison algorithms. As a result, for the majority of test functions, the mINFO algorithm shows more promise than its competitors. The main objectives of the suggested HRPS are to minimize energy cost (EC), excess energy (EXE), and maximize the power system's reliability (LPSP). By applying the mINFO algorithm to find the optimal sizing for the two configurations proposed in this study and by comparing the mINFO results with other algorithms such as the original INFO, Particle Swarm optimization (PSO), Runge Kutta optimization (RUN), Sooty Tern Optimization Algorithm (STOA), and Gray Wolf optimization (GWO). The proposed mINFO method shows the best results for the two suggested configurations compared to the other algorithms used by studying the systems for 100 iterations and 50 times run. For the PV/BS/battery units, the best optimal solution has achieved after 36 iterations with the lowest EC with 0.11676275 $/kWh, net present cost (NPC) with 3,420,036 $, EXE with 0.090282 and LPSP with 0.0419687649, while for the PV/BS/FC units, the optimal solution has achieved after 11 iterations with the minimal EC with 0.17996701 $/kWh, NPC with 5,271,318 $, EXE with 0.150022 and LPSP with 0.07598679.