1 Introduction

Wind energy is the world’s fastest growing renewable energy resource. Offshore wind farms (OWFs) can play a significant role in reducing the environmental implications of meeting the high electrical power demand of modern societies. The EU policy framework for securing 27% renewable energy and 40% reduction in greenhouse gas emissions could be met with the OWFs solution with expected growth to 65 GW by 2030 [1]. In fact, wind speed is higher and more persistent in offshore areas, thus wind turbines (WTs) can be designed for higher speed ratio and smaller weight for the same power rating. Land availability and acoustic emission, which are significant issues in on-shore wind farm design, are insignificant in the OWF design. However, the foundations, installation and maintenance costs, as well as cost of the electrical interconnection system and transmission line to the shore are significantly higher in OWFs [2]. These higher costs have demanded extensive technical developments and optimization challenges in order to reduce the levelized cost of energy (LCoE). It is estimated that LCoE could be reduced to 100 $/MWh by 2030 [1].

Conventionally, the electrical interconnection system of OWFs could be structured in different configurations such as radial, star or loop design depending on the desired reliability level. Nevertheless, probability of a fault in buried subsea (submarine) cable is very low, about 0.001/km/year [3]. In the last few decades, most of the installed OWFs have had relatively small area or utilized WTs with low power rating (≤ 4 MW). Hence, finding optimal interconnection configuration was not necessary and could be structured with a simple electrical design such as typical radial configuration.

Since large-scale OWFs have been developed in the last decade, more research works have recently conducted on the optimization of various aspect of OWF. Some studies only found the optimal electrical interconnection configuration to minimize the total trenching length by utilizing analytical methods. Reference [4] addressed different typical power collecting systems and proposed a new single return loop design to improve the reliability and minimize the cables cost. Dutta and Overbye [5] proposed a clustering-based cable design, different from the typical configurations. In a later study [6], the authors proposed various clustering methods to decrease the problem size and find the optimal configuration of each cluster by the minimum spanning tree (MST) algorithm. This study additionally proposed an algorithm to introduce intermediate splice point to minimize the total trenching length of on-shore wind farms. Similar clustering methodology based on the MST algorithm [7, 8] were proposed for OWFs by ignoring intermediate splice point due to very high splicing costs of on subsea cables. Banzo and Ramos [9] proposed a stochastic programming model to find the optimal layout of the electric power system of a real OWF in the UK. A mixed integer programing (MIP) algorithm was used and a minor cost reduction was obtained. Lumbreras and Ramos [10] proposed a similar tool with reasonable computational time to find the optimal electrical layout of OWFs by the MIP algorithm and decomposition strategies. A mixed integer linear programming (MILP) approach was utilized in [11] to minimize the total trenching length of OWFs to find optimal location of offshore substation (OS) and optimal interconnection configuration individually. Nevertheless, none of above papers could include cable dimensions in the objective function to represent a realistic optimization, due to utilizing MST or analytical optimization methods that at least require constant weights for all edges. Reference [12] proposed an improved genetic algorithm (GA) to find optimal location of WTs to minimize the wake effect and then the total trenching length without cable sizing to find optimal electrical interconnection configuration of an OWF in two individual steps. In addition, crossing subsea cables was not avoided, which may increase burying costs or difficulty in practice. On the contrary, recent large-scale OWFs utilizing WTs with higher power rating (≥ 5 MW) have created a new challenge to optimize the electrical interconnection layout (interconnection configuration and cable sizing) of the OWFs. Recently, variable cable dimension has also been considered to find the optimal electrical interconnection configuration of OWFs, where metaheuristic algorithms were utilized. Reference [13] proposed a modified approach to the traveling salesman problem (TSP) for designing a radial configuration. This study used an improved GA to find the optimal electrical network design of a large-scale OWF, while cable dimensions were considered as a radial configuration without any tapering for cables away from the OS. A binary GA was used in [14] to find the optimal electrical network of an OWF where full cable sizing was considered. However, the optimal layout was found just for the pre-clustered nodes in order to decrease the problem size and power loss as an operational cost is not considered. Hou et al. in [15] proposed an adaptive particle swarm optimization (APSO), which adjusts every individual solution to new integer solutions to solve discrete problems. In order to minimize the total cost of cables, an APSO-MST algorithm was utilized to find the optimal interconnection layout and OS location of an OWF simultaneously. However, the total power losses as well as shipping and burying costs (Csb) of subsea cables were not considered. In [16], the authors also found the optimal interconnection and transmission system of an OWF, where APSO-MST algorithm and C-means clustering method were utilized. In their recent studies [17], the optimal location of OS and optimal topology of WTs location were simultaneously found together with the optimal interconnection layout of real OWFs. The same APSO-MST algorithm was adopted to minimize wake effect and cable cost of the OWF, due to high performance of PSO to solve such continuous problems (finding the optimal locations). However, the project area of the OWFs in case study was considered increasable during the optimization process, which would not yield to fair results. On the contrary, in these studies, finding the optimal electrical interconnection configuration and cable sizing of an OWF are inherently discrete problems. Thereby, the APSO, by adjusting real values to integers, may not be the best choice, as its performance was decreased to solve such a complex problem. Furthermore, similar [14], crossing subsea cables was avoided so that no crossed edges were considered in MST, which may miss some feasible solutions.

The existing optimization methods or formulations in the literature do not seem to be completely satisfactory. This is because, finding the optimal electrical interconnection layout without cable sizing leads to over-dimensioning of the interconnecting cable system. Moreover, decreasing the problem size by any clustering method without considering integration of all WTs or utilizing an insufficient optimization algorithm for such a complex problem may result in a local optimal solution.

In this study, the optimal interconnection configuration and cable sizing of an OWF are found simultaneously to minimize the capital expenditure (CAPEX) of the AC electrical interconnection system. The main contributions of this paper are as follows:

  1. 1)

    Formulation of the OWF interconnection system with two different cable sizing methods (full and partial), offering two distinct solutions according to the seabed conditions or cable installation constraints.

  2. 2)

    Investigation of the impact of the WTs’ power ratings and Csb on the optimal layout of electrical interconnection system.

  3. 3)

    Detection and avoidance of cable crossing.

  4. 4)

    Use of the harmony search (HS) as a high performance algorithm to solve the formulated discrete optimization problem, without the need for any clustering method.

  5. 5)

    Provision of a useful tool to find the optimal interconnection layout of a large-scale OWF with any given topology, with possible adoption to on-shore wind farms.

The remainder of the paper is organized as follows. The computational complexity of this problem is investigated in Section 2. In Section 3, the HS algorithm is described. Section 4 discusses about formulating the optimization problem. The case study is introduced in Section 5. In the next section, the results are illustrated and investigated in three distinct scenarios. Finally, Section 7 summarizes the conclusions.

2 Computational complexity of the problem

The simultaneous optimal electrical interconnection configuration and cable sizing of an OWF as a discrete optimization problem is rather similar, but harder than both the traveling salesman problem (TSP) and optimizing pipe diameters in the water distribution system (WDS) problem. It is harder, because the traveling cost of each individual road (branch) in the TSP is constant, and the network configuration in the WDS problem is given according to urban design restrictions. In fact, simultaneous optimal pipe diameters design and configuration of system network in a WDS problem have never been optimized. This simultaneous optimization problem was defined as an extremely complex optimization problem [18]. Note that, these two well-known discrete optimization problems are also non-smooth and non-convex problems. Thereby, they are defined as NP-complete problems [19, 20]. However, finding the simultaneous optimal configuration and cable sizing of an OWF without any clustering method can be embedded in the category of NP-hard or at least NP-complete problem [13]. Because, including corresponding cost of cable dimensions into the objective function causes variable cost branches (edges) for each individual solution, thus creating an extremely complex and inherently intractable discrete optimization problem. Generally, these optimization problems can be regarded as a class of complex combinatorial problems that cannot be mathematically modeled, and be solve with analytical optimization algorithms or they may result in a local optimal solution. Therefore, metaheuristic optimization techniques would be required to solve such complex problems.

On the one hand, the complexity and the number of possible solutions for the optimal electrical interconnection configuration problem generally increases dramatically with factorial factor of the number of optimization variables. However, by an intuitive engineering insight, it can easily be understood that most of the possible power flow directions cannot comprise an optimal power flow path. Hence, a generalized sub-algorithm has been developed to reduce the search space of a given topology OWF, according to the location coordinates of WTs and OS with respect to each other (either symmetric or asymmetric topology of OWF). The proposed reduction sub-algorithm identifies only the feasible connecting nodes (either WTs or OS) to each individual WT with acceptable paths to the OS location. Nevertheless, any unlikely but feasible connecting nodes have been considered in the decision set. Only the paths between WTs in opposite of OS direction are not included into the decision set. Thereby, the number of feasible solutions for interconnection configuration problem can be reduced to exponential-time problem. On the other hand, adding cable sizing to the problem increases the problem complexity by an exponential-time factor. Number of possible solutions for the cable sizing problem is \(m^{N}\), where m is limited to the number of available cable dimensions (for example only three choices in partial cable sizing). The ampacity and required cable dimension of each individual branch can easily be determined after finding the interconnection configuration of each individual solution.

3 HS algorithm

Metaheuristic optimization algorithms mimic natural phenomena. They include biological evolution in the GA, physical annealing in the simulated annealing (SA), human/animal memory in the tabu search (TS) and particle swarm optimization (PSO). Reference [21] conceptualized HS algorithm as another artificial phenomenon from the musical process of searching for a perfect state of harmony such as jazz improvisation.

The HS algorithm is a new metaheuristic optimization method and has been used to tackle various optimization problems in discrete and continuous space successfully [22]. The capability of solving complex and discrete optimization problems was demonstrated by finding the most proper solution in TSP and WDS in comparison with GA and other analytical optimization methods [20, 21, 23].

The steps in the HS algorithm procedure are as follows:

Step 1:

Initialize a harmony memory (HM).

Step 2:

Improvise a new harmony from HM, or at random.

Step 3:

If the new harmony is better than the worst harmony in HM, include the new harmony in HM, and exclude the worst harmony from HM.

Step 4:

If stopping criteria are not satisfied, go to Step 2.

The parameters of the HS algorithm are the harmony memory size (HMS), harmony memory considering rate (HMCR) and pitch adjusting rate (PAR). The HMCR and PAR parameters help the HS algorithm to find improved solutions globally and locally, respectively. Recommended ranges for parameter values are 0.70-0.95 for HMCR and 0.05-0.70 for PAR, according to the frequently used values in other HS applications. Besides, according to the number of optimization variables, HMS value of 10-100 is recommended [23].

In this paper, HMS and the maximum number of iterations are assumed as N and 2N × 103, where N is the number of discrete variables in this optimization. A variable HMCR has been used where it increases with the rate of 0.0001 from 0.7 to 0.95 per iteration. However, no extra pitch adjustment has been used in this optimization problem, since it is an arbitrary operation and this adjustment is experimentally helpful just in local search of continuous problems.

A HM with HMS of four, shown in Fig. 1, is a memory location where all the solution vectors and their corresponding fitness values are stored [21]. This HM is similar to the genetic pool in the GA. Consider a jazz trio composed of fiddle, saxophone and keyboard (three optimization variables). Initially, the memory is stuffed with four random harmony vectors: (C, E, G), (B, D, A), (C, F, A), and (B, D, G) that are sorted with their corresponding aesthetic estimation.

Fig. 1
figure 1

Structure of harmony memory

Improvising procedure of a new harmony for each note is based on the following three rules [23]:

  1. 1)

    HM consideration with probability of HMCR.

  2. 2)

    Extra pitch adjustment with probability of PAR.

  3. 3)

    Random selection with probability of (1-HMCR).

Every note in HM has the same opportunity to be selected. In the improvising procedure, three instruments produce a new harmony; for example (CDA).

If evaluation of the new harmony vector is better than the worst harmony (4th rank) in HM, then the new harmony is included into the HM and the worst harmony is excluded from the HM. After ranking the HM again, this process is repeated until satisfying results according to the stopping criteria are obtained [21, 23].

4 Optimization problem

In this study, the simultaneous optimal electrical interconnection configuration and cable sizing of OWFs minimizes the trenching length and cable dimensions of a given topology. In order to minimize the investment and operational costs, the proposed optimization formulation considers both cable cost as well as the sum of shipping and burying costs (Csb), as a significant influencing term in this optimization problem.

Csb varies greatly with respect to several environmental and practical parameters in each individual OWF (e.g. seabed geology, distance to shore, burial depth, the OWF size, etc.). In this study, if practical detailed costs are provided, even a variable Csb can be applied, i.e. different value of variable Csb can be considered for each individual choice (according to its corresponding seabed condition) of the discrete decision set (Bi). However, similar to all recent studies in the literature a constant value for Csb has conventionally been considered. In different references, an extensive range of 150-1000 $/m is assigned for Csb of medium voltage (MV) cables [14, 24]. In case of adopting the proposed formulation in on-shore wind farms, laying cost itself with other additional limitation (e.g. land unavailability or other practical restrictions) can be considered as a variable cable installation cost instead of a constant cost for each individual choice of the discrete decision set (Bi).

Due to the significant influence of Csb, two methods of cable sizing are proposed as distinct scenarios. The methods are defined as follows:

  1. 1)

    Full cable sizing: the cable dimension of each branch is assigned individually according to its ampacity.

  2. 2)

    Partial cable sizing: limited number of cable dimension is considered to be available in the decision set (three available dimensions in this study). Moreover, cable dimensions of all branches on each route are identically assigned according to the ampacity of last branch before joining another route or connecting to the OS.

Note that, due to the existence of MV switchgears and junction terminals (at least three cables) below every WT, cutting the subsea cable is inevitable in electrical interconnection of wind farms, thus connecting different cable dimensions in full cable sizing method can be possible. However, cable dimension changing or utilizing more choices in the decision set of cable dimensions may increase Csb practically. Thereby, a method of partial cable sizing is also proposed in this paper.

4.1 Mathematical formulation

For integration of all WTs, during the evolutionary optimization process the WTs could be clustered randomly according to the maximum ampacity of the largest cable dimension, with different shapes and sizes in any iteration. Note that, no specific clustering method is applied before solving the optimization problem. Thereby, in this complex optimization problem, only a small difference may occur between fitness values of the global optimal and local solutions, where it may change the shape and size of clusters as well as the corresponding cable dimension of several paths. Therefore, escaping from local optimum solutions and finding the global optimal solution would be very difficult in a large problem, even with metaheuristic optimization algorithms. In fact, including the cable costs into the objective function creates variable cost branches for each individual solution, thus a complex, non-convex and non-linear optimization problem is formed. Hence, before running the optimization algorithm, the reduction sub-algorithm identifies the discrete decision set (\(B_{i} )\) of the interconnection configuration problem for each individual WT (ith). The sub-algorithm can identify \(B_{i }\) either for symmetric or asymmetric topology of the OWF, while the location coordinates of all WTs and OS are considered as given input data. After that, the OS location coordinates is considered to be set at the origin. In addition, every WT in its decision set has a chance to be connected to the OS directly, while \(B_{i}\) consists of \(k_{i}\) feasible choices that are found as follows:

$$ \left\{ {\begin{array}{*{20}l} {B_{i} = \mathop \sum \limits_{{n = 1},\, {n \ne i}}^{N + 1} \delta_{n} n} \hfill & {\forall i \in \left\{ {1, 2, \ldots , N} \right\}} \hfill \\ \quad \quad {{\text{s}}.{\text{t}}. \mathop \sum \limits_{n = 1}^{N + 1} \delta_{n} = k_{i} } \hfill & {\forall \delta_{n} \in \left\{ {0,1} \right\}} \hfill \\ \end{array} } \right. $$
(1)

where \(i\) is WT (optimization variable) index; \(n\) is the node (either WTs or OS) index; N is the number of WTs; \(k_{i}\) is the number of choices in the decision set for ith WT; N+1 represents the OS index; \(\delta_{n}\) is a binary variable [0, 1] that is assigned 1 if nth node is a feasible choice according to the reduction sub-algorithm to be selected in the decision set, otherwise 0. Since the horizontal spacing of WTs are considered greater than vertical spacing, \(\delta_{n}\) in the reduction sub-algorithm in this study is assigned as follows:

$$\delta_{n} = \left\{ {\begin{array}{*{20}l} 1 \hfill & {|\text{Re} (loc_{i} )| > |\text{Re} (loc_{n} )|\ {\rm or}\ \, loc_{n} = loc_{N + 1} } \hfill \\ 0 \hfill & { {\rm otherwise} } \hfill \\ \end{array} } \right.$$
(2)

where \(loc_{i}\) and \(loc_{n}\) are Cartesian location coordinates of ith WT and its nth feasible choice, respectively (\(loc_{i} \in {\mathbb{C}}\)).

The optimization variable of the electrical interconnection problem (\(y_{i}\)) is the index of the next connected node to ith WT. The value of this optimization variable can be chosen among the discrete decision set of ith WT (Bi) with \(k_{i}\) choices.

$$\left\{ { \begin{array}{*{20}l} {y_{i} = \mathop \sum \limits_{x = 1}^{{k_{i} }} \beta_{x} B_{i} \left( x \right)} \hfill & { \forall B_{i} \subseteq \left\{ {1, 2, \ldots , N, N + 1} \right\}, i \notin B_{i} } \hfill \\ {{\text{s}}.{\text{t}}. \mathop \sum \limits_{x = 1}^{{k_{i} }} \beta_{x} = 1} \hfill & {\forall \beta_{x} \in \left\{ {0,1} \right\}} \hfill \\ \end{array} } \right.$$
(3)

where \(x\) is the choice index of the decision set; \(\beta_{x}\) is a binary variable [0, 1] that is assigned 1, if xth choice of the decision set is chosen randomly, otherwise 0.

In order to represent an iterative output solution for the interconnection configuration problem an N-length vector (Y) has been defined as (4) for all WTs.

$$\varvec{Y} = \left\{ {y_{1} , y_{2} , \ldots , y_{N} } \right\}\quad y_{i} \ne i$$
(4)

Since a fixed voltage is assumed for all nodes, no power flow analysis is required for the interconnection system. Thereby, after finding the interconnection configuration and assigning \(y_{i}\), the ampacity of each branch (\(I_{{i , y_{i} }}\)) between ith WT and \({{y}}_{i}^{\text{th}}\) node is just determined analytically by the Network Flow method, according to the injected current of each WT (\(I_{G} )\):

$$\left\{ {\begin{array}{*{20}l} {I_{{i , y_{i} }} - \mathop \sum \limits_{j = 1}^{N} \sigma_{j, i} . I_{j, i} = I_{G} } \hfill & {\forall i, j \in \left\{ {1, 2, \ldots , N} \right\}} \hfill \\ {{\text{s}}.{\text{t}}. \,I_{{i , y_{i} }} > 0} \hfill & {\forall y_{i} \in \left\{ {1, 2, \ldots , N, N + 1} \right\} , y_{i} \ne i} \hfill \\ \end{array} } \right.$$
(5)

where \(I_{G}\) is the injected current by each WT; \(I_{j, i}\) is the ampacity of connected branch from former WT (\(j^{\text{th}}\)) to ith; \(\sigma_{j, i}\) is a binary variable [0, 1] that represents the branch connection between ith and jth WTs. \(\sigma_{j, i}\) is assigned 1 if such a connection exist, otherwise 0.

$$\sigma_{j, i} =\left\{ {\begin{array}{*{20}l} { 1 } \hfill & {y_{j} = i} \hfill \\ { 0} \hfill & {y_{j} \ne i} \hfill \\ \end{array} } \right.$$
(6)

In the full cable sizing method, the assigned cable dimension \(\left( {cs_{i} } \right)\) of each branch is found individually with respect to its ampacity (\(I_{{i , y_{i} }}\)) for each particular configuration. In the partial cable sizing method, the number of cable dimensions in the decision set is limited (three available dimensions in this paper) and the cable dimensions of all branches of each route are assigned according to the ampacity of last branch before joining another route or connecting to the OS for each particular configuration.

$$\left\{ {\begin{array}{*{20}l} {cs_{i} = \mathop \sum \limits_{d = 1}^{m} \lambda_{i} \left( {a_{d} } \right)a_{d} } \hfill & {\forall cs_{i} , a_{d} \in A} \hfill \\ {{\text{s}}.{\text{t}}. \mathop \sum \limits_{d = 1}^{m} \lambda_{i} \left( {a_{d} } \right) = 1 } \hfill & {\forall \lambda_{i} \in \left\{ {0,1} \right\}} \hfill \\ \end{array} } \right.$$
(7)

where d is the element index of the set of available cable dimensions (\(A\)); m is the number of available dimensions in the set of subsea cables; \(a_{d}\) is the dimension of dth element; \(cs_{i}\) is the assigned cable dimension for ith WT; \(\lambda_{i} \left( {a_{d} } \right)\) is a binary variable [0, 1] of ith WT that represents dth cable dimension index, assigned 1 as defined in (7), otherwise 0.

$$\lambda_{i} \left( {a_{d} } \right) = \left\{ {\begin{array}{*{20}l} {1} \hfill & {I_{d - 1}^{ \hbox{max} } < I_{{i , y_{i} }} \le I_{d}^{ \hbox{max} } } \hfill \\ {0} \hfill & {{\rm otherwise}} \hfill \\ \end{array} } \right.$$
(8)

where \(I_{d}^{ \hbox{max} }\) is the admissible ampacity of dth index of subsea cable set. In order to represent an output solution for the cable sizing problem, a second N-length vector (CS) has been defined as follows:

$$\varvec{CS} = \left\{ {cs_{1} , cs_{2} , \ldots , cs_{N} } \right\}$$
(9)

Table 1 shows the output vectors (Y and CS) of an individual solution corresponding to the optimal solution of the first case study of this paper. Due to space limitations, instead of all 63 WTs, only the output vectors of the first eleven WTs are depicted.

Table 1 Part of output vector of individual solution

Figure 2 provides a flowchart of the HS (or GA) optimization algorithm. Three penalty terms are applied in this optimization process (cable crossing, looping and overloading), so that if any of following penalty terms are flagged that solution is eliminated.

Fig. 2
figure 2

Flowchart of optimization algorithm with HS (GA)

  1. 1)

    Cable crossing. In this study, both crossed edges (branches) have the chance to be selected individually. Before running the optimization process, the joint of every two-edges that may cross are detected and stored in a set. After that, during the optimization process, cable crossing can be detected in a solution, if any of those two-edges appears together.

  2. 2)

    Looping. A loop can be detected by comparing the total generated power of WTs and the summation of gathered power of all clusters into the OS.

  3. 3)

    Overloading. When the ampacity of a branch is higher than the admissible ampacity of the largest available dimension of subsea cables, overloading can easily be detected.

For the GA, a roulette wheel selection and ki-based encoding method have been used, where ki is the number of choices for each individual optimization variable, which may not be a constant value. Therefore, both GA and HS algorithms are dealing with integer values and various numbers of choices for each individual optimization variable, according to the discrete decision set (\(B_{i}\)). In order to improve the performance of GA multipoint crossover with random splice points has been considered, while mutation probability and population are assumed as 0.1 and N, respectively.

4.2 Objective functions

Our proposed simultaneous optimization consists of two terms for minimization of the trenching length and cable dimensions simultaneously. A constant Csb is considered in this paper; however, an even variable Csb\(\left( {C_{{{\text{sb}},i}} = \mathop \sum \limits_{x = 1}^{{k_{i} }} \beta_{x} C_{{{\text{sb}},i,x}} } \right)\) could easily be applied to each optimization variable in the objective function, where i is the optimization variable index, \(x\) is the choice index of the decision set and \(\beta_{x}\) a binary variable [0, 1] that is defined in (3).

The following objective function is formulated to minimize the CAPEX of electrical interconnection system of a given topology OWF.

$$\left\{ {\begin{array}{*{20}c} {\hbox{min} \mathop \sum \limits_{i = 1}^{N} D_{{{i },{y}_{{i}} }} \left( {C_{\text{sb}} + \mathop \sum \limits_{d = 1}^{m} \lambda_{{i}} \left( {a_{{d}} } \right) \cdot Cc_{{i}} \left( {a_{{d}} } \right)} \right)} \\ {{\text{s}}.{\text{t}}. \mathop \sum \limits_{d = 1}^{m} \lambda_{{i}} \left( {a_{{d}} } \right) = 1 \qquad \forall \lambda_{{i}} \in \left\{ {0,1} \right\} , a_{d} \in A} \\ \end{array} } \right.$$
(10)

where \(a_{d}\) is dth dimension of the cable set; m is the number of available dimensions in the cable set; N is the number of WTs (optimization variables); \(y_{i}\) is the assigned value to ith WT as optimization variable (index of the next connected node); \(Cc_{i} \left( {a_{d} } \right)\) is the corresponding cost of assigned cable (\(a_{{d}}\)) to ith turbine for each individual configuration; Csb is the sum of shipping and burying costs; \(D_{{{i },{ y}_{{i}} }}\) is the distance between ith WT and \(y_{i}\)th, which can be calculated as follows:

$$D_{{{i },{y}_{{i}} }} = \sqrt {{\text{Re}}\left( {loc_{i} - loc_{{{y}_{{i}} }} } \right)^{2} + {\text{Im}}\left( {loc_{i} - loc_{{{y}_{{i}} }} } \right)^{2} }$$
(11)

where \(loc_{i}\) and \(loc_{{{y}_{{i}} }}\) are the Cartesian location coordinates of ith WT and the next connected node index (\(y_{i}\)th), respectively.

In order to have an admissible total power loss, an inequality constraint has been added to the objective function as a penalty function:

$$\Delta P_{tot} = \mathop \sum \limits_{i = 1}^{N} \Delta P_{i} \le \Delta P_{ \hbox{max} }$$
(12)

where \(\Delta P_{tot}\) is the total power loss; \(\Delta P_{ \hbox{max} }\) is the total maximum permitted active power loss; \(\Delta P_{i}\) is the active power loss (13) of the connected branch to ith WT in the worst case:

$$\Delta P_{i} = 3R_{{i}} \left( {a_{d} } \right)I_{{i,y_{i} }}^{2} D_{{i , y_{i} }}$$
(13)

where \(R_{i} \left( {a_{d} } \right)\) is AC resistance of the assigned cable dimension \(\left( {a_{d} } \right)\) connected to ith WT at 90°C.

According to (13) the power loss is proportional to the square of flowing current, thus in (14) the total cost of average power loss during a year is affected by square rate of the capacity factor (CF) in practice. In addition, due to smaller farm area of OWFs in comparison with its on-shore counterpart (identical power rating), the power loss of its electrical interconnection system is relatively lower (mostly, it is just about 1%). Note that, according to the offshore wind characteristic, the annual capacity factors of installed OWFs are generally in the range of 0.33-0.54 [25, 26]. Hence, in order to minimize the CAPEX for investors, the power loss is defined as a penalty function with its admissible value (lower than 2%) [13]. Nevertheless, in case of obtaining identical fitness function among different optimal solutions the one with lower total power loss is selected. The annual cost of energy loss can represent the economic performance during the operational phase of the OWF over its lifetime, while maintenance cost is considered a constant value in all cases of this paper:

$$C_{\Delta W} = 8760 \cdot LCoE \cdot CF^{2} \cdot \mathop \sum \limits_{i = 1}^{N} \Delta P_{i}$$
(14)

where \(C_{\Delta W}\) is the annual cost of approximate energy loss; \(CF\) is the capacity factor; LCoE is the levelized cost of energy of OWF. In order to find the total cost of energy loss as an operational cost at the investment date, its net present value (NPV) during the OWF lifetime has been calculated [26, 27]. However, the annual profit of OWF is not considered, since it is the same in all cases. The aim is only to minimize some of the influencing terms of LCoE.

$$NPV_{\Delta W} = \mathop \sum \limits_{y = 1}^{LT} \frac{{C_{\Delta W} }}{{\left( {1 + r} \right)^{y} }} = \mathop \sum \limits_{y = 1}^{LT} \frac{{8760 \cdot LCoE \cdot CF^{2} \cdot\Delta P_{tot} }}{{\left( {1 + r} \right)^{y} }}$$
(15)

where \(NPV_{\Delta W}\) is the NPV term of the total cost of energy loss (without considering any LCoE reduction for OWF in the future); \(r\) is the interest rate; LT is the lifetime of the OWF. Therefore, the NPV term of power loss could easily be added to the objective function as a realistic term to find the overall cost of the electrical interconnection system. However, including this term into the objective function is not necessary. Because, the total power loss of OWFs is relatively low (about 1%), and minimizing the CAPEX is a more significant issue for investors.

5 Case study

In this paper, a semi-symmetrical rectangular topology (11 × 6) consisting of 63 WTs is considered, where eleven turbines can harvest direct wind and WTs on the next arrays allocated with larger space particularly in order to minimize the overall wind wake effect. The WTs’ spacing is assigned according to WT blades diameter (D). Different admissible spacing has been defined in the literature, e.g. 3D-7D and 7D-12D [13, 28,29,30]. Thereby, the spacing of 5D and 9D are assumed between the WTs along an array (dy) and between the arrays (dx), respectively. Moreover, an intermediate single OS is assumed at the centroid of the OWF to decrease the interconnection CAPEX as well as the total power loss [9, 10, 15, 31]. The OWF is assumed to be far from the shore, thus a high voltage transmission system is required for the connection of the OWF to the main grid, which is not investigated in this study. According to the available literature, the assumption values for optimization are given in Table 4 [27, 29, 32]. Two different Siemens WTs with 3.6 and 6.0 MW power rating have been assumed in this study while the diameters are 120 and 154 m, respectively (SWT-3.6-120 and SWT-6.0-154). The above-mentioned WTs employ a variable-speed doubly-fed induction generator (DFIG) and an individual step-up transformer with output voltage of 33 kV at nacelle or pad-mount, according to the structure stamina of WTs. The DFIG manufacturers offer different characteristics options for reactive power generation [33]. Figure 3 shows the characteristic of active power (P) versus reactive power (Q) of a typical DFIG [34].

Fig. 3
figure 3

P-Q characteristics of DFIG base WTs

In order to consider the worst case in cable sizing (maximum ampacity), the power factor has been considered at 33% leading or lagging reactive power, at fully rated active power \(( { \cos }\phi = 0.95)\). The injected current of each WT is calculated as:

$$I_{G} = \frac{{P_{G} }}{{\sqrt 3V_{L}{ \cos }\phi}}$$
(16)

where \(P_{G}\) is the rated power of each WT; \(V_{L}\) is the output line voltage of its internal transformer. A 690 V/33 kV step-up transformer is used to boost the voltage up to 33 kV, since the stator output voltage of the WTs generator is typically 690 V. The maximum permitted active power loss \((\Delta P_{ \hbox{max} } )\) of the electrical interconnection system is conventionally considered as 2% of the OWF capacity.

All available dimensions of subsea (submarine) MV cables have been considered in the decision set of cable sizing problem, where A = {50, 70, 95, 120, 150, 185, 240, 300, 400, 500, 630}. According to shipping limitation or unavailability, a new set with a few choices can easily be replaced, thus it may even decrease Csb. The parameters of three-core copper conductor with XLPE insulator and armored subsea cable for 18-30 kV (36 kV) are shown in Table 2 [35, 36]. Note that, it represents only the dimensions that have been used in this paper.

Table 2 Submarine and subsea cable parameters

The Csb has significant contribution in the electrical interconnection CAPEX and may vary in different OWFs. A constant value has been assumed in this paper, conventionally; because, the outer diameter and weight of a subsea cable with maximum dimension of 630 mm2 is just about twice as thick and heavy as 50 mm2. However, variable Csb (Csb,i,x) can easily be applied to the objective function, if more practical detailed cost information about Csb is provided.

6 Results and discussions

This simultaneous optimization is solved offline, relying on the HS algorithm as well as integer-based GA. Each algorithm is run 100 to 1000 times to frustrate the uncertainty of the metaheuristic algorithms and calculate their performances. In order to compare the performances of these two algorithms fairly, the stopping criteria of both algorithms set to individual maximum number of iteration so that only running times of the algorithms are relatively similar. This is because the number of generated offspring in any iteration of GA is much higher than in the HS algorithm (only one offspring). In order to evaluate the average performances of the GA and HS algorithms in different ranges of WTs, the optimal solutions of both cable sizing methods are calculated for various topologies of OWFs; e.g. 4 × 5 (with 18 WTs) and 4 × 6 (with 22 WTs). Table 3 indicates average estimations for the performance of various topologies and various cable sizing methods.

Table 3 Comparison between performances of GA and HS

The results confirm the better performance of the HS algorithm to find the global optimal solution of this complex optimization problem, compared to the GA. This is because the new harmony (new solution) in the HS algorithm is improvised with a random selection for each optimization variable individually, by considering all existing harmonies (solutions) in HM. This feature increases the flexibility of the HS algorithm to produce better solutions in iterations compared to the GA as it was also demonstrated in the literature [20, 21, 23]. On the contrary, the GA only considers the two parent chromosomes (solutions) with single- or multi-point crossover. However, the GA simulation would be more compatible and perform well for partial cable sizing method, where multipoint crossover is considered; even its performance was relatively close to the HS algorithm or even better in some particular topologies. Because, in the partial cable sizing method, the cable dimensions of all branches in each route are the same and assigned only according to the ampacity of the last branch before joining to another route. On contrary, according to individual improvising of each optimization variable in the HS algorithm, it shows more compatibility with full cable sizing rather than partial cable sizing method. Higher performance and faster convergence of the HS algorithm compared to the GA is demonstrated together in Table 3 and Fig. 4 (fitness value versus iteration).

Fig. 4
figure 4

Performance of HS and GA

Additionally, the HS algorithm has found the optimal solution by considering all possible node connections (even non-feasible ones) in the decision set. Nevertheless, due to increased number of iterations to find global optimal solution of a larger problem, each optimization process takes much longer and obviously with lower performance. The fact that, full optimization yields identical results as the reduced optimization problem, verifies the functionality of the proposed reduction sub-algorithm.

In this section, the optimal electrical interconnection layout is comprehensively assessed. Variation in different influencing parameters and cable sizing methods are considered via three distinct scenarios to investigate their impact on the CAPEX and the optimal interconnection layout of a given OWF. Scenario I uses the full cable sizing method to find the simultaneous optimal interconnection configuration and cable sizing. Moreover, the impact of different Csb and different WT power rating are investigated. Scenario II uses the partial cable sizing method to solve the similar simultaneous optimization. Scenario III employs a conventional radial configuration in order to compare and investigate different aspects.

The data the OWF considered for optimization is described in Table 4, where in the main cases power rating of 6 MW and constant Csb of 250 $/m are considered to have a fair comparison among all the scenarios.

Table 4 Assumption for optimization

6.1 Scenario I: full cable sizing method

In this scenario, full cable sizing method is used for the simultaneous optimization. Two different comparisons are made to investigate the impact of various Csb and power ratings of WTs on the CAPEX and the optimal interconnection layout of a given OWF. Note that, any change in the space between the WTs along an array or between the arrays obviously changes the optimal interconnection layout. However, due to space limitations and pre-defined location of WTs in OWFs, this comparison is not investigated in this paper.

In the first comparison, the optimal electrical interconnection layouts of the identical OWF with the WT’s power rating of 6MW are found in two cases with Csb of 250 and 500 $/m and shown in Fig. 5 and Fig. 6, respectively.

Fig. 5
figure 5

Scenario I, optimal layout (Csb of 250 $/m with 6 MW), CAPEX= M$ 29.352 & Losses = 4.039 MW & LT = 62.740 km

Fig. 6
figure 6

Optimal layout (Csb of 500 $/m with 6 MW), CAPEX= M$ 44.656 & Losses = 3.927 MW & LT = 60.421 km

The results reveal that 100% increase in Csb (from 250 $/m to 500 $/m) leads to 52% increase in the electrical interconnection CAPEX (from M$ 29.352 to M$ 44.656). However, the total trenching length is decreased by 3.7% (2.318 km) as Csb affects about the length term of the simultaneous optimization formulation. The total active power loss in both optimal interconnection layouts (Fig. 5 and Fig. 6) are about 1%, which is just half of the admissible loss in full capacity of the OWF.

In the third case of scenario I, the optimal electrical interconnection layouts of the identical OWF with Csb of 250 $/m are found, where WTs are considered with the power rating of 3.6 MW and the total capacity of 226.8 MW. Note that, the original diameter is 120 m instead of 154 m, thus only per unit values can be compared. The optimal interconnection layout is shown in Fig. 7.

Fig. 7
figure 7

Optimal layout (Csb of 250 $/m with 3.6 MW), CAPEX= M$ 17.686 and Losses = 2.3507 MW & LT = 43.904 km

The results indicate that CAPEX of the interconnection system for both 6 MW and 3.6 MW are relatively similar (about 76 $/kW). In addition, the percentage of their total power losses is almost the same (about 1%). However, the total trenching length is decreased, due to spacing reduction. It is also found that the optimal interconnection configuration of an OWF with lower power rating would be similar to the simple configuration of a traditional OWF, as the power rating of WTs in the last decade was in the range of 2-3.6 MW, and where a single low dimension cable could collect the generated power of several WTs.

6.2 Scenario II: partial cable sizing method

In this scenario, the partial cable sizing method is applied in the objective function so that only limited number of cable dimensions is considered to be available in the decision set (50, 185 and 630 mm2). In addition, cable dimensions of all branches on each route are identically assigned according to the ampacity of the last branch before joining another route or connecting to the OS. In partial cable sizing, shipping or burying might be easier and Csb may decrease in practice, according to fewer changes in cable dimensions or using only a few cable dimensions. However, partial cable sizing may lead to over-dimensioning in some branches and increasing the CAPEX, which is investigated in this section. Fig. 8 shows the optimal interconnection layout of the identical OWF in Scenario II.

Fig. 8
figure 8

Scenario II, optimal layout (Csb of 250 $/m with 6 MW), CAPEX= M$ 31.897 and Losses = 3.557 MW & LT = 67.278 km

The optimal interconnection layout of this scenario can be compared with the main case in scenario I (Fig. 5). The investment and operational costs of the electrical interconnection systems, and the overall cost of all scenarios are indicated in Table 5. The NPV terms of the total cost of energy losses during the OWF lifetime are calculated as a variable operating cost in this paper, while maintenance cost is considered a constant value in all scenarios.

Table 5 Comparison between capital investment and operational cost of different scenarios (Csb of 250 $/m with 6 MW)

The results reveal that the CAPEX of interconnection system in scenario II is increased by 8.67% compared to scenario I. However, the overall costs increase will be only by 2.5% (M 1.052), due to obtaining lower power loss, which is less than 0.92% (3.557 MW). Hence, scenario II also has good potential to be a justified solution, if partial cable sizing can provide just about 5.02% Csb reduction (if Csb ≈237 $/m instead of 250 $/m) in practice. No details have been published about effective parameters in Csb, e.g., vessel capacity for various number dimensions or the length of subsea cables to ship in each journey to the OWF area. Note that, it is only an estimation according to the first comparison, since any change in Csb for the new optimization process may change not only CAPEX but also the optimal layout.

6.3 Scenario III: conventional radial layout

Most of OWF projects in the last decade have used a typical conventional radial configuration[37]. In order to illustrate the significance of the proposed simultaneous optimization, the optimal interconnection layouts in scenarios I and II are additionally compared with a conventional radial layout, which is shown in Fig. 9 for the identical OWF while cable crossing is avoided.

Fig. 9
figure 9

Scenario III, optimal layout (Csb of 250 $/m with 6 MW), CAPEX= M$ 38.755 & Losses = 2.667 MW & LT = 63.163 km

The results of the typical radial electrical interconnection layout indicate that the CAPEX of interconnection system is increased to M$ 38.755. Table 5 reveals that, according to the CAPEX, the optimal electrical interconnection of the scenarios I and II would save about 24.3% and 17.7%, respectively. However, the total power loss of 0.69% (2.667 MW) in this scenario is relatively low as expected, due to the over-dimensioning of the cables away from the OS. Hence, the overall cost saving during the OWF lifetime will be M$ 5.159 (about 10.97%) and M$ 4.107 (about 8.74%), respectively.

7 Conclusion

This paper proposes an optimization formulation to minimize the CAPEX of the electrical interconnection system of OWFs, in order to help designers to reach the necessary balance between technical performance and economic costs. The simultaneous optimal electrical interconnection configuration and cable sizing of a given topology OWF is found. An HS algorithm as a high performance optimization algorithm for discrete problems is used to solve this complex and discrete optimization problem. The optimization results are compared with an integer-based GA as a proven optimization algorithm. The results demonstrate the higher performance of the HS algorithm in comparison with the GA. The proposed formulation can be easily adopted to on-shore wind farms as well. The main breakthrough of this study is to propose two individual options as optimal cable sizing methods (full and partial) in the objective function to assess the optimal interconnection layout of an identical OWF with a given topology comprehensively. A typical radial configuration is also compared with these two optimal layouts. Furthermore, two additional investigations reveal the significant influences of Csb and WT’s power rating over the CAPEX and their impact on the appearance of the optimal layout of interconnection system. The results illustrate that variation in the WT’s power rating completely changes the optimal interconnection layout of the OWF. In addition, it turns out that increasing Csb increases the CAPEX and often changes the optimal interconnection layout.

Comparative results in Table 5 indicate that, according to the CAPEX, both scenarios I and II as optimal solutions in this paper would save about 24.3% and 17.7%, respectively, compared to scenario III. However, according to the overall cost during the OWF lifetime their saving will be 10.97% and 8.74%, respectively. In conclusion, scenario I by applying full cable sizing method is the best solution in general, according to the applied cost assumptions. Note that, scenario II could also be a justified solution or even the best solution, if partial cable sizing method can provide enough Csb reduction in practice. Moreover, the total active power loss in full capacity of the OWF for both optimal scenarios turned out to be just half of the admissible value (about 1%).

In the future work, the proposed methodology could be similarly developed to find the optimal connection between OWFs via a high voltage grid and linkage to the on-shore grid(s). Besides, the single- and multi-OS solutions as well as 66 kV and 33 kV interconnection systems will be investigated in real cases of OWFs.