1 Introduction

Microgrid is an energy-efficient and cost-effective system for sustainable development in power market, but its functioning involves several challenges. Efficient and optimal allocation of existing resources becomes a challenge for real-time energy management as generations are distributed and intermittent in a microgrid. Generations by renewable energy resources (RERs) are sporadic which leads to power outage depending on environmental conditions (e.g., solar power output will be very trivial in cloudy condition or at night and wind does not blow consistently throughout the day). Hence, conventional power generations are included in microgrids to avoid power disturbance due to natural deviations in RERs [1]. Resource allocation is a part of energy management strategy that considers availability of all generations at any particular load level and allocates these generations most suitably to supply the loads subject to any predetermined objective.

There are several areas regarding economic aspects of microgrid operation and planning which are discussed below.

1.1 Literature Review

Resource allocation accords with allocating suitable power source to a load depending on availability at minimum operating costs and any other predefined condition which may be related to environmental concerns also [2, 3]. Due to economical, environmental and technical issues in allocating suitable energy source, resource allocation continues to become a critical issue in microgrids.

In the literature, there exist numerous methods for economically allocating and utilizing available energy resources in context of microgrids usually designated as energy management system (EMS) [4,5,6,7,8,9,10,11,12,13,14] and [16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33], while an exhaustive review of different EMSs has been presented in [15]. The brief overviews of existing methods are examined in Table 1.

Table 1 Different existing methods for utilizing available resources in microgrid

Optimal power flow problem is solved by mixed-integer nonlinear programming approach in [38] which proves to be computationally efficient. Particle swarm optimization (PSO) is the most commonly used heuristic method because its implementation needs only consideration of few parameters, but it may not converge always with optimal feasible solution for EMS in microgrid [39].

An optimization-based resource allocation is proposed in [37] where genetic algorithm (GA) is used to select a suitable route from source to a certain load and optimizes a cost function based on distance but is applicable only for smart grids with transshipment network. And most significantly, it assumes power will flow through the optimized path irrespective of the physical constraints of the network. An optimal resource allocation algorithm is proposed in [40] which maximizes energy flow through shortest path and decides shortest path between each generator and load using GA by assuming that flow through shortest path between generator and load pair will lead to system loss minimization.

There are some limitations with the above-mentioned energy management methods:

  • Execution of control scheme-based energy management techniques is an intricate task as large numbers of control devices are requisite which needs efficient computational techniques.

  • A scheduling scheme develops into tedious procedure in heterogeneous environment as a consequence of changed operating conditions.

  • Load-classifying methods depend on the type of installation and person carrying out the load scheduling exercise.

  • Methods of EMS based on programming approach have computational complexity, especially in heuristic methods.

So, this paper presents a planning framework intended for optimal resource utilization by multi-objective optimization approach. The developed framework can be useful while planning an EMS for microgrid. The proposed method of this article maximizes line flow and minimizes system loss and decides path for line flow between each generator and load pair using GA. GA is used here to solve the proposed multi-objective optimization problem due to the following advantages. GA and any other population-based algorithms have the advantage of implicit parallelism due to which it converges toward high-quality solutions. It can be easily implemented for solving multi-objective optimization problems with least probability of getting local optimal solution like some other methods. GA is suitable for combinatorial problems, while particle swarm optimization (PSO) is not fairly suitable to combinatorial problems. In PSO, particles are updated with internal velocity which is a one-way information sharing mechanism, while GA is based on genetic operators such as ‘crossover’ and ‘mutation,’ which is easily distributed. Tuning learning factors and weight factors for multi-objective PSO is much complex [17]. For solving unit commitment and economic load dispatch optimization problems, multi-objective GA has been demonstrated appropriate [17]. Hence, GA is used here to solve the optimization problem.

The difference between existing resource allocation methods of the literature and this paper is listed in Table 2.

Table 2 Difference of the proposed method and existing literature

1.2 Contributions of This Paper

This paper proposes a resource allocation method pertaining to control of power flow path through the microgrid to force power through shortest path, so as to achieve minimum active power loss. The proposed method maximizes the power flow through existing lines in context of efficient utilization of existing resources. It suggests the number of power flow controllers required to make the ensuing power flow to be relevant to the physical properties of the system, an aspect that most of the present resource allocation works ignore.

The method of resource allocation presented in this article includes the physical constraints along with power flow constraints. Due to this, it has been observed that direction of power flow by optimal resource allocation is not matching with that of based on power flow analysis in some of the line. It indicates that to implement the optimal resource allocation by the proposed method, controller installation is required at few locations. The suitable places for controller placement are being indicated by number of mismatches in paths, and the advantage of the proposed technique is that it results into such optimal paths in which placement of single controller can be sufficient for optimal resource allocation in overall network. This has been achieved by solving a multi-objective optimization problem by weighted-sum approach. By varying the weights, different Pareto-optimal solutions can be found. By using appropriate weights, every point of convex Pareto front can be achieved by the weighted sum, so it is frequently used for practical applications. Varying weights is an approach to articulate predilection for Pareto optimality. The major contributions of the proposed method are:

  • Multi-objective optimization-based planning framework is proposed for efficient utilization of available resources.

  • For optimal utilization, it proposes maximization of line capacity and minimization of systems loss.

  • Weighted-sum approach has been opted which is frequently used for practical applications.

1.3 Paper Organization

The next sections depict the proposed resource allocation methodologies in detail. Section 2 outlines and describes the mathematical problem formulation of the proposed methodology adopted for resource allocation. Section 3 demonstrates the application of the proposed method to different test systems with its benefits and limitations. Section 4 presents application of the proposed method in radial system in brief, and Sect. 5 discusses the shortcomings of the proposed method with scope of further research. Finally, Sect. 6 concludes the work.

2 Optimization Problem Formulation for Resource Allocation

There are two major operational challenges in microgrid: control strategy and power management. This paper mainly deals with allocating available resources to individual loads which comes under power management. The primary focus is to fulfill the load requirements at minimum operating cost while maximizing the use of power lines.

2.1 Capacity of Power Lines

Based on heat transfer concepts, Neher–McGrath (NM) equation is proposed for the calculation of load capability of conductors which is given by [41]:-

$$ I = \sqrt {\frac{{T_{\text{C}} - \left( {T_{\text{A}} + \Delta T_{\text{d}} } \right)}}{{R_{\text{dc}} \left( {1 + Y_{\text{c}} } \right)*R_{\text{CA}} }}} \Rightarrow I = \sqrt {\frac{{T_{\text{C}} - \left( {T_{\text{A}} + \Delta T_{\text{d}} } \right)}}{{k*L^{2} }}} $$
(1)

where \( I \) = ampacity (kA), defined as capacity of the conductor to carry power continuously (in ampere) without exceeding its temperature rating.

\( R_{\text{dc}} \) = conductor DC resistance (µΩ/ft);\( \Delta T_{\text{d}} \) = conductor temperature rise due to dielectric loss (°C);\( Y_{\text{c}} \) = loss increment due to conductor skin and proximity effects;\( R_{CA} \) = thermal resistance between conductor and ambient usually called thermal-ohm-feet (°C-ft/W);\( T_{\text{C}} \) = conductor temperature (°C);\( T_{\text{A}} \) = ambient temperature (°C);\( k \) = constant depending on \( Y_{\text{c}} \), resistivity and cross-sectional area of conductor;\( L \) = length of conductor;

From Eq. (1), it can be concluded that load-carrying capability of conductors depends on the length of the conductor. To maximize the ampacity of conductor connected between source node \( 'i' \) and load node \( 'j' \), length of conductor between buses ‘\( i \)’ and ‘\( j \)’ should be minimized.

2.2 Loss in Conductor

If two conductors of the same material and uniform cross-sectional area are connected between source node \( 'i' \) and load node \( 'j' \), then losses will be less in conductor with smaller length. Let \( L_{ij} \) denotes length of conductor between buses ‘\( i \)’ and ‘\( j \)’ then

$$ {\text{As,}}\;R_{ij} \propto L_{ij} \;{\text{and}}\;P_{{{\text{loss}}\_ij}} \propto L_{ij} $$
(2)

To minimize the active power loss, bus voltages must be maintained within the specified limits which ensure the system stability also.

2.3 Problem Formulation

The optimal resource allocation based on power flow is a multi-period problem as generator and load are time variant. Available amount of power to be allocated cannot be estimated for a long period in microgrids. Firstly, the amount of available generation throughout a day is calculated from predicted weather data and grid power availability which is known day ahead. According to the availability of generation the flexible loads are dispatched for each hour. Once the hourly generator and load patterns are available to us, the next step is to decide on the generator and load pairs that will supply and consume power. This comes under resource allocation and is the area of discussion in the present paper. The optimal resource allocation is presented in this paper for resources and loads present at a particular time slot. The proposed optimal resource allocation strategy aims for

  • Maximizing the use of capacity of the lines while satisfying constraints of the system: Maximization of capacity of lines within its limits defers the installation of new lines to the system. It may help in planning of new DERs into the system also. Further incorporation of DERs can be planned into the lines where actual line flow fall its maximum limit by a marginal value.

  • Minimizing the loss associated in dispatching power from generation to demand: Minimization of real power loss leads to reduced cost associated with loss in some way.

The objective is to maximize line flow \( ({\text{Max}}\sum P_{ij} ) \) within its limit which is indirectly related to minimization of distance \( ({\text{Min}}\sum L_{ij} ) \) according to Eq. (1) and to minimize loss \( \left( {{\text{Min}}\sum P_{{{\text{loss}}\_ij}} } \right) \) also leads to minimization of distance \( ({\text{Min}}\sum L_{ij} ) \) as mentioned in Eq. (2). For the present formulation \( P_{ij} \) represents the power flow through different branches of the microgrid.

Let \( \left( {L_{ij} } \right) \) denotes length between buses ‘\( i \)’ and ‘\( j \),’ and \( P_{ij} \) is set of decision variables in assigning source at bus ‘\( i \)’ to demand at bus ‘\( j \).’ Hence, for the proposed resource allocation objective function is given as,

$$ f = w_{1} F_{1} + w_{2} F_{2} = \hbox{min} \left[ {w_{1} *\left( {\mathop \sum \limits_{{\begin{array}{*{20}c} {i,j = 1} \\ {i \ne j} \\ \end{array} }}^{n} \left( {{\raise0.7ex\hbox{${L_{ij} }$} \!\mathord{\left/ {\vphantom {{L_{ij} } {P_{ij} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${P_{ij} }$}}} \right)} \right) + w_{2} *\left( {\mathop \sum \limits_{{\begin{array}{*{20}c} {j = 1} \\ {i \ne j} \\ \end{array} }}^{n} \left( {{\raise0.7ex\hbox{${V_{j}^{2} }$} \!\mathord{\left/ {\vphantom {{V_{j}^{2} } {R_{ij} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${R_{ij} }$}}} \right)} \right)} \right] $$
(3)

where \( n \) is the number of nodes; \( w_{1} + w_{2} = 1 \) and \( w_{1} \) and \( w_{2} \) are weights of objective function whose value depends on choice of operator. The voltage limits considered here are: \( V_{\hbox{min} } = 0.95\;{\text{pu}} \) and \( V_{ \hbox{max} } = 1.05\;{\text{pu}} \).

Subject to

  1. (a)

    Power balance at each node:

    $$ \mathop \sum \limits_{{\left( {i,j} \right) \in G}} P_{ik} - \mathop \sum \limits_{{\left( {i,j} \right) \in G}} P_{kj} = P_{k} \;\forall \;k \in V $$
    (4)
  2. (b)

    Power flow constraints:

    1. (i)

      Active power balance:

      $$ P_{gi} - P_{li} - P_{k} = 0 $$
      (5)
      $$ P_{k} = V_{k} \mathop \sum \limits_{i = 1}^{n} Y_{ki} V_{i} \cos \left( {\delta_{k} - \delta_{i} - \theta_{ki} } \right) $$
      (6)
    2. (ii)

      Reactive power balance:

      $$ Q_{gi} + Q_{ci} - Q_{li} - Q_{k} = 0 $$
      (7)
      $$ Q_{k} = V_{k} \mathop \sum \limits_{i = 1}^{n} Y_{ki} V_{i} \sin \left( {\delta_{k} - \delta_{i} - \theta_{ki} } \right) $$
      (8)
  3. (c)

    Active power generation limits:

    $$ P_{gi}^{\hbox{min} } \le P_{gi} \le P_{gi}^{\hbox{max} } $$
    (9)
  4. (d)

    PV bus voltage limits:

    $$ V_{gi}^{\hbox{min} } \le V_{gi} \le V_{gi}^{\hbox{max} } $$
    (10)
  5. (e)

    Reactive power generation limit:

    $$ Q_{gi}^{\hbox{min} } \le Q_{gi} \le Q_{gi}^{\hbox{max} } $$
    (11)
  6. (f)

    PQ bus voltage limits:

    $$ V_{i}^{\hbox{min} } \le V_{i} \le V_{i}^{\hbox{max} } $$
    (12)
  7. (g)

    Power factor limits:

    $$ 0.75 \le {\text{pf}} \le 0.95 $$
    (13)
  8. (h)

    Line capacity limits:

    $$ P_{ij}^{\hbox{min} } \le \left| {P_{ij} } \right| \le P_{ij}^{\hbox{max} } \forall \left( {i,j} \right) \in G $$
    (14)

Line capacity constraints mentioned in Eq. (14) will assign the amount of line flow near to maximum limit by optimal use of load capability of line.

Design Variables: For the proposed planning framework, line flow and bus voltages are design variables which are represented in mathematical formulation by \( P_{ij} \) and \( V_{j} \). \( L_{ij} \) is another design variable for sending power through path decided by optimization which will minimize system loss. Design variable \( L_{ij} \) will be used for installation of controllers in the system required. In existing methods [37] and [40], maximization of line capacity is proposed but without consideration of all physical constraints and operational constraints of the system. So, the method proposed in this paper considers all physical and operational constraints of system simultaneously for planning of optimal resource utilization with objectives of maximization of line capacity and minimization of system loss.

Stopping criterion: For the proposed method of multi-objective optimization, maximum number of iterations and relative change in value of objective function in 50 consecutive iterations are considered as stopping criterion. Also, if the number of infeasible solutions becomes equal to maximum stall generation (which is considered as 50 in this case), then terminate/exit the optimization process.

In this case, the number of maximum iterations is dependent on the number of design variables. If system is large, then there will be large number of design variables which will require large number of iterations for obtaining optimal solution.

Maximum iteration, k = (population size)*(number of design variables)

Relative change in objective function \( \le 1.0{\text{e}} - 04 \)

where relative change in objective

$$ function = \frac{{\left| {\left( {function value} \right)_{{at k + 1^{th} iteration}} } \right| - \left| {\left( {function value} \right)_{{at k^{th} iteration}} } \right|}}{{\left| {\left( {function value} \right)_{{at k + 1^{th} iteration}} } \right|}}\,for \, k = n \, to \, k = n + 50 $$

Population size = 200

2.4 The Algorithm

The proposed resource allocation method can be described by the following steps:

  • Step 1: Determine available generation for intermittent sources and note down demand at different buses.

  • Step 2: Perform power flow analysis by a suitable technique.

  • Step 3: Determine the shortest path between each generator and load pair obeying power flow directions using Johnson’s algorithm. These shortest power flow paths correspond to minimum active power loss for resource allocation to the individual loads.

  • Step 4: Amount of power flow at different branches is optimized to minimize system active power loss by using GA.

  • Step 5: The directions of power flow through different lines for the optimized result are compared with shortest path decided at step 3. The number of mismatches in power flow directions at the branches will decide the number of controllers required to be connected in the system to force the power to flow through the system according to the optimized flow path.

  • Step 6: If direction of power flow by GA is different than that of the shortest path between each source and load pair, then controller is required. A controller should be placed accordingly to redirect the power to flow through the optimized path.

  • Step 7: Number of controllers to be installed in the system is less than the number of mismatches in power flow direction which can be decided by careful observation of the power flow paths of Step 3 and Step 4.

  • Step 8: Cost of controllers is compared with the cost associated with reduction of loss achieved by controller placement.

  • Step 9: Finally, the resource is allocated to individual load according to the power directions after controller placement.

The flowchart of the proposed algorithm is also shown as Fig. 1

Fig. 1
figure 1

a Flowchart of the proposed algorithm. b Different modes of microgrid based on renewable generator and load demand

Based on renewable generator and load demand, there can be three different functioning modes of microgrid which is shown in Fig. 1b. When the energy harvested from renewable resources is much higher than load demand, then excess energy supplied by renewable resources will be fed to the grid through the path decided by the controllers. Excess energy generated by renewable resources will be dispatched to grid through shortest possible path decided by controllers. If controller placed in shortest path between generator and load is not available to facilitate transfer of excess energy to grid, then storage device (battery with ultra-capacitor) will operate in charging mode. In case of standalone mode of microgrid also, maintenance of excess energy will be ensured by storage devices.

3 Results and Discussion

3.1 14-Bus System

In this paper, a modified IEEE 14-bus system is used as the microgrid like used in other works as well [42]. In this test system, node 2 is assumed to be connected with a wind farm of 40-MW rated capacity and node 3 has a concentrated solar plant of 60-MW rated capacity. A new branch is added between buses 1 and 3 in this modified system. This simple modification is added in the system structure to depict the complexity in the results. The microgrid is integrated with a conventional power plant (connected to grid) at bus 1 as a backup in case if solar and wind generation is not sufficient to meet load demands. Single-line diagram of the modified test system is shown in Fig. 2 with direction of power flow through the lines.

Fig. 2
figure 2

Modified IEEE 14-bus test system

The test system data for the system are listed in Tables 3 and 4.

Table 3 Branch Data of Modified IEEE 14-Bus System
Table 4 Bus Data of Modified IEEE 14-Bus System

The proposed methodology is applied for modified IEEE 14-bus test system. The different convergence conditions of the proposed optimization technique in modified 14-bus system are summarized in Table 5, and Table 6 lists the results of line flow by power flow as well as the results of line flow and bus voltages using the proposed algorithm. Figure 3 compares the line flow achieved by the proposed method and power flow.

Table 5 Convergence results in modified 14-bus system
Table 6 Line Flow and Bus Voltages of Modified IEEE 14-Bus System
Fig. 3
figure 3

Comparison of line flow in 14-bus microgrid

We know power flow through different lines of any system depends only on physical conditions of the network, i.e., the voltages at nodes and impedances of lines. Hence, power flow always does not follow shortest path between source and load. Shortest path between each pair of source and load is determined on the basis of impedance present in the path. Paths between source and load pairs are also determined by using direction of power flow from power flow analysis. In Table 7, shortest paths based on impedance value and power flow direction are listed. From the load flow analysis, it has been observed that power flow does not follow the shortest path based on impedance between each generator and load pair. So, for each generator and load pair shortest path based on impedance is compared with that of path of power flow from load flow analysis for deciding the number and position of controller. It is clear from Table 7 that path followed in power flow analysis and shortest path based on impedance is not the same in case of generator 3 to loads 5, 6, 11, 12 and 13. Table 8 presents the resource allocation for different generations to individual loads.

Table 7 Shortest Path Based on Impedance and Power Flow Analysis (14-bus system)
Table 8 Resource Allocation for Modified IEEE 14-Bus System

Figure 4 compares optimal value of active power loss for different weights \( (w_{1} \;{\text{and}}\;w_{2} ) \) in modified 14-bus system considered as microgrid.

Fig. 4
figure 4

Comparison of active power loss in 14-bus microgrid for different weights \( (w_{1} ,w_{2} ) \)

From Fig. 4, it can be concluded that active power loss is minimum for weights \( w_{1} = 0.5 \;{\text{and}}\;w_{2} = 0.5 \) in 14-bus microgrid. Minimum system loss is \( 0.0138\;{\text{MW}} \) for \( (w_{1} = 0.5, w_{2} = 0.5) \) in 14-bus microgrid which is very less in comparison with other values of weights.

Controller Selection: From the results listed in Table 7, we see that the results of optimization violate power flow results in lines 4–5 and 10–11. That means, to force the power from generator to flow to load, we need to connect a controller between buses 2–3 and 10–11. Otherwise, physical properties of the system will not allow the flow of power in the optimized path. By placing controller, flow of power can be forced to follow the shortest path. It is clear from Table 8 that direction of power flow is different in two branches. Hence, two controllers are required to maintain the similar flow obtained by optimization. Additional cost of controllers and cost associated with losses are compared to find out the optimal number of controllers required to maintain desired power flow direction. But, if a controller is placed in lines 4–5 only, then between every pair of generator and load, direction of power flow will be through the shortest path. This will lead to an improved cost. Table 8 describes the amount of generation supplied to different loads that is final resource allocation through shortest path.

Controller Cost Estimation: If optimized amount of line flow is dispatched from generation to demand through shortest path, then losses will be minimized. Controllers are required at appropriate position for dispatching power through shortest path as the physical properties of the line parameters will force the power flow through a different path.

Let us assume cost of installing a controller be \( C_{\text{cont}} \), cost of loss initially without controller be \( C_{\text{loss}}^{i} \) and cost of loss after connecting controller be \( C_{\text{loss}}^{n} \).

$$ {\text{Total}}\;\text{cost}_{\text{old}} = \mathop \sum \limits_{t = 1}^{T} C_{\text{loss}}^{i} $$
$$ {\text{Total}}\;\text{cost}_{\text{new}} = \mathop \sum \limits_{t = 1}^{T} C_{\text{loss}}^{n} + N*C_{\text{cont}} *\frac{1}{LE} $$

where \( T = 24 \)(number of hours in a day); \( N \) is the number of controller to be installed; \( LE \) is the life expectancy of the controller in days.

By comparing total \( {\text{cost}}_{\text{new}} \) and total \( {\text{cost}}_{\text{old}} \), controller placement will be decided. If the difference between \( \sum C_{\text{loss}}^{i} \) and \( \sum C_{\text{loss}}^{n} \) is significant, then installation of controller is opted depending on cost of controller. The cost calculation has to consider the life of the controller installed and has to compare the total amount of loss reduction cost achieved by installation of this controller over the life time.

3.2 30-Bus System

Modified IEEE 30-bus system is considered an interconnected microgrid. In this test system, nodes 23 and 13 are assumed to be connected with a wind farm of 20-MW and 40-MW rated capacity, respectively. Nodes 2, 22 and 27 have a concentrated solar plant of 65-MW, 30-MW and 30-MW rated capacity, respectively. The proposed technique is applied to modified 30-bus system, and different convergence results are given in Table 9. Table 10 lists the results of line flow by power flow as well as the results of line flow and bus voltages using the proposed algorithm for 30-bus microgrid. Figure 5 shows the comparison of line flow achieved by GA and power flow. Some of power flow directions for the most optimized condition of microgrid considered in Fig. 5 are presented in Table 11. The results of resource allocation in 30-bus microgrid system are presented in Table 12. Figure 6 compares optimal value of active power loss for different weights \( (w_{1} \;{\text{and}}\;w_{2} ) \) in modified 30-bus system considered as microgrid.

Table 9 Convergence results in modified 30-bus system
Table 10 Line Flow and Bus Voltages of Modified IEEE 30-Bus System
Fig. 5
figure 5

Comparison of line flow in 30-bus microgrid

Table 11 Shortest Path Based on Impedance and Power Flow Analysis (30-bus system)
Table 12 Resource Allocation for Modified IEEE 30-Bus System
Fig. 6
figure 6

Comparison of active power loss in 30-bus microgrid for different weights \( (w_{1} ,w_{2} ) \)

From Fig. 4, it can be concluded that active power loss is minimum for weights \( w_{1} = 0.5 \;{\text{and}}\;w_{2} = 0.5 \) in 14-bus microgrid. Minimum system loss is \( 7.8570{\text{e}} - 06\;{\text{MW}} \) for \( (w_{1} = 0.5, w_{2} = 0.5) \) in 30-bus microgrid which is very less in comparison with other values of weights.

If new loads/DG sources are added/removed to the existing microgrid network, then power flow pattern changes which consequently changes the bus voltages and total system loss. But, factors involved in the objective function (shortest path between each generator and load pair and load-carrying capability of lines) will not be influenced by change in generation–load in the system. The shortest path between each generator and load pair is decided by impedance of the lines, and load-carrying capability of lines is also predefined according to their design parameters. These two factors involved with objective function of optimal resource allocation will be affected when microgrid network will be re-configured by adding/removing lines. Hence, the proposed method for optimal resource allocation can be easily applied to microgrid with updated generation–load at a particular instant as only the constraints will change [Eqs. (4) to (12)] due to generation–load modification.

3.3 Benefits and Limitations of the Proposed Technique

The proposed planning framework is a multi-objective optimization technique solved by weighted-sum approach which is very useful in practical applications. It maximizes line flow and minimizes system loss by satisfying all network constraints (physical constraints and operational constraints) simultaneously. It suggests installation of controllers in network so that power from generation to load demand can follow shortest path leading to loss minimization. The proposed optimization technique is implemented in MATLAB R2017a on a computer with Intel Core i3-2310 M CPU, 4-GB RAM, 64-bit operating system. Stopping criterion for GA is selected as: maximum number of iterations, relative change in value of objective function and number of infeasible solutions. The randomly generated solution is likely to be proved another infeasible solution; therefore, infeasible solutions are replaced by existing solutions in the proposed method. This proves the necessity and superiority of heuristic approach in solving these multi-objective problems.

The proposed planning framework is solved by GA which converges with feasible solutions in less than 80 s for two different test systems. For 14-bus microgrid system, computational time is 78.126 s, while for 30-bus microgrid system it is 79.421 s. For larger systems, computational time will be higher. So, it cannot be used for real-time application where result is needed within a minute, but it can be useful for any other application like short-term (15 min ahead), midterm or long-term planning operation of a microgrid.

3.4 Comparison of the Proposed Method by Different Optimization Techniques

The objective for the proposed planning framework is optimized by GA and FMINCON for 14-bus microgrid system and 30-bus microgrid system. ‘SQP’ algorithm is used in FMINCON, and stopping criteria are selected as: maximum iterations: 15,000, maximum function evaluations: 10,000, finite difference step size = 1e−2, function tolerance = 1e−4, constraint tolerance = 1e−3, step tolerance = 1e−2. The computational time of FMINCON is very less in comparison with GA, but FMINCON converges with local optimal solutions. The computational time by FMINCON is 2.0766 s in comparison with 78.126 s by GA in case of 14-bus system. For 30-bus system, computational time is 12.469 s with FMINCON while 79.421 s with GA.

The results are compared for line flow and bus voltage by GA and FMINCON in Table 13 and Table 14. Comparisons for different values of weights are shown in Table 13 for 14-bus microgrid system, and the same for 30-bus microgrid system is given in Table 14.

Table 13 Comparison of GA and FMINCON in 14-bus microgrid system
Table 14 Comparison of GA and FMINCON in 30-bus microgrid system

From the results of comparison presented in Tables 13 and 14, it can be observed that results optimal value attained by GA is comparable with that by power flow analysis. From Table 13, it can be examined that voltage at bus 1 \( \left( {0.9437pu} \right) \) is below the minimum specified limit \( \left( {0.95pu} \right) \) when \( w_{1} = 0.5 \) and \( w_{2} = 0.5 \) by FMINCON (in 14-bus microgrid system). So, this is not suitable for optimal planning framework. In case of 30-bus microgrid system (Table 14), line flow achieved by FMINCON is not similar to that by power flow analysis, while line flow achieved by GA is showing the similar pattern with power flow results with change in direction at few locations. It is presented in Table 14 that bus voltages have attained minimum specified limits that means system is always operating at its lower limit which is also inappropriate operating condition. Also, comparing Tables 6 and 10 with Tables 13 and 14 we see that the power flow direction corresponding to optimal solution by FMINCON for different lines widely varies from the power flow direction achieved from the power flow result which is shown in the third column of Table 6 and Table 10. Hence, a large number of controllers will be required to maintain this optimized power flow values achieved by FMINCON, which is not a feasible solution. This analysis explains the advantages of GA for optimizing the proposed objectives in planning framework. The optimization of the proposed objectives by GA is computationally exhaustive, but it may be helpful for planning of microgrid where accuracy has higher priority than computational time.

4 Application for Radial System

The proposed method when applied to any radial system results in less number of steps and faster result as the only available path between load and generator pair is the shortest path in most of the cases.

Consider a radial topology-based microgrid network as shown in Fig. 7 in which concentrated solar power plant of 90-MW rated capacity is connected at bus 5 and wind farm of 60-MW rated capacity is integrated at bus 9. The microgrid is connected to conventional grid at bus 1.

Fig. 7
figure 7

12-Bus radial system

The direction of power flow is also shown in Fig. 7. There is only one path between each generator and load pair which is the shortest path. If power flow does not follow the shortest path, then placement of controller may be decided to minimize the distance which will lead to reduction of loss. If power flows through the shortest path between each generator and load pair, then suitable resource will be allocated to each load by optimizing the line capacity.

5 Future Scope

The proposed method for optimal resource allocation in interconnected microgrid employs GA to minimize the power loss in the system by identifying the shortest path while maximizing the use of lines near their load-carrying capability. The multi-objective function used for optimal resource allocation is dependent on (a) shortest path between each generator and load pair, (b) load-carrying capability of existing lines and (c) voltages at buses present in the network. The proposed method also suggests the placement of controllers by comparing the cost of controllers and cost associated with reduction in loss.

  • If re-configuration of microgrid network is considered due to connection or removal of generation or load, that is, the change in topology of the microgrid is considered over time, and then resource allocation becomes time dependent. The term representing shortest distance between generator and load pair in the objective function [Eq. (3)] and constraints [Eq. (4) to Eq. (12)] will become a function of time which may be considered as future work. In this case, the number of constraints will increase/decrease depending upon number of lines added/removed.

  • The proposed optimal resource allocation method implements GA to solve the optimization problem whose computational efficiency may decrease for larger system. Therefore, in future, other optimization techniques may be applied to improve computational efficiency or computational time.

  • In this paper, number and location of controller is suggested, so the design and placement of appropriate controller can be future work.

6 Conclusion

This paper presents an optimization-based methodology to allocate suitable source to all individual loads present in interconnected microgrid network. GA is used to minimize the power loss in the system by identifying the shortest path while maximizing the use of lines near their load-carrying capability; this is achieved by using an objective function that depends on distance. A source is allocated to every load present in the network which corresponds to shortest path. To make the achieved optimum result applicable to the system in reality, the system physical properties need to be analyzed to check whether power can be forced through the system according to the optimal path. To accomplish this, the optimum path and power flow directions are compared to decide on number of controllers and their locations. Number of controllers that finally will be installed is decided by comparing the cost of controllers and the cost associated with reduction in loss. Hence, the local microgrid operator will have the flexibility to choose between cost reductions in terms of power loss reduction by introducing controllers which again increases cost. The method is applicable for any type of microgrid configuration whether it is interconnected or radial topology. The proposed method will become computationally exhaustive for real-time applications, but it can be useful in planning of microgrid energy management system.