Double-objective optimization-based firefly algorithm of a stand-alone photovoltaic/water pumping system for water supply in rural and remote areas: a case study

A techno-economic study of a stand-alone PV water pumping system for water supply is done in this paper. An optimal design of the system is realized thanks to a double-objective optimization based on a proposed operational strategy of the system and on firefly algorithm (FA). The two objective functions simulated simultaneously using FA are: the function defining the cost of water (COW) and the function which defines the loss of water supply probability (LWSP). The system is designed to supply water to around 328 households in Cameroon, each composed by an average of six (06) persons. For different LWSP, the double-objective simulation determines the optimal configurations of the system with their related cost. The optimal and reliable (LWSP of 0%) system configuration obtained is composed by a number of 7 PV modules, a reservoir volume of 98.4 m3 with 2 days autonomy, a total dynamic head of 40 m, and a pump power of around 1 kW. The related COW corresponding to this configuration is 0.1185 $/m3, and the total investment cost is 27,506 $. The sensitivity analysis of the system revealed that the PV size, the volume of reservoir storage, and the efficiency of the pump influence the system both technically and economically, whereas the total dynamic head only influences the system economically. The validation of the optimized system has been done by comparison with manufacturer datasheets. It is demonstrated in this paper that the techno-economic analysis of energy systems based on multi-objective optimization using firefly algorithm is a powerful tool for decision-making.

developing countries, especially those of Africa, and is worsening with the fast growth of the population. Surface water is easily accessible, but its quality may not be suitable for human consumption, agriculture, or industry. Before being used for consumption, surface water needs to be treated. Groundwater, on the other hand, is directly drinkable and must therefore be exploited. To be brought to the surface and used for human and animal consumption, groundwater needs to be pumped. In order to obtain large quantities of water, electric pumps are used and thus require a reliable source of energy.
Communities that are connected to the local electricity grid use this energy to power hydraulic pumps. These communities also often use the diesel generator for water pumping. For communities that are not connected to the grid, the diesel generator is mainly used. However, these methods of using electricity to pump water are often very expensive and harmful to the environment like the diesel generator. It is therefore important to look for alternative energy sources for water pumping. Photovoltaic solar water pumping is presented as a promising alternative solution to meet this demand. Indeed, several governments and international organizations are using photovoltaic water pumping to help rural and isolated populations. The sale of water is organized in this case to cover the costs of the maintenance of the system. Many individuals, public services, even in urban areas, are also now using photovoltaic water pumping for water supply in various applications. Because of their importance, many researches are carried out on photovoltaic water pumping systems concerning the improvement in their performance [1][2][3][4][5][6], their optimal sizing [7][8][9][10][11], the economic and environmental aspect [12][13][14][15], the tracking of the maximum power point [16][17][18][19]. The current study is interested by the optimal sizing of these systems regarding their reliability and the economic aspects. Below are presented some previous works carried out on solar water pumping systems.
Ibrahim et al. [20] developed a computer program for the design of a solar water pumping system. This program, based on mathematical modeling, allows the complete sizing of the system components. The economic analysis they did in their study revealed that solar water pumping is much more accessible than diesel generator-based pumping. The model they developed could be of great importance to both designers and users.
Muhsen et al. [21] carried out a study on the techno-economic analysis and the optimal sizing of an autonomous photovoltaic water pumping system for the water supply of a small village. A numerical approach based on an iterative method was used for this purpose. The optimal configuration of the system is determined through a simulation based on the minimization of two objective functions, one of which takes into account the technical aspect and the other the economic aspect. The determined system parameters are the size of the water storage tank and the total number of PV modules. For a population of 120 people with a daily water requirement estimated at 30 m 3 , the optimal configuration consists of 20 modules of 120 W and 52 m 3 as the maximum capacity of the storage tank.
Chennaif et al. [22] carried out a study on the optimal sizing of the components of a photovoltaic water pumping system applied to irrigation. This optimal sizing is obtained thanks to a techno-economic analysis based on the "Electric system cascade analysis" method. Several system configurations are taken into account. The two optimization criteria considered are the "loss of water supply probability" and the "life cycle cost. " The results obtained show that for a continuously variable daily water requirement in the study site considered, the optimal configuration of the system consists of 23 PV modules of 250 W c and a water storage tank of 610 m 3 . Olcan [23] has proposed a multi-objective analytical method for the optimal sizing of components of stand-alone photovoltaic water pumping systems for irrigation in remote areas. The reliability of the most optimal configuration is identified by its ability to minimize the deficiency of the power supply probability. The minimization of the life cycle cost is also considered as a selection criterion in the proposed model. The proposed analytical model has been validated by a numerical model.
A design optimization of solar PV water pumping for various applications has been performed by Sharma et al. [24] based on mathematical modeling and PVsyst 5.52 software simulation tool. This optimal design takes into account both technical and economic aspects. The results obtained in their study prove the performance of PVsyst software for optimal analysis of PV systems.
Multi-objective optimization appears as a powerful tool for the optimal sizing of stand-alone PV and hybrid systems [11,[25][26][27][28][29][30][31][32]. The effectiveness and performance of this kind of optimization are related to the optimization algorithm program used for simulation. Recently the multi-objective optimization using evolutionary algorithms appears as promising optimization technique for energy systems [11,[25][26][27][28][29][30][31]. The most used evolutionary algorithms for energy systems optimization are genetic algorithm and particle swarm optimization methods [11]. Multi-objective optimization based on the Firefly algorithm [33,34] for the design and analysis of energy systems has not yet received a significant attention from researchers. However, this algorithm having a good and rapid convergence is adapted for multi-objective optimization [35,36].
A double-objective optimization using firefly algorithm is performed in this work to determine the optimal and reliable configuration of photovoltaic water pumping system that satisfies the load demand (water demand) at all the times of the year. One of the particularities of the proposed design method is that all the sizes of the system components are determined by simulation including the pump nominal power. The sizes of the main system components (Photovoltaic generator, reservoir water storage, and pump) are obtained thanks to the optimized variables which they are related based on mathematical equations.

System components
The operation of a photovoltaic water pumping requires the design and the implementation of its production system. A photovoltaic water pumping system can have different configurations according to the users' priorities. However, in order to be adopted, a configuration must be able to meet some criteria related to the cost and its capacity to respond efficiently to water demand, even in critical climatic conditions. The main components of the studied stand-alone photovoltaic water pumping system are: the PV generator, the water storage system (tank), and the pump. This study is only limited on the water production and does not include the distribution. Also the energy storage is not included in the present system. When the PV array is unable to provide electrical energy to the pump or when the pump is off (especially during the night), the water is provided to users thanks to the stored water in the tank during the pump working time.
A schematic representation of the studied system is given in Fig. 1.

Description and location of the studied site
Waza is an area of Far-Nord region of Cameroon, located at 11° 21′ N latitude and 14° 31′ E longitude. A distance of about one hundred and twenty kilometers separates this locality from the Maroua town. It is characterized by a hot and dry climate. Some reasons can justify the choice of Waza as the site of study. One of the reasons is because this locality faces the problem of lack of water. Another reason that can justify the choice of Waza for this study is because there is an international touristic site in Waza which hosts tourists and researchers from everywhere and every year, and then requires the constant availability of suitable drinking water. Photovoltaic water pumping could be for Waza, a reliable and sustainable solution, due to the great solar potential in this locality. Figure 2 presents the localization of Waza on the geographic map. The evaluation of the solar energy potential is one of the main aspects to consider before to install a PV system. The ambient temperature also has an influence on the photovoltaic energy production. The average solar radiation and the average ambient temperature of the site of Waza for different months of the year are presented in Table 1.

Pump power modeling
It is assumed in this study that the PV/water pumping system is designed to supply water to about 328 households. Each household is composed by an average of 6 persons, and the water demand (for cooking, drinking, washing…) for each person is considered to be 25 L per day. Thus, the total volume of the water demand (V demand ) is 49200 L/day or 49.200 m 3 /day. By setting the pump running time to 8 h/day, then the water flow rate will be Q pump = 6.15 m 3 /h or 0.1025 m 3 /s. Note that the pump is only working on the day since the energy storage (like batteries for example) is not included in the system. The sizing of the solar pump is closely related to the water flow rate. The pump power is given by  Since the pump power is a function of the total dynamic head (H t ) which is one of the variables to be optimized in this study, the pump nominal power is also optimized according to this parameter.
The total daily nominal energy requested to pump the daily demanded quantity of water is determined by

PV output calculation
The PV power output is calculated by the equation where P pv,ref is the power of the PV generator at the maximum point in standard test conditions given by the constructor.

Water storage subsystem modeling
The volume of the water tank is calculated by N ad is the number of autonomy days of the reservoir and V demand is the total volume of the daily water demand.

Multi-objective optimization and problem formulation
A multi-objective optimization technique is performed in this study to determine the optimal key parameters of the system while minimizing the cost and ensuring an efficient satisfaction of the load requirement (here the water demand). This study focused on a double-objective optimization based on firefly algorithm.
Firefly optimization algorithm (FA) is among the recent metaheuristic algorithms. It is a bio-inspired algorithm developed by Yang [16][17][18][19]. Fireflies are small, winged beetles able of producing a cool flashing light for mutual attraction. Females can mimic the light signals of other species to attract males to capture and eat. Fireflies have a capacitor-like mechanism, which slowly discharges until a certain threshold is reached, they release energy in the form of light. The phenomenon repeats itself cyclically. This algorithm is designed to solve optimization problems in many practical areas. The algorithm is based on the principle of attraction between fireflies and simulates the behavior of a swarm of fireflies in nature, which gives it many similarities with other metaheuristics algorithms based on the collective intelligence of the group, such as the PSO algorithm (Particle Swarm Optimization), the bee colony optimization algorithm (ABC).
In the firefly algorithm (FA), there are some points that are taken into account: (1) All fireflies are such unisexual that one firefly will be attracted to others independently of their gender, (2) The attractiveness is proportional to their brightness and decreases as the distance between them increases, (3) The brightness of the fireflies is determined according to an objective function (to be optimized). The main steps of firefly algorithm include: the initialization, the attractiveness and distance, the generation of the next generation, the iterative computing, and the termination.
Basic firefly algorithm considers that the position of a firefly a is given by The light intensity or the brightness of this firefly is given by Another firefly with a light intensity greater than the light intensity of firefly i will attract the firefly I that will move toward his position. If j is a firefly with a brightness greater than the brightness of i, then the attractiveness is given by In Eq. (7), γ is the light absorption coefficient, β 0 is the attractiveness at s ij = 0, s ij is the distance between the fireflies i and j, given by The updating formula for the firefly i to move toward firefly j is given by where X updated i and X initial i are the updated and the initial position of the firefly i, respectively, X initial j is the initial position of the firefly j, α is the randomization parameter having a value in the interval [0,1], and ε is a random number drawn from a Gaussian distribution or a uniform distribution.
The flowchart of a basic FA algorithm is presented in Fig. 3. The purpose of a multi-objective firefly optimization used in this work is to find a set of vector of decision variables satisfying constraints and optimizing the objectives functions. Mathematically the used multi-objective firefly optimization algorithm aims to (6)  And respecting the constraints of the problem. X is the vector decision variables, F is the objective functions vector, m is the number of objectives function to optimize.
In multi-objective firefly optimization, the first possibility is to combine the objective functions in one single objective function and compute the algorithms without much modifications. The second possibility which is used in the present study is to produce Pareto optimal front directly by extending the firefly algorithm.
Let us consider a feasible solutions X. If there is not another existing solution X′ in the feasible solutions set satisfying the conditions of Eq. (12), then X is called a Pareto optimal solution of the multi-objective problem. X′ is called a dominated solution (X′ ˂ X). The Pareto optimal frontier constituted by the Pareto optimal solutions is very useful for decision-making. The objective functions Firefly algorithm is used in the present work to minimize two objective functions. The first objective function defined by Eq. (13) is based on the cost of water (COW). It is determined from the cost of the system components and the total volume of water demand over one year.
where and In the above equations, CRF is the capital recovery factor, i is the interest rate, i′ is the nominal interest rate, f is the annual inflation rate, γ is the system lifetime (years).
The second objective function is used to evaluate the system reliability based on the loss of water supply probability (LWSP) index. In the case of this study, this index is defined by Eq. (16). Table 2 presents the details concerning the cost and the lifetime of the key components of the studied system used for simulation and matching with Cameroonian market. The given cost for each component includes installation, operation, and maintenance. For the components to be replaced at the end of their lifetime, their replacement costs are the same as their initial costs. The cost of the reservoir is based on the cost functions defined in Refs. [7,8].

Constraints of the problem
The constraint on the reliability of the system involves that for the best optimal system configuration, The constraints on the number of PV modules, the number of autonomy days of the reservoir storage, and the total dynamic head are expressed, respectively, by Eqs. (18), (19), and (20).
The constraints on the generated PV power, the reservoir storage, and the pump running power are expressed, respectively, by Eqs. (21), (22), and (23).

Operational strategy and system optimization
The water is pumped from a borehole by using a submersible pump. Important parameters to consider in sizing a pumping/water storage system are the type and the size of the pump, the height difference between the pumped water level and the maximum water level in the tank (total dynamic head), the maximum volume of the water storage tank. The pump operates thanks to the energy directly supplied by the PV panels.
The reliability of the system is based on his ability to meet the water demand at all the days of the year. The main inputs parameters for simulation are the meteorological data (irradiance and ambient temperature), and the daily water demand. The variables to be determined through the simulation process based on the operational strategy of the studied system are: the number of PV modules (N PV ), the number of autonomy days of the reservoir (N ad ), and the total dynamic head (H t ).
In the defined operational strategy, the PV power (energy) production is determined for each time interval corresponding to the given meteorological data. The generated power is used to run the motor pump according to the availability of the energy resource.
The pump can only operate if the electrical energy delivered by the PV generator is at least equal to the minimum energy required to run it. Indeed, the permissible range of operating power (respectively, energy) of the pump is defined by: P pump,min = 0.6 × P pump (E pump,min = 0.6 × E pump ), and P pump,max = 1.2 × P pump (E pump,max = 1.2 × E pump ) . The detailed description of the operational strategy of the studied system associated with the optimization process is given in Fig. 4. In this description, the following points are explained: -The daily pumped water at day t (t is the number of the day) and the volume of water in the storage reservoir at the day t are determined, respectively, by Eqs. (24) and (25). The state of charge of the water tank at each moment is given by Eq. (26). -The PV energy delivered by the generator is determined for each time interval, here 1 day; -If the PV energy is greater than the maximum permissible energy of the pump ( E pv (t) > E pump,max (t) ), then the energy supplied to the pump is equal to his maximum permissible energy, i.e., E supply (t) = E pump,max (t) . The excess PV energy is lost. -If the PV energy delivered is in the permissible energy range, that is to say, between E pump,min and E pump,max ( E pump,min (t) < E pv (t) < E pump,max (t) ), then the operating energy of the pump is equal to the energy delivered by the generator, i.e., E supply (t) = E pv (t). -If the PV energy delivered is less than the minimum permissible energy ( E pv (t) < E pump,min (t) ), then the pump will be off; ie E supply (t) = 0. -The state of charge of water (SOC) in the tank (level of water in the tank) is determined for each time interval according to Eq. (26). If the volume of the water in the tank is greater than (or equal to) the maximum volume of the tank, the pump will stop to work until the next time interval and will restart if the volume of the water in the tank decreases and if the energy demand is met. The optimal combination of N pv , N ad , and H t satisfying the desired LWSP and having at the same time the lowest COW is identified through the FA algorithm simulation based on the objective functions and the operational strategy. The pseudo-code of the doubleobjective firefly optimization related to this work is presented in Table 3. The minimum and maximum values of the optimized variables for simulation are given in Table 4. The used parameters for simulation are given in Table 5.

Results and discussion
The aim of this work is to develop a powerful sizing and optimization method for PV/ water pumping system. The total water demand for the case study is 49.2 m 3 /day. The system lifetime is 25 years. Since the system works without energy storage, the pump is supposed to run during the day only for a maximum of 8 h. Pareto front is computed thanks to a double-objective optimization using FA algorithm. Pareto front is very helpful for decision-making concerning the system configuration according to the users priorities because all the solutions on the Pareto front are optimal solutions. This tool is adapted for practical problems. The technical analysis of the system is performed to measure his reliability which is related to the LWSP. The best reliability of the system corresponds to LWSP of 0%. The economic analysis aims to measure the financial accessibility of the system. The economic criterion concerning this study is the COW. The convergence of the firefly algorithm to find the optimal solution is shown in Fig. 5 According to some papers [33,35,38,39], the FA converges very quickly in less than 80 iterations and less than 50 fireflies. According to Sankalap and Satvir [40], a minimum number of fireflies lead to best results. Computational time also increases when the population size increases [33,35,38]. In this work, the simulation is performed with 30 iterations and 100 population size. The stopping criteria are checked with the maximum number of iterations. Figure 5 shows that the convergence of  the FA algorithm to find the best optimal solution corresponding to LWSP of 0% is obtained from the 5th iteration. This result demonstrates the fast convergence of the FA for multi-objective optimization. Figure 6 presents a sample of collection of the optimal solutions on the Pareto front for the actual case study concerning the techno-economic analysis. This figure presents the variation in the cost of water (COW) with respect to LWSP. Figure 6 shows that the cost of water increases (and thus the investment cost) when the LWSP decreases, thus improving the reliability of the system results on the increase in his cost. The size   Table 6. These points give different optimal configurations of the system with their related cost and reliability.   Figure 6 shows that for a LWSP of 0%, the COW is 0.1171 $/m 3 corresponding to a total investment cost (including replacement, operation, and maintenance) of 27,180 $. Based on Figs. 7, 8 and 9, the configuration of the system corresponding to this optimal solution is composed by: 6.077 PV modules, 2 days of reservoir water storage autonomy (corresponding to reservoir storage volume of 98.4 m 3 ), and the total dynamic head is 40 m. The pump power calculated through Eq. (1) and corresponding to this optimal total dynamic head is 0.958 kW. Thus, considering a solar pump power of 1 kW is more appropriate. Since the number of PV modules with decimal digits is inappropriate, the number of PV modules to consider will be "7" instead of "6.077. " Considering all these approximations, the optimal configuration of the system corresponding to LWSP of 0%  is thus composed by: 7 PV modules, 98.4 m 3 of reservoir storage (having 2 days autonomy), 40 m of total dynamic head, and a solar pump of 1 kW. The COW corresponding this configuration is 0.1185 $/m 3 , and the total investment cost is 27,506 $. Figure 10 presents the comparison between the daily variation in the energy production and the energy consumption over one year for the optimal configuration corresponding to LWSP of 0%. It is shown in this figure that for all the days, the energy production is greater or equal than/to the energy consumption. This result demonstrates the good reliability of the designed system because the energy demanded to run the pump is fully satisfied at each moment. Figure 10 shows that the pump energy demand varies with the PV energy production. All the cases where the PV energy production is above the pump energy consumption mean that the pump runs on his maximum permissible power (by referring to the defined operational strategy); this case is mostly represented in Fig. 10. This result demonstrates the great solar energy potential of the studied site.
According to the defined operational strategy, the pump stops to run when the water inside the reservoir reached his maximum level and will only restart to run the next day (since the time interval is in term of days). This is observed in Fig. 11 (which presents the time variation in the pump daily energy consumption for the optimal configuration corresponding to LWSP of 0%) where the pump energy consumption is zero for some days. By this time, the water is supplied by the reservoir which has an autonomy of 2 days for the optimal configuration corresponding to LWSP of 0%. Figure 12 presents the distribution over one year (365 days) of the pump running time (in days) with respect to the pump energy consumption. It can be observed in this figure that for 228 days, the pump runs on his maximum allowable power (because the energy supplied at each time interval during these periods mostly corresponds to the maximum energy admissible by the pump). This result proves once again the great solar energy potential of the studied site. Figure 12 shows that the pump is off for about 57 days (or 456 h since the daily running time of the pump is set to 8 h). During these days, the pump is not working, not because of an energy deficit (since the PV Fig. 11 Time variation in pump daily energy consumption for the optimal configuration corresponding to LWSP of 0% Fig.12 Distribution of Pump running time over one year for the optimal configuration corresponding to LWSP of 0% energy production is always above the minimum energy demanded by the pump), but because the pump stops to work automatically when the maximum storage capacity of the reservoir is reached, thus avoiding unnecessary pumping water. For over one year (365 days), the pump was supposed to run for 2920 h (365 × 8 h), but according to Fig. 12, his running time is reduced to 2464 h (228 × 8 h + 80 × 8 h). The reduction in the pump running time is proportional to the volume of the reservoir water storage. This reduction is very helpful to increase the pump lifetime. Figure 13 presents the total energy production, energy consumption and surplus of energy production, for each month of the year, corresponding to LWSP of 0%. This figure confirms that the generated energy is enough sufficient to respond to the energy demand. Considering surplus of energy production is recommended when sizing a PV system. A system sized with such kind of configuration will be able to respond efficiently to load demand even in unfavorable weather conditions. Figure 14 presents for each day of the year a comparison between the water supply and the water demand for the optimal configuration corresponding to LWSP of 0%. Figure 14 shows that the volume of water inside the reservoir is always above the volume of the water demand. The water demand is totally satisfied for all the days of the year. This result demonstrates one again the good reliability of the designed system. Figure 15 presents the contribution of each key component of the system on the total investment cost. The most costly component is attributed to the storage subsystem which represents 61% of the total investment cost of the system, followed by the pump representing 30% of the NPC. The rest of the total investment cost is attributed to the PV subsystem which represents only 9% of the NPC.
The sensitivity analysis is done by considering the impact of the variation in the optimized parameters on the system behavior. Table 7 presents the influence of the PV Fig. 13 Graphical representation of the total monthly energy generation, energy consumption and surplus of energy for the optimal configuration corresponding to LWSP of 0%  generator size on the cost and reliability of the system. It comes out that the COW increases when the size of the PV generator increases (the increase in N pv ), whereas the reliability of the system decreases when the size of the PV generator decreases (the decrease in N pv ). Similarly in Table 8 which presents the influence of the reservoir storage size on the cost and reliability of the system, the COW increases when the size of the reservoir storage increases (the increase in N ad ), whereas the reliability of the system decreases when the size of the reservoir storage decreases (the decrease in N ad ). Thus, the size of the PV generator and the size of the reservoir storage influence the system both technically and economically. Table 9 presents the influence of the total dynamic head on the cost and reliability of the system. It comes out that the COW does not change when the size of the total dynamic head increases. However, the reliability of the system decreases when the total dynamic head increases. Thus, the total dynamic head only influences the system technically but does not have any influence on his economic aspect. These obtained results on sensitivity analysis of a water pumping system are somewhat similar to those obtained in the literature. Meunier et al. [7], for example, performed the sensitivity analysis of a Photovoltaic water pumping system by studying the influences of some parameters on a proposed PV/water pumping system. Their results have shown that the PV module, the pump, and the reservoir water storage have the greatest impact on the technical aspect of the system, whereas the total dynamic head has the highest influence on the economic optimization of the studied system considered. Bouzidi et al. [41] have also demonstrated that the size of the reservoir storage has an influence on the reliability and on the system sizing and therefore must have a great consideration.
The validation of the optimal sizing of the proposed PV/water pumping system is done by considering Fig. 16 which presents the variation in the pump nominal power with respect to the pump efficiency based on Eq. (1). Indeed, concerning this study, the optimal configuration of the system (N pv = 7, V max = 94.3 m 3 , H t = 40 m, P pump = 0.958 kW approximated to 1 kW) has been determined for a water flow rate of 6.15 m 3 /h and a pump efficiency of 70%. According to Ref. [42], a water flow rate of 6.15 m 3 could be  obtained for a total dynamic head of 38 m by a motor pump having a nominal power of 1.1 kW and an efficiency of 61%. Figure 16 shows that the pump power of the optimal configuration obtained changes to 1.099 kW (which can be approximated to 1.1 kW) when the pump efficiency changes to 61%. Note that this result is obtained for a total dynamic head of 40 m which is near to 38 m. Thus, the obtained results confirmed those given in the literature. Table 10 shows that the variation in the pump efficiency affects the reliability of the system, imposing the change of the system configuration (the number of PV module has changed in the present case). The influence of the pump efficiency on the sizing and the reliability of a PV/water pumping system is confirmed in the literature by Meunier et al. [7].

Conclusion
In this paper, a techno-economic analysis of a stand-alone PV/water pumping system for various applications has been realized for a case study in Cameroon. A double-objective optimization has been performed for the optimal design of the system configuration. Different optimal configurations are obtained according to the related COW and LWSP. The objective was to determine a configuration with LWSP of 0% and with low COW. The optimal configuration corresponding to these criteria is composed by 7 PV modules of 235 W c ,  a reservoir volume of 98.4 m 3 , a total dynamic head of 40 m, and a pump nominal power of 1 kW having an efficiency of 70%. Such configuration results on a cost of water of 0.1185 $/ m 3 . The influences of the variations in some parameters on the system configuration have also been discussed in this paper. It is obvious that the PV/water pumping system could be very advantageous financially and even technically, and therefore suitable for rural and remote areas. Many optimal sizing tools pre-define the size of some system components such as the pump power or the total dynamic head. In this article, the sizes of all system components are not pre-defined. They are optimized and determined by numerical simulation using the proposed operational strategy and the firefly optimization algorithm. This research paper is a powerful sizing tool which could be helpful for designers and users of PV/water pumping systems. It has shown the effectiveness of the proposed modeling based on firefly algorithm for the optimal design of PV/water pumping systems.