Experts versus Algorithms? Optimized Fuzzy Logic Energy Management of Autonomous PV Hybrid Systems with Battery and H 2 Storage

: Off-grid applications based on intermittent solar power beneﬁt greatly from hybrid energy storage systems consisting of a battery short-term and a hydrogen long-term storage path. An intelligent energy management is required to balance short-, intermediate- and long-term ﬂuctuations in electricity demand and supply, while maximizing system efﬁciency and minimizing component stress. An energy management was developed that combines the beneﬁts of an expert-knowledge based fuzzy logic approach with a metaheuristic particle swarm optimization. Unlike in most existing work, interpretability of the optimized fuzzy logic controller is maintained, allowing the expert to evaluate and adjust it if deemed necessary. The energy management was tested with 65 1-year household load datasets. It was shown that the expert tuned controller is more robust to changes in load pattern then the optimized controller. However, simple readjustments restore robustness, while largely retaining the beneﬁts achieved through optimization. Nevertheless, it was demonstrated that there is no one-size-ﬁts-all tuning. Especially, large power peaks on the demand-side require overly conservative tunings. This is not desirable in situations where such peaks can be avoided through other means.


Introduction
Residential off-grid applications relying on intermittent renewable sources for their energy supply benefit greatly from hybrid energy storage systems. The integration of storage technologies with supplementary operating characteristics allows an efficient and economic balancing of short-, intermediate-and long-term fluctuations in electricity demand and supply [1].
A particularly promising topology consists of lithium-ion batteries combined with a hydrogen (H 2 ) storage path. H 2 systems, comprising an electrolyzer, a H 2 tank and a fuel cell, are especially suited for medium-to long-term storage, and can be employed to compensate seasonal fluctuations. H 2 has a high energy density, and the system capacity is solely dependent on tank size [2]. On the other hand, both electrolyzer and fuel cell suffer from excessive strain if exposed to fast power dynamics. Pressure imbalance, flooding of cells, fuel starvation and membrane drying lead ultimately to stack degradation [3]. By letting lithium-ion batteries cover power peaks and fast fluctuations, the H 2 components can be kept close to their optimal operating region, resulting in lower losses and reduced degradation [1]. The combination of high-energy with high-power storage devices is also beneficial from an economic point of view [1,4,5]. By decoupling energy and power, the high-energy storage device, which has a relatively low capacity cost, covers the average power demand only, while the high-power storage device, which is comparatively cheap in terms of cost per kW, can be designed with a smaller capacity.
To reap the full range of benefits offered by such a system, an intelligent energy management is required [6]. It controls the power flows aiming at maximizing overall efficiency, while minimizing component stress. According to [1], it is possible to categorize control strategies for hybrid storage systems into rule-based and optimization-based approaches. Rule-based algorithms are particularly suited for real-time applications. In off-grid systems, where power demand and supply are subject to stochastic fluctuations, and where there is no aggregation of load profiles, real-time capability is an important property, as power flows need to be balanced at any given point in time to guarantee system stability [7]. The most elementary and probably most common rule-based control strategy is based on a three-point hysteresis controller. The fuel cell and the electrolyzer are switched on and off according to a lower respectively upper threshold of the battery state of charge (SOC) [8,9]. There are several disadvantages to this approach. Firstly, the electrolyzer and the fuel cell are operated in one fixed point even if other operation regions may be more suitable. Secondly, the control decisions are solely based on the battery's SOC, thus ignoring other system states [9,10]. These shortcomings can be overcome by adopting fuzzy logic in the decision making. The main benefits of a fuzzy logic controller are its intuitive design based on expert knowledge, the possibility for multiple inputs and multiple outputs-allowing incorporation of different system states in the control decisions-and the calculation of continues reference values [1,[9][10][11].
A number of past works have applied fuzzy logic control to off-grid systems with batteries and H 2 storage path [2,[11][12][13][14][15]. In these applications the SOC of the battery and a representation of the net power flow are used as inputs to the fuzzy logic controller, which then provides a power reference to the H 2 storage path. In order to broaden the perspective, further studies using fuzzy logic control in comparable applications were reviewed. They all have in common that the net power flow is to be divided between a short-term storage system-in most cases a battery-and a storage system or power source covering intermediate-and long-term load fluctuations. These include off-grid PV battery diesel [16][17][18][19][20] or fuel cell systems [21], and battery fuel cell hybrid energy storage systems in electric vehicles [4,5,22]. Moreover, in [23,24] batteries are used to smoothen grid power injection with the help of a fuzzy logic controller. In this case, the grid can be considered a long-term storage system with infinite capacity. Fuzzy logic control is also employed in grid-connected battery hydrogen systems. However, they are of lesser relevance to this work, as the degrees of freedom and main objectives are markedly different [25][26][27].
Whereas the fuzzy logic controller's intuitive design is one of its very strength, it leads also to drawbacks. The underlying expert knowledge is generally not reported in enough detail to make external evaluation possible. Indeed, the tuning appears often to be a trial and error process based on some simulation model [28]. This is a disadvantage, given that the fuzzy rule base and the parametrization of membership functions have a large influence on the controller's performance. Furthermore, even if comprehensive expert knowledge is used for tuning, it will likely result in a good but not in an optimal energy management system. Hence, it is not surprising that the tuning of rules and membership functions has been combined with several different, mostly heuristic, optimization methods, such as genetic algorithms, particle swarm algorithms, cuckoo search algorithms etc. [5,15,[19][20][21]23,24,29]. In these cases, though, the interpretability of the resulting fuzzy logic controller is lost. Consequently, an optimal tuning can only be guaranteed for the specific case it has been trained for. Considering that the availability of large amounts of historic data is often not given, the lack of generalizability is problematic. Reviewing above articles, including both articles with and without optimized fuzzy logic controllers, revealed that the data basis for evaluation is generally very narrow. Usually, a single data set of a few days to maximum 1 year is used for verification. This raises question about validity.
Summarizing, three main research gaps were identified: Firstly, the underlying expert knowledge linked to the configuration and tuning of fuzzy logic energy management is not presented in sufficient detail, making evaluation and comparison difficult. Secondly, applying metaheuristic algorithms for optimization leads generally to a loss of interpretability, which is considered one of fuzzy logic's main strengths and thirdly, the verification of fuzzy logic energy management is based on very limited data sets, not accounting for the large variety found in load and generation profiles. Hence, validity of simulation results is often limited. These gaps are likely to hamper a joint and cumulative development of fuzzy logic control for the energy management of hybrid energy storage systems.
Therefore, this article makes the following contributions: Firstly, it aims at giving a detailed account of the expert knowledge used to design the fuzzy logic controller in the context of autonomous PV hybrid systems with battery and H 2 storage path. Secondly, a particle swarm optimization is adapted to tune both the rule base and the membership functions of the fuzzy logic controller without losing interpretability of the outcome. Thirdly, the manually and the optimized fuzzy logic controller is tested with data from 65 households to verify both robustness and generalizability of results. Lastly, the favorable interplay between expert knowledge and optimization, which is made possible by contributions one to three, is illustrated.
The remaining of the article is structured as follows: Section 2 presents the system configuration of an autonomous PV hybrid system and the resulting implications for the energy management. Section 3 provides the theoretical basis of fuzzy logic control applied to the energy management of hybrid storage systems and discusses the controller structure as well as the tuning methods. Section 4 describes the simulation framework and the database. Section 5 presents the simulation study including the discussion of results, and Section 6 concludes the paper giving an outlook for further research.

System Topology and the Energy Management Problem
The system topology, the energy management problem, and its overall objectives are closely connected and will be shortly discussed in the following section.

System Topology
The favorable characteristics of hybrid energy storage systems combining batteries with a H 2 storage path in PV-off-grid applications have been pointed out by [1]. Especially for locations with seasonal variations in solar irradiation, the H 2 storage path can be used advantageously to balance seasonal excess and deficit, whereas the battery is apt to compensate short-term fluctuations in both PV-supply and load. Furthermore, the battery can be used to optimize the efficiency of fuel cell and electrolyzer and at the same time, reduce component degradation by avoiding unfavorable operation points, frequent switching and dynamic stress. From a cost perspective, the configuration is favorable, as the overall installation cost for the H 2 storage path is dominated by the cost per installed power, while the cost structure of the battery is dominated by its capacity. Hence, by combining a H 2 storage path with low power and high capacity and a battery with high power, but low capacity the overall cost can be considerably reduced.
There are several possibilities to connect the individual components to form the offgrid system. For the example used in this paper all components are coupled via a central DC-bus. The PV system, the electrical load, the lithium-ion battery and the H 2 storage path are connected to the bus with a converter each (see Figure 1). Power flows entering the central DC-bus are defined positive, while power flows leaving the central DC-bus are defined negative.

Energy Management: Problem Structure and Objectives
There are a number of control tasks that need to be performed in order to allow the operation of an off-grid system. A common way to structure these tasks is to define hierarchical control layers whose dynamics are decoupled as a result of time scales which are separated by at least one order of magnitude [1,30]. In the context of this work, a primary control layer, taking care of the voltage and current control, and an energy management layer are defined. The primary control is performed by the converters and has response times between 1 ms to 1 s. The battery converter maintains the bus voltage, whereas all other converters in the system are current led [3]. The set points of the latter are assigned by the energy management system which controls the power flows in the system. The energy management operates in a discrete manner in the order of seconds to hours [30]. The primary control and the energy management system can be analyzed and designed separately, as long as the SOC of the battery is maintained at sufficient levels. The focus in this article is on the energy management system only.
The overarching objective of the energy management is to guarantee security of supply, i.e., to make sure that the energy storage systems can balance differences in power generation and demand at all times. Given the sign convention defined in Section 2.1, this can be achieved by satisfying the power balance as expressed in Equation (1). It is assumed that excess PV power P PV,curt can be curtailed for example with a dump load. The rationale behind such an action is explained later in this section. On the other hand, load shedding is only to be used as last resort in case of unexpected events or failures and has therefore not been added to the equation. P PV + P PV,curt + P Load + P FC + P EL + P Batt = 0 (1) Beyond this, there are two secondary objectives: high system efficiency and low degradation of electrolyzer and fuel cell. In this context, two cases need to be differentiated: Firstly, the design of an improved energy management for an existing system, and secondly, the design of an energy management for an entirely new system. In the former case, the hardware with its corresponding power and capacity ratings is given. Assuming unchanged demand, increased efficiency will result in energy surplus, i.e., excess H 2 . To some extent, this can increase security of supply. However, if no additional energy is needed, the increase in efficiency does not result in an added benefit. Hence, there should be a focus on increasing component lifetime to defer reinvestment. For a new system, a co-design of component sizes and control approach is possible and desirable [31,32]. Increased efficiency allows smaller sized components, saving costs and resources. These considerations are important, as there will be trade-offs between increased system efficiency and decreased component fatigue. As a result, finding the right balance between objectives calls for a careful analysis of the use case. Notwithstanding, a notion of Pareto optimum can be established, that is an energy management resulting in a higher system efficiency given the same levels of component fatigue (or vice versa) can be considered superior.
The system efficiency results from the efficiency of the individual components and the relative energy throughput. This can be illustrated by the possible paths between PV generation (source) and load (sink) and the corresponding efficiencies as depicted in Equations (2)- (7). The relevant efficiencies are the efficiency of the PV plant η PV , the PV DC-DC converter η D,PV , the battery DC-DC converter η D,Batt , the battery η Batt , the electrolyzer DC-DC converter η D,El , the electrolyzer η El , the fuel cell η FC , the fuel cell DC-DC converter η D,FC , and the inverter connected to the AC load η I N .
Using H 2 storage: 4. Using battery storage before or after using H 2 storage:

5.
Using battery storage before and after using H 2 storage: 6. Curtailing PV power: It can easily be seen that the efficiencies decrease from path 1 to path 6 (Equations (2)- (7)). In consequence, there is a clear order of preference from an efficiency point of view. However, from a more holistic stance, it can be reasonable to oversize the PV plant and accept curtailment if this allows smaller storage components and/or results in less component stress, as PV panels are relatively cheap compared to the storage units.
The battery power is not controlled directly by the energy management system. Rather, it gets its reference from the underlying DC-bus voltage controller, and thus covers any residual power, ensuring security of supply. Therefore, ageing effects from cycling cannot be actively reduced. However, as ageing processes in lithium-ion batteries are accelerated at both very low and very high states of charge [33], preventing operation in these regions is favorable. Furthermore, unnecessary charging and discharging as in power paths 4 and 5 should be reduced.
The electrolyzer and fuel cell can be fended from premature ageing through a number of measures. First of all, limiting the operation range to points below nominal power reduces the probability of unbalanced concentration and current distributions in the cells. Moreover, less steep power gradients avoid fuel starvation, flooding of cells and drying out of the membrane. Finally, corrosion, which results from high potentials at the electrodes, can be reduced by minimizing the number of startups and shutdowns [34]. Whereas fuel cell voltage reduces with ageing, electrolyzer voltage increases [35].
There are clear trade-offs between increasing efficiency and reducing stress on the components. This is, for example, the case if the PV power is curtailed to prevent the battery from operating at too high SOCs, or if power paths 4 and 5 are chosen, despite higher losses, to reduce dynamic stress or switching of fuel cell and electrolyzer. Nevertheless, in many instances increasing efficiency and reducing stress do not contradict each other. For example, if the fuel cell is only operated in those periods where the battery cannot cover the load, the higher efficiencies of the battery are exploited, while fuel cell degradation is avoided.
Summarizing, the energy management system determines the power set points of the electrolyzer as well as the fuel cell and decides if the PV-generation should be curtailed or parts of the load shed. The charging and discharging behavior of the battery is controlled indirectly through the voltage deviations which result from a power mismatch between load and generation. How the set-points of the electrolyzer and fuel cell are to be chosen to fulfil the above discussed objectives is the question to be answered during controller design.

Fuzzy Logic Energy Management
The control objectives can be achieved either by choosing an apt controller structure or by finding the right parametrization of the controller. In this section, the theoretical basis of fuzzy logic control is presented, the structure of the fuzzy logic controller defined, the control law designed based on expert knowledge, and the process of optimization discussed. The controller is designed for the topology described in Section 2 and aimed at supplying electricity to a single-family household.

Fuzzy Logic Control
To provide the reader unfamiliar with fuzzy logic control with a basic understanding, this section shortly describes the very fundamentals of fuzzy logic control that are relevant to the methods used in this article. For a more detailed discussion of the general theoretical background, the reader is referred to the pertinent literature [36][37][38]. As the fuzzy logic controller used in this article is a Mamdani-controller, the discussion is limited to this type.
Fuzzy logic control is based on the notion of fuzzy sets. In fuzzy sets, an element x has a degree of membership-a real number in the interval [0, 1]-to a given set A, which is determined according to a membership function µ A (x). This should be seen in contrast to classical set theory, where an object can either be part of a set or not [38,39].
A basic block diagram of a fuzzy logic controller is depicted in Figure 2 [40]. The controller outputs are derived from the controller inputs in three steps. Each input-in the context of this article for example the SOC of the battery-can be considered as a linguistic variable, which can hold different linguistic terms, such as "low", "good" or "high". A variable holding a specific linguistic term forms so called fuzzy sets, i.e., "low SOC", "good SOC" and "high SOC", which are described each by a corresponding membership function. Using this type of description, a crisp (numeric) value, e.g., SOC = 0.6, can be associated with each fuzzy set by a corresponding degree of membership. This process is called fuzzification [39]. The second step consists in the fuzzy inference. It uses R If-Then rules, which are provided by the rule base. If-Then rules have the form: R and ... and x n is µ (n) R , then y is µ R The conclusion of the rule, i.e., its degree of fulfilment, depends on the degree of membership of the antecedents, which are combined using the min-operator [41]. Each rule, which is fired, results in a fuzzy set. To get the combined fuzzy set characterizing the output value, an aggregation step follows in which all fuzzy sets are combined with the max-operator. This approach follows the original procedure suggested by Mamdani and Assilian [37].
In a last step, the crisp outputs are derived from the output fuzzy sets by means of defuzzification. The most common method is based on calculating the centre of area (k COA ) below the output fuzzy sets and projecting it on the ordinate as shown in Equation (8) [41]. As this method is well suited for overlapping membership functions [42], it was chosen as a good candidate for the fuzzy logic energy management.

Controller Structure
The energy management system's inputs and outputs are on the highest level of the controller's structure. By choosing the battery converter to be voltage led (compare Section 2), all high frequent variation in generation and load, i.e., everything above the sampling rate of the energy management system, is automatically compensated by the battery energy storage. As a consequence, only electrolyzer and fuel cell power are controllable. As these two components will never be operated simultaneously, one control output is sufficient. We should call this P H2 . If P H2 > 0, then P H2 = P FC and P EL = 0. If P H2 < 0, then P H2 = P EL and P FC = 0.
To ensure the stability of the system, the SOC of the battery needs to be kept within certain limits. Only if the battery's SOC allows both charge and discharge can the battery be used to control the voltage of the DC-bus. Thus, the SOC of the battery is the variable to be controlled by the energy management system and accordingly a control input. One possibility of controlling the SOC is to use the battery to balance any mismatch between generation and load unless an upper or a lower SOC-threshold is reached, in which case the electrolyzer or respectively the fuel cell are switch on until acceptable SOC levels are restored. However, there are at least two disadvantages with this approach: firstly, there is no possibility to actively avoid paths 4 and 5 and secondly, the nominal power of both the fuel cell and the electrolyzer are considerably lower than the minimum and respectively the maximum of P net = P PV + P Load . Only P net is relevant for the control task, as the load is whenever possible directly supplied by the PV panels. This corresponds to path 1 of the power paths discussed in Section 2.2 and is a measure of no regret. Thus, once the battery is fully charged (on a summer day this is likely to happen long before noon), the electrolyzer can only use a small part of the PV power. The remaining PV power needs to be curtailed. Similarly, if the battery is empty, the fuel cell cannot cover the entire demand. Furthermore, using the H 2 storage path, losses are considerable. Therefore, it is beneficial to add P net as an input to the fuzzy logic controller. From a control perspective P net resembles a differential input. If the H 2 storage path is not active, the battery's SOC is the weighted integral over P net . Whereas, the battery SOC changes rather slowly, because of its integral characteristic, P net provides this information much quicker and unnecessary control action on the part of the H 2 components can be avoided. For example, if the battery SOC is high, i.e., the battery should be discharged or at least not charged further, a controller, which only sees the battery SOC as input, would switch the electrolyzer on. However, if P net is negative, i.e., there is a power deficit in the system, this is unnecessary as the battery will be discharged anyway. This is particularly relevant in the light of daily patterns of surplus and deficit.

Definition of Membership Functions
For each in-and output fuzzy set corresponding membership functions need to be designed. The number of fuzzy sets should follow a natural language description, i.e., how would an expert describe the variables. For example, it is natural to think about the SOC of the battery as being low, good or high. Depending on its state different logics for action are applied. If a linguistic category applies equally to a range of values, a trapezoidal membership function is appropriate. If a gradual change with a single maximum is more natural, triangular functions are a good starting point [43,44]. A few design rules help to avoid unintuitive behavior of the control output. First, the whole range of possible values for each variable should be covered by at least one membership function. This ensures that all points in the control surface can be reached and that there are no input values without a conclusive output. Second, the total degree of membership for each crisp value should add up to 1 to avoid discontinuous behavior of the controller. This is achieved if the maximum of one membership function corresponds to the minimum of the next membership function. Following these lines of thought, the membership functions as depicted in Figure 3 were defined. To keep the controller as generic as possible, i.e., independent of component sizes, both inputs and outputs are normalized. The SOC of the battery is by definition normalized on the range [0,1]. P net is normalized on a range [−1,1].P net = 1 corresponds to the peak power of the PV system. The definition of the minimum of P net corresponding toP net = −1 is more difficult to define, as the peak load is not known a priori. One possibility is to set it to the connected load, which according to the German norm DIN 18015-3 corresponds to 14.5 kW for a household without electric water heating [45]. The outputP H2 = −1 corresponds to the maximum power of the electrolyzer andP H2 = 1 to the maximum power of the fuel cell. The lower battery SOC thresholds should be chosen as high as possible to reduce low battery SOCs, which lead to increased battery ageing. In the same vein, the upper battery SOC thresholds should be chosen as low as possible to reduce high battery SOCs. However, choosing these values too conservatively reduces the usable battery capacity. Therefore, the thresholds chosen are 0.15 and 0.25 for the lower limits and 0.7 and 0.8 for the upper limits.P net is considered negative big (NB) for values below 0.3 times the minimum and positive big (PB) above 0.3 times the maximum. The range covered by the fuzzy sets NB and PB are comparatively large in order to account for the fact that the nominal fuel cell and the electrolyzer power are considerable smaller than the minimum/maximum ofP net . Hence, from the viewpoint of the control task the power is considered large. The value range ofP H2 is covered symmetrically by the fuzzy sets. As the crisp fuzzy output never reaches the extreme values but is limited by the centre of area of the outermost fuzzy sets, calculating the actual references from the normalized output is preceded by another scaling, which accounts for this fact.

Definition of Rule Base
Given the definition of the membership functions the expert knowledge can be easily represented in the rule base. Especially the extreme points are straightforward (see rules 1, 5, 8, 11 and 15 in Table 1). It is the general objective to keep the battery SOC in what is defined as the "good-region". Only then the full potential of the battery as both a sink and source can be used. In the case of a low SOC and a large deficit in the power balance (P net is NB), the fuel cell should operate at its maximum, which corresponds to its nominal operation point. However, if there is a large surplus in the energy balance (P net is PB) the H 2 storage path is not needed. Conversely, in the case of a high SOC and a large surplus in the energy balance (P net is PB), the electrolyzer should operate at its maximum. However, if there is a large deficit in the energy balance (P net is PB) the H 2 storage path is not needed. If the SOC is good, no action is required. The missing rules leave more room for discussion, which will play a role in the optimization. As a starting point, the relationships stated in Table 1 were chosen.

1.
If (SOC is low) and (P net is NB) then (P H2 is PB) 2.
If (SOC is low) and (P net is N) then (P H2 is PB) 3.
If (SOC is low) and (P net is Z) then (P H2 is P) 4.
If (SOC is low) and (P net is P) then (P H2 is Z) 5.
If (SOC is low) and (P net is PB) then (P H2 is Z) If (SOC is good) and (P net is N) then (P H2 is Z) 8.
If (SOC is good) and (P net is Z) then (P H2 is Z) 9.
If (SOC is good) and (P net is P) then (P H2 is Z) 10.
If (SOC is good) and (P net is PB) then (P H2 is Z) 11. If (SOC is high) and (P net is NB) then (P H2 is Z) 12.
If (SOC is high) and (P net is N) then (P H2 is Z) 13.
If (SOC is high) and (P net is Z) then (P H2 is N) 14.
If (SOC is high) and (P net is P) then (P H2 is NB) 15.
If (SOC is high) and (P net is PB) then (P H2 is NB)

Particle Swarm Optimization
As mentioned earlier, the idea of optimizing the parameters of a fuzzy logic controller appears quite natural. That way, expert knowledge can be complemented with the results of a search algorithm. The most common used approaches are based on metaheuristics. In this article particle swarm optimization is used as an example. Particle swarm optimization is inspired by mechanisms of social interaction as they appear in flocks of birds and schools of fish [46][47][48]. The particle swarm represents possible problem solutions by means of multidimensional vectors, which are adapted in an iterative fashion. Each dimension of a particle's position in the solution space x(n) represents one parameter that is to be optimized. The particles move through the solution space with a certain velocity v(n), exploring different solution possibilities. The change of a particle n's velocity is represented by Equation (9) and its position by Equation (10). During every iteration, the particle's fitness is calculated and its best solution p best as well as the swarm's global best solution g best are stored.
In this article a population of 30 particles was chosen, which corresponds to the number used in related work [29,31] and thus is considered a good starting point. As the appropriate number of particles is dependent on the nature of the problem, further investigations into the influence of this parameter are to be carried out in the future [49]. An overview of the tuning procedure based on particle swarm optimization is depicted in Figure 4 as a block diagram and in Figure 5 as the corresponding flowchart. The numbering indicates the link between the two figures.

Fitness Function
The definition of an appropriate fitness function F is crucial for a proper functioning of the particle swarm optimization, as it quantifies the quality of the solution represented by a given particle. To this end, the energy management's objectives-high system efficiency and reduced component stress constrained by the demand of ensuring security of supply-need to be represented by the fitness function. Likewise, the dataset should be chosen carefully.
To include both short-and long-term dynamics, 1-year simulations of the autonomous PV hybrid system are used to evaluate a particle's fitness (compare Section 4).The energy management's objectives are operationalized as follows: • The system efficiency can be expressed by the overall annual energy losses E loss,a -the sum of battery, fuel cell, electrolyzer and PV curtailment losses-which are to be minimized to maximize system efficiency. • The component stress on the H 2 -components can be divided into cyclical stresses, which are operationalized by the number of startups of the electrolyzer N Start,EL and the fuel cell N Start,FC respectively, and degradation that follows normal operation, which is represented by the operation time of the electrolyzer T EL and the fuel cell T FC . N Start,EL , N Start,FC , T EL , T FC are to be minimized.
In order to combine all objectives into one measure of fitness, a weighted sum is used [50]. It is assumed that the weights are chosen by the designer according to the user's preferences and the specific characteristics of the components.
In our context, the attainable minimum f 0 i is 0 for all objective functions. Hence, the normalized values can be expressed as follows: The maximum allowed value f max i for the system losses is equal to the annual surplus of PV-energy, i.e., the annual PV generation E PV,a minus the annual energy consumption E Load,a . The maximum operation duration for the fuel cell and the electrolyzer is 1 year. The maximum number of startups is based on engineering intuition and set to 548 (assuming that the electrolyzer/fuel cell will not start more than 1.5 times per day on average).
The optimization constraints are included through penalties. It is possible to differentiate between short-term and long-term security of supply. Short-term security of supply is violated if the battery's SOC falls below a minimum value, e.g., 5%. The time steps N SOC,low in which this is the case are counted for the full year and multiplied with a factor of 1000 resulting in the penalty q short = 1000 · N SOC,low . Long-term supply security is compromised if the annual system losses exceed the PV-surplus, that is, if the normalized losses are bigger than 1. In this case a penalty q long = 1000 is added to the fitness function.
The exact values of the penalties are not relevant as long as they are very large compared to all other components of the fitness function. Here the penalties were chosen three orders of magnitude larger. F = w 1 ·Ẽ loss,a + w 2 ·T EL + w 3 ·T FC + w 4 ·Ñ Start,EL + w 5 ·Ñ Start,FC + q short + q long (13) For the example in this article, the weights are chosen as w 1 = 1 2 and w 2 ...w 5 = 1 8 . Furthermore, it should be highlighted that all partial objective functions are to be minimized, which means that the lower the fitness value, the better.

Adjustments
As argued earlier, the main goal of the optimization is to maintain the interpretability of the controller settings. Therefore, a two-step approach is chosen. Firstly, the rule base is optimized. This results in adjustments to the overall logic. Secondly, the values of the membership functions are optimized, which corresponds to a fine-tuning of the controller [41]. All adjustments to the standard particle swarm optimization were done with the following objectives in mind: • Reducing the search space to increase the likelihood of convergence and to decrease the necessary number of iterations. • Maintaining interpretability.
It is a standard procedure to initialize all particles with random values. However, most of the resulting controller configurations will not fulfil the constraints presented by the security of supply criteria, thus, potentially leading to a situation in which many iterations are necessary before a valid solution is found. To avoid this behavior, one particle is initialized with the values of the expert tuned controller. The downside of this design choice is that it increases the risk of becoming trapped in a local minimum. To increase the confidence in the found solutions, each particle swarm optimization is run 10 times with different sets of randomly initialized particles.

Rule Base Optimization
Each dimension, corresponding to the conclusion of a single rule, can take one of the linguistic terms, NB, N, Z, P or PB, describingP H2 (see Figure 3c). As these values are discrete, they need to be dequantized before the optimization with a particle swarm. The interval chosen for the dequantization is [−1,1] [29]. The search space spans 5 15 possible rule bases. To reduce it, the value range for the rules 1. to 5. (see Table 1) is restricted to the values Z, P and PB-that is, the electrolyzer is not allowed to be operated if the battery's SOC is low. Correspondingly, the value range for the rules 11. to 15. is restricted to the values NB, N and Z-the fuel cell may not operate if the battery's SOC is high. Comparing simulations with an unlimited to a limited search space showed that in the latter case convergence was faster, while better values of fitness were achieved. Based on these preliminary examinations, 15 iterations were deemed sufficient to achieve convergence.

Membership Function Optimization
For the purpose of optimization, each membership function is described by a set of parameters. A triangular membership function is described by three and a trapezoid function by four parameters. For example, the fuzzy setP H2 N in Figure 3 is sufficiently described by the parameter set {−1, −0.5, 0}. Without further consideration of the problem structure, 38 parameters are needed to describe all fuzzy sets-10 parameters for the battery SOC, 15 forP net and 13 forP H2 . Hence, each particle has 38 dimensions. The allowed value ranges of these dimensions are given by the value ranges of the corresponding fuzzy variables as defined in Section 3.3. To decrease the search space and to ease interpretability of the optimization results, five adjustments were made.

Adjustment 1:
To ensure that each point in the control space is reachable, the entire range of a fuzzy variable is to be covered by at least one membership function. To achieve this, the outermost points of the outermost membership functions are fixed to the corresponding extreme values. This reduces the number of dimensions by 6 to 32. Adjustment 2: The fuzzy setsP net Z andP H2 Z keep their maximum at the crisp value 0. Whereas the meaning of the terms low and high are open to interpretation, the meaning of Z is not. Hence, the dimensions can be reduced to 30. Adjustment 3: The dimensions describing the membership functions NB and N for the variablesP net andP H2 should always be below 0, while the dimensions describing the membership functions P and PB should always be above 0. Hence, the search range can be reduced. Adjustment 4: In order to get a smooth control surface the membership functions should overlap such that the maximum of a given membership function corresponds to the right and the left minimum of the neighbouring membership functions respectively. Hence, the sum of the degrees of membership for each fuzzy set activated by a crisp value is 1. This is intuitive and reduces the dimensions to 10. Adjustment 5: The order of membership functions is to be maintained, as interpretability would be lost otherwise. For example, if an optimization run results in the maximum of the fuzzy setP net NB to be higher than the maximum of the fuzzy setP net N, the labels NB and N lose their meaning. Hence, the dimensions are reordered after each update.
The optimization of the membership functions was run for 25 iterations, which strikes a balance between accuracy and computational effort.

Simulation Framework
To test and evaluate the performance of the fuzzy logic energy management discussed in Section 3, a simulation framework was developed. It models the topology of Section 2, which is used to provide electricity to an off-grid family home. The data input comprises 65 1-year household load profiles provided by [51] and a 1-year time series of PV power generation, which has been recorded in Chemnitz/Germany. All load data sets were scaled to 5 MWh annual energy consumption and the PV output data to 10.5 MWh annual generation. Figure 6 shows the scaled PV data and the exemplary load time series for household No 17.

Load Database
One objective of this paper is to test in how far an expert tuned and subsequently optimized fuzzy logic-based energy management system is generic enough to function adequately for a range of different family homes. The 1-year load data sets for 74 households provides the means to answer this question. Nevertheless, the households to be compared should have a somewhat similar load structure. For example, a household without electric warm water heating should not be compared with a household with electric warm water heating. Equally, it is not meaningful to look at a household with electric heating if the component sizes have been chosen for a household without electric heating. In the former case, the seasonal load component is more pronounced, and thus, the fuel cell will be used more often, which in turn leads to higher losses, which need to be compensated for by additional solar generation. Unfortunately, the database does not hold explicit information on specific load characteristics. Therefore, the data was examined for extreme outliers, which were subsequently excluded. Extreme outliers are defined using the interquartile range (IQR). An observation falling below Q1 − 3 IQR or above Q3 + 3 IQR is an extreme outlier. Q1 and Q2 are the 25th and 75th percentiles respectively. This approach was chosen as the data are not normally distributed.
In Figure 7a a boxplot for the monthly averaged data is depicted. It shows a general seasonal variation in load. However, there are some clear outliers. As a very high average load is particularly critical in winter, the extreme positive outlier in January and December (household 46) was excluded from further analysis. The histogram in Figure 7b depicts the distribution of the unscaled maximum 15-min average power of all households. The 4 outliers (households 8,9,31,70) at the higher end are likely households with electric warm water heating and were excluded. In Figure 8, statistics for daily load averages, depicted as a load duration curve, are shown. There is one clear extreme outlier (household 25) at high loads, which are those critical for the sizing of the battery storage. This household was excluded. The load data stem from regular grid-connected households, in which no incentives for avoiding rare but extreme load peaks exist. However, in an off-grid home, it can be expected that occupants are more aware of power limitations, as the costs of sizing components for a worst-case scenario is disproportionate. Hence, a load duration curve based on 10-min averages was prepared and the data scanned for households with extreme load peaks (compare Figure 9). The 10 10-min intervals with highest average load were taken as the basis for excluding outliers (compare Figure 9b). That way, three outliers (households 4, 5, 6) were identified for exclusion.
All in all, this leaves a database of 65 households, which can be reasonably compared with a standard hardware configuration.

Component Models
The simulation framework was developed with the aim of modelling the main qualitative characteristics of an autonomous PV hybrid system with battery and H 2 storage path, while keeping complexity and computing time down. As the energy management updates its references to the H 2 storage path every 10 min, the dynamic behavior of the components can be neglected. Therefore, the main focus is on mapping the power flows to the corresponding changes in stored energy during each time step. For each component, such a map was derived.
The lithium-ion battery model maps its current SOC and the demanded output power to the change in battery SOC. The look-up table underlying Figure 10a is derived from an equivalent circuit model developed in [52]. The battery was scaled to a usable capacity of 40 kWh. The electrolyzer and fuel cell look-up tables in Figure 10b,c are based on models in [53]. The models were made parametrizable to allow a flexible adjustment of nominal power, higher heating value (δ H2 ) system efficiency as well as constant and load dependent periphery losses. The parameters used in this study are shown in Table 2. All look-up tables include DC-DC converter losses, which were modelled with a constant efficiency of 95 %. Hence, all powers in Figure 10 represent DC-bus input and output powers, respectively.  The component sizes for this study were chosen based on the authors' prior experience. The sizes of fuel cell and electrolyzer power as well as battery capacity follow the general logic of hybrid storage systems. Electrolyzer and fuel cell have a relative low nominal power and the battery a limited capacity. Furthermore, it was verified that security of supply could be achieved with both three-point-hysteresis controller and expert tuned fuzzy logical controller. In order to allow for increased efficiency and thus, additional production of hydrogen the hydrogen tank size was not fixed a priori. For the expert tuned fuzzy logic energy management and the case simulated in Section 5.1, a tank size of 70 kg H 2 is sufficient for seasonal storage, assuming no considerable overproduction and 10% safety margin. The three-point-hysteresis controller would need a tank size of 85 kg H 2 given the same assumptions.

Simulation-Based Analysis
The simulation-based analysis comprised five steps: 1.
The expert tuned controller was simulated for a time frame of 1 year for the load data set No 17. According to [51], this profile is close to the daily standard load profile and thus, is considered a good starting point. The simulations were compared to a three-point hysteresis controller as a point of reference.

2.
The particle swarm optimization was performed for the same load profile and compared to the expert tuned controller. The optimization followed the two-step approach described in Section 3.5.2.

3.
To test the generalizability of results, the three tunings-expert, particle swarm optimized rules, particle swarm optimized rules and membership functions-were simulated for the 65 households selected in Section 4.1. The hypothesis was that the optimized controllers performed better in terms of the indicators used in the fitness function but were less robust in terms of short-term security of supply.

4.
In the next step, the interpretability of results obtained from optimization was exploited. Expert knowledge was used to readjust the tuning of the optimized controllers aiming at retaining as much of the optimization benefits, while significantly increasing robustness.

5.
Finally, for one household, for which none of the above-mentioned controllers performed satisfactorily, further adjustments and their implications are discussed.
To discuss the simulation results, a number of performance indicators were defined. By and large, these indicators correspond to the terms used in Equation (13). However, instead of reporting the overall system losses, an indicator E Sur was constructed that illustrated how much additional electricity could be produced with the surplus H 2 in the tank m H2,end − m H2,ini normalized by the annual load demand E load,a (Equation (14)). Furthermore, the equivalent number of full battery cycles N Bat,cyc -the overall energy charged by the battery over a year divided by its nominal capacity-were reported to indicate battery usage.

Expert Tuned Controller
The expert tuned controller described in Section 3 was tested with load data set No 17 and the simulation framework in Section 4. To ease understanding of the behavior of the fuzzy logic energy management, the results were compared to a simple three-point hysteresis energy management approach as discussed in [54]. The SOC thresholds for switching the electrolyzer and fuel cell on and off corresponded to the values that defined the fuzzy sets of the battery SOC (see Section 3.3). Following this procedure provided a certain degree of comparability. Figure 11 depicts the simulation results for a summer day. Given the average energy surplus, the electrolyzer should be operated. This was the case for both approaches. In contrast to the three-point hysteresis controller (Figure 11b), the fuzzy logic energy management (Figure 11a) increased the electrolyzer power gradually roughly following P net . Hence, the higher efficiencies of the H 2 -components in partial load were exploited and, by better adjusting the set points to the available net power, the more efficient power path 3, instead of paths 4 and 5, were used (compare Section 2.2). Similarly, on a winter day ( Figure 12) with an overall energy deficit, the fuel cell needed to supply the lacking energy. Whereas the fuel cell, operated by the fuzzy logic energy management system, tracked the load keeping the battery SOC relatively stable, the three-point hysteresis controller operated the fuel cell at nominal power, which in this case was considerably larger than the load. The differences between load and fuel cell power were compensated by the battery, leading to considerable fluctuations in the battery SOC. The above-mentioned qualitative differences between the two control approaches were supported by the indicators shown in Table 3. The fuzzy logic energy management achieved a considerably higher energy surplus of 6.83 % compared to 2.41 % indicating a higher system efficiency. The number of fuel cell starts was slightly lower, whereas the number of electrolyzer starts was higher, suggesting that there was no straightforward connection between these indicators and the type of energy management. As expected from above discussion, the fuzzy logic energy management operated the H 2 -components for longer times, albeit at lower powers. The increased use of the battery by the three-point hysteresis controller was shown by the higher equivalent number of full battery cycles.  Figure 13 illustrates the distribution of losses among the different components. The three-point hysteresis control resulted in considerably higher fuel cell losses and slightly higher battery losses. The electrolyzer losses were comparable. The fuzzy logic energy management system operated the electrolyzer more efficiently, but produced more H 2 , leading to additional losses. All in all, above simulations indicated that the expert tuned fuzzy logic energy management performed as expected and that it showed beneficial characteristic compared to the simpler three-point hysteresis controller.

Fuzzy Logic Energy Management System Optimization
In the next step, the expert tuned fuzzy logic energy management was optimized with the procedure described in Section 3.5. First, the rules were optimized. In order to account for the effects of random initialization, the optimization was repeated 10 times. The convergence behavior for the different runs is depicted in Figure 14a. Whereas there was a clear convergence, not all runs resulted in the same ruleset. The rule base with the best fitness was achieved in 5 out of the 10 runs and improved the fitness by 3% compared to the expert tuned controller. This tuning will be labelled OptRule.
The changes to the rule base are depicted in Table 4. The changes in rules 11 and 12 resulted in the electrolyzer being operated as soon as the battery reached a high SOC independent ofP net . However, rule 14 was changed from NB to N, meaning that the fuel cell was only operated at nominal onceP net was PB (rule 15). Operating the electrolyzer even thoughP net was negative could be advantageous if such a control action reduced the chances of curtailing PV power. The change in rule 4 resulted in the fuel cell being operated at low power, even if there was a certain surplus of PV power. This could be reasonable if the surplus was not large enough to get the SOC of the battery back to an acceptable region. Furthermore, it reduced the chances of having to switch on the fuel cell repeatedly ifP net fluctuated around 0. The change in rule 1 did not seem reasonable from an expert point of view, as the fuel cell power should be increased with a decrease inP net and not the opposite as suggested by the optimization. A closer inspection of the data and simulations with and without a change in rule 1, showed that this change could be traced back to an idiosyncrasy of the data set. The fitness with a changed rule 1 was indeed slightly better than without (0.5325 vs. 0.5328). However, this difference resulted from a single additional fuel cell startup (124 vs. 125). Furthermore, the maximum load peak in dataset No 17 was with 5.6 kW relatively low compared to the 14.5 kW, which was used to normalize P net , meaning that rule 1 was close to never used and thus, did not influence the simulation results. Based on this review only the changes in rules 4, 11, 12, 14 were carried over to the optimization of the membership functions. This expert adapted tuning will be labelled OptRuleE.

1.
If (SOC is low) and (P net is NB) then (P H2 is PB) → P 2.
If (SOC is low) and (P net is N) then (P H2 is PB) 3.
If (SOC is low) and (P net is Z) then (P H2 is P) 4.
If (SOC is low) and (P net is P) then (P H2 is Z) → P 5.
If (SOC is low) and (P net is PB) then (P H2 is Z)

6.
If (SOC is good) and (P net is NB) then (P H2 is Z) 7.
If (SOC is good) and (P net is N) then (P H2 is Z) 8.
If (SOC is good) and (P net is Z) then (P H2 is Z) 9.
If (SOC is good) and (P net is P) then (P H2 is Z) 10.
If (SOC is good) and (P net is PB) then (P H2 is Z) 11. If (SOC is high) and (P net is NB) then (P H2 is Z) → N 12.
If (SOC is high) and (P net is N) then (P H2 is Z) → N 13.
If (SOC is high) and (P net is Z) then (P H2 is N) 14.
If (SOC is high) and (P net is P) then (P H2 is NB) → N 15.
If (SOC is high) and (P net is PB) then (P H2 is NB) The convergence behavior of the membership function optimization is shown in Figure 14b. The best out of the 10 runs resulted in a 5.7 % improvement of overall fitness compared to the controller with optimized rules. The optimized membership functions are depicted in Figure 15. This tuning will be labelled OptMF. The relatively minor changes in the membership functions confirmed the assumption that the membership function optimization corresponded to a fine-tuning of the controller. The transition area between low SOC and good SOC was both widened and shifted to lower SOC levels, while the membership functionsP net NB and N, which described a power deficit, were not changed. All other things being equal, this resulted in the battery being allowed to operate at lower SOCs and the fuel cell providing less energy at lower power levels. As long as security of supply was achieved, this led to reduced losses and less operational strain on the fuel cell. However, the latter effect was partially compensated by the shift in the membership functionP H2 P towards higher power values. On the other hand, the transition area between good and high SOC became more narrow, whileP net P, i.e., medium power surplus, was changed towards lower values andP H2 N towards bigger negative values. All these changes contributed towards the electrolyzer being operated more often and at higher power levels, which reduced losses from PV curtailment. The combined changes in rule base and membership function could be visualized with the output surface of the fuzzy logic energy management ( Figure 16). The increase in the blue area signified that the electrolyzer was operated more often and even ifP net was negative. It can clearly be seen that the decision about electrolyzer operation depended solely on the battery SOC, while the level of operation depended onP net . The decrease in the yellow area meant that the fuel cell was operated less often at its maximum. Nevertheless, it provided low levels of support in cases of low SOC, even ifP net was slightly positive.  Table 5. The optimization of the rule base led primarily to decreased numbers of startups for both fuel cell and electrolyzer, while the optimization of the membership functions additionally resulted in a considerably higher energy surplus, which came as expected with decreased cycling of the battery. Furthermore, the number of fuel cell startups was reduced by more than a quarter. However, this came at the cost of increased operation time.

Fuzzy Logic Energy Management System Validation
The performance results from Section 5.2 were of limited value. While they illustrated where improvements could be located, they did not guarantee that these improvements were achieved on anything other than the training data. To verify the generalizability of the presented fuzzy logic energy management, all the controller tunings from Section 5.2 were used for simulations with the load data for the 65 households selected in Section 4.1.
The annual energy surplus in Figure 17a indicated that the optimization (OptMF) increased long-term security of supply by increasing energy surplus. Whereas there was one simulation with the expert tuned control (Expert), where this criterion was not met, it was met for all optimized cases. Figure 17b is of particular importance. In terms of shortterm security of supply, it would be desirable to achieve 0 min with battery SOCs below 5 %. This was achieved in 43 cases for the expert tuned controller but only in 13 cases for the optimized controller (OptMF) suggesting that the optimized controller was considerably less robust. Another interesting observation was that the expert adjustment (OptRuleE) of the rule optimization (OptRule) described in Section 5.2 restored the level of security of supply emphasizing the importance of being able to interpret optimization outcomes. Following a similar line of argument, the thresholds that marked the transition from a low SOC to a good SOC were changed back to the expert tuned values. The result for this tuning is shown with the label OptMFE. With this relatively straightforward adjustment the level of robustness became comparable to that of the expert tuned controller, while largely retaining the improvements achieved by the optimization. This finding certainly underlines the benefit of combining an expert with an optimization-based approach.

Handles to Increase Robustness
As argued in Section 2.2, it is the objective of the energy management to always achieve security of supply. Hence, based on the validation results, the critical reader may conclude that the fuzzy logic energy management presented here was not adequate for the application at hand.
Therefore, a few handles will be discussed which allowed increasing robustness. To this end, the household with most violations of the short-term security of supply criterion was chosen as a worst-case scenario. This was household No 44. With the controller OptMFE the criterion was violated during 56.5 hours in total. Two updates to the membership functions were necessary to achieve both long-term and short-term security of supply:

1.
Increasing the thresholds that marked the transition from a low battery SOC to a good battery SOC from 0.15 and 0.25 to 0.33 and 0.34, respectively.

2.
Increasing the threshold marking the transition betweenP net is Z andP net is N from −0.16 to −0.08.
The first change increased the battery's lower SOC threshold. As a result, a larger energy buffer was available for sudden and large demand peaks. The second change resulted in the fuel cell changing more rapidly to higher output power once the power deficit increased. Whereas these adjustments were indispensable to make the energy management viable for households similar to household No 44, using the same changes on other households as a measure to increase robustness came at a cost. To illustrate this matter the changed controller (labelled OptMFER) was used with household No 17 and performance indicators compared to the other reference cases (see Table 6). The controller with increased robustness (OptMFER) had a considerably lower, but still acceptable, energy surplus at the end of the simulation year. The decreased energy surplus could be traced back to the increased activity of the fuel cell, which both started up more often and operated during longer times, leading to larger losses. The electrolyzer was also used slightly more. Whereas the performance of the controller OptMFE and OptMFER was largely comparable during summer, in spring and autumn, the increased lower battery SOC thresholds led more often to situations, where the fuel cell was operated during the night (battery SOC was below lower thresholds) and the electrolyzer was started up in the late afternoon because the battery SOC reached the upper thresholds. Such a behavior was not desirable, as the long-term storage path was used to balance short-term energy mismatch, which should be handled by the battery.
All in all, it can be stated that, even though all the load data belonged to households, the consumption patterns were so diverse that a generic controller design was either overly conservative or not sufficiently robust.

Conclusions and Outlook
The work presented in this article has shown the benefits of combining an expertbased with an optimization-based approach to the design of the energy management for autonomous PV hybrid systems with battery and H 2 storage path. While the optimization approach is well suited to detect areas of improvement, the optimization results need to be evaluated in a broader context and if necessary, adjusted to avoid over-fitting to specific training data. To ease this process, the optimization with a particle swarm was adjusted in order to maintain interpretability of the control tuning. Following this procedure, an improved energy management based on fuzzy logic control was developed and validated. Furthermore, it was demonstrated that the most common practice of validating an energy management system based on a single data set is of very limited validity, as consumption patterns are rather diverse posing different requirements to the control system. The diversity can be met by a conservative tuning. However, this comes at a cost both in terms of efficiency and component stress. The trade-off between generalizability and performance could be eased in the future by creating classes of load profiles and developing an apt controller tuning for each class.
Additional future research directions include more detailed component modelling, prediction algorithms for load and generation, a closer scrutiny of the impact of the fuzzy logic controller's internal methods and the parameters used by the particle swarm optimization as well as the integration and combined or iterative optimization of component sizing and energy management. In the following some comments on these areas and their relationship with this article are given.
The simulation framework in this study was designed to allow sufficiently fast simulations, which was a prerequisite both for optimization and subsequent validation. Therefore, relatively simple look-up tables were used. In future work, the impact of model granularity on performance and robustness is to be examined in more detail. Moreover, advanced component models should be introduced to represent degradation and ageing effects.
Short-term predictions combined with a model-based control approach would allow the implementation of improved anticipatory control actions, while long-term predictions could be used to realize adjustable battery SOC thresholds. Both measures are likely to be beneficial in terms of overall system efficiency and security of supply.
This study used the most common configuration of a fuzzy logic controller and particle swarm optimization. While these provided a good starting point and allowed continuity with prior work in the field, the impact of these design choices and possible alternatives for the application in off-grid systems with hybrid storage should be further scrutinized. In the case of the fuzzy logic controller, these are in particular different shapes of membership functions and methods for aggregation. For the particle swarm optimization, the number of particles and iterations should be investigated more closely.
Finally, the integration and combined or iterative optimization of component sizing and energy management is likely to have considerable potential. As discussed in Section 2.2, increasing system efficiency is not an aim in itself, but can lead to smaller sized components and increased security of supply. Whereas the main objective in this article was to show the impact of different controller tunings given a fixed hardware setup, in a next step this knowledge is to be used to update the sizing of components.
All in all, it was demonstrated that fuzzy logic control presents an interesting method for the energy management of autonomous systems with hybrid storage, especially if combined with an optimization approach. Improvement in the energy management allows for smaller dimensioning of all components in the system and reduces early failures due to fatigue. Considering that autonomous PV hybrid systems are typically employed in remote places and rural electrification, where low cost and high reliability are decisive, the here presented energy management system can considerably contribute to their successful application.

Conflicts of Interest:
The authors declare no conflict of interest.

Abbreviations
The following abbreviations are used in this manuscript: Annual energy consumption in kWh E loss,a Aggregated annual energy losses in kWh E PV,a Annual PV generation in kWh E Sur Relative surplus energy at the end of the year in % (compare Equation (14)