1 Introduction

In the future power supply, the power generation technologies will assume a vital part because of less reliance on fossil fuels of energy production and expanded worldwide public awareness (Amin et al. 2017; Fahmi et al. 2017a; Abualigah 2019). For the operation and management of the electricity grid, large number of renewable energy sources (RESs) and distributed generators require new strategies to enhance the power supply quality and reliability (Abualigah and Hanandeh 2015). Since availability of RESs is variable and unpredictable, energy storage device is utilized at the DC interface (Fahmi et al. 2017b; Rahim et al. 2016). In the greater part of the cases, both solar and wind energy complement each other because of instantaneous fluctuation of solar irradiation and wind speed (Fahmi et al. 2018a). Energy management of HRES system using the artificial intelligence (AI) techniques such as neural network (NN), fuzzy logic (FL) and adaptive neuro-fuzzy interference system (ANFIS) achieves better outcomes (Olatomiwa et al. 2016). But the thermal and electrical demand of a building requirement is supplied by the hybrid structure (Bruni et al. 2016; Almada et al. 2016). During rapid changes of wind speed under wind turbulence the oscillation damping in DC link voltage is quick while dispatching the extracted power (Basir Khan et al. 2016; Wu et al. 2016; Fahmi et al. 2018b).

The presented optimization techniques provide good solution due to the good global search ability (Fahmi et al. 2018c). Uncertainly the global best value is varying as the stochastic variables in the optimization techniques (Fahmi et al. 2018d). Microcontroller-based power management system for an independent microgrid with PV module and the energy component is given in Fahmi et al. (2018e, 2019a) and Ambia et al. (2014). For power management in a microgrid, the impact of continuous variations in solar irradiance and wind speed which is joined with load power variations is accounted in Fahmi et al. (2019b). The inverter reactive power compensation for load variation is improper sag ride though the inverter voltage would not be conceivable (Fahmi et al. 2019c). The most utilized topologies are the parallel and series hybrid topologies (Amin and Fahmi 2019). In the series hybrid topology, some energy sources, in general some energy storage devices, are specifically associated with the common DC bus without DC–DC power converter (Abualigah et al. 2017, 2018a, b). In the parallel hybrid topology, all the energy sources are associated with the common DC bus through DC–DC power converters (Fahmi et al. 2017c).

In this research, a novel control scheme is introduced to the optimal utilization of interconnected RESs in the MG-connected system. The proposed system is the combined execution of AWO-ANFIS control scheme. Here, the optimal utilization of interconnected RESs and the switching loss reduction are the main goals of the DC–DC converter. Likewise, the importance of the AWOA in the proposed method is to generate the optimal gain dataset and obtain the exact gain parameter by using the ANFIS technique.

The difference between the proposed technique and the existing technique is explained below.

It is pertinent to note here that the GA, PSO and other evolutionary algorithms cannot be employed in realistic techniques on account of the nonlinear traits likes valve point effects, forbidden operating zones and piecewise quadratic cost function. Hence, it becomes all the more essential to fine-tune the optimization techniques in order that they are competent to overwhelm these deficiencies and to successfully tackle the identical hassles. The most modern version of the upgraded metaheuristic algorithms is the adaptive whale optimization algorithm (AWOA), which mimics the hunting mechanism of humpback whales in nature. AWOA has been authenticated to consistently maintain a track record of superior quality performance in finding quick solutions to various optimization dilemmas in the literature. Here, the solution of the WOA is modified by using the crossover and the mutation operator. Here, the crossover is achieved between the two individuals, and in the mutation process, the individuals are mutated randomly based on the given fitness function. The highly significant trait of WOA is that the step size constant is competent to fine-tune the precision of the prey location, with the end result of considerably quickening solution procedure. Moreover, though AWOA is devoid of memory, it functions just as competently as the algorithms endowed with memory. An adaptive neuro-fuzzy inference system or adaptive network-based fuzzy inference system (ANFIS) is a kind of artificial neural network that is based on Takagi–Sugeno fuzzy inference system. Since it integrates both neural networks and fuzzy logic principles, it has potential to capture the benefits of both in a single framework. Its inference system corresponds to a set of fuzzy IF–THEN rules that have learning capability to approximate nonlinear functions. Hence, ANFIS is considered to be a universal estimator. It has uses in intelligent situational aware energy management system. Hence, AWO-ANFIS technique is suitable for optimal utilization of hybrid renewable energy sources (HRES) in the microgrid (MG)-associated systems.

The proposed technique is executed in the MATLAB/Simulink working platform, and the execution is compared with the existing techniques. To test the performance of the proposed method, different case studies are conducted such as variation of irradiance under constant wind speed, variation of PV power under constant irradiance and load variation under constant irradiance and wind speed. For all the cases, the response of current, voltage and power of all the sources is analyzed and compared with that of the existing techniques such as GA, PSO and WOA. The statistical analysis of the proposed technique is also analyzed. Likewise, the computation time using various trails such as 100, 250, 500 and 1000 is also analyzed. The comparison results affirm that the proposed technique has less computational time than the exiting techniques. Moreover, the proposed method is cost-effective power production of MG and effective utilization of renewable energy source without wasting the available energy. The remaining section of this research is delineated as follows. Section 2 includes a brief review of the recent research work. Section 3 depicts the proposed methodology of the present work. Sections 4 and 5 consolidate the simulation analysis and the conclusion part.

2 Recent research works: a brief review

Various research works have already existed in the literature which depended on the power management scheme for renewable energy sources utilizing different methods and different perspectives. A portion of the works is reviewed here.

For the management of data centers (DCS), SDN-based energy management scheme in the RES was presented by Aujla and Kumar (2018). In addition, to deal with the irregularity of renewable energy, the authors likewise have introduced a charging–discharging scheme. To pull in the EVs, an energy trading and reward point scheme was planned in the energy management scheme. To effectively deal with the loads in a grid operated microgrid, a fuzzy logic controller was actualized by Angalaeswari et al. (2017). The author likewise has used the MPPT with a fuzzy logic controller (FLC) for a grid operated microgrid established by solar system and battery. Indragandhi et al. (2018) have represented to solve the energy management issues by using renewable resources ideally, keeping up the state of charge (SOC) in batteries. In their methodology, a power transfer between the AC/DC microgrids was kept up by the introduced system. The authors likewise have used the multi-objective particle swarm optimization (MOPSO) for the power management in AC/DC microgrid. Zhang et al. (2017) have investigated a sort of utility engineering microgrid structure for examining hybrid power system and control strategies. The authors likewise have designed the dispatch control and energy management scheme to facilitate power portion among assortment renewable energy generation.

For a hybrid generation system in view of solar energy and combined with the grid, a control design by means of passivity-based control integrated with an energy management technique was exhibited by Patrone and Feroldi (2017). The authors additionally have introduced a comprehensive nonlinear model for dissected the execution of the control methodology. Javaid et al. (2017) have outlined a home energy management (HEM) controller based on four heuristic algorithms: Moreover, a hybrid procedure additionally actualized which was genetic-based PSO (GBPSO). For optimal energy management of the microgrid, a joining particle swarm optimization (PSO) and primary-dual interior point (PDIP) strategy were introduced by Goroohi Sardou et al. (2018). Additionally, the authors likewise have utilized a bi-objective technique to distinguish the most pessimistic scenario probable 24-h scenario with the severest consequences for the system security.

Amirtharaj et al. (2019) have introduced an efficient converter for the utilization of HRES using hybrid technique. The introduced hybrid technique was the combination of adaptive grasshopper optimization algorithm (AGOA) and the artificial neural network (ANN), and hence, it was said to be as AGONN technique. In the introduced system, AGOA develops the exact control signals based on the power variation in the source and load side. ANN predicts the optimal datasets. Jasmine Kaur et al. (2019) have invented an energy management system in a grid-connected multi-microgrid network for a deregulated framework of electricity market. The novelty was optimally utilizing the available renewable energy source and maximizes the benefits of the overall multi-microgrid framework. Roy et al. (2019) have explained an intelligent technique for EMS-based recurrent neural network (RNN) and ant lion optimizer (ALO). The demand response was found by RNN, and the economic dispatch issues were solved by ALO technique.

2.1 The motivation of the research work

The review of the research work demonstrates that the power management scheme for RES is an essential contributing factor in the power system. The use of renewable generators like photo voltaic (PV), wind, etc. provides power using conventional sources with less pollution, but their implementation in grid causes several complications like circulating current, voltage harmonies, reduction in storage life, overvoltage and overcurrent in transient, etc. Apart from that other challenges like active–reactive power sharing and current sharing, power management among renewable sources and high penetration of renewable energy are required to be focused to increase the handling and working capability of microgrid. In this manner, to repay drawbacks of individual resources, a backup power supply, for example, control and regulation strategies are indispensable and vital for optimal power management in a microgrid environment. Management of power is sternly required in microgrid system. Several methods to manage power have been devised. They are fuzzy logic controller (FLC), bacterial foraging optimization algorithm (BFOA), genetic algorithm (GA), binary particle swarm optimization (BPSO) and so on. Even if the above-mentioned techniques generate the required power, they have their own merits and demerits. Here, the FLC does not require broad system modeling, but rather the drawbacks like adjustment of FLC parameters and fuzzy rules under different traffic conditions. The GA displays particular weight fluctuates with the dispersion of fitness inside a population. The drawbacks in the GA is more complex, easy to fall into premature convergence and depends on the initial population. The complexities of these algorithms are high because of the expanded number of required examples. To conquer these difficulties, advanced optimal control approaches are utilized. In the related works, few control techniques are displayed to solve the power management issue; the previously mentioned constraints have motivated to do this research work.

3 Modeling and simulation of interconnected RESs to MG with the proposed controller

The architecture model of the interconnected RES-based MG-connected system with a proposed controller is shown in Fig. 1. In the system model, the RES is the combination of the PV panel and wind turbine system and the model joins the battery storage device and DC–DC energy converters with the proposed AWOA controller and loads. At first, the electrical energy made from the RESs (PV and wind) which began from nature which can be passed on especially from the MG. Here, the segments of the architecture are interconnected by the DC energy converter and compile the energy acquired by both PV and wind systems, while the energy is spilling out to the load and MG over an AC–DC converter. In the system, the PV system is just a number of PV panel in like way the wind turbine exists of a permanent magnet synchronous generator (PMSG) and a rectifier. In this manner, the battery is associated with a DC converter by a procedure for a DC–DC bidirectional converter.

Fig. 1
figure 1

Architecture of MG-connected system-based HRES with the proposed AWO-ANFIS controller

In the present work, the converter of the system is overseen by the conventional MPPT controller. Here, there is a need of DC–DC converter for the battery to control the degree of discharging influence and to direct the supply of charging current to the battery. Toward the fulfillment of this assignment, the mathematical model and the configuration of MG-connected systems, such as source side and grid side, and the MPPT control design have been considered from Caisheng Wang and Nehrir (2008), and the proposed converter and the controller configuration are explained in the accompanying section.

3.1 Design and modeling of the proposed HCR DC–DC converter

In the interconnected RES-based MG system, most of the time, the power deficiency is caused by using the PV and wind system based on the variable sunlight and atmosphere condition. For taking care of this circumstance, the majority of the mechanical businesses utilized the traditional converters such as buck, boost and buck–boost for tracking the maximum power. Nonetheless, these converters are not exceptional to track most extraordinary power in alterable atmosphere conditions.

To overcome these issues, the proposed method employed the integrated high conversion ratio (HCR) DC–DC converter with an MPPT controller. In this research, the role of the proposed HCR DC–DC converter is the disposal of high switch voltage stress and the integration of the converter effectiveness. The contribution of the converters is sourced by PV panels, and the output of the converters is associated with a resistive load. The proposed converter is the integrated model of the series-capacitor (SC) HCR DC–DC converter (Kim et al. 2018). The operation of the proposed converter is similar to the existing SC HCR DC–DC converter. But, the overall size of the components in the proposed converter is lower than that of the SC HCR DC–DC converter. The integrated circuit model of the proposed DC–DC converter is obviously shown in Fig. 2.

Fig. 2
figure 2

Circuit diagram of an integrated HCR DC–DC converter

Owing to the series connection of \( C_{1} \) and \( C_{2} \), \( V_{{C_{2} }} \) becomes \( V_{\text{in}} - V_{{C_{1} }} \). Moreover, \( C_{1} \) and \( C_{2} \) are connected in parallel with \( V_{\text{in}} \). Consequently, before the start-up, the capacitors are charged, and also, during the start-up, the switch voltages do not increase. Although, when compared with the existing SC HCR converter, the proposed converter has one more capacitor \( C_{4} \), the size of the overall components is lower in the proposed converter. So, the proposed converter generates efficient results than the existing technique. The key waveform of the proposed converter is shown in Fig. 3, and the detailed operation modes are illustrated in Fig. 4. The proposed converter has three operation modes similar to the existing SC HCR converter. The operating principle of the proposed DC–DC converter is delineated in the section follows.

Fig. 3
figure 3

Modes of operation of the proposed converter: a Mode I, b Mode II, c Mode III

Fig. 4
figure 4

Proposed controller scheme of HCR DC–DC converter

3.1.1 Operating principle of the proposed converter

The operating principle of the proposed HCR DC–DC converter has three modes of operation. The obvious operations of three modes are depicted as follows.

(a) Mode I In this mode, the switch \( S_{1} \) is turned on and the diode \( D_{2} \) is conducted, whereas the diode \( D_{1} \) is not conducted which is shown in Fig. 3a. The switched inductance \( \delta_{1} \) (\( L_{{S_{1} }} ,\,L_{{S_{2} }} ,\,D_{{S_{1} }} ,\,D_{{S_{2} }} ,D_{{S_{3} }} \)) is charged through \( S_{1} \), whereas the current of switched inductance \( \delta_{2} \) (\( L_{{S_{3} }} ,\,L_{{S_{4} }} ,\,D_{{S_{4} }} ,\,D_{{S_{5} }} ,D_{{S_{6} }} \)) freewheels through the diode \( D_{2} \). Owing to \( I_{{\delta_{1} }} \), \( C_{1} \) and \( C_{2} \) are charged and discharged, respectively.

(b) Mode II In this mode, \( D_{1} \) and \( D_{2} \) are conducted, whereas \( S_{1} \) is turned off which is shown in Fig. 3b. The two inductor currents (\( I_{{\delta_{1} }} \) and \( I_{{\delta_{2} }} \)) freewheel through the diodes \( D_{1} \) and \( D_{2} \), and there is no current flow in \( C_{1} \) and \( C_{2} \).

(c) Mode III In mode 3, \( D_{1} \) is conducted, whereas S1 is turned off and \( D_{2} \) is not conducted which is shown in Fig. 3c. The inductor current \( I_{{\delta_{1} }} \) continues freewheeling through the diode \( D_{1} \) and \( \delta_{2} \) is discharged, respectively. In this mode, the sum of the two inductor currents (or output current) flows through the diode.

The proposed converter has an efficient voltage gain than the existing SC HCR converter. Furthermore, owing to the charge balance condition of the capacitors \( C_{1} \) and \( C_{2} \), the proposed converter retains the intrinsic inductor current balancing feature of the SC HCR converter; thus, the two inductor currents share the output current \( I_{\text{o}} \).

3.1.2 The control structure of the proposed HCR DC–DC converter

This section describes the proposed control structure of the DC–DC converter for the optimal utilization of the interconnected resources. The control structure of the DC–DC converter involves main blocks named as a power controller and a linear current controller which are utilized for real-time self-tuning of the power control parameters.

  1. (a)

    Power control strategy

In this section, the power stream between the microgrid and the utility to the extent of providing controlled active and reactive power to the load is controlled by utilizing this procedure. As per Fig. 4, the two PI controller-based proposed power controllers are portrayed in the left section of the figure. Here, the external control loop is represented by the proposed controller, whereas the reference current vectors \( I_{D}^{*} \) and \( I_{Q}^{*} \) are produced through these employed control loop. In this paper, the AWO-ANFIS control strategy is presented for the ideal use of the interconnected RES-based MG unit; the active and reactive power are the main control objectives which must be achieved at the load change condition. In this mode, the active and reactive power output of the inverter is balanced by the controller based on its reference values of \( p_{\text{ref}} \) and \( \beta_{\text{ref}} \); besides with a specific end goal to discharge qualified reference current vectors, the optimal control parameters are given by the AWO-ANFIS control scheme. The reference current vectors are communicated based on the \( DQ \) reference frame, and the PI regulators are expressed as follows,

$$ I_{D}^{*} = (p_{\text{ref}} - p_{\text{inv}} )\,(G_{pp} + G_{ip} /s) $$
(1)
$$ I_{Q}^{*} = (\beta_{\text{ref}} - \beta_{\text{inv}} )\,(G_{pQ} + G_{iQ} /s) $$
(2)
  1. (b)

    Current control strategy

In this section, the precise tracking and short drifters of the inverter output current are guaranteed by the controller. As per Fig. 4, a synchronous reference frame-based current control loop configuration is delineated in the right section of the figure. This controller is typically used so that the voltage is applied to the inductive \( R - L \) impedance so a drive current in the inductor has a minimum error. Here, the voltage phase angle in the control scheme is identified by the phase-locked loop (PLL) block, and furthermore, the current error is disposed through the two PI regulators. Also, the steady-state and dynamic performance of the system is enhanced by the inverter current loop and the grid voltage feed-forward loop. Therefore, the reference voltage signals in the \( DQ \) frame are represented by the output signals of the controller. The reference voltage signals in the synchronous \( DQ \) frame can be expressed as follows,

$$ \left[ {\begin{array}{*{20}c} {V_{D}^{*} } \\ {V_{Q}^{*} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} { - (G_{p} .\,I_{D} + \omega L_{s} .I_{Q} )} \\ {\omega L_{s} .\,I_{D} - G_{\alpha } .\,I_{Q} } \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} {G_{p} .\,I_{D}^{*} } \\ {G_{p} .\,I_{Q}^{*} } \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} {G_{i} .\,\delta_{D} } \\ {G_{i} .\,\delta_{Q} } \\ \end{array} } \right] + \left[ {\begin{array}{*{20}c} {V_{sD} } \\ {V_{sQ} } \\ \end{array} } \right] $$
(3)
$$ \frac{{{\text{d}}\delta_{D} }}{{{\text{d}}t}} = I_{D}^{*} - I_{D} \quad \frac{{{\text{d}}\delta_{Q} }}{{{\text{d}}t}} = I_{Q}^{*} - I_{D} \quad $$
(4)

The above equation can be transformed into \( xy \) the stationary frame by using Clarke’s transformation which is expressed as follows,

$$ \left[ {\begin{array}{*{20}c} {V_{x} } \\ {V_{y} } \\ {V_{0} } \\ \end{array} } \right] = \frac{2}{3}\left[ {\begin{array}{*{20}c} {V_{x} } \\ {V_{y} } \\ {V_{z} } \\ \end{array} } \right]\left[ {\begin{array}{*{20}l} 1 \hfill & { - 0.5} \hfill & { - 0.5} \hfill \\ 0 \hfill & {0.866} \hfill & { - 0.866} \hfill \\ {0.5} \hfill & {0.5} \hfill & {0.5} \hfill \\ \end{array} } \right] $$
(5)

Furthermore, by using the low-pass filter (LPF) the inductor current is computed. In this work, the LPF is presented as a first-order transfer function which is given by:

$$ F\frac{1}{{1 + sT_{i} }} = F_{l} $$
(6)

where the output value of the filter is expressed as \( F \), the filtered value is represented as \( F_{l} \) and the constant time is denoted as \( T_{i} \).

3.2 Optimal utilization of interconnected RESs using AWO-ANFIS control scheme

This section presented the novel scheme for the optimal utilization of interconnected RESs in the MG system. For the optimal utilization, the proposed work is the combined execution of the adaptive whale optimization algorithm (AWOA) and adaptive neuro-fuzzy interference system (ANFIS). Here, the optimal dataset of the control signal for the offline way is generated by the AWOA algorithm based on the power variation between the source side and the load side. Here, the reference currents of the controller are managed based on the maximum power point tracking (MPPT) of the proposed hybrid control technique for solar and wind energy. The optimal signal for the online way is predicted through the ANFIS technique, and also, the control procedure is performed by ANFIS technique in less execution time. The description of the proposed technique is illustrated in the following section.

3.2.1 Optimal dataset generation using AWOA

The AWOA is one of the recent metaheuristic algorithms used for solving the optimization problems. This algorithm was presented by Mirjalili and Lewis Mirjalili and Lewis (2016). In this algorithm, the whales are the exceptionally wise creatures with movement. It is the remarkable chasing conduct of the humpback whales. Generally, the humpback whales chase the little fishes from the surface of the ocean. In this algorithm, the humpback whales used the bubble-net feeding strategy for one of the kinds of chasing processes. Here, the whales make an unmistakable bubble along nine molded ways by swimming around the prey. The scientific assessment of AWOA is assessed in view of encircling prey, bubble-net hunting method and search prey. In the proposed strategy, the optimization procedure starts by creating a random population of whales.

  • Step (i): Exploitation Phase (Encircling Prey)

In this initialization step, the input proportional and integral gain parameters such as \( G_{p} \) and \( G_{i} \) are randomly generated which are given as follows,

$$ X_{i} = \left[ {\begin{array}{*{20}c} {G_{p}^{11} G_{i}^{11} } & {G_{p}^{12} G_{i}^{12} } & \cdots & {G_{p}^{1n} G_{i}^{1n} } \\ {G_{p}^{21} G_{i}^{21} } & {G_{p}^{22} G_{i}^{22} } & \cdots & {G_{p}^{2n} G_{i}^{2n} } \\ \vdots & \vdots & \vdots & \vdots \\ {G_{p}^{m1} G_{i}^{m1} } & {G_{p}^{m2} G_{i}^{m2} } & \cdots & {G_{p}^{mn} G_{i}^{mn} } \\ \end{array} } \right] $$
(7)

where \( G_{p\,\,\,\,\,} \) and \( G_{i} \) are the gain parameters.

  • Step (ii) Bubble-Net Hunting Method

There are two approaches are involved in the bubble-net hunting method. They are: (1) shrinking encircling prey and (2) spiral position updating (Aljarah et al. 2016).

  1. (a)

    Shrinking encircling prey

The fitness of the population is evaluated by using the position of the shrinking encircling prey (Oliva et al. 2017). The required objective function is given in the following equation,

$$ J = {\text{Min}}\left\{ E \right\} $$
(8)

where \( J \) is the objective function value which is added with the actual objective function, t is the time and E is the error signal.

  1. (b)

    Spiral position updating

After the fitness calculation of each individual, the best optimal solution is updated according to the value of \( J \). After the updating process, the target solution \( T_{A} \) is updated if any better solution is found, i.e., i = i + 1.

  • Step (iii) Prey Search

Here, the solution of the WOA is modified by using the crossover and the mutation operator (Abualigah and Khader 2017). Here, the crossover is achieved between the two individuals, and in the mutation process, the individuals are mutated randomly based on the given fitness function. The crossover and mutation are computed as follows (Mafarja and Mirjalili 2017; Kaveh and Ghazaan 2016),

$$ {\text{Crossover}} = \frac{{\gamma_{\text{Gc}} }}{{L_{c} }} $$
(9)
$$ {\text{Mutation}} = \frac{{\lambda_{\text{pt}} }}{{L_{c} }} $$
(10)

where \( \gamma_{\text{Gc}} \) is the number of gene crossover and \( L_{c} \) is the length of the individuals, \( \lambda_{\text{pt}} \) is the mutation point and \( L_{c} \) is the length of the individual. Using the updated movement, find the fitness and check the objective function.

  • Step (iv): Termination

Check the stopping criterion. If it is not satisfied, go to step 3; else, terminate the search. Finally, the updated optimal solutions are given as follows,

$$ \left[ {\begin{array}{*{20}c} {E^{11} } & {E^{12} } & \cdots & {E^{1n} } \\ {E^{21} } & {E^{22} } & \cdots & {E^{2n} } \\ \vdots & \vdots & \vdots & \vdots \\ {E^{m1} } & {E^{m2} } & \cdots & {E^{mn} } \\ \end{array} } \right] = \left[ {\begin{array}{*{20}c} {G_{p}^{11} G_{i}^{11} } & {G_{p}^{12} G_{i}^{12} } & \cdots & {G_{p}^{1n} G_{i}^{1n} } \\ {G_{p}^{21} G_{i}^{21} } & {G_{p}^{22} G_{i}^{22} } & \cdots & {G_{p}^{2n} G_{i}^{2n} } \\ \vdots & \vdots & \vdots & \vdots \\ {G_{p}^{m1} G_{i}^{m1} } & {G_{p}^{m2} G_{i}^{m2} } & \cdots & {G_{p}^{mn} G_{i}^{mn} } \\ \end{array} } \right] $$
(11)

Once the above steps of the algorithm are completed, the system is able to select the optimal utilization of HRES based on the optimal gain parameters and the limited error.

3.2.2 Control pulse generation using ANFIS

The ANFIS is one of the AI techniques which combine both the fuzzy logic and the artificial neural networks. The adaptive NF interference system is illustrated in Fig. 5. The ANFIS technique consists of five phases (Selvara 2017). They are rule base, database, a decision-making unit, a fuzzification interface and a defuzzification interface. Here, five network layers are used to generating these five phases.

Fig. 5
figure 5

Structure of the ANFIS

  • Layer 1 Layer 1 consists of a number of nodes whose activation functions are triangular functions.

  • Layer 2 The minimum values of the inputs are selected by this layer.

  • Layer 3 Each input is normalized by this layer with respect to the others.

  • Layer 4 In this layer, the output of ith node is a linear function of the output of ith node generated from the third layer and the ANFIS input signals.

  • Layer 5 All the incoming signals are summed up by this layer. Based on the least square error estimation and the backpropagation algorithm, the ANFIS structure can be automatically tuned.

In the proposed approach, the previously detected gain parameters are given as input of the ANFIS. The output of the ANFIS is the optimal control pulse. Based on these corresponding inputs and the output values, the ANFIS is trained (Nürnberger et al. 1999). The structure and the training process of the ANFIS are depicted as follows.

3.2.2.1 A proposed structure of ANFIS

First Layer In the first layer of ANFIS, the gain parameters \( G_{p} \) and \( G_{i} \) are multiplied by corresponding weights such as \( W_{yz}^{3} ,W_{y}^{2} \) and \( W_{ab}^{2} \) of ANFIS which are mapped through a fuzzy logic membership functions. For every parameter, the fuzzy logic functions are chosen to be triangle-shaped.

Second Layer By determining the firing strengths of the rules, a minimum error value of three input weights is computed in the second layer which is given as follows,

$$ W_{i} = \hbox{min} (W_{bc}^{3} (SE),W_{b}^{2} (I_{Q} ),W_{ab}^{2} (I_{Q}^{*} )) $$
(12)

Third Layer The normalization process of the weight values are computed in the third layer. The ratio between the strength of the kth rule and sum of the firing strengths is known as the normalized value of the firing strengths, which are expressed as follows (Yadegaridehkordi et al. 2018),

$$ \bar{W}_{i} = \frac{{W_{i} }}{{\sum {W_{i} } }} $$
(13)

Fourth Layer The defuzzification adaptive nodes are computed in the fourth layer. The output of the fourth layer is computed as follows,

$$ \bar{W}_{k} = \alpha_{i} x + \beta_{i} y + ( - \chi_{i} z) + r_{i} $$
(14)

The output of the fourth layer can be defined as follows,

$$ Y_{4} = \bar{W}_{i} f_{i} = \bar{W}_{i} (\alpha_{i} x + \beta_{i} y + ( - \chi_{i} z) + r_{i} $$
(15)

where \( \alpha = \beta = \chi = 0 \), so the output of layer 4 can be rewritten as,

$$ Y_{4} = \bar{W}_{i} f_{i} = \bar{W}_{i} (r_{i} ) $$
(16)

Fifth Layer The weighted output of the consequent parameter’s summation value is the output of the fifth layer and it is expressed as follows,

$$ Y_{5} = \sum\limits_{i} {\bar{W}_{i} f = \frac{{\sum\nolimits_{i} {\bar{W}_{i} f} }}{{\sum\nolimits_{i} {\bar{W}_{i} } }}} $$
(17)

Finally, the ANFIS generate the beneficial control pulses and the corresponding parameter for those pulses after completing the algorithm. The structure of the proposed hybrid technique is depicted in Fig. 6.

Fig. 6
figure 6

Flowchart of the proposed AWO-ANFIS technique

4 Simulation results and discussions

In this section, the simulation evaluation of the optimal utilization of interconnected renewable energy resources with the proposed AWO-ANFIS control technique is described. Here, the optimal generation of the control signal is handled by the AWO-ANFIS controller; after that, the signal is exchanged to both MPPT controllers of PV and wind generating system and also for the proposed converter. Based on the PV, wind and battery converter output, the performance of the proposed is evaluated. Here, the performance of the proposed AWO-ANFIS technique is compared with that of the existing techniques such as genetic algorithm (GA) (Duan et al. 2015; Mohamed Imran and Kowsalya 2014), particle swarm optimization algorithm (PSO) (Prince et al. 2018; Rezaee Jordehi et al. 2015) and the whale optimization algorithm (WOA) (Sahu et al. 2018). Moreover, the performance of the proposed method is tested in the MATLAB/Simulink working platform by using different case studies.

  • Case 1: Variation of irradiance under constant Wind Speed

Case study 1 illustrates the variation of irradiance under constant wind speed which is clearly illustrated in Fig. 7. Here, Fig. 7a illustrates the variation of irradiance and Fig. 7b shows the constant wind speed. Gain from this figure, the irradiance and the wind speed are plotted between the time intervals of 0 s and 1 s. In those figures, by varying irradiance under constant wind speed the performance of the proposed technique is evaluated.

Fig. 7
figure 7

Variation of irradiance under constant wind speed: a Irradiance. b Wind speed

Figure 8 illustrates the current, voltage and power of the proposed PV, wind and the battery system under constant wind speed. Here, Fig. 8a shows the PV current which has been plotted between the time intervals of 0 and 1 s. Here, the PV current is varied between the time intervals of 0.1 and 1 s. The current signal of the wind is illustrated in Fig. 7b and this signal is plotted between the time intervals of 0 and 0.28 s; after that, it remains constant. The current signal of the battery is illustrated in Fig. 8c, and in that plot, the curve reaches the maximum value of 330 A, and till the end of the operation, the signal is slightly reduced and reaches the 300 A.

Fig. 8
figure 8

Performance of PV power under variation of irradiance: a PV current, b wind current, c battery current, d PV voltage, e wind voltage, f battery voltage, g PV power, h wind power and i battery power

Likewise, Fig. 8d illustrates the PV voltage which has been plotted between the time intervals 0 and 1 s. The generated voltage signal of the PV is varied between the time intervals of 0.1 and 1 s. The voltage signal of the wind is illustrated in Fig. 8e, and this signal is plotted between the time intervals of 0 and 0.29 s. The voltage signal of the battery is illustrated in Fig. 8f, and in that plot, the curve reaches the maximum value of 17.5 V, and till the end of the operation, the signal is slightly reduced and reaches the 16.59 V.

Similarly, Fig. 8g illustrates the PV power which is also plotted between the time intervals 0 and 1 s. The generated voltage signal of the PV is varied between the time intervals of 0.1 and 1 s; before that, it was constant. The power signal of the wind is illustrated in Fig. 8h, and this signal is plotted between the time intervals of 0 and 1 s. The power signal of the battery is illustrated in Fig. 8i, and in that plot, the curve reaches the maximum value of 5500 W, and till the end of the operation, the signal is slightly reduced and reaches the 5000 W.

The performance of the dynamic response of the current, voltage and power of the grid, load and inverter is illustrated in Fig. 9. Here, the currents of the grid, load and inverter are illustrated in Fig. 9a–c; these three plots are varied between the time intervals of 0.1 and 1 s. The maximum values of the current in the grid and load are 3A, 200A and 400A, respectively. The voltage signals of the grid, load and inverter are illustrated in Fig. 9d–f; these three voltage signals are varied between the time intervals of 0.1 and 1 s. The maximum values of the voltage in the grid and load are 750 V, 750 V and 10 V, respectively. The power signals of the grid, load and inverter are illustrated in Fig. 9g–i; these three power signals are varied between the time intervals of 0 and 1 s. The maximum values of the power in the grid, load and inverter are 3000 W, 12000 W and 6000 W, respectively.

Fig. 9
figure 9

Performance of the proposed technique under constant wind speed: a grid current, b load current, c inverter current, d grid voltage, e load voltage, f inverter voltage g grid power, h load power and i inverter power

Figure 10 shows the performance of the current, voltage and power of the PV, wind and battery by using the AWO-ANFIS control scheme. The current signals of the PV, wind and battery are delineated in Fig. 10a–c. In these three plots, the signal is plotted between the instants of 0 and 1 s. The maximum values of the current in the PV, wind and battery are 138 A, 9.99 × 104 A and 340 A, respectively. Likewise, the voltage signals of the PV, wind and battery are delineated in Fig. 10d–f. In these three plots, the signal is plotted between the instants of 0 and 1 s. The maximum values of the voltage in the PV, wind and battery are 17.5 V, 17 V and 18 V, respectively. Similarly, the power signals of the PV, wind and battery are delineated in Fig. 10g–i. In these three plots, the signal is plotted between the instants of 0 and 1 s. The maximum values of the current in the PV, wind and battery are 2300 W, 6 W and 5100 W, respectively.

Fig. 10
figure 10

Performance of the converter using AWO-ANFIS: a PV current, b wind current, c battery current, d PV voltage, e wind voltage, f battery voltage, g PV power, h wind power and i battery power

The power comparison of the PV, wind, battery and load is clearly depicted in Fig. 11. Here, the power of the proposed technique is maintained by using AWO-ANFIS control scheme, and also, the performance of the proposed method is compared with that of the GA, PSO and WOA (Aljarah et al. 2016) approach. The individual power of PV is illustrated in Fig. 11a; here, the proposed AWO-ANFIS approach has high power when compared with the existing methods during the time intervals of 0.56 to 0.6 s.

Fig. 11
figure 11

Individual power comparison using AWO-ANFIS: a PV power, b wind power, c battery power, d load power

The maximum power value of the proposed scheme is 1580 W. In the remaining instants, the power value of all the techniques is similar. The individual power of wind is illustrated in Fig. 11b; here, the proposed AWO-ANFIS approach has high power during the time intervals of 0.56 to 0.6 s. The maximum power value of the proposed scheme is 275 W. The individual power of the battery is illustrated in Fig. 11c; here, the proposed AWO-ANFIS approach has high power during the time intervals of 0.8 to 1 s; here, the maximum power value in the battery is 5300 W. The power of the load is illustrated in Fig. 11d.

  • Case 2: Variation of wind speed under constant irradiance

In this section, case study 2 delineated the variation of PV power under constant irradiance which is clearly illustrated in Fig. 12. Here, Fig. 12a illustrates the variation of wind speed and Fig. 12b illustrates the constant irradiance. Learning from this figure, the irradiance and the wind speed are plotted between the time intervals 0 s and 1 s.

Fig. 12
figure 12

Variation of wind speed under constant irradiance: a wind speed, b irradiance

Figure 13 illustrates the performance of the proposed method under constant irradiance which has been including the current, voltage and power of the proposed PV, wind and the battery system. Here, Fig. 13a, d, g shows the current, voltage and power of the PV which has been plotted between the time intervals 0 and 1 s. The maximum value of the current, voltage and power of PV is 80A, 60 V and 4800 W, respectively. Likewise, the current, voltage and power of the wind are illustrated in Fig. 13b, e, h which have been plotted between the time intervals 0.2 and 0.8 s, 0.2 and 0.82 s and 0 and 1 s, respectively.

Fig. 13
figure 13

Performance under variation of wind speed: a PV current, b wind current, c battery current, d PV voltage, e wind voltage, f battery voltage, g PV power, h wind power and i battery power

The maximum value of the current, voltage and power of the wind is 16A, 70 V and 4500 W, respectively. Similarly, the current, voltage and power of the battery are illustrated in Fig. 13c, g, i which have been plotted between the time intervals 0 and 1 s. The maximum value of the current, voltage and power of the battery is 280A, 17.52 V and 4600 W, respectively.

The performance of the dynamic response of the current, voltage and power of the grid, load and inverter is illustrated in Fig. 14. Here, the currents of the grid, load and inverter are illustrated in Fig. 14a–c; these three plots are varied between the time intervals of 0.1 and 1 s. The maximum values of the current in the grid and load are 3 A, 190 A and 420 A, respectively. The voltage signals of the grid, load and inverter are illustrated in Fig. 14d–f; these three voltage signals are varied between the time intervals of 0.1 and 1 s. The maximum values of the voltage in the grid and load are 700 V, 750 V and 10 V, respectively. The power signals of the grid, load and inverter are illustrated in Fig. 14g–i; these three power signals are varied between the time intervals of 0 and 1 s. The maximum values of the power in the grid, load and inverter are 3000 W, 12000 W and 6000 W, respectively.

Fig. 14
figure 14

Performance of the proposed technique under variation of wind speed: a grid current, b load current, c inverter current, d grid voltage, e load voltage, f inverter voltage g grid power, h load power and i inverter power

Figure 15 shows the performance of the current, voltage and power of the PV, wind and battery by using the AWO-ANFIS control scheme. The current signals of the PV, wind and battery are delineated in Fig. 15a–c. In these three plots, the signal is plotted between the instants of 0 and 1 s. The maximum values of the current in the PV, wind and battery are 135 A, 9.99 × 104 A and 275 A, respectively. Likewise, the voltage signals of the PV, wind and battery are delineated in Fig. 15d–f. In these three plots, the signal is plotted between the instants of 0 and 1 s. The maximum values of the voltage in the PV, wind and battery are 17.5 V, 17 V and 17.8 V, respectively. Similarly, the power signals of the PV, wind and battery are delineated in Fig. 15g–i. In these three plots, the signal is plotted between the instants of 0 and 1 s. The maximum values of the current in the PV, wind and battery are 2400 W, 4.4 W and 4400 W, respectively.

Fig. 15
figure 15

Performance of the converter using AWO-ANFIS: a PV current, b wind current, c battery current, d PV voltage, e wind voltage, f battery voltage, g PV power, h wind power and i battery power

The power comparison of the PV, wind, battery and load are clearly depicted in Fig. 16. Here, the power of the proposed technique is maintained by using AWO-ANFIS control scheme, and also, the performance of the proposed method is compared with that of the GA, PSO and WOA approach. The individual power of PV is illustrated in Fig. 16a; here, the proposed AWO-ANFIS approach has high power when compared with the existing methods during the time intervals of 0.5 to 0.7 s. The maximum power value of the proposed scheme is 1999 W. In the remaining instants, the power value of all the techniques is similar. The individual power of wind is illustrated in Fig. 16b; here, the proposed AWO-ANFIS approach has high power during the time intervals of 0.5 to 0.6 s. The maximum power value of the proposed scheme is 360 W. The individual power of the battery is illustrated in Fig. 16c; here, the proposed AWO-ANFIS approach has high power during the time intervals of 0.2 to 1 s; here, the maximum power value in the battery is 4500 W. The power of the load is illustrated in Fig. 16d.

Fig. 16
figure 16

Individual power comparison using AWO-ANFIS: a PV power, b wind power, c battery power, d load power

  • Case 3: Load variation under constant irradiance and wind speed

Case 3 shows the load variation of current, voltage and power under constant irradiance and wind speed which are clearly depicted in Fig. 17. Here, Fig. 17a–c illustrates the current, voltage and power of the load and Fig. 17d, e illustrates the constant irradiance and wind speed. At the time of constant irradiance and wind speed, the maximum values of the load current, voltage and power are 200A, 600 V and 12000 W, respectively. After reaching the maximum value, the current, voltage and power of the load are going constantly till the end of the operation.

Fig. 17
figure 17

Performance of load under constant irradiance and wind speed of a load current, b load voltage, c load power, d irradiance and i wind speed

4.1 Comparative analysis

Table 1 includes a classification of the comparative measures for optimization algorithm (Beiranvand et al. 2017). The best function value of the proposed method is illustrated in Fig. 18. This figure includes the function value of the four methods such as GA, PSO, WOA and the proposed AWO-ANFIS. In this plot, all the four methods are starts well, but after some function evaluation, the value is decreased. Initially, the method GA starts well and it is decreased about 300 function evaluations, while the method PSO shows a steady decrease for about 800 function evaluations. The method WOA decreased after 300 function evaluation. In this plot, the proposed method has the best function value.

Table 1 Comparative analysis
Fig. 18
figure 18

Convergence plot

The computational accuracy profile is illustrated in Fig. 19. In this plot, the proposed AWO-ANFIS approach has a better accuracy than the existing approaches. The proposed method has greater than 90% of accuracy than the existing method. The statistical analyses of the various approaches are illustrated in Table 2 which includes the mean, median and the standard deviation. The computational time of the proposed and the existing approaches is illustrated in Table 3. The efficiency comparison of power sources under three cases of the proposed and existing techniques is tabulated in Table 4. Table 4 clearly explains the proposed technique efficacy in all the cases with optimal efficiency results. The efficiency is the energy output, divided by the energy input and expressed as a percentage. At last, it is concluded that the proposed technique is efficient in all the cases by means of reduction in errors and statistical measures. The proposed method gives optimal results when compared with other existing techniques.

Fig. 19
figure 19

Accuracy profile

Table 2 Statistical analysis of various techniques
Table 3 Computation time using various trails
Table 4 Efficiency comparison of HRES power under all cases

5 Conclusions

In this dissertation, based on multi-objective optimization, a high-performance AWO-ANFIS control scheme is proposed. The initial-level control scheme describes the optimal dataset generation of the control signal for the offline way based on the power variation between the source side and the load side to achieve minimum power loss. The second-level control scheme predicted the optimal signal for the online way, and also, the control procedure is lead in less execution time. This control scheme takes MG minimum error as an objective to determine the optimal utilization of interconnected RES of MGs. To solve the proposed model, a hybrid method of AWO-ANFIS control scheme is applied. The simulation results show that when MGs are integrated with AWO-ANFIS control scheme, the whole MG systems are optimized in better way. The cost and the error of the system are reduced by this model. In the simulation section, the existing techniques such as GA, PSO and WOA are compared with the proposed AWO-ANFIS approach for the performance analysis by using the three types of case studies (i) variation of irradiance, (ii) variation of wind speed and (iii) variation of load. For all the cases, the proposed technique exhibits better performance in terms of current, voltage and power signal. The proposed method is implemented by using MATLAB/Simulink working platform. This paper provides a positive reference for the application and expansion of future optimization-based MG systems.