An Intelligent Fuzzy Logic Controller for Maximum Power Capture of Point Absorbers

This article presents an intelligent fuzzy logic controller (FLC) for controlling single-body heaving wave energy converter (WEC) or what is widely known as “Point Absorber”. The controller aims at maximizing the energy captured from the sea waves. The power take-off (PTO) limitations are addressed implicitly in the fuzzy inference system (FIS) framework. In order to enhance the WEC power capturing bandwidth and make it less susceptible to wave environment irregularities and the system parametric uncertainties, the controller is built to have a self-configurable capability. This also eliminates the need to repeatedly run in-situ tuning procedure of the fuzzy controller or switch between several controllers based on the operating conditions. The fuzzy membership functions (MFs) are optimally tuned using particle swarm optimization (PSO) algorithm. To alleviate the computational burden associated with performing on-line optimization, the fuzzy controller is tuned at a rate significantly lower than the system sampling time. The suggested PSO-FLC has shown promising results compared with the fixed structure fuzzy logic controller (FS-FLC) and other passive control strategies. Several computer simulations were carried out to evaluate the controller effectiveness by applying different sea-states and analyzing the resultant WEC dynamics.


Introduction
Wave energy is deemed to be one of the most promising renewable energy resources, with an estimated global potential of 2 TW [1].The first attempts to harness wave energy dates back to 1940s, however, serious governmental projects on wave energy have started after the oil crisis in 1973 [2].Apart from being abundant, wave energy is a concentrated form of solar energy, with power density of approximately 2 kW/m 2 [1].Wave energy converters (WEC) are used to convert the mechanical power of the traveling sea waves to electrical power that can be fed to the grid.WECs vary according to many aspects, that is, the installation site (i.e., nearshore or offshore), the principle of operation (i.e., oscillating, pitching, etc.) and the deployed power take-off (PTO) mechanism.The economic feasibility of the WEC depends on the wave potential at the installation site, the efficiency of the PTO, and the effectiveness of the used control strategy, along with other factors such as installation and maintenance costs [2,3].
Recently, an extensive research effort has been dedicated to the area of WEC control to maximize the exploited wave energy, while ensuring that the device is operating safely and within its physical and thermal limits.Falnes and Budal pioneered the efforts which led to the important principle of WEC maximum power absorption [2,3].A major drawback of optimal control strategies are their non-causal nature [4].Control techniques such as amplitude and phase control are proposed as a more practical alternative to optimal control strategies [4].In [5], a passive control strategy that considers the linear generator copper losses is implemented.An adaptive controller based on constrained average power maximization method is proposed in [6].The suggested technique highlighted the importance of properly selecting and tuning the control strategy and how that affects the ratings of the deployed PTO components (e.g., generator, power electronics, etc.).Feedback linearization is a control strategy which provides a linear system dynamics instead of non-linear dynamics of the WEC.However, in practice, non-linear dynamics (forces) will never be so accurately cancelled, which deteriorate the performance of these control strategies [7].Latching control is another technique based on phase control, where the buoy is latched and unlatched at predetermined intervals, hence, the absorbed power is maximized and the power reversals are minimized.Computing the latching intervals is rather a challenging task, knowing the irregularity of the sea waves [7].Numerous studies proposed the use of neural networks to accurately model the non-linear dynamics of WECs.Elman dynamic neural network is employed to model the dynamics of WEC, where the wave excitation force and the PTO force are selected as inputs and the buoy velocity as output [8].In [9], model predictive controller (MPC) strategy is implemented to control the motion of a heaving WEC; however numerous assumptions and simplifications have been made by the author, such as adopting simplified hydrodynamic models.In [10], the authors proposed robust fuzzy controller, which combines between a fuzzy controller responsible of short-term wave fluctuations and GA optimization which handles the long-term wave fluctuations, along with an offline robust controller, which minimizes the effects of uncertainties in the control strategy.
In this paper, an intelligent fuzzy logic based controller is proposed to control a point absorber WEC.This work is an extension of the preliminary results presented in [11,12].FLCs usually offer better performance for systems which suffer from model complexity, stochastic behavior, parametric variations and/or disturbances compared to classical model based controllers such as PID controller [13].The FLC rule-base is constructed based on physical laws, namely, maximum power transfer theorem.The controller is of the reference-less type, that is, no optimum velocity trajectory is needed.Furthermore, in order to address the tuning problem and add a certain level of robustness to the FLC, it is equipped with particle swarm optimization (PSO) algorithm, that optimally tune the fuzzy membership functions, which eliminates the need for building another optimal robust controller.This self-configurable nature of the controller will not only give it a degree of robustness towards parametric uncertainties, but also widen the operating region of the FLC, without the need to re-construct the fuzzy inference system.PSO is deployed due to its simplicity, flexibility, and fast convergence time.The controller ability to maximize the absorbed energy is assessed.Also the controller behavior to parameter variations is assessed at different wave environments.The paper is organized as follows.Section 2 discusses the dynamics and modeling of point absorber.Section 3 describes the controller design.Section 4 includes the simulation results and the corresponding discussions.Section 5 is devoted to conclusions.

Heaving WEC Dynamics
In this work, the Uppsala University point absorber design is considered as shown in Figure 1.The device is a seabed-reacting axisymmetric heaving system, which consists of a floating spherical body (buoy) connected to a permanent magnet linear generator (PMLG) through a rod.Conventionally, the PMLG, which is installed on the seabed, is composed of a translator that moves in one degree of freedom, on which an alternating polarity permanent magnet is mounted.The linear motion of the translator surrounded with a fixed stator windings, will induce voltage on the armature windings [14].Apart from electricity generation, the PMLG is utilized to damp the oscillation of the buoy in a controlled manner; hence the energy absorption of the WEC depends on the damping capabilities of the PMLG [4,15].Besides, controlled excursions are applied on the buoy by the PMLG to limit the damage that could occur due to extreme waves.The movement of the WEC oscillating body is governed by the forces resulting from the wave-body interactions and the forces applied by the PTO and mooring mechanisms.There is an array of forces that is experienced by the oscillating body and an equal number of reaction forces as stated in Newton's third law [16].Nevertheless, forces acting on the floating body are the ones of interest when modeling the motion of WECs.Based on linear wave theory, where only small wave amplitudes are considered, the forces acting on the oscillating body are [3,10]: • The wave excitation force, f e (t), is simply the force exerted by the incident waves on the WEC floater assuming that it is held motionless; • The hydrodynamic radiation force, f r (t), is the force that both the oscillating body and the surrounding fluid apply on each, due to the alteration of the pressure field over the submerged portion of the buoy as the waves are created; • The buoyancy stiffness force, f b (t), which results from the imbalance between the floater weight and the weight of the displaced fluid during oscillation.The buoyancy force is a function of the buoy displacement z(t), water density ρ, the gravitational acceleration g, and the water plane area A w , such that f b (t) = ρgA w z(t).Note that the water plane area A w is assumed to be fixed for the sake of simplicity.Therefore, the buoyancy stiffness coefficient is defined as S b = ρgA w ; • The drag force, f d (t), which is a nonlinear resistive force exerted by the water on the reciprocating buoy, where , where C D is the drag coefficient; • The mooring system force, f m (t), is a force applied on the buoy by a tight mooring lines.
In this study, in order to keep the buoy in place, it is moored to two neighboring floating mooring points (e.g., small buoys).The mooring force is modeled to have a nonlinear spring effect, , where S m and L m are the mooring cable stiffness and the cable horizontal length, respectively [17,18]; • The restoring force, f rs (t) , which represents the force applied by the auxiliary spring units installed between the translator of the PMLG and the system's point of interaction at the seabed.f rs (t) is modelled as a spring force, such as, f rs (t) = S rs z(t), where S rs represents the spring stiffness coefficient; • The losses force, f l (t), which includes the losses due to friction, viscosity, and non-ideal PTO mechanisms.In practice, this force is nonlinear and time variant, however, for convenience, it is modeled as a linear time-invariant resistive force, that is f l (t) = R l ż(t), where R l represents the losses damping coefficient; • The input force, f u (t), which is the force applied by the PTO system on the WEC.This force is usually governed by a controller to maximize the captured energy.
Since this research is only discussing point absorbers WECs and for the sake of simplicity, only one degree of freedom of motion (heave) will be considered.The system equation of motion can be described as where m is the total mass of the WEC floater and the linear generator translator, z(t) is the gravitational acceleration of the floater.As proposed by Cummins, the linear time domain representation of the zero forward speed radiation force could be written as [19] f The first term models the fluid pressure forces due to the floater acceleration, where m ∞ = lim ω→∞ M r (ω), which is the radiation added mass at infinite frequency.The convolution term represents the fluid memory effects which dissipates part of the incident power away from the floating body as a result of the destructive interference between the future incoming waves and the current radiated waves.
The convolution kernel, k r (t) is called the retardation function or the radiation impulse function.The frequency domain radiation damping R r (ω) and added mass M r (ω) can be related to the radiation impulse function as follows [20]: The values of R r (ω) and M r (ω) for various angular frequencies have been evaluated by numerically solving the buoy's frequency domain radiation problem using WAMIT TM [21].

State Space Representation of the WEC Model
Several works have been conducted on how to handle the radiation convolution term [22,23].In this paper, the method adopted in [22] has been used, where the radiation convolution term is approximated by fourth order linear state space model as follows where q(t) ∈ R 4×1 is the state vector; the buoy velocity ż(t) ∈ R 1×1 is the input and the radiation force f r (t) ∈ R 1×1 is the model output.A k , B k and C k are the state matrix, input matrix and output matrix, respectively.Equation ( 6) can be easily lumped into Equation (1) to formulate the state space model of the WEC system, hence the state vector x(t) ∈ R 6×1 can be chosen to be x(t) = [z(t) ż(t) q(t) T ] T , which is assumed to be entirely measurable with initial conditions of x(0) = [0 0 0 1×4 ] T .The inputs to the system consist of the wave excitation force f e (t), which is treated as a measurable un-manipulated input and the input force f u (t), which can be manipulated by the controller to achieve optimum performance.The wave excitation force f e (t) is approximated using a method similar to that used to approximate the radiation force f r (t).In this study, the model output y(t) is the buoy vertical velocity ż(t).The overall model can be written as Alternatively, the model can be re-formed into the compact state space representation as where Note that u(t), w(t), and Θ represent the input force, the wave excitation force, and the nonlinear vector, respectively.

Controller Design
To bring down the system's operating frequency to that of the most energetic wave frequencies (ω < 1 rad/s), an appropriate external force must be first determined by a controller and then applied on the buoy.The controller alters f u (t) by continuously adjusting the change of damping R u and spring stiffness S u coefficients, such as [16]

Fixed Structure Fuzzy Logic Controller (FS-FLC)
Two-input two-output fuzzy controller is implemented.Fuzzy controllers have received great appreciation in industry recently [24][25][26].That is due to wide range of advantages that they offer, if they are implemented properly.FLCs are independent of the mathematical model of the plant under investigation; instead they are based on human expertise.Moreover, fuzzy based controllers offer a more flexible alternative for control designers, that is, the input and output variables can be given different treatments to counteract inherent nonlinearities or environment disturbances [24].The main drawback of FLCs is that there is no systematic procedure to design and tune the fuzzy inference system (FIS) parameters [27].
Based on the principle of amplitude and phase control [16], the proposed fuzzy controller accepts two input variables, the first input is the amplitude difference between the measured wave elevation and the measured buoy displacement ∆A = η(t) − z(t), while the second input is the phase difference between the computed excitation force and the measured buoy heave velocity ∆θ = θ fe (t) − θ ż (t).The phase difference is computed by a windowed cross correlation method between the two signals; where the output of the cross correlation varies between -1 and 1. Due to the windowed computation of the phase shift input signal, it is altered less often compared to the amplitude difference input signal.Practically, measurements of the wave elevation can be taken by another buoy installed close to the WEC.The FLC outputs two crisp variables namely, the PMLG damping and spring stiffness coefficients.Seven fuzzy sets are assigned for each input and output variable as shown in Table 1.Gaussian MF is chosen for all input and output variables with different universe of discourse ranges.Each Gaussian MF is defined by the mean m and standard deviation σ.The FLC inference rule-base is divided into two groups, the first are those linking the inputs to the required damping coefficient and the second set of rules relates the inputs to the required spring stiffness.Without the input PTO force, the spring effect dominates the oscillating system intrinsic impedance.Therefore, by controlling the PMLG stiffness force, the velocity can be made less leading (or nearly in phase) compared to the excitation force, which results in higher excursions and more energy absorption.The opposite can be done to suppress the buoy excursions.Also if ∆A is positive, the damping supplied by the PMLG is reduced, while more damping is applied when ∆A is negative.The FLC uses the Mamdani type FIS with the center of gravity (centroid) method for defuzzification.To limit the controlled machinery force, the FLC universe of discourse of R u is set to [0, 1 × 10 5 ], while the universe of discourse of S u is set to [0, 1.2 × 10 6 ].Note that the universe of discourse ranges for the output signals are set based on the characteristics of the used actuator.The universe of discourse for ∆A and ∆θ are [−5, 5] and [−1, 1], respectively.
Due to the absence of systematic methods to determine the input and output MFs parameters, they have been chosen by trial and error; however that does not guarantee a decent performance of the WEC at diverse sea conditions.Therefore a method to continuously update the MFs to achieve optimum WEC operation is required.From here after, the developed FLC will be referred to as fixed structure FLC (FS-FLC) in order to differentiate it from its self-configurable counterpart that is discussed next.

PSO-Fuzzy Logic Controller (PSO-FLC)
Much research work has been devoted to the subject of FLC online optimization [28][29][30].A proper selection of the FLC rule base and/or the MFs parameters would significantly improve the control action while the system is operating.
PSO algorithms have been utilized in many engineering problems [31,32].The fact that they are simple, fast and computationally efficient made them an attractive tool in many complex optimization problems, especially if the variable to be optimized has a high dimension.Many research works have indicated that in many applications PSO has better convergence speed compared to other population-based algorithms such as genetic algorithm (GA) [33].The PSO principle has been inspired from the flocking bird behavior, where each bird resembles a solution (particle) in the search space.Naturally, the birds rely on their own experience and their social relations with other birds to find food [34].Similarly, the particles in the algorithm fly around in a d-dimensional space to find an optimum solution for a given problem using their own and other particles experience.Each particle is assessed by evaluating a fitness function, such that the swarm will gradually lean towards an optimum solution at which the minimum or maximum value of the fitness function is attained.During the search, each particle's velocity and position is updated as shown in Equations ( 12) and ( 13) [35] At the iteration number j, the variables v d i (j + 1) and v d i (j) are the d th dimensional i th particle updated and current velocity, respectively.While x d i (j + 1) and x d i (j) are the d th dimensional i th particle updated and current position, respectively.The parameters ω n , β 1 and β 2 are the inertia weight, cognitive attraction and social attraction parameters, respectively.While pd i is the i th particle previous best position and ĝd is the global best position among all particles in the d-dimensional swarm.r 1 and r 2 are random weights in the range [0, 1].The particle inertia weight ω n determines the impact of the current particle velocity on the updated (future) particle dynamics.β 1 and β 2 decide the size of the neighborhood at which the searching is taking place.
In this work, each particle contains the values of the inputs and outputs MFs parameters, namely the Gaussian MF mean and standard deviation.The PSO algorithm searches in a pre-determined bounded searching space for the optimum solution that maximizes the absorbed real power.After initiating the particles with values within the specified boundaries, the goodness of the new particles are evaluated by updating the fuzzy controller and checking the WEC system response through computing a cost function.The dynamics of each particle is updated at every iteration using Equations ( 12) and ( 13).This procedure continues until an optimum set of MFs parameters are obtained.Table 2 summarizes the PSO algorithm.The dimension of each particle in the swarm is 56, which is the total number of mean and standard deviation parameters that need to be tuned (i.e., 14 particles for each input and output variable) .The PSO algorithm attempts to adaptively tune the parameters of the FLC MFs by adjusting the change of the mean ∆m and the standard deviation ∆σ parameters from their nominal settings (i.e., m o and σ o ), used in FS-FLC as shown in Figure 2.Each particle χ ∈ R 1×56 is represented as follows where Γ 1 and Γ 2 comprise the fuzzy MFs parameters of the first and second input variables, while Γ 3 and Γ 4 include the output variables MFs parameters, that is Hard upper and lower bounds are set for particle's parameters to limit the search space, that is, ∆m ∈ [∆m low ∆m up ] and ∆σ ∈ [∆σ low ∆σ up ].These bounds are picked arbitrarily as a percentage of the nominal values of the MF parameters.Each input/output fuzzy variable could have its own MF parameters bounds.The objective is to maximize the amount of absorbed energy E abs using the following cost function where [t 1 t 2 ] is the time span at which the cost function is evaluated.The control regime consists of two levels with separate time scales as shown in Figure 3.In the first level, the control law is issued at every sampling instant using the most recent FIS update.While in the second level, the FIS is updated at a lower rate in which the cost function shown in Equation ( 16) is maximized .To reduce the computational complexity and ease the controller real-time applicability, the optimization is carried out for a trajectory of the most recent wave samples (i.e., in last 10 s), which is adequate, knowing the frequency at which most energetic sea waves propagate.To accommodate the effects of the nonlinear dynamics, system uncertainties and the stochastic behavior, it is crucial to update the system model, in order to allow the PSO algorithm to correctly modify the fuzzy controller based on the most recent model.System identification is performed prior to running the PSO.Here, the wave-buoy interaction is modeled as a single input single output black-box auto-regression model, such as [36] where y(t) is the buoy vertical velocity and u(t) represents the summation of f ex (t) and f u (t), while e(t) models the measurement noise.The parameters n a and n b are the number of poles and zeros, respectively.Therefore, the estimated output can be written as [36] ŷ Note that no prediction algorithm is used in this work, hence the excitation force is considered to be ideally predicted.Also, it is worthy to mention that the PTO is assumed to have ideal conversion efficiency, that is no electrical losses are considered.Here, the controller should guarantee a stable operation of the system in all sea conditions, while implicitly respecting the physical limitations of the WEC.

Results and Discussion
To assess the proposed controller, numerical simulations are carried out using MATLAB/Simulink environment.Passive reactive control (PRC) regime is used as a simple and low cost strategy to further assess the developed fuzzy controllers.The PRC regime has been designed to maximize the captured power at only a single wave frequency.For this study, the PRC force is formulated similar to Equation (11), where R u and S u are tuned for a monochromatic sea state of T p = 8 s and H s = 2 m, which are 50 kN.s/mand 600 kN/m, respectively.To unify the operating conditions for all tested controllers, mechanical end-stop is deployed to limit the buoy maximum excursion to 3 m.Numerous sea state scenarios are generated and the performance of the heaving WEC is evaluated.Polychromatic sea states, that is, they contain more than one frequency component, have been utilized to assess the effectiveness of the proposed controller.JONSWAP spectrum is used to generate realistic irregular growing sea states [37].

Simulation Setup
The performance of the suggested PSO-FLC is compared with that of a FS-FLC and the PRC strategy.The hydrodynamic frequency domain analysis is carried out once before running the time domain simulations.The system design parameters are shown in Table 3.It is not easy to determine accurately the value of C D , however, in this work it is set to 0.5, in an attempt to approximately make the drag force equal to half of that of the radiation force for a buoy velocity of 2 m/s.The PSO population size is set to 50 particles, while the total number of searching iterations is set to 80. Maximum number of search iterations is determined such that a good balance is achieved between reaching an optimum or nearly optimum solution and reducing the computational burden.Other parameters like ω n , β 1 and β 2 are set to 0.5, 0.4, and 1.2, respectively.A fixed step ode4 solver is chosen to compute the dynamic responses over 140 s time span and time step of 0.1 s.The FIS optimization requires around 20 s to be solved using a 3.16 GHz dual core processor.Hence the fuzzy MFs are updated every 20 s, that is approximately equivalent to two low-frequency waves.

Simulation Results
First, a polychromatic sea state of a significant wave height H s of 1.25 m and a peak period T p of 9 s is applied on the WEC.The performance of the proposed PSO-FLC along with those of the FS-FLC and the PRC are shown in Figure 4.The buoy's vertical displacement and velocity responses are fairly close for all controllers in the first 40 s; however, beyond t = 90 s, there are significant discrepancies.
In Figure 5a, it can be noticed that the proposed PSO-FLC produces the best performance in terms of the amount of averaged absorbed power, which is approximately 72 kW, while FS-FLC and PRC produce 61 kW and 53 kW, respectively.Note that, although the PSO-FLC controller has close average-to-peak ratio (4.8%) to the FS-FLC controller (5.2%), it has produced 15% more average power than its counterpart.That clearly shows the importance of managing the available control resource, which both controllers share in common.Figure 6 shows the dynamics of the PTO system, namely, the damping, stiffness, and the overall control force for the three controllers.As shown in Figure 6a, the PSO-FLC produced a time averaged damping of 54 kN.s/m, while the FS-FLC produced more damping that is 58 kN.s/m.As for the stiffness force, it is the opposite, the PSO-FLC produced 6% more than the FS-FLC.Despite that both of the PSO-FLC and the FS-FLC have similar damping and stiffness capacity, the self-configurable nature of the PSO-FLC enables it to utilize the available control resource efficiently, resulting in capturing more energy.The control strategies performance subject to varying wave frequency is presented in Figures 7 and 8.In Figure 7, the applied waves have height of 1 m.Note that the PSO-FLC has better overall performance in terms of the averaged absorbed power than both of FS-FLC and the PRC.The PSO-FLC maintains nearly fixed advantage in the average absorbed power of approximately 11%, especially, at 0.6 ≤ ω ≤ 0.95.The reason for poor power absorption at very low wave frequency is the limited reactive capacity of the PTO.That is, as the wave period increases the PTO is required to issue more reactive power, in order to force the buoy to become in phase with the excitation force.The PRC produces superior performance around the frequency at which it is tuned, while the fuzzy-based controllers produced wider absorption bandwidth.As shown in Figure 7b, the PSO-FLC failed to compete with FS-FLC in terms of the average-to-peak ratio, especially beyond ω = 0.6 rad/s.Note that at low wave frequency, the average-to-peak ratio is small indicating the generation of large reactive power, which agrees with our previous observation.The average normalized PTO coefficients are shown in Figure 7c,d, which shows almost steady trajectory for the damping coefficient, which is intuitive knowing that the wave height is fixed.However, the stiffness coefficient suffers from monotonic decrease as ω increases, indicating the need for lower reactive force.Also, notice that the stiffness coefficient becomes lower than the PRC fixed stiffness coefficient at ω ≥ 0.8 rad/s .The reason is that less stiffness is required at large wave frequencies, which is even lower than its PRC counterpart, knowing that the PRC is tuned at H s = 2 m and ω = 0.8 rad/s.The previous analysis is repeated for waves with larger heights (H s = 3 m) as depicted in Figure 8.Similarly, the PSO-FLC manages to produce more power for ω ≥ 0.6 rad/s.It can be observed that the average-to-peak ratio trajectories dropped significantly, compared to the case when H s = 1 m.That is due to the significantly larger reactive power content.As expected, both the damping and stiffness coefficients are larger than the PTO coefficients produced by the PRC strategy across all wave frequencies.
Next, various irregular sea states were applied on the buoy.These sea states have been categorized based on the significant wave height H s , the wave peak frequency ω p , and the wave bandwidth.In terms of H s , the sea states were divided to soft, moderate, and rough, corresponding to, 1.25 m, 2.25 m, 3.25 m, respectively.While two wave periods were considered, long and short, corresponding to a wave period of 7 s and 11 s, respectively.Also, the wave bandwidth has been divided into two sets, broad and narrow as shown in Figure 9.  Figure 10 summarizes the performance of the controllers at all of the sea states based on the amount of averaged absorbed power.Clearly the PSO-FLC has produced more power at all sea states.Note that at Figure 10a, when the applied wave has a long period and narrow bandwidth, the PRC is more competitive, which is expected since the applied wave firmly falls into the controller bandwidth.However, when a broad wave is applied, the PRC becomes less productive as shown in Figure 10b.With T p = 7 s as shown in Figure 10c,d   The sensitivity of the proposed controller towards parameter variations is assessed.Generally, controllers which are independent of the system mathematical model exhibit certain level of robustness, such as fuzzy logic controllers.However, a rigorous analytical approach is difficult to attain.Intuitively, the adaptive nature of the PSO-FLC is expected to further make the controller less sensitive to uncertainties.To showcase the controller sensitivity to variations in the plant parameters, the mooring stiffness coefficient S m is varied for two different irregular wave environments.The reason of applying variations on S m originates from the difficulty of accurately modeling its dynamics, hence it encompasses good deal of uncertainty.The absorption efficiency, which is the ratio of the average absorbed power to the average incident wave power, is used as a performance metric as shown in Figure 11.Since the controller is not designed to track a specific reference signal, the controller robustness is evaluated based on the degree of deterioration in the absorption efficiency.It can be observed that the proposed PSO-FLC has the upper hand over the FS-FLC for all variations in S m for both sea-states.Nevertheless, the PSO-FLC is more sensitive to variations in S m when waves of longer periods are applied.That is expected, since long period waves are more energetic, which makes the controller find it difficult to issue more force from the PTO, hence the efficiency drops and part of the incident energy is returned back to the sea.In Figure 11a, the PSO-FLC suffers from rapid monotonic deterioration in the absorbed efficiency as the ∆S m is increased, where 30% increase in S m has resulted in 47% drop in efficiency, while only 23% drop is recorded for FS-FLC.On contrary, at T p = 7 s, the maximum efficiency drop is 38% for PSO-FLC compared to 33% for the FS-FLC.Note in Figure 11b, the PSO-FLC suffers from slight degradation in the absorption efficiency up to 10% increase in S m , this is due to the availability of extra control resource in the PTO, which is operating far from its physical limitations.

Conclusions
In this paper, an intelligent fuzzy logic controller for single body heaving WECs is proposed.The suggested controller has the ability to update its internal structure by continuously modifying the fuzzy MFs using PSO algorithm.Several polychromatic sea states are applied to the system and the PSO-FLC proved its superiority to FS-FLC.The PSO-FLC is capable of forcing the WEC system to absorb more energy regardless of the characteristics of the incoming waves.Also, the proposed controller can keep the system oscillations within reasonable bounded excursions, hence keeping the system stable.
It is obvious from the results that the PSO-FLC strategy utilizes more control resource (i.e., PTO force) than the FS-FLC, even thought, both control strategies were designed with the same damping and stiffness limitations.Moreover, it has been shown that the proposed PSO-FLC strategy produced high average-to-peak ratio comparable to that of FS-FLC, while outperforming other control strategies in the amount of average absorbed power.This indicates that the PSO-FLC has better capability in using the available PTO force compared to both FS-FLC and PRC.Due to the irregularity and ambiguity of the sea environment, having such a tunable controller is essential to avoid the over-sizing of the PTO rating, therefore, enhancing the economic feasibility of the proposed solution.
The robustness of the PSO-FLC has been addressed through applying various perturbations to the system, which proved that robustness to parameter variations is function of the characteristics of the wave environment.It is important to mention that optimum operation of the WEC cannot be achieved; however, operating the system near the optimal condition as long as possible is conceivable.Also, due to the meta-heuristic nature of the PSO algorithm, reaching to an optimal solution is not guaranteed.In this study, the design parameters of the PSO algorithm are kept constant throughout the simulations.A possible improvement, which will be the subject of future research, would be using an adaptive PSO algorithm, where the parameters that determine the searching behavior and convergence speed of the PSO algorithm can be updated online.Combining short-term prediction algorithms to the current controller would probably alleviate the problem of real-time applicability, where enough time can be given to the PSO algorithm to optimize the fuzzy controller, these and other topics would be the scope of future work.

Figure 3 .
Figure 3. Block diagram of the proposed PSO-FLC controller.

Figure 4 .
Figure 4.The dynamics of the WEC buoy under different controllers (a) wave elevation; (b) buoy displacement; (c) buoy velocity.

Figure 7 .
Figure 7.Comparison of the controllers performance for sea-states with H s = 1 m and varying wave frequency (a) average absorbed power; (b) average-to-peak power ratio; (c) normalized PTO damping; (d) normalized PTO stiffness.

Figure 8 .
Figure 8.Comparison of the controllers performance for sea-state with H s = 3 m and varying wave frequency (a) average absorbed power; (b) average-to-peak power ratio; (c) normalized PTO damping; (d) normalized PTO stiffness.

Figure 9 .
Figure 9. Jonswap wave spectrum of a sea-state with T p = 11s and H s = 2.25 m, broad bandwidth (solid) narrow bandwidth (dashed).
Figure10summarizes the performance of the controllers at all of the sea states based on the amount of averaged absorbed power.Clearly the PSO-FLC has produced more power at all sea states.Note that at Figure10a, when the applied wave has a long period and narrow bandwidth, the PRC is more competitive, which is expected since the applied wave firmly falls into the controller bandwidth.However, when a broad wave is applied, the PRC becomes less productive as shown in Figure10b.With T p = 7 s as shown in Figure10c,d, the fuzzy based controllers clearly outperformed the PRC, since they have a broader absorption bandwidth.

Figure 10 .
Figure 10.WEC power absorption at different sea-state scenarios (a) long period narrow bandwidth; (b) long period broad bandwidth; (c) short period narrow bandwidth; (d) short period broad bandwidth.

Figure 11 .
Figure 11.Controller sensitivity to variations in the mooring stiffness coefficient under a sea-state of H s = 1.25 m (a) T p = 11 s; (b) T p = 7 s.

Table 2 .
Pseudo code of the PSO algorithm.