Hi Danula, an important issue is the network model you select. For example, you can use a full nonlinear multi-phase power flow model, a second order cone model, or a linear power flow model. These will each be more or less appropriate depending on the voltage level and type of network topology you are interested in. Each type of model will require particular constraints to implement them within an optimisation problem.
Standard network constraints are:
- Power balance (real and reactive) at each node.
- Max and min voltage magnitude limits
- Max line current magnitude limits
Additionally, you may have constraints associated with particular resources:
- max and min power limits (real, reactive and/or apparent)
- max ramp rate
- max and min energy limits for batteries
- max and min temperature for flexible heating/cooling
Some potentially useful references:
A. Bernstein and E. Dall’Anese, “Linear Power-Flow Models in Multiphase Distribution Networks,” in 2017 IEEE PES Innovative Smart Grid Technologies Conference Europe (ISGT-Europe), 2017, no. May, pp. 1–6.
L. Gan, N. Li, U. Topcu, and S. H. Low, “Exact Convex Relaxation of Optimal Power Flow in Radial Networks,” IEEE Transactions on Automatic Control, vol. 60, no. 1, pp. 72–87, 2015.
T. Morstyn, B. Hredzak, R. P. Aguilera, and V. G. Agelidis, “Model Predictive Control for Distributed Microgrid Battery Energy Storage Systems,” IEEE Transactions on Control Systems Technology, 2017.
Two constraints such as Equality and Inequality. Equal constraints should be Real and reactive power generation should be equal to Apparent power load / demand plus power losses. Inequality constraints should be Voltage within the limits, Real and reactive power injection should not be more than the demand. Minimum and maximum real and reactive power injection should be within the specified limits.
Rest of the things depends upon your objective function
Real and Reactive power generation and demand should be equal. Voltage should be between 0.95 and 1.05. DG real power generation and Capacitor values should be between minimum and maximum values. Real and Reactive power injection should not be more than the real and reactive power demand. Network Power factor should be within the acceptable range. Branch current / Branch MVA limit should be within the maximum allowable / permissible value.