Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
COMBINED ACTIVE AND REACTIVE POWER CONTROL IN AN OPERATION OF A WIND FARM
Document Type and Number:
WIPO Patent Application WO/2018/115431
Kind Code:
A1
Abstract:
The present disclosure relates to a method and system for controlling an operation of a wind farm connected to a grid, the wind farm comprising a plurality of wind turbines, each wind turbine having a local controller, the method comprising the steps of: minimizing a central voltage deviation in a point of connection between the grid and the wind farm compared to a reference voltage provided by the grid; and/or minimizing local voltage deviations compared to local bus reference voltages for each connection to the wind turbines, by: calculating sensitivity coefficients for the wind turbines; and regulating local power references comprising an active power reference and a reactive power reference to each of the local controllers based on the calculated sensitivity coefficients.

Inventors:
ZHAO HAORAN (DK)
WU QIUWEI (DK)
HUANG SHAOJUN (DK)
LIU ZHAOXI (DK)
Application Number:
PCT/EP2017/084362
Publication Date:
June 28, 2018
Filing Date:
December 22, 2017
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
UNIV DANMARKS TEKNISKE (DK)
International Classes:
F03D7/04; H02J3/38; H02J3/18
Domestic Patent References:
WO2014082642A12014-06-05
Foreign References:
US20140225370A12014-08-14
Other References:
CAI YU ET AL: "Model predictive control- based wind farm power control with energy storage", 2014 INTERNATIONAL CONFERENCE ON POWER SYSTEM TECHNOLOGY, IEEE, 22 December 2014 (2014-12-22), pages 2674 - 2679, XP032712085, DOI: 10.1109/POWERCON.2014.6993658
ZHAO HAORAN ET AL: "Coordinated Voltage Control of a Wind Farm Based on Model Predictive Control", IEEE TRANSACTIONS ON SUSTAINABLE ENERGY, IEEE, USA, vol. 7, no. 4, 20 April 2016 (2016-04-20), pages 1440 - 1451, XP011623224, ISSN: 1949-3029, [retrieved on 20160916], DOI: 10.1109/TSTE.2016.2555398
Attorney, Agent or Firm:
HØIBERG P/S (DK)
Download PDF:
Claims:
Claims

1 . A method for controlling an operation of a wind farm connected to a grid, the wind farm comprising a plurality of wind turbines, each wind turbine having a local controller, the method comprising the steps of:

minimizing a central voltage deviation in a point of connection between the grid and the wind farm compared to a reference voltage provided by the grid; and/or

- minimizing local voltage deviations compared to local bus reference

voltages for each connection to the wind turbines,

by:

- calculating sensitivity coefficients for the wind turbines; and

- regulating local power references comprising an active power reference and a reactive power reference to each of the local controllers based on the calculated sensitivity coefficients.

2. The method according to any of the preceding claims, wherein the sensitivity coefficients comprise an active power part and a reactive power part.

3. The method according to any of the preceding claims, wherein the active power references and reactive power references are coordinated for minimizing the central and local voltage deviations.

4. The method according to any of the preceding claims, wherein the sensitivity coefficients are voltage sensitivity coefficients.

5. The method according to claim 4, wherein the voltage sensitivity coefficients indicate expected voltage changes as a result of the change of active power and reactive power at corresponding connections to the wind turbines.

The method according to claim 1 -2, wherein the sensitivity coefficients are Var capacity sensitivity coefficients.

The method according to any of the preceding claims, wherein the wind turbines are modelled by a prediction model.

8. The method according to claim 7, further comprising the step of minimizing fatigue loads of the wind turbines.

9. The method according to any of claims 7-8, further comprising the step of

maximizing a Var support capability of the wind farm.

10. The method according to any of the preceding claims, wherein the step of minimizing the central and local voltage deviations correspond to a normal mode, the method further comprising the step of, in an emergency mode, wherein at least one of the central voltage deviation or local voltage deviations exceeds a threshold: correcting the voltage deviation that exceeds the threshold by regulating local power references to each of the local controllers based on the calculated sensitivity coefficients.

1 1 . The method according to claim 10, wherein the voltage deviation is corrected by using a static Var compensation (SVC) and/or static Var generation (SVG) optimized based on the sensitivity coefficients.

12. The method according to any of claims 10-1 1 , wherein the minimization of fatigue loads and maximization of Var support capability are temporarily ignored in the emergency mode.

13. A computer-implemented windfarm operation system comprising at least one hardware processor and at least one storage device storing instructions, wherein the instructions, when executed by the at least one hardware processor, causes the windfarm operation system to perform the method according to any of claims 1 -12.

14. The computer-implemented windfarm operation system according to claim 12, wherein the system is adapted to be connected to a wind farm comprising a plurality of wind turbines.

15. The computer-implemented windfarm operation system according to claim 14, further comprising communication units in the wind turbines configured to communicate measurements, such as output voltages, for Static Var

Compensators and/or Static Var Generators of individual wind turbines.

16. A non-transitive, computer-readable storage device for storing instructions that, when executed by a processor, performs the method according to any of claims 1 -12.

17. A windfarm comprising a plurality of wind turbines and a processing unit

configured to execute the method according to any of claims 1 -12.

Description:
Combined active and reactive power control in an operation of a wind farm

The present disclosure relates to a method and system for controlling an operation of a wind farm having a number of wind turbines by coordination of active and reactive power control. Background of invention

Wind power is the fastest growing Renewable Energy Resource (RES). With the increasing penetration level, the variability and uncertainty of wind power have brought new technical challenges to the power system operation. The technical requirements for wind power integration are more stringent. These requirements include active power regulation capability and voltage operating range at the Point of Connection (POC) to the grid in which the wind farm operates.

For active power control, by coordination of individual Wind Turbine Generators (WTGs), the wind farm shall track the power reference from the grid provided by the system operator. The reduction of fatigue loads experienced by WTGs to extend their service may be another control objective. For reactive power control, besides WTGs, other fast Var regulation devices, such as Static Var Compensators (SVCs) and Static Var Generators (SVGs) may be used to regulate the voltage at the POC. One problem with conventional systems for operating wind farms is that they provide limited voltage controllability and stability of the wind farm. In particular, when a bus voltage, either a local bus somewhere in the wind farm or the POC to the grid, violates its constraint, it will be urgent to regulate the violated bus voltage back in order to avoid potential cascading failures in the system. Summary of invention

Conventionally, the active and reactive powers are controlled separately to fulfill the requirements. In modern wind farms, the WTGs are connected by Medium Voltage (MV) feeders which may be relatively long and their X/R ratio (ratio of reactance to resistance) is typically low (X/R < 1 ). The inventors of the presently disclosed method and system have realized that, since, besides the reactive power, the active power change has a significant impact on the voltage variation, the active power can be controlled in coordination with the reactive power to improve controllability and stability of the wind farm. Therefore, in the presently disclosed method system for controlling an operation of a wind farm, active power control is involved to stabilize the voltages by adjusting the active power references of WTGs. Compared to only reactive power compensation, the voltages are better controlled and the recovery of the violated voltage is faster.

The present disclosure relates to, in a first embodiment, a method for controlling an operation of a wind farm connected to a grid, the wind farm comprising a plurality of wind turbines, each wind turbine having a local controller, the method comprising the steps of:

minimizing a central voltage deviation in a point of connection between the grid and the wind farm compared to a reference voltage provided by the grid; and/or

- minimizing local voltage deviations compared to local bus reference

voltages for each connection to the wind turbines,

by:

- calculating sensitivity coefficients for the wind turbines; and

- regulating local power references comprising an active power reference and a reactive power reference to each of the local controllers based on the calculated sensitivity coefficients.

The proposed method for controlling an operation of a wind farm is suitable for realtime control of large-scale wind farms. By including sensitivity coefficients from the wind turbines and regulating local power references comprising an active power reference and a reactive power reference to the local controllers the voltage controllability and stability of the wind farm may be significantly improved.

Moreover, since the Var capability of WTGs may be constrained by the operating limits of the converters its range may be dependent on the terminal voltage and active power production. When WTGs operate close to their full load, the Var capacity will typically decrease significantly, which implies the decrease of voltage support capability.

Therefore, by optimally adjusting the active power references to the WTGs, the Var capacity of the whole wind farm can be optimized to deal with potential voltage disturbances. The active power references and reactive power references may be coordinated for minimizing the central and local voltage deviations. The sensitivity coefficients may be voltage sensitivity coefficients. The voltage sensitivity coefficients may indicate expected voltage changes as a result of the change of active power and reactive power at corresponding connections to the wind turbines. The proposed combined scheme thereby efficiently coordinates the power regulation devices, which may significantly improve the voltage controllability and stability of the wind farm.

Preferably the wind turbines are modelled by a prediction model. The dynamic responses of the controlled devices, which may include WTGs and SVCs/SVGs, typically have different time constants. The presently disclosed method and system for controlling a wind farm may be based on a Model Predictive Control (MPC). The MPC may use a receding horizon principle to solve a finite-horizon optimal control problem over a fixed interval of time. The inventors have realized that this makes it particularly suitable for modelling the WTGs and formulating an MPC problem, by solving which will generate regulation commands for the WTGs.

The method and system may comprise two operation modes. In a normal mode, voltage deviations are minimized as described above and may further take into account further objectives such as minimizing fatigue loads of WTGs. In an emergency mode, wherein at least one of the central voltage deviation or local voltage deviations exceeds a threshold, some control objectives may be compromised. In the emergency mode, the regulation of the local power references to the local controllers are based on the voltage sensitivity coefficients, and may be specifically targeting a correction of the voltage deviation that exceeds the threshold.

The present disclosure further relates to a computer-implemented windfarm operation system comprising at least one hardware processor and at least one storage device storing instructions, wherein the instructions, when executed by the at least one hardware processor, causes the windfarm operation system to perform any

embodiment of the presently disclosed method. The system may therefore be configured to perform the method for controlling an operation of a wind farm. The system may be adapted to be connected to a wind farm comprising a plurality of wind turbines. Moreover, the system may further comprise communication units in the (local) wind turbines configured to communicate measurements, such as output voltages, for Static Var Compensators and/or Static Var Generators of individual wind turbines. Preferably in such a system there is at least one central processing unit configured to perform the steps of the method. The disclosure further relates to a non-transitive, computer-readable storage device for storing instructions that, when executed by a processor, performs the method. Description of drawings

Fig. 1 shows an example of a configuration of a wind farm.

Fig. 2 shows a wind farm control structure.

Fig. 3 shows a model of a wind turbine having a local controller.

Fig. 4 shows an example of a wind farm being integrated into an IEEE 14 bus system. Fig. 5 shows a first example of power production and power reference tracking for a conventional algorithm and the presently disclosed method.

Fig. 6 shows voltage deviations on two buses during operation for the first example.

Fig. 7 shows the Var output of a Static Var Generator for a conventional controller and the presently disclosed controller.

Fig. 8 shows a second example of power production and power reference tracking for a conventional algorithm and the presently disclosed method.

Fig. 9 shows the total Var capacity and Var capacity ranges for a conventional algorithm and the presently disclosed method.

Fig. 10 shows voltage deviations on two buses during operation for the second example.

Detailed description of the invention

The present disclosure relates to a method and system for controlling an operation of a wind farm connected to a grid. The wind farm comprises a plurality of wind turbines, wherein each wind turbine has a local controller. In a first aspect the method minimizes a central voltage deviation in a point of connection between the grid and the wind farm compared to a reference voltage provided by the grid; and/or minimizes local voltage deviations compared to local bus reference voltages, preferably for each connection to the wind turbines by coordinating the active and reactive power control to the local controllers. The method may be adapted to calculate voltage sensitivity coefficients for the wind turbines, said voltage sensitivity coefficients, possibly comprising an active power part and a reactive power part. By controlling local power references comprising an active power reference and a reactive power reference to the local controllers, the method may improve voltage stability and voltage recovery on one or several buses. Preferably the local power reference control is based on the calculated voltage sensitivity coefficients.

By involving both the reactive and the active power control the bus voltages can be more efficiently stabilized. Compared to only reactive power compensation, the voltages are better controlled and the recovery of the violated voltage is faster.

In one embodiment the reactive and active power control are coordinated to improve, preferably maximize, the Var capacity of the system. Var shortage is a frequent reason for failure in the conventional controlled wind farms. In particular when the wind farm operates close to its full load, the Var capacity will significantly decrease, which implies the decrease of voltage support capability. By maximizing the fast Var reserve potential, disturbances can be more efficiently handled. The controller may be arranged to operate in two modes: normal mode and emergency mode. The normal mode may comprise the steps of minimizing the central and local voltage deviations by: calculating voltage sensitivity coefficients for the wind turbines, said voltage sensitivity coefficients and regulating local power references comprising an active power reference and a reactive power reference to each of the local controllers based on the calculated voltage sensitivity coefficients. In the emergency mode, wherein at least one of the central voltage deviation or local voltage deviations exceeds a threshold, the controller may be further arranged to correct the voltage deviation that exceeds the threshold by regulating local power references to each of the local controllers based on the active power part and the reactive power part of the calculated voltage sensitivity coefficients. The normal mode may comprise control objectives for tracking the power reference of the wind farm, and/or minimizing fatigue loads, and/or maximizing the fast Var capacity, whereas the emergency mode only has one control objective: the regulation of the violated voltages back to their limits. The wind turbines in the presently disclosed controller and control method may be modelled by a prediction model. The dynamic responses of the controlled devices, including WTGs and SVCs/SVGs, have different time constants. Therefore the method/system may be based on a Model Predictive Control (MPC). The MPC approach may use a receding horizon principle to solve a finite-horizon optimal control problem over a fixed interval of time. The prediction model may further comprise a variable speed-pitch controlled wind turbine model comprising P and Q control loops. Fig. 1 illustrates a typical configuration of a wind farm. The buses within the wind farm include a bus at the POC, a bus at the collection point (located at medium voltage (MV) side of the main substation transformer) and buses of WTGs. One embodiment of the proposed structure according to the presently disclosed wind farm controller is shown in fig. 2. The active power and voltage references at the POC of the wind farm, P™/ and Vpoc , are decided by the system operator and delivered to the WFC. The measurements of individual WTGs and SVCs/SVGs are sent directly to the WFC.

Based on the calculated voltage sensitivities ( ^ , ^ ) and the prediction models of WTGs and SVCs/SVGs, the MPC problem is formulated. By solving the MPC problem, the regulation commands for all WTGs {P™ f , Q™ t f ) and SVCs/SVGs (V s ref ) are determined and delivered to their local controllers.

Modeling and operation

Fig. 3 shows an example of a model of one WTG. A WTG may be considered as an actuator, which follows the assigned power commands P / and Q™ . In the example the P and Q control loops are decoupled.

P loop: Since the sampling time of the WFC is normally in seconds, the fast dynamics of the generator and pitch actuator are neglected. The generator efficiency μ is compensated in the WTG controller. Accordingly, the power production Pw, is derived approximately by Pwt = P™t ■ The nonlinear model can be linearized around the operating points. rP _ V P nP pref , P

wt wt wt ' wt wt ' wt where x^ t refers to the state vector defined by x^ t = [0, ω ν ω { ] f , 0 is the pitch angle, ω Γ and co t are the rotor speed and the filtered generator speed ω 9 , respectively. The state space matrices are:

where η 9 is the gearbox ratio, J t d = / r + nj J g is the equivalent inertia, r g is the rotor torque, Ρ^, θ °, ω° and v° denote the measured power output, pitch angle, generator speed and wind speed at the operating point, respectively.

Q loop: The dynamic behavior of the constant-Q control of WTGs can be described by a first order function. The state space model is

T - A q r q 4- B q O ref where x„ t is the state variable, defined by x^ t = Q wt - The state matrices are:

A q 7~ Q

. ±J. wt

q

where r q is the time constant for the Q loop.

The SVC/SVG may also be dynamically modelled, wherein the dynamics of the constant-Q control loop of SVC/SVG is described by a first order function:

The voltage at the controlled bus (POC) can be described as:

In a further model according to the presently disclosed system, the P, Q loops of WTG and SVC/SVG models can then be merged into a combined model, comprising a number N of wind turbines and a number N s of SVCs/SVGs.

In one embodiment the model may therefore represent a number of wind turbines and SVCs/SVGs, preferably expressed in the form of combined matrix. Sensitivity calculation

In the step of calculating sensitivity coefficients for the wind turbines, an analytical computation method for calculating the sensitivity coefficients may be used to improve the computation efficiency. Voltage sensitivity coefficients in the presently disclosed method for controlling an operation of a wind farm may indicate expected voltage changes as a result of the change of active power and reactive power at corresponding connections to the wind turbines. Voltage sensitivity coefficients may be expressed as ( ^ , ^ ). The sensitivity coefficients may alternatively, or in combination with the voltage sensitivity coefficients, comprise a Var capacity sensitivity part.

Model predictive control problem and optimization

The wind turbines may be modelled by a prediction model. The sampling period of the WFC may be t s and the prediction period may be t p . Compared with the time constants of the fast Var devices, t s is larger, which is normally in seconds. In order to capture the fast dynamics, the sampling period of the prediction may be smaller. Thus, t s may be further divided into n s steps. Accordingly, the total number of prediction steps can be calculated by n p = (t p /t s )n s .

The predictive control problem may be expressed such that in a solution the active power references and reactive power references are coordinated for minimizing the central and local voltage deviations. According to the introduced model comprising a P loop and Q loop, the prediction model may accordingly comprise a variable speed-pitch controlled wind turbine model comprising P and Q control loops. The prediction model may use a sampling time of less than 10 s, preferably less than 5 s, even more preferable less than 1 s, most preferably less than 0.1 s.

In one embodiment a cost function is introduced, which may be used in calculations for optimizing a control objective. One control objective relates to the deviation between measured voltages of the wind farm and their references (A\f poc , ΔΝ/w,) , wherein the deviation is minimized in the presently disclosed method. AV poc and ΔΝ/w, may be affected by active and reactive power injection of SVCs/SVGs and WTGs, which may be calculated by:

The sum of AV poc , AV^ for any combination of points on the buses can then be calculated minimized. A second control objective relates to minimizing fatigue loads of the wind turbines. Therefore, in one embodiment the method further comprises the step of minimizing fatigue loads of the wind turbines. A minimization of central and local voltage deviation are calculated as an optimization of a sum of voltage deviations based on the prediction model. Using this control objective the shaft torque T s is transferred through the gearbox. Since the gearbox is typically a vulnerable component, the oscillation of T s may create micro-cracks in the material and lead to component failure. The load alleviation can be realized by reducing the deviation of T s . A third control objective relates to maximizing fast dynamic Var support capabilities. One embodiment of the presently disclosed method for controlling an operation of a wind farm further comprises the step of maximizing a Var support capability of the wind farm. The third control objective may be implemented by minimizing Q s to its middle level of the operating range Q™ id = 0.5 (Q™ ax + ¾" in ). In this manner the Var shortage is compensated by the slower Var devices (WTGs) for maintaining the voltage of buses throughout the wind farm, i.e.:

k=l where W s refers to its weighting factors. Accordingly, the time for recovering a power disturbance of the wind farm is reduced by a maximized Var support.

The prediction model may further comprise a model of additional Var regulation of the wind farm, such as static Var compensation (SVC) and/or static Var generation (SVG). Such a model of additional Var regulation of the wind farm may comprise multiple SVCs and/or SVGs. The step of regulating local power references to each of the local controller may therefore be further based on the model of additional Var regulation of the wind farm.

Normal mode and emergency mode

The above first, second, and third control objectives, corresponding to objectives relating to deviation between measured voltages and reference voltages, fatigue load minimization and fast dynamic Var support capability may be used alone or combined in a normal operation mode. In one embodiment the steps of minimizing the central and local deviations correspond to a normal mode.

In addition to the normal mode, the system may be configured to operate in an emergency mode, in which the only objective is to correct a violated bus voltage. The violated bus voltage may be any bus in the system. In particular correcting the voltage at the POC may be a control objective in this regard. However, in principle a violation in any point may cause cascading failures in the system and should therefore, preferably, be corrected as quickly as possible. In one embodiment of the presently disclosed method for controlling an operation of a wind farm, the method therefore further comprises the step of, in an emergency mode, wherein at least one of the central voltage deviation or local voltage deviations exceeds a threshold: correcting the voltage deviation that exceeds the threshold by regulating local power references to each of the local controllers based on the calculated voltage sensitivity coefficients. Preferably an active power part and a reactive power part of the local power references are coordinated to correct the voltage violation. Static Var compensation (SVC) and/or static Var generation (SVG) optimization may also be performed based on the voltage sensitivity coefficients. In the emergency mode the system may temporarily be configured to ignore other constraints. In one embodiment the minimization of fatigue loads and maximization of Var support capability are temporarily ignored in the emergency mode. Any suitable threshold may be applied for activating the emergency mode. In one embodiment the threshold for which the emergency mode is used is less than 30% of the reference voltage, preferably less than 20% of the reference voltage, more preferably less than 10% of the reference voltage.

Examples

An example of a wind farm where the presently disclosed method has been

implemented includes a wind farm comprising 10x5MW wind turbines. The wind farm is integrated into an IEEE 14 bus system and the connected bus is a Bus 03, which is located at the terminal of the grid as shown in fig. 4.

The results of the presently disclosed method and controller (COM) are compared with the results for the same scenarios using a conventional controller (SEP) where the active and reactive powers are decoupled and controlled separately.

Case Scenario 1

In a first scenario, Case Scenario 1 , a low power production scenario over a simulation period of 0-120 seconds is shown. The power production P wf for both controllers (SEP and COM) and the available wind power P f are shown in fig. 5. P wf of both controllers are almost identical and track the specified ramp rate limit with high precision.

The voltages at two representative buses are used to illustrate the voltage condition of the wind farm, including V poc and V wt _ 15 , which is located at wind turbine 15 (WT15), the furthest bus along the feeder. The voltages are within their thresholds and the WFC therefore operates in the normal mode (for COM). V poc of both controllers are regulated close to the reference value V™[ as can be seen in fig. 6A. However, the voltage deviation with COM is smaller. Also for a sudden change due to a power fluctuation the recovery of V poc to V™[ is faster. Considering the impact of active power on the voltage, COM shows better voltage controllability.

Fig. 7 shows the Var output of the SVG Q s for both controllers for Case Scenario 1 . In this case Q™ id = 0. Qs of COM is smaller, which indicates that more fast Var capacity is reserved.

Case Scenario 2

In a second scenario, Case Scenario 2, a high power production scenario is shown over a simulation period of 1 20 seconds (1 20-240s).

The available wind power P f and P wf are shown in fig. 8. P wf of both controllers are almost identical. Since P wf is high in this scenario, the active power of several WTGs is high, which may significantly affect their Var capacities. By defining

-V,

\ " f \ / i.s_rniii _Δ \ liriin s_max IIlSlX

wt Wt

ί=ι ?— l where <¾¾ m denotes the total Var production of WTGs, and Q^™ in and Q^™ ax are the lower and upper limits of the total Var capacity of the WTGs, respectively. Their simulation values are shown in fig. 9. It can be observed that the Var capacity range of COM is larger than that of SEP, especially during the periods ti = 201 .3s - 207.6s and t 2 = 232.2s - 236s. For SEP, due to the decoupled active and reactive power control, Q™ t in and Q™f x cannot be predicted. There are sudden decreases of the total Var capacity in ti and t 2 . Accordingly, the voltage support capability is reduced in these periods. For COM, Q™ t in and Q™ t a * can be predicted based on the predictions of P wt and V wt . The possible Var shortage is considered in the MPC. Therefore, the total Var capacity is kept stable for the whole period for COM. The voltage results are shown in fig. 10. For SEP, V poc is often beyond its operation limits [0.98 p.u, 1 .02 p.u], fig. 10A. Due to the shortage of the Var reserve, 15 breaks the protection limit (1 .1 p.u.) during ti and t 2 , which will trigger the protection devices in real operation and may cause a cascading failure (fig. 10B). For COM, the voltage deviations are smaller. In the simulation V poc is always regulated within its limit. In the simulation Vw, _ 5 is never beyond the protection limit.

Further details of the invention

The invention will now be described in further detail with reference to the following items:

1 . A method for controlling an operation of a wind farm connected to a grid, the wind farm comprising a plurality of wind turbines, each wind turbine having a local controller, the method comprising the steps of:

- minimizing a central voltage deviation in a point of connection between the grid and the wind farm compared to a reference voltage provided by the grid; and/or

- minimizing local voltage deviations compared to local bus reference

voltages for each connection to the wind turbines,

by:

- calculating sensitivity coefficients for the wind turbines; and

- regulating local power references comprising an active power reference and a reactive power reference to each of the local controllers based on the calculated sensitivity coefficients.

2. The method according to any of the preceding items, wherein the sensitivity coefficients comprise an active power part and a reactive power part.

The method according to any of the preceding items, wherein the active power references and reactive power references are coordinated for minimizing the central and local voltage deviations.

4. The method according to any of the preceding items, wherein the sensitivity coefficients are voltage sensitivity coefficients. The method according to item 4, wherein the voltage sensitivity coefficients indicate expected voltage changes as a result of the change of active power and reactive power at corresponding connections to the wind turbines. The method according to item 1 -2, wherein the sensitivity coefficients are Var capacity sensitivity coefficients. The method according to any of the preceding items, wherein the wind turbines are modelled by a prediction model. The method according to item 7, wherein the prediction model comprises a variable speed-pitch controlled wind turbine model comprising P and Q control loops. The method according to any of items 7-8, wherein the prediction model has a sampling time of less than 10 s, preferably less than 5 s, even more preferable less than 1 s, most preferably less than 0.1 s. The method according to any of items 7-9, wherein the prediction model further comprises a model of additional Var regulation of the wind farm, such as static Var compensation (SVC) and/or static Var generation (SVG). The method according to item 10, wherein the model of additional Var regulation of the wind farm comprises multiple SVCs and/or SVGs. The method according to item 10-1 1 , wherein the step of regulating local power references to each of the local controller is further based on the model of additional Var regulation of the wind farm. The method according to any of items 7-12, wherein the minimization of central and local voltage deviation are calculated as an optimization of a sum of voltage deviations based on the prediction model.

The method according to any of items 7-13, further comprising the step of minimizing fatigue loads of the wind turbines. 15. The method according to any of items 7-14, further comprising the step of maximizing a Var support capability of the wind farm.

16. The method according to item 15, wherein a time for recovering a power

disturbance of the wind farm is reduced by the maximized Var support.

17. The method according to any of the preceding items, wherein the step of

minimizing the central and local voltage deviations correspond to a normal mode, the method further comprising the step of, in an emergency mode, wherein at least one of the central voltage deviation or local voltage deviations exceeds a threshold: correcting the voltage deviation that exceeds the threshold by regulating local power references to each of the local controllers based on the calculated sensitivity coefficients. 18. The method according to item 17, wherein the voltage deviation is corrected by using a static Var compensation (SVC) and/or static Var generation (SVG) optimized based on the sensitivity coefficients.

19. The method according to any of items 17-18, wherein the minimization of

fatigue loads and maximization of Var support capability are temporarily ignored in the emergency mode.

20. The method according to any of items 17-19, wherein the threshold is less than 30% of the reference voltage, preferably less than 20% of the reference voltage, more preferably less than 10% of the reference voltage.

21 . The method according to any of the preceding items, wherein the operation is substantially in real-time. 22. A system configured to perform the method according to any of items 1 -21 .

23. A non-transitive, computer-readable storage device for storing instructions that, when executed by a processor, performs the method according to any of items 1 -21 . A windfarm comprising a plurality of wind turbines and a processing unit configured to execute the method according to any of items 1 -21 .