Research on OPF Control of Three-Phase Four-Wire Low-Voltage Distribution Network considering Uncertainty
Abstract
As power systems become more complex and uncertain, low-voltage distribution networks face numerous challenges, including three-phase imbalances caused by asymmetrical loads and distributed energy resources. We propose a robust stochastic optimization (RSO)-based optimal power flow (OPF) control method for three-phase four-wire low-voltage distribution networks that consider uncertainty to address these issues. Using historical data and deep learning classification methods, the proposed method simulates optimal system behaviour without requiring communication infrastructure. The simulation results verify that the proposed method effectively controls the voltage and current amplitude while minimizing the operational cost and three-phase imbalance within acceptable limits. The proposed method shows promise for managing uncertainties and optimizing performance in low-voltage distribution networks.
1. Introduction
In the past few years, the economy has grown significantly, but as a result, there has been an increase in worries about environmental contamination and the shortage of energy resources. As a response, renewable energy generation, such as photovoltaic, has been vigorously promoted [1–4]. To minimize the potential environmental hazards that result from the indiscriminate consumption of fossil fuels, different governments and organizations have been urging customers to utilize renewable energy alternatives such as rooftop PV. Nonetheless, studies have indicated that installing rooftop PV may affect the node voltage and network loss indicators of the original distribution network, leading to overvoltage issues during the day [5]. In addition, the three-phase four-wire structure of a low-voltage distribution network may produce an unbalanced phenomenon during times of asymmetric loads and line parameters, resulting in increased line losses and zero sequence current. Therefore, it is essential to study the overvoltage problem caused by uncertainties under such a structure.
The purpose of distribution network operation control is to ensure the reliability of power supply and economical operation, which essentially belongs to the category of OPF [6]. Since the three-phase four-wire low-voltage distribution network is more complex in terms of model and algorithm, the current research focuses on the three-phase medium-voltage distribution network. Several researchers have developed the OPF model as either a linear or a nonlinear programming model, which they have then directly solved using artificial intelligence algorithms (e.g., genetic algorithm [7] and particle swarm algorithm [8]), but there are disadvantages such as slow solution speed and easy to fall into local optimum; some other scholars have convexly relaxed the established nonlinear model by first eliminating the phase angles of voltage and current and then convexified the original model using second-order cone relaxation [9–11]. However, the elimination of the phase angle results in the inability to calculate the voltage and current on the neutral line, which makes the method unsuitable for usage in three-phase four-wire lines. In [12], the authors propose a multiphase OPF algorithm suitable for unbalanced distribution systems, which can be applied to enhance the performance of smart grid systems. On the other hand, reference [13] introduces an OPF formulation for four-wire networks, addressing robustness and scalability issues. These references provided valuable insights into developing efficient power flow algorithms in different network environments. These have also informed our research and contributed to developing our proposed three-phase four-wire OPF algorithm designed explicitly for low-voltage distribution networks with high renewable energy sources penetration levels.
In the management of distributed energy resources (DERs), the available operating solutions for control can be broadly categorized as centralized, distributed, and decentralized, depending on the communication infrastructure that is in place. Centralized solutions typically necessitate a comprehensive monitoring and communication infrastructure and utilize high-performance control technologies based on optimization techniques. For instance, in reference [14], a layered coordinated voltage correction scheme is proposed that is suitable for active distribution networks. Similarly, reference [15] proposes a strategy that allows optimization of the hardware required for implementation and has good dynamic performance. In [16], the authors propose a centralized approach with an existing communication infrastructure that can operate in an islanded mode when necessary. While a control and monitoring strategy for a 0.4 kV distribution network is proposed in reference [17], the issue of integrating renewable energy sources into the power grid remains unaddressed, posing a significant challenge. On the other hand, reference [18] introduces a novel strategy for load reduction that is based on the DC voltage level, which is applied to DC distribution networks.
Decentralized control policies are commonly employed in distribution networks (DNs) and have been incorporated into multiple grid codes. One of the advantages of utilizing such policies is their ease of implementation and relatively low cost. Decentralized control policies do not require a communication infrastructure, which, in turn, minimizes the necessary investment for implementation [19]. However, such methods commonly adopt a “one size fits all” approach, utilizing identical control parameters across all DNs, various generator types, and varying operating conditions [20]. This approach takes the same control strategy when generating failures caused by various factors, which result in unanticipated complications, particularly in a rapidly evolving environment.
Distributed approaches coordinate different DERs with limited communication to achieve near-optimal operations. Although efforts have been made to narrow the gap between local and centralized approaches, these methods still necessitate certain communication infrastructure. In [21], the authors propose a two-phase multiobjective control method for distribution networks and verified the effectiveness through arithmetic examples. In [22], the authors analyze an unbalanced four-wire distribution network optimization operation methodology that includes DG, which is validated and tested in a 13-node system.
To solve the problems of voltage overrun and network loss in a three-phase four-wire low-voltage distribution network, we propose an OPF control method that does not require the deployment of communication and monitoring infrastructure. Figure 1 illustrates the flowchart of the proposed method.

- (i)
Considering RES uncertainty and unbalanced operation, an optimal power flow model (RSO-AC-OPF) is proposed based on a low-voltage distribution network and robust stochastic optimization (RSO) method
- (ii)
A control design method can effectively achieve real-time optimal distribution network control, minimizing control costs and improving reliability
The rest of the paper is organized as follows: Section 2 presents the network equations and mathematical model considering uncertainty, including the objective function and constraints. Section 3 derives the power system control method to optimize distributed energy sources. In Section 4, we perform case tests and comparative simulations. Lastly, Section 5 provides a conclusion for this paper.
2. Model
2.1. AC-OPF for the Three-Phase Four-Wire Network
This section presents the mathematical equations that describe the network and the models used in solving the OPF control problem for the three-phase four-wire low-voltage distribution network that is proposed in this paper.
As this constraint lacks convexity, we employ an approximation of the voltage unbalance factor (VUF) through the use of negative voltage sequences [26]. We assume that the positive voltage sequence is in close proximity to 1 p.u., that is, VUFj,t ≈ |Vneg,j,t|; in other words, |Vneg,j,t| ≤ VUFmax, where VUF indicates the voltage unbalance factor.
2.2. Considering the Uncertainty through RSO
To factor in the effects of generation uncertainty and counteract possible negative consequences on security constraints, we employ a RSO model that is based on the Wasserstein distance.
2.2.1. RSO Model
Here, εh is an event and Zn is a convex set, n ∈ [N], and . The random variable represents a set of random scenarios with uncertain probability. The confidence set of the random variable may be different for different scenarios, and the expectation of may be differently conditional on the event realization.
2.2.2. Fuzzy Set of Wasserstein Distance Based on 1-Norm
For practical purposes, these sets are restricted to manageable sets of conic representations, such as polyhedra or sets of second-order conic representations.
2.3. Overview of the RSO-AC-OPF Model
This section summarizes the model structure of the RSO-OPF control method proposed in this paper for the three-phase four-wire system. Constraints (6)–(30) represent the constraints of the four-wire optimal tide, while constraint (36) represents the collapsed RSO formula. Our low-voltage distribution network model uses the RSO-OPF method to consider uncertainty while meeting BESS, CL, OLTC, and other constraints to increase the distribution network’s reliability and economic value. To account for uncertainty of rooftop PV, we construct an uncertainty fuzzy set based on the Wasserstein distance of one parametric number. This fuzzy set is then affined to the event fuzzy set of the RSO model to solve the problem of PV output.
Obj: (1)
(36)
3. Methodology
3.1. Solution Process
Figure 2 illustrates the structure diagram of the uncertainty optimization control method proposed for the low-voltage distribution system. Data are preprocessed into the convolutional neural network (CNN) input format, followed by the application of the RSO method to remove uncertainty. Subsequently, control training is performed for each part with the CNN outputting real-time responses of the DERs, including BESS and controllable loads (CLs). Cross-validation is then conducted to adjust hyperparameters to improve the accuracy of CNN classification results. Finally, the real-time response of each part is obtained. The essence of the CNN learning process is to learn the data distribution. If the distributions of the training data and the test data are different, the network’s generalization ability is greatly reduced. On the other hand, if the distribution of each batch of training data is different (batch gradient), the network has to learn to adapt to various distributions in each iteration, which greatly reduces the training speed of the network. The above can be avoided by performing data preprocessing.

3.2. Considering the CL through Data-Driven
To accommodate variable behaviours such as controllable load increase/decrease, we use a CNN model as a classifier. The model results are classified into three situations: load increase, constant, and decrease. Our CNN model uses local connection and shared weight to effectively extract potential data features. The CNN model in this paper contains a data input layer, a convolutional computation layer, a pooling layer, and a fully connected layer (INPUT-CONV-POOL-FC). The model also includes a feature extractor consisting of a convolutional layer and a subpooling layer, which greatly simplifies the model complexity and reduces parameters. Please refer to Algorithm 1 for details on CL real-time control and CNN model parameters. In the model of this paper, the daily load remains unchanged as a whole, and constraint (23) ensures that the categories of “load increase” and “load decrease” obtained are approximately balanced.
-
Algorithm 1: Training CNN.
-
The data are preprocessed and labeled for each CL unit form to generate datasets. The data are divided into 80% training and 20% test sets.
-
Input: Assume a variable Ω = [V, Pg,PV]
-
Convolutional layer: Step length: 1; the activation function is ReLU; dropout is used in the convolutional layer to prevent overfitting.
-
Max Pooling layer: The features extracted from the convolutional layer are subsampled to achieve feature reduction.
-
Fully Connected layer: The role of classification.
-
Output: The real-time response of CL (i.e., load increase or decrease), and the activation function was normalized exponential function (Softmax).
-
Return: The trained CNN model
3.3. Considering the BESS through Data-Driven
The BESS can absorb active power, providing an effective voltage-peaking solution. Algorithm 2 outlines the process of charging the battery energy storage system (BESS) when the local PV generation exceeds the initial local load, which augments the final active power demand with the charging power. Conversely, when the local load is greater than the generating capacity, the BESS begins to discharge and reduce due to the discharge power P. The BESS’s available energy is defined by the installed capacity of the BESS and the state of the battery charge, with fixed minimum and maximum unit limits. The optimization problem is similar to the CL case with Ω = [V, PPV,t, P1,t] as the classifier.
-
Algorithm 2: Proposed BESS control design.
-
Input: Assume a variableΩ = [V, PPV,t, P1,t]
-
For each BESS unit form,
-
ifPPV,t ≥ P1,t,
-
if(PPV,t − P1,t) · η · Δt ≥ (SoCmax · Ecapa − ESoC,t−1)
-
then;
-
-
else
-
-
end if
-
else if((P1,t − PPV,t)/η) · Δt ≥ (ESoC,t−1 − SoCmax · Ecapa)
-
then
-
-
else
-
-
end if
-
end if
-
Output: Real-time response of BESS
4. Simulation
The control method proposed in this paper is simulated in a modified 21-bus node low-voltage distribution network with a three-phase four-wire line, as shown in Figure 3. The rated voltage for the distribution system is 380 V. Each line section has a length of 50 m. The line self-impedance Zii = 0.65 + j0.412 Ω/km and the mutual impedance Zij = 0.01Zii. The neutral point is assumed to be grounded at multiple points, and the capacitance is neglected due to the short cable length. The transformer grounding impedance is 3 Ω. To simulate unbalanced conditions, loads and rooftop PV panels have been unevenly distributed across the three phases. Rooftop PV icons are used to indicate PV access locations, and each bus can be single-phase or three-phase with PV installed and independently adjustable for all three phases. In addition, energy storage devices are connected at buses 4 and 16 with three phases and three phases independently adjustable and flexible loads connected to phase C of node 10, whose total daily energy consumption remains constant: Ecapa,j,z = 20 kW·h and η = 93%.

In this paper, we used 30 days of historical electricity consumption data from a residential area in the summer, with a 5-minute time resolution of photovoltaic power generation. The dataset comprises 8640 samples (30∗24∗12). The objective function is described in Section 2, assuming that the operating cost is CP = 0.2(CHF/kWh) and CQ = 0.01 · CP.
The implementation was done in Python. The optimization toolbox of RSOME [29] was used, Gurobi [30] was used as the solver, and Tensorflow was used as the platform for building the neural network. The results were obtained on Huawei Mate Station B515 (RAM 16G, CPU AMD Ryzen 7 4700G with Radeon Graphics 3.60 GHz).
4.1. Performance of the Proposed Method
We performed cross-validation, a resampling procedure, to test the performance of our controllable load model on unknown data. Figure 4 illustrates the classification accuracy during the optimization of the CNN model, with red areas indicating correct classification and blue indicating misclassification. Our training and validation resulted in obtaining a classifier with an overall accuracy of 100% due to the complete linear separability of the data. Table 1 shows that the voltage amplitude increases with PV injection. PV injection above 0.3 p.u. can cause the voltage to drop, and increasing the load with other available measures may not be sufficient to offset the reduction.

ID | Rooftop PV injection (p.u.) |
Voltage (p.u.) | Controllable loads |
---|---|---|---|
1 | 0 | 0.995 | Increase |
2 | 0 | 0.996 | Increase |
3 | 0 | 1.020 | Unchanged |
4 | 0 | 1.017 | Unchanged |
5 | 0 | 1.045 | Decrease |
6 | 0 | 1.044 | Decrease |
7 | 0.1 | 1.007 | Increase |
8 | 0.1 | 1.0325 | Unchanged |
9 | 0.1 | 1.032 | Unchanged |
10 | 0.1 | 1.0575 | Decrease |
11 | 0.13 | 1.060 | Decrease |
12 | 0.2 | 1.016 | Increase |
13 | 0.2 | 1.043 | Unchanged |
14 | 0.3 | 1.030 | Increase |
15 | 0.36 | 1.035 | Increase |
16 | 0.38 | 1.037 | Increase |
17 | 0.384 | 1.037 | Increase |
18 | 0.5 | 1.042 | Increase |
19 | 0.71 | 1.054 | Increase |
20 | 0.8 | 1.048 | Increase |
Figure 5 presents a visualization of real-time control for the BESS and the PV unit. The control pertains specifically to phase C of node 16. Due to the overvoltage problem, the rooftop PV absorbs reactive power to bring down the voltage and mitigate the voltage across the upper limit. When the PV power is large and cannot be entirely consumed by the grid, the BESS absorbs the excess power. For the charge state of BESS, a positive slope indicates energy storage charging, a negative slope indicates energy storage discharging, and a slope of 0 indicates no charging or discharging.

4.2. Influence of the Proposed Method on Node Voltage
In Figure 6, the C-phase voltage at node 16 is compared between the control method proposed in this paper and the conventional method over a period of 10 days. Node 16 is located at the end of the line and is most susceptible to voltage overruns. Due to the high power output of photovoltaic generation during the day, the upper limit of the C-phase voltage is particularly noticeable at noon. The maximum value reaches 1.09 (the standard value), but the residents are in a low phase of electricity consumption, leading to phase unbalance and other phenomena. The proposed method is superior to the conventional control method as it is capable of satisfying the voltage constraint.

4.3. Influence of the Proposed Method on Line Current
With a maximum acceptable voltage value of 1.07 p.u. in mind, several nodes face overvoltage problems with high solar radiation during midday. Similarly, the block diagram of the thermal load of all cables shown in Figure 7 indicates that the approach of this paper allows the system cables to be free of overloads for the considered 24-hour period. Therefore, active control measures are required to keep the voltage and current below acceptable thresholds for safe grid operation.

Figure 8 compares the C-phase current amplitude variation between nodes 1 and 2. The results indicate that the method proposed in this paper effectively suppresses the current amplitude at and below the maximum value, which ensures network security to a certain extent.

4.4. Control Cost and Network Loss Comparison
The traditional distribution scheme experiences the highest total network loss when the voltage exceeds the upper limit due to the excess network loss generated by reverse power flow during the day when PV power is high. Heavier loads during the evening also increase network loss, and three-phase imbalance from PV asymmetric access results in the generation of current in the neutral line, leading to further network loss. The ideal solution assumes that all constraints are satisfied, minimizes the objective function, and has a perfect communication system. Conversely, the proposed control method in this paper controls overvoltage and overload without requiring communication facilities and improves three-phase unbalance, effectively reducing network losses and increasing economic efficiency. Table 2 summarizes the application results observed over 30 days. The validation was performed using the OpenDSS simulation platform, and the results are shown in Table 3. We confirm that the node voltages obtained from our proposed method are the same as the original results, thus further proving its validity and correctness.
Control solutions | |V|max (p.u.) | |I|max (%) | Losses (%) | VUF max (%) |
---|---|---|---|---|
Traditional | 1.09 | 117.78 | 5.89 | 1.97 |
Ideal | 1.07 | 100 | 5 | 2 |
This paper | 1.073 | 99.691 | 5.48 | 1.92 |
Node number | OpenDSS | Python |
---|---|---|
Voltage (p.u.) | ||
1 | 1.01 | 1.01 |
2 | 1.006 | 1.006 |
3 | 1 | 1 |
4 | 0.997 | 0.997 |
5 | 0.995 | 0.995 |
6 | 0.993 | 0.993 |
7 | 0.989 | 0.989 |
8 | 0.996 | 0.996 |
9 | 0.995 | 0.995 |
10 | 1.045 | 1.045 |
11 | 0.994 | 0.994 |
12 | 1.002 | 1.002 |
13 | 1.011 | 1.011 |
14 | 1.015 | 1.015 |
15 | 1.02 | 1.02 |
16 | 1.047 | 1.047 |
17 | 1.036 | 1.036 |
18 | 1.030 | 1.030 |
19 | 0.994 | 0.994 |
20 | 0.993 | 0.993 |
21 | 0.991 | 0.991 |
5. Conclusion
As the distribution system evolves, active control will play an increasingly important role in maintaining grid security, reliability, and economic efficiency. Although centralized OPF-based controllers offer optimal operation, they depend on costly monitoring and communication infrastructure. On the other hand, conventional local controllers are affordable but may struggle to adapt to rapidly changing environments and the growing penetration of DERs.
This paper investigates the challenges posed by large-scale rooftop PV access to a three-phase four-wire low-voltage distribution network, such as overvoltage. We propose a scheduling method for optimizing distributed energy sources without requiring extended monitoring or communication infrastructure. The controller is easy to compute, understand, and implement. The simulation results demonstrate that the proposed local control method can simultaneously address safety concerns in an unbalanced and uncertain three-phase four-wire system while optimizing its operation. Future work will center on the investigation of comparison of the effect of other newer deep learning algorithms for control, on the potential challenge of the use of deep learning.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
Authors’ Contributions
Rui Wang conceptualized the study (lead), wrote the original draft (lead), performed formal analysis (lead), and reviewed and edited the manuscript (equal). Xiaoqing Bai reviewed and edited the manuscript (equal). Shengquan Huang was responsible for software (lead) and reviewed and edited the manuscript (equal). Shoupu Wei conceptualized the study (supporting), wrote the original draft (supporting), and reviewed and edited the manuscript (equal).
Acknowledgments
This work was supported by the National Natural Science Foundation of China under Grant 51967001.
Open Research
Data Availability
The data used to support the findings of this study are included within the paper.