Analysis of Photovoltaic Self-Consumption Systems

Components and installation prices could make the self-consumption of solar photovoltaic (PV) systems competitive. In this paper, we explore different self-consumption options, off-grid PV systems (with back-up generator and/or batteries), and grid-connected PV systems under net-metering policies. The calculation of the net present cost (NPC) reveals that the grid-connected PV-only case (for the net-metering scheme) is the most attractive from the technical and financial points of view, with a levelised cost of energy less than 0.1 €/kWh. Off-grid PV + Diesel + Batteries has a higher cost, around two or three times the grid-connected PV-only under net metering. Additionally, the off-grid PV + Diesel is less attractive from a financial point of view, which has a cost of around 10 times the PV-only under net metering. In addition, the values of life cycle CO2 emissions in each of the cases studied have been compared, and we have concluded that although the off-grid PV + Diesel + Batteries system presents lower CO2 emissions than the PV-only system, the existence of batteries does not allow one to affirm that the PV + Diesel + Batteries system is the best from an environmental point of view.


Introduction
Due to the many incentive programs that have been approved in the different countries where solar PV has been developed, PV generation has become one the most encouraged sources of energy generation [1].In this context, there is a contrast between the various European PV markets.One of the main policy differences across the European countries is the possibility of consuming generated energy after it has been measured in the output meter (i.e., feed-in tariff (FiT)) [2].When this option is enabled along with some kind of incentive scheme, the owner's cost per kilowatt-hour of energy consumed can be cheaper than that provided by the distributor network operator (DNO), as this system remunerates the owner for every kilowatt-hour generated.Most incentive schemes disappear over time [3] as their countries' markets grow.Therefore, the purpose of this paper is to start developing models to clarify the benefits associated with consuming all of the energy that a PV installation produces, even without financial support schemes such as FiT or a renewables obligation certificate (ROC).Assuming that grid parity is achieved, solar PV generation energy can be sold through the grid at a price similar to its purchase price.This scenario gives the energy provider multiple business opportunities, such as becoming a residential or commercial energy distributor.This scheme would create multiple miniature DNOs.For residential schemes, the risk is clearly defined and is comparable to that of a mortgage.Additionally, economic fluctuations and financial stability can vary by country [4].Most of the developed countries in the world, including the United States, the United Kingdom, Italy, and Germany, are introducing self-consumption as their main solar PV development systems [5].For example, the United States has promoted the market for distributed PV using net metering and support policies [6].

Self-Consumption Methods
The three self-consumption methods studied in this work are off-grid PV + Diesel systems, off-grid PV + Diesel + Batteries systems, and grid-connected PV-only systems under the net-metering policy [31].The NPC and LCOE are used to determine the profitability of the different systems studied.The NPC or LCOE methodology allows one to calculate the required system and financial expenses necessary for each particular case [32].However, one must consider that the LCOE is not the same as electricity prices; it is used as a proxy for the total price paid by consumers while considering as many realistic costs as possible.
Next, the three methods of self-consumption are briefly described.

Off-Grid PV + Diesel System
Figure 1 shows the basic elements for this system.In this case, the off-grid PV system uses a diesel generator as backup power supply when the PV panels do not provide the energy that the load demands.The lifespan of the generator has been considered, which mainly depends on the amount of hours it runs and its consumption of diesel.
In this study, we assume that retail prices and net metering policies will not vary.The inclusion of changes to the retail rate design for distributed PV systems [29] and/or to the tariff policy [30] can affect the on-grid, PV-only system's results.The authors expect to address these research topics in future works.
This work is presented as follows: Self-consumption methods; Economic and energy data; Study cases; and Conclusions.

Self-Consumption Methods
The three self-consumption methods studied in this work are off-grid PV + Diesel systems, off-grid PV + Diesel + Batteries systems, and grid-connected PV-only systems under the net-metering policy [31].The NPC and LCOE are used to determine the profitability of the different systems studied.The NPC or LCOE methodology allows one to calculate the required system and financial expenses necessary for each particular case [32].However, one must consider that the LCOE is not the same as electricity prices; it is used as a proxy for the total price paid by consumers while considering as many realistic costs as possible.
Next, the three methods of self-consumption are briefly described.

Off-Grid PV + Diesel System
Figure 1 shows the basic elements for this system.In this case, the off-grid PV system uses a diesel generator as backup power supply when the PV panels do not provide the energy that the load demands.The lifespan of the generator has been considered, which mainly depends on the amount of hours it runs and its consumption of diesel.

Off-Grid PV + Diesel + Batteries System
Figure 2 shows the basic elements for this system.Storing the energy within batteries is advisable in off-grid PV systems, as there are periods without solar irradiation.Batteries store or supply energy depending the demand and generation.On the other hand, storing the energy within batteries increases the capital expenditure (CAPEX) and the operation and maintenance expenditure (OMEX), as the batteries need to be controlled and refilled.Additionally, after several years, their lifespans end, and they must be replaced.However, as diesel fuel consumption can be reduced, OMEX is reduced more prominently.
The models of the components are shown in [25].The batteries' lifespan has to be considered within the finance scheme.The batteries considered in this paper are OPzS lead-acid with a cell voltage of 2 V.The aging of the batteries is calculated using an advanced model created by Schiffer et al. in 2007 [33,34] that considers the capacity loss due to degradation of the active mass (taking into

Off-Grid PV + Diesel + Batteries System
Figure 2 shows the basic elements for this system.Storing the energy within batteries is advisable in off-grid PV systems, as there are periods without solar irradiation.Batteries store or supply energy depending the demand and generation.On the other hand, storing the energy within batteries increases the capital expenditure (CAPEX) and the operation and maintenance expenditure (OMEX), as the batteries need to be controlled and refilled.Additionally, after several years, their lifespans end, and they must be replaced.However, as diesel fuel consumption can be reduced, OMEX is reduced more prominently.
account the state of charge versus time, the current, the gassing, and the acid stratification) and capacity loss due to corrosion (considering the effect of temperature and voltage).
The lead-acid batteries stand out for their reliability and low cost [35].In the future, it is possible that they will be replaced by lithium-ion batteries, which possess greater efficiency and longer lifetimes, but their higher cost implies that lead-acid batteries should continue to be the most used in renewable energy installations [36].

Grid-Connected PV-Only System under Net-Metering Policy
Figure 3 shows the basic elements for this system.Net metering allows the possibility that the consumer-generator uses the electricity produced directly.In addition, the excess energy can be injected into the grid and can use the grid like a storage system [8,37].Effectively and financially, it is the best system, as no local physical storage system is needed, so a considerable reduction of CAPEX OMEX is expected.

Energy and Economic Data
Depending how accurately the system is calculated, the profitability of a system can be determined with high or low precision.A simple house with all the requirements for living in a modern society has been considered.
The total installed solar PV system cost includes the modules, inverter, support structure, electrical low-voltage circuits and protections, cables and structure anchor, engineering, mechanical The models of the components are shown in [25].The batteries' lifespan has to be considered within the finance scheme.The batteries considered in this paper are OPzS lead-acid with a cell voltage of 2 V.The aging of the batteries is calculated using an advanced model created by Schiffer et al. in 2007 [33,34] that considers the capacity loss due to degradation of the active mass (taking into account the state of charge versus time, the current, the gassing, and the acid stratification) and capacity loss due to corrosion (considering the effect of temperature and voltage).
The lead-acid batteries stand out for their reliability and low cost [35].In the future, it is possible that they will be replaced by lithium-ion batteries, which possess greater efficiency and longer lifetimes, but their higher cost implies that lead-acid batteries should continue to be the most used in renewable energy installations [36].

Grid-Connected PV-Only System under Net-Metering Policy
Figure 3 shows the basic elements for this system.Net metering allows the possibility that the consumer-generator uses the electricity produced directly.In addition, the excess energy can be injected into the grid and can use the grid like a storage system [8,37].Effectively and financially, it is the best system, as no local physical storage system is needed, so a considerable reduction of CAPEX OMEX is expected.
Energies 2016, 9, 681 4 of 18 account the state of charge versus time, the current, the gassing, and the acid stratification) and capacity loss due to corrosion (considering the effect of temperature and voltage).
The lead-acid batteries stand out for their reliability and low cost [35].In the future, it is possible that they will be replaced by lithium-ion batteries, which possess greater efficiency and longer lifetimes, but their higher cost implies that lead-acid batteries should continue to be the most used in renewable energy installations [36].

Grid-Connected PV-Only System under Net-Metering Policy
Figure 3 shows the basic elements for this system.Net metering allows the possibility that the consumer-generator uses the electricity produced directly.In addition, the excess energy can be injected into the grid and can use the grid like a storage system [8,37].Effectively and financially, it is the best system, as no local physical storage system is needed, so a considerable reduction of CAPEX OMEX is expected.

Energy and Economic Data
Depending how accurately the system is calculated, the profitability of a system can be determined with high or low precision.A simple house with all the requirements for living in a modern society has been considered.
The total installed solar PV system cost includes the modules, inverter, support structure, Energies 2016, 9, 681 5 of 18

Energy and Economic Data
Depending how accurately the system is calculated, the profitability of a system can be determined with high or low precision.A simple house with all the requirements for living in a modern society has been considered.
The total installed solar PV system cost includes the modules, inverter, support structure, electrical low-voltage circuits and protections, cables and structure anchor, engineering, mechanical installation, electrical installation, and value-added tax (VAT).The components can be weighted in order of price, which are the solar modules, inverter, structure, batteries, and manpower.Over the last five years, system costs have decreased by as much as 25% of their initial cost.This implies that it is possible to make the system competitive against other technologies and against the retail electricity price [32].
Next, we describe the data used in this study.

Meteorological Data Sources
There are many solar irradiance meteorological data sources available.Some of them are based on private weather stations.In this work, data from the Photovoltaic Geographical Information System (PVGIS) [38] have been used.The values for a place at zone III in Spain, with a slope of 15 • and oriented to the south, are shown in Table 1.The reason why we are using a 15 • tilt angle is because it is a common inclination for a roof in that area of Spain.Nevertheless, the optimal angle for an installation connected to the grid would be 35 • tilt angle (maximising the electricity production of the whole year) and 60 • for an off-grid system (maximising the electricity production of the month with the lowest irradiation, usually December).

PV Panels
The PV panels comprise nearly 50% of the budget (in grid-connected PV systems).The influence of Chinese manufacturers has reduced the global price of the system, but recently, anti-dumping policies have stopped this tendency [39].Regulations imposed by the European Union say that it cannot be possible to assume lower prices for Chinese-manufactured solar panels [40].
The size of the installation directly affects the cost of the panels.In this case, we consider installations below 10 kW.After reviewing the market, in 2016, the solar module price is around 0.55 €/Wp for a 5 kW system.

Mounting Structures
There are different prices depending on whether the structure is aluminium or hot galvanised steel.In the past, aluminium was a very expensive metal, making the hot galvanised mounting structures more competitive.Aluminium structures were priced at 0.34 €/Wp, but this price has decreased by 50% over the past few years because aluminium is more than 50% cheaper in 2016 than it was in 2007 [41].Typically, the mounting system on a rooftop installation is aluminium because it is lighter than the galvanised steel.With this in mind, we consider an aluminium structure in our budget.

Inverters
A solar inverter converts the DC output power from the solar panels into AC electricity that is synchronised with the AC frequency of the grid.For domestic applications, string inverters are the most used, and single-phase systems are the most common configuration on houses.For industrial or large-scale applications, a central inverter could be used.In this work, we consider a string inverter because of the size of the studied installations.Prices are around 0.1 €/Wn for an industrial inverter and 0.24 €/Wn for a 5 kWn inverter, considering a European manufacturer.These prices are obtained through market research.The efficiency of the system could be improved using microinverters, but at the moment they are not very common in the market due to their high price.

Energy Balance
Sizing the system depends on the load consumption.Off-grid systems must be dimensioned following the worst-case scenario of consumption and also the worst-case scenario of generation (usually winter time).Furthermore, there are periods in which the energy produced by the system is greater than consumption and vice versa.However, grid-connected systems under net-metering policies should be dimensioned to produce approximately the same energy as the total energy consumed during the year.
Considering a solar PV generator installed in the roof of a house, the power consumption of a typical household located in Spain has been modelled.
The total consumption or energy demand per day is calculated using Equation (1).
Total consumption ( Wh day where Total consumption is the total electricity demand in the worst-case consumption scenario; Units is the number of units of the same item present in the house; Power is the maximum instant power consumed by the item; and Hours per day used is the number of hours per day of estimated use.The house considered in this work has a power consumption of 10,000 Wh per day (a typical household load in Spain).The hourly consumption for the day (which is supposed to be repeated every day) is shown in Figure 4.The assumption that the behaviours of the tenants are constant all year has been considered; therefore, the hourly consumptions are the same, as some components and loads, like heaters, have been disregarded under the assumption that they are powered by gas.There is a demand peak at 21:00, usual in households in Spain.In Spain, it is common for dinner to start at 20:00, 21:00 or 22:00.
Demand growths have not been considered as it is a household load.The electrification of the house could be increased in the future (adding, for example, more automation for opening/closing window blinds, etc.); however, it has been considered that home appliances will consume less energy in the future, being more efficient, which can compensate for the increase in electrification.
The production generated over one year changes depending the amount of sunlight and the weather.Since the power production balance is not regular, the energy balance has to be regularised either with a storage system (batteries), backup diesel generator, or the AC grid (FiT or net-metering scheme).In this work, FiT has not been considered, as it tends to disappear.
household load in Spain).The hourly consumption for the day (which is supposed to be repeated every day) is shown in Figure 4.The assumption that the behaviours of the tenants are constant all year has been considered; therefore, the hourly consumptions are the same, as some components and loads, like heaters, have been disregarded under the assumption that they are powered by gas.There is a demand peak at 21:00, usual in households in Spain.In Spain, it is common for dinner to start at 20:00, 21:00 or 22:00.

Off-Grid PV + Diesel System
The following subsections describe the economic and environmental aspects of this system, and the final results are shown and analysed.

Cost and CO 2 Emissions of the PV + Diesel System
To analyse the economic attractiveness of the PV + Diesel system, the costs of the solar PV panels, inverter controller (with maximum power point tracking (MPPT) to obtain the maximum power from the PV), the controller, and the diesel generator must be known.iHOGA software includes a section to introduce the financial parameters in case a loan is considered.In this work, loans to finance the PV system were not considered.
All of the prices introduced into iHOGA have been extracted from market research and are average reference prices (Table 2).In addition, life cycle CO 2 emissions of the different components, including manufacturing, transport, mounting, disassembling, and recycling [42], are shown in Table 2.The cost of the diesel fuel considered in this work is 1.3 €/L, with an expected annual fuel inflation rate of 5%.The lifespan considered for the diesel generators is 10,000 running hours.
The cost of the rest of the system (electrical low voltage circuits and protections, electrical installation, mechanical installation, and engineering) has been considered as a fixed cost of €300 + 2% of the total cost of the components.DC bus voltage is 48 V and AC bus is 230 V. PV panels of 280 Wp and 24 V of nominal voltage have been considered, and two panels must be connected serially in order to obtain 48 V in the DC bus.The number of strings of PV panels in parallel can vary from 0 to 12. Inverters considered range from 0 to 1.8 kW in 0.6 kW steps.The diesel Energies 2016, 9, 681 8 of 18 generators considered are of 0, 1.9, and 3 kVA.The software will consider the different combinations of components, simulating all of them and obtaining the economic results for each combination.

Analysis and Simulation
In this work, the objective is to minimise LCOE [32] or the NPC.The software allows other objectives for optimisation, but in this case, the main objective is to minimise LCOE (i.e., minimise NPC).For this purpose, the results given by iHOGA have been sorted from top (the best or lowest NPC) to bottom (the worst or highest NPC).The results are shown in Table 3.As mentioned previously, the purpose of this simulation is to find out which is the best configuration in financial terms; therefore, Project 1 (Table 3), which has the best NPC (€84,546.67),will be analysed in detail.Project 1 is composed of 18 PV panels of 280 Wp (connected in strings of two panels in serial, and nine strings in parallel), with a peak power of 5.04 kWp.The diesel generator has 1.9 kVA of power, and the inverter has 1.8 kW of power.The inverter size is adequate to supply the maximum load.The PV generator's maximum power is much higher than the rated power of the inverter (2.8 times).This means that a part of the energy produced by the PV generator will not be used.In spite of this, it is the optimal system.This is due to the fact that a smaller number of panels would imply an increased annual consumption of diesel, giving rise to a high NPC.In addition, Table 3 shows the relationship between the NPC and the lifecycle CO 2 emissions, which are calculated with consideration of the lifecycle emissions (manufacturing, transport, mounting, disassembling, and recycling the components), as shown in [42].
The results show that the most rentable system (Project 1) is also the most beneficial for the environment, as it is the option with the fewest CO 2 emissions.

Financial Evaluation
The financial results and cash flow provided by iHOGA for the best combination of components (Project 1) is shown graphically in Figure 2, which provides information about how to structure the cash flow during the life cycle of the installation.The cash flow in the last year is dramatically smaller than the previous years because it is assumed that at the end of the system's lifetime the remaining value of the components of the system is obtained by selling them.For example, if at the end of the system's lifetime (year 25) the diesel generator has performed at 50% of its lifetime, then it is expected to obtain cash flow by selling it at 50% of its acquisition cost.
Figure 5 shows that there are some years in which the cash resources need to be higher than others.Years 11 and 21 are the most expensive, as some components, like the inverter, need to be replaced at this time.On the other hand, the diesel generator has to be replaced every two years.Thus, every two years, the price of the generator is added into the expected cash flow.

Sensitivity Analysis
A sensitivity analysis has been performed considering the variation in PV panel costs (comparing the base case of 0.55 €/Wp and a case to a higher PV cost of 1 €/Wp) and the variation of the annual inflation of diesel fuel (comparing the base case of 5% to 3%, 1%, and −1%).
Figure 6 shows the main results (PV size, NPC, and life cycle CO2 emissions) of the optimal solution found for the case of PV costs of 0.55 €/Wp, with a varying annual fuel inflation rate.All of the optimal solutions have the same configuration: PV of 5.04 kWp, diesel generator of 1.9 kVA, and inverter of 1.8 kW.Since all of them have the same fuel consumption, emissions are the same.However, the NPC falls as the annual fuel inflation price decreases.
Figure 7 shows the main results of the optimal solution found for the case of a PV cost of 1 €/Wp, with varying annual fuel inflation rates.The optimal solutions for 5% and 3% have same configuration as the ones in Figure 6.However, the optimal solutions for 1% and −1% include a lower PV generator (and therefore higher fuel consumption and emissions); the optimal solution is as follows: PV of 4.48 kWp, diesel generator of 1.9 kVA, and inverter of 1.8 kW.Comparing Figure 6 with Figure 7, the NPC of the cases of PV 1 €/Wp are a little higher than the cases of PV 0.55 €/Wp.There is a small difference in NPCs between Figures 7 and 8 because the main change in the NPC is due to fuel consumption, while the PV generator cost is a minor factor of the NPC.Thus, the variable which most affects the NPC of PV + Diesel is the annual fuel price inflation.

Sensitivity Analysis
A sensitivity analysis has been performed considering the variation in PV panel costs (comparing the base case of 0.55 €/Wp and a case to a higher PV cost of 1 €/Wp) and the variation of the annual inflation of diesel fuel (comparing the base case of 5% to 3%, 1%, and −1%).
Figure 6 shows the main results (PV size, NPC, and life cycle CO 2 emissions) of the optimal solution found for the case of PV costs of 0.55 €/Wp, with a varying annual fuel inflation rate.All of the optimal solutions have the same configuration: PV of 5.04 kWp, diesel generator of 1.9 kVA, and inverter of 1.8 kW.Since all of them have the same fuel consumption, emissions are the same.However, the NPC falls as the annual fuel inflation price decreases.

Sensitivity Analysis
A sensitivity analysis has been performed considering the variation in PV panel costs (comparing the base case of 0.55 €/Wp and a case to a higher PV cost of 1 €/Wp) and the variation of the annual inflation of diesel fuel (comparing the base case of 5% to 3%, 1%, and −1%).
Figure 6 shows the main results (PV size, NPC, and life cycle CO2 emissions) of the optimal solution found for the case of PV costs of 0.55 €/Wp, with a varying annual fuel inflation rate.All of the optimal solutions have the same configuration: PV of 5.04 kWp, diesel generator of 1.9 kVA, and inverter of 1.8 kW.Since all of them have the same fuel consumption, emissions are the same.However, the NPC falls as the annual fuel inflation price decreases.
Figure 7 shows the main results of the optimal solution found for the case of a PV cost of 1 €/Wp, with varying annual fuel inflation rates.The optimal solutions for 5% and 3% have same configuration as the ones in Figure 6.However, the optimal solutions for 1% and −1% include a lower PV generator (and therefore higher fuel consumption and emissions); the optimal solution is as follows: PV of 4.48 kWp, diesel generator of 1.9 kVA, and inverter of 1.8 kW.Comparing Figure 6 with Figure 7, the NPC of the cases of PV 1 €/Wp are a little higher than the cases of PV 0.55 €/Wp.There is a small difference in NPCs between Figures 7 and 8 because the main change in the NPC is due to fuel consumption, while the PV generator cost is a minor factor of the NPC.Thus, the variable which most affects the NPC of PV + Diesel is the annual fuel price inflation.Figure 7 shows the main results of the optimal solution found for the case of a PV cost of 1 €/Wp, with varying annual fuel inflation rates.The optimal solutions for 5% and 3% have same configuration as the ones in Figure 6.However, the optimal solutions for 1% and −1% include a lower PV generator (and therefore higher fuel consumption and emissions); the optimal solution is as follows: PV of 4.48 kWp, diesel generator of 1.9 kVA, and inverter of 1.8 kW.Comparing Figure 6 with Figure 7, the NPC of the cases of PV 1 €/Wp are a little higher than the cases of PV 0.55 €/Wp.There is a small difference in NPCs between Figures 7 and 8 because the main change in the NPC is due to fuel consumption, while the PV generator cost is a minor factor of the NPC.Thus, the variable which most affects the NPC of PV + Diesel is the annual fuel price inflation.Another sensitivity analysis has been performed that takes the variation in the interest rate into consideration.The base case uses a 4% interest rate, and two other cases-2% and 6%-have been analysed.In all cases, the optimal system is the same, but the NPC is highly affected, as shown in Figure 8. Finally the effect of the loan has been evaluated.The base case uses no loan.Another case has been optimised that considers a loan of 80% of the initial acquisition cost of the system paid over 10 years with an interest rate of 7%.The optimal system is the same.However, the NPC is now of €85,247.There is no high increment in NPC due to the loan, as the NPC is poorly affected by the initial acquisition cost of the system.

Off-Grid PV + Diesel + Batteries System
In this case, the batteries can supply the load when there is not enough generation from the PV panels.The cases of Diesel + Batteries (without PV) and PV + Batteries (without diesel) are also considered.In the cases of PV + Batteries (without diesel), dimensioning the batteries depends on the required number of days of autonomy.In these cases, a minimum of four days of autonomy has been considered.The batteries considered are OPzS lead-acid, with a range of 180 Ah to 2800 Ah of nominal capacity, nominal cell voltage of 2 V, 1254 full cycles to failure, and a 20% minimum-allowed state of charge (SOC).As the DC bus is 48 V, 24 batteries must be connected serially.The sizes of the PV, diesel and inverter/charger taken into account are same as in the previous section.The number of battery strings in parallel considered are from 0 to 4. In this case, the inverter/chargers is considered, which is an inverter with a battery charger and control unit, including the battery controller (to prevent overcharge and over-discharge) and battery charger (so that the diesel can charge the battery bank).The control strategy is "load following" so that when there is inadequate power from the PV, the battery will supply the load; the diesel generator will only run to supply the load when the  Another sensitivity analysis has been performed that takes the variation in the interest rate into consideration.The base case uses a 4% interest rate, and two other cases-2% and 6%-have been analysed.In all cases, the optimal system is the same, but the NPC is highly affected, as shown in Figure 8. Finally the effect of the loan has been evaluated.The base case uses no loan.Another case has been optimised that considers a loan of 80% of the initial acquisition cost of the system paid over 10 years with an interest rate of 7%.The optimal system is the same.However, the NPC is now of €85,247.There is no high increment in NPC due to the loan, as the NPC is poorly affected by the initial acquisition cost of the system.

Off-Grid PV + Diesel + Batteries System
In this case, the batteries can supply the load when there is not enough generation from the PV panels.The cases of Diesel + Batteries (without PV) and PV + Batteries (without diesel) are also considered.In the cases of PV + Batteries (without diesel), dimensioning the batteries depends on the required number of days of autonomy.In these cases, a minimum of four days of autonomy has been considered.The batteries considered are OPzS lead-acid, with a range of 180 Ah to 2800 Ah of nominal capacity, nominal cell voltage of 2 V, 1254 full cycles to failure, and a 20% minimum-allowed state of charge (SOC).As the DC bus is 48 V, 24 batteries must be connected serially.The sizes of the PV, diesel and inverter/charger taken into account are same as in the previous section.The number of battery strings in parallel considered are from 0 to 4. In this case, the inverter/chargers is considered, which is an inverter with a battery charger and control unit, including the battery controller (to prevent overcharge and over-discharge) and battery charger (so that the diesel can charge the battery bank).The control strategy is "load following" so that when there is inadequate power from the PV, the battery will supply the load; the diesel generator will only run to supply the load when the batteries reach a low SOC (20%).The battery bank is charged by the PV, but the inverter/charger Another sensitivity analysis has been performed that takes the variation in the interest rate into consideration.The base case uses a 4% interest rate, and two other cases-2% and 6%-have been analysed.In all cases, the optimal system is the same, but the NPC is highly affected, as shown in Figure 8.
Finally the effect of the loan has been evaluated.The base case uses no loan.Another case has been optimised that considers a loan of 80% of the initial acquisition cost of the system paid over 10 years with an interest rate of 7%.The optimal system is the same.However, the NPC is now of €85,247.There is no high increment in NPC due to the loan, as the NPC is poorly affected by the initial acquisition cost of the system.

Off-Grid PV + Diesel + Batteries System
In this case, the batteries can supply the load when there is not enough generation from the PV panels.The cases of Diesel + Batteries (without PV) and PV + Batteries (without diesel) are also considered.In the cases of PV + Batteries (without diesel), dimensioning the batteries depends on the required number of days of autonomy.In these cases, a minimum of four days of autonomy has been considered.The batteries considered are OPzS lead-acid, with a range of 180 Ah to 2800 Ah of nominal capacity, nominal cell voltage of 2 V, 1254 full cycles to failure, and a 20% minimum-allowed state of charge (SOC).As the DC bus is 48 V, 24 batteries must be connected serially.The sizes of the

Sensitivity Analysis
A sensitivity analysis has been performed considering the variation in PV panel cost (comparing the base case of 0.55 €/Wp to a case with a higher PV cost of 1 €/Wp), the variation of battery cost (comparing the base case of 352 €/kWh to other cases of 250 €/kWh and 450 €/kWh), and the variation of the annual inflation of diesel fuel (comparing the base case of 5% to 3%, 1%, and −1%).
Figure 9 shows the NPC of the optimal solutions found for each combination of PV price, battery price, and annual fuel inflation.All of the optimal solutions are the same configuration and therefore same emissions: PV of 3.92 kWp, diesel of 1.9 kVA, inverter/charger of 1.8 kW, and battery bank of 8.64 kWh.NPC varies from around €19,000 to €26,000.In this case, the annual fuel inflation did not have a great influence on NPC.However, the price of PV panels and batteries did have an important influence.
Energies 2016, 9, 681 12 of 18 have a great influence on NPC.However, the price of PV panels and batteries did have an important influence.Another sensitivity analysis has been performed with consideration for the variation of the interest rate.The base case uses a 4% interest rate, and two other cases have been analysed: 2% and 6%.In all cases, the optimal system is the same.However, the NPC is affected, but less than in the case of PV + Diesel, as shown in Figure 10.Finally the effect of the loan has been evaluated.The base case uses no loan.Another case has been optimised that considers a loan of 80% of the initial acquisition cost of the system paid over 10 years with an interest rate of 7%.The optimal system is the same, but the NPC is now of €27,386.There is a notable increment in NPC due to the loan, as NPC is affected by the initial acquisition cost of the system.

Grid-Connected PV-Only System under Net-Metering Policy
In this case, the house is grid connected under a net-metering scheme.In this work, the modality of net metering considered is "net metering, one-year rolling credit" [8], as it is the most widely used scheme.In this net-metering scheme, all of the energy injected in the electrical grid can be consumed for free throughout year, but if the energy injected is higher than the energy consumed from the grid, there is no buyback possibility.Injecting energy into the grid does not imply adding any technical  Another sensitivity analysis has been performed with consideration for the variation of the interest rate.The base case uses a 4% interest rate, and two other cases have been analysed: 2% and 6%.In all cases, the optimal system is the same.However, the NPC is affected, but less than in the case of PV + Diesel, as shown in Figure 10.have a great influence on NPC.However, the price of PV panels and batteries did have an important influence.Another sensitivity analysis has been performed with consideration for the variation of the interest rate.The base case uses a 4% interest rate, and two other cases have been analysed: 2% and 6%.In all cases, the optimal system is the same.However, the NPC is affected, but less than in the case of PV + Diesel, as shown in Figure 10.Finally the effect of the loan has been evaluated.The base case uses no loan.Another case has been optimised that considers a loan of 80% of the initial acquisition cost of the system paid over 10 years with an interest rate of 7%.The optimal system is the same, but the NPC is now of €27,386.There is a notable increment in NPC due to the loan, as NPC is affected by the initial acquisition cost of the system.

Grid-Connected PV-Only System under Net-Metering Policy
In this case, the house is grid connected under a net-metering scheme.In this work, the modality of net metering considered is "net metering, one-year rolling credit" [8], as it is the most widely used scheme.In this net-metering scheme, all of the energy injected in the electrical grid can be consumed for free throughout year, but if the energy injected is higher than the energy consumed from the grid, there is no buyback possibility.Injecting energy into the grid does not imply adding any technical  Finally the effect of the loan has been evaluated.The base case uses no loan.Another case has been optimised that considers a loan of 80% of the initial acquisition cost of the system paid over 10 years with an interest rate of 7%.The optimal system is the same, but the NPC is now of €27,386.There is a notable increment in NPC due to the loan, as NPC is affected by the initial acquisition cost of the system.

Grid-Connected PV-Only System under Net-Metering Policy
In this case, the house is grid connected under a net-metering scheme.In this work, the modality of net metering considered is "net metering, one-year rolling credit" [8], as it is the most widely used scheme.In this net-metering scheme, all of the energy injected in the electrical grid can be consumed for free throughout year, but if the energy injected is higher than the energy consumed from the grid, there is no buyback possibility.Injecting energy into the grid does not imply adding any technical components or cost (for example, in the United States a net metering scheme is used in most of the states, without extra costs), though there could be an administrative cost depending on the country or region in which this scheme is developed.The PV panels and inverters in Section 4.1, Table 2, have been considered.The purchasing price of the energy is 15 euro cents per kWh for the base case, with an expected inflation of 3% annually.Again, no loans were considered to finance the PV system, and all of the prices introduced into iHOGA are the same as in the previous sections.Life cycle CO 2 emissions of the energy consumed from the AC grid depend on the electricity mix of the grid in the given country.A value of 0.4 kg/kWh was considered [42], which will be applied to the amount of energy consumed from the AC grid that was not previously injected in the grid (i.e., applied to the difference between the energy consumed from the AC grid and the energy injected into the AC grid).

Analysis and Simulation
The results of the optimisation (minimisation of NPC or LCOE) have been classified from top (the best NPC) to bottom (the worst NPC; Table 5).The last one (Project 10) is a case without a PV system, (i.e., all of the energy demanded by the load is bought from the AC grid).The best configuration, in financial terms, is Project 1, which had the best NPC (€6992.04),composed of eight panels (two connected serially and four strings in parallel), with a peak power of 2.24 kWp.The inverter has 1.8 kW of nominal power.The solar PV system cannot cover the whole load demanded by the house, so the rest of the energy demanded has to be supplied by the grid.Project 1 is one of the most beneficial options for the environment.
Comparing Projects 2 and 4, we can see that increasing the PV power does not always imply decrement of the CO 2 emissions.As the PV generator power increases, the energy supplied from the AC grid decreases, decreasing the CO 2 emissions associated to that energy (a value of 0.4 kg/kWh has been considered).The emissions from PV (the manufacturing, transport, mounting, disassembling, and recycling of the PV generator) are lower than 0.4 kg/kWh.However, as PV generation increases, under net metering it can happen that the energy generated by the PV during the year is higher than the energy consumed by the load, then the excess energy injected into the grid will not be returned.This is why Project 4 has more emissions than 2. Project 4 uses a 3920 Wp PV generator, generating around 7000 kWh/year.If the load consumes 3650 kWh/year, then there are 7000 − 3650 = 3350 kWh/year injected into the grid that are not used later by the load.

Sensitivity Analysis
A sensitivity analysis has been performed considering the variation in PV panel cost (comparing the base case of 0.55 €/Wp to a case with a higher PV cost of 1 €/Wp), the variation of the purchased electricity price (comparing the base case of 0.15 €/kWh to 0.1 and 0.2 €/kWh), and the variation of the inflation of the purchased electricity price (comparing the base case of 3% to 1% and 5%).
Figure 11 shows the NPC of the optimal solutions found for each combination for PV price, electricity price, and annual electricity price inflation.All of the optimal solutions have the same configuration and therefore the same life cycle emissions (PV of 2.24 kWp, inverter of 1.8 kW, with 536 kgCO 2 /year), except for the cases of 0.55 €/Wp, 0.2 €/kWh, 3% and 5% and the case of 1 €/Wp, 0.2 €/kWh, 5%, for which optimal solutions are a PV of 2.8 kWp and an inverter of 1.8 kW (with life cycle emissions of 528 kgCO 2 /year).Electricity price inflation did not have a great influence on NPC.However, the price of PV panels did have a great influence, and the price of electricity had a relatively low influence (as in the optimal systems, the amount of the energy injected into the AC grid is a little lower than the energy consumed from the AC grid).
Energies 2016, 9, 681 14 of 18 cycle emissions of 528 kgCO2/year).Electricity price inflation did not have a great influence on NPC.However, the price of PV panels did have a great influence, and the price of electricity had a relatively low influence (as in the optimal systems, the amount of the energy injected into the AC grid is a little lower than the energy consumed from the AC grid).Another sensitivity analysis has been performed with consideration for the variation of the interest rate.The base case uses a 4% interest rate, and the other two cases have used rates of 2% and 6%.In all cases, the optimal system is the same.However, the NPC is barely affected, as shown in Figure 12.Finally the effect of the loan has been evaluated.The base case uses no loan, while another case has been optimised considering a loan of 80% of the initial acquisition cost of the system with an interest rate of 7% over 10 years.The optimal system is the same.However, the NPC is now of €7381.There is a low increment in NPC due to the loan, as the NPC is poorly affected by the initial acquisition cost of the system.Another sensitivity analysis has been performed with consideration for the variation of the interest rate.The base case uses a 4% interest rate, and the other two cases have used rates of 2% and 6%.In all cases, the optimal system is the same.However, the NPC is barely affected, as shown in Figure 12.

Comparison of the Optimal Results of the Base Cases
Energies 2016, 9, 681 14 of 18 cycle emissions of 528 kgCO2/year).Electricity price inflation did not have a great influence on NPC.However, the price of PV panels did have a great influence, and the price of electricity had a relatively low influence (as in the optimal systems, the amount of the energy injected into the AC grid is a little lower than the energy consumed from the AC grid).Another sensitivity analysis has been performed with consideration for the variation of the interest rate.The base case uses a 4% interest rate, and the other two cases have used rates of 2% and 6%.In all cases, the optimal system is the same.However, the NPC is barely affected, as shown in Figure 12.Finally the effect of the loan has been evaluated.The base case uses no loan, while another case has been optimised considering a loan of 80% of the initial acquisition cost of the system with an interest rate of 7% over 10 years.The optimal system is the same.However, the NPC is now of €7381.There is a low increment in NPC due to the loan, as the NPC is poorly affected by the initial acquisition cost of the system.Finally the effect of the loan has been evaluated.The base case uses no loan, while another case has been optimised considering a loan of 80% of the initial acquisition cost of the system with an interest rate of 7% over 10 years.The optimal system is the same.However, the NPC is now of €7381.There is a low increment in NPC due to the loan, as the NPC is poorly affected by the initial acquisition cost of the system.

Comparison of the Optimal Results of the Base Cases
Focussing on only the financial point of view, the NPC of the optimal combinations of each case are shown in Figure 13.PV + Diesel is the least attractive case financially compared to the other cases, while on-grid PVonly under net metering is the best configuration.
Considering environmental aspects (life cycle CO2 emissions), Figure 14 shows that PV + Diesel + Batteries emits the least amount of CO2.
In this study, we have taken into account the CO2 emissions caused by the production, transportation and recycling of the batteries, but all the negative environmental impacts of the use of batteries has not been evaluated and considered.This topic has been widely studied by other authors [17,43,44], and it is possible to affirm, on the basis of these works, that the existence of batteries in the PV + Diesel + Batteries system still makes the PV-only system the best for the environment.PV + Diesel is the least attractive case financially compared to the other cases, while on-grid PV-only under net metering is the best configuration.
Considering environmental aspects (life cycle CO 2 emissions), Figure 14 shows that PV + Diesel + Batteries emits the least amount of CO 2 .PV + Diesel is the least attractive case financially compared to the other cases, while on-grid PVonly under net metering is the best configuration.
Considering environmental aspects (life cycle CO2 emissions), Figure 14 shows that PV + Diesel + Batteries emits the least amount of CO2.
In this study, we have taken into account the CO2 emissions caused by the production, transportation and recycling of the batteries, but all the negative environmental impacts of the use of batteries has not been evaluated and considered.This topic has been widely studied by other authors [17,43,44], and it is possible to affirm, on the basis of these works, that the existence of batteries in the PV + Diesel + Batteries system still makes the PV-only system the best for the environment.Table 6 shows a summary of the optimal solutions obtained in each case study.In this study, we have taken into account the CO 2 emissions caused by the production, transportation and recycling of the batteries, but all the negative environmental impacts of the use of batteries has not been evaluated and considered.This topic has been widely studied by other authors [17,43,44], and it is possible to affirm, on the basis of these works, that the existence of batteries in the PV + Diesel + Batteries system still makes the PV-only system the best for the environment.
Table 6 shows a summary of the optimal solutions obtained in each case study.

Conclusions
This paper presented the optimisation of three different kinds of photovoltaic-based systems to supply the electrical load of a typical household (10 kWh/day).The systems considered were: (1) off-grid PV + Diesel; (2) off-grid PV + Diesel + Batteries; and (3) on-grid PV systems under net metering with one-year rolling credit modality.The results show that the PV system under the net-metering scheme is the one with lowest NPC and LCOE, around two or three times lower than off-grid PV + Diesel + Batteries and around 10 times lower than off-grid PV + Diesel.Moreover, although lower CO 2 emissions occur in the PV + Diesel + Batteries system, the on-grid PV-only system under net metering is better in environmental terms because it does not use batteries.The sensitivity analyses showed that the variables which most affects the NPC of the optimal PV + Diesel are the annual fuel price inflation and the interest rate.In the case of PV + Diesel + Batteries, fuel inflation did not have a great influence on NPC, though the price of PV panels and batteries did have an important influence.In the optimisation of the on-grid PV-only system under net metering with one-year rolling credit modality, the variable which most affected the NPC of the optimal system was the price of PV panels.

Figure 4 .Figure 4 .
Figure 4. AC loads in a house throughout the year on an hourly basis.

Energies 2016, 9 , 681 9 of 18 Figure 5 .
Figure 5. Cash flow of the solar PV system with a diesel generator.

Figure 5 .
Figure 5. Cash flow of the solar PV system with a diesel generator.

Figure 8 .
Figure 8. PV + Diesel systems.Effect on the NPC of the interest rate.

Figure 8 .
Figure 8. PV + Diesel systems.Effect on the NPC of the interest rate.

Figure 8 .
Figure 8. PV + Diesel systems.Effect on the NPC of the interest rate.

Figure 9 .
Figure 9. Sensitivity analysis, PV + Diesel + Battery systems.NPC of the optimal solutions.

Figure 10 .
Figure 10.PV + Diesel + Battery systems.Effect on the NPC of the interest rate.

Figure 9 .
Figure 9. Sensitivity analysis, PV + Diesel + Battery systems.NPC of the optimal solutions.

Figure 9 .
Figure 9. Sensitivity analysis, PV + Diesel + Battery systems.NPC of the optimal solutions.

Figure 10 .
Figure 10.PV + Diesel + Battery systems.Effect on the NPC of the interest rate.

Figure 10 .
Figure 10.PV + Diesel + Battery systems.Effect on the NPC of the interest rate.

Figure 11 .
Figure 11.Sensitivity analysis, PV-only systems under net-metering scheme.NPC of the optimal solutions.

Figure 12 .
Figure 12.PV-only systems.Effect on the NPC of the interest rate.

Figure 11 .
Figure 11.Sensitivity analysis, PV-only systems under net-metering scheme.NPC of the optimal solutions.

Figure 11 .
Figure 11.Sensitivity analysis, PV-only systems under net-metering scheme.NPC of the optimal solutions.

Figure 12 .
Figure 12.PV-only systems.Effect on the NPC of the interest rate.

Figure 12 .
Figure 12.PV-only systems.Effect on the NPC of the interest rate.

Figure 14 .Figure 13 .
Figure 14.Lifecycle CO2 emissions of the different schemes.All the cases represented.

Figure 14 .
Figure 14.Lifecycle CO2 emissions of the different schemes.All the cases represented.

Figure 14 .
Figure 14.Lifecycle CO 2 emissions of the different schemes.All the cases represented.

Table 1 .
Irradiance at zone III in Spain (Zaragoza).

Table 2 .
Prices of the used components.

Table 3 .
Main results of the best combinations given by iHOGA solar PV + Diesel.

Table 5 .
Project results given by iHOGA.Solar PV on net-metering scheme.

Table 6 .
Summary of the optimal project results obtained by iHOGA.