Modifying the parameter values ​​of a generator's control law

FR3101739B1Active Publication Date: 2025-03-14SCHNEIDER ELECTRIC IND SAS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
FR2019010910
Authority / Receiving Office
FR · FR
Patent Type
Patents
Current Assignee / Owner
Filing Date
2019-10-02
Publication Date
2025-03-14
Estimated Expiration
2039-10-02

Smart Images

  • Figure 00000017_0000
    Figure 00000017_0000
  • Figure 00000017_0001
    Figure 00000017_0001
  • Figure 00000017_0002
    Figure 00000017_0002
Patent Text Reader

Abstract

A method for controlling a generator (1) comprising an inverter (2) and an electrical power source (3), the generator (1) being configured to deliver electrical output values ​​(VS) to an electrical distribution network, the inverter (2) being controlled by a control law (5), the control law (5) comprising a set of fixed parameter values ​​(pref) to model the operation of a virtual synchronous generator such that the control law (5) is configured to determine at least one target output value (VS,target) to be delivered by the generator (1) to the electrical distribution network. Abstract figure: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

Title of the invention: Modification of the parameter values ​​of the control law of a generator Technical field

[0001] The present invention relates to a method of controlling a generator.

[0002] The invention also relates to a generator implementing such a method. Prior art

[0003] A microgrid is generally a local electrical network intended to produce and distribute electrical energy in areas that are generally isolated and distant from major electrical energy production centers.

[0004] Such isolated regions are, for example, islands, mountainous regions, or even desert regions.

[0005] The micro-network principle also applies when a building, a group of buildings, or any other entity connected to a large distribution network wishes to manage, at least in part, its energy production itself.

[0006] The main advantage of micro-networks is that they operate autonomously and are located close to consumption areas (also called "loads"). Thus, the losses inherent in long-distance distribution networks are limited.

[0007] The energy autonomy of the micro network is generally ensured by one or more sources of electrical energy of different types, including renewable energy sources, such as photovoltaic or wind energy sources.

[0008] In order to supply electrical energy to the micro grid, a generator comprises at least the electrical source of electrical energy and an inverter.

[0009] The electrical source produces electrical power by generating direct voltage and current. The direct voltage and current are then converted by the inverter into alternating voltage and current.

[0010] The inverter can be controlled according to a static control law so as to emulate the behavior of a generator. This is called a virtual generator. It is thus possible to electrically connect virtual generators in parallel with other generators on the micro network.

[0011] Such a virtual generator may nevertheless, under certain conditions, be confronted with instabilities, in particular in the event of a short circuit or low current circulating on the micro network.

[0012] In particular, such short circuits can occur during several events impacting the micro network, for example when a maintenance exercise causes an unexpected break in a cable on the micro network.

[0013] The control law may then not be sufficient to effectively control the electrical values ​​at the generator output.

[0014] In order to overcome this problem, documents WO 2012116559 Al and “Virtual Syn-chronous Generators for microgrid stabilization: Modeling, implementation and experimental validation on a microgrid laboratory”, Rahmani et al., IEEE 2017 Asian Conference on Energy, Power and Transportation Electrification, provide for example impedances, called virtual impedances, in order to guarantee better stability of the inverter.

[0015] According to another example, document FR 1858434 provides that the control law includes integration and correction loops in order to adjust the electrical values ​​at the output of the inverter.

[0016] However, although such methods may generally prove satisfactory, they may prove insufficient, particularly when the instabilities on the network prove to be of particularly short duration and / or of too high an amplitude.

[0017] Also, the resulting overvoltages or overcurrents are likely to damage the generator, and in particular the inverter.

[0018] When instability occurs, and in order to protect the generator, a solution currently implemented is to temporarily disconnect the inverter from the micro grid.

[0019] However, such a disconnection has the disadvantage of not allowing the distribution of electricity from the electrical energy source. This then requires a restart of the generator. Furthermore, and particularly in the context of a micro grid, such a disconnection can further destabilize the micro grid, creating new instabilities that are potentially damaging to the other generators connected to it.

[0020] One of the aims of the invention is therefore to find a method for controlling the generator, and a generator, which is simple, reliable and economical and which makes it possible to improve the resolution of problems linked to the occurrence of instability. Summary

[0021] The invention improves the situation.

[0022] There is provided a method for controlling a generator comprising an inverter and an electrical energy source, the generator being configured to deliver electrical output values ​​to an electrical distribution network, the generator being controlled by a control law, the control law comprising a set of fixed values ​​of parameters for modeling the operation of a virtual generator such that the control law is configured to determine at least one target output value which must be delivered by the generator to the electrical distribution network, the method including:

[0023] - determining at least one target output value by means of the control law;

[0024] - compare the target output value with at least one maximum value ad generator miscible;

[0025] - if the target output value is greater than the maximum value ad missible, determine a modified value of at least one parameter of the control law.

[0026] Thanks to these provisions, it is possible to improve the performance of the generator compared to a generator controlled by a static control law. In particular, the generator makes it possible to obtain satisfactory electrical output values, particularly in the event of instability on the electrical distribution network.

[0027] The features set out in the following paragraphs may optionally be implemented. They may be implemented independently of one another or in combination with one another:

[0028] According to one embodiment, if the target output value is less than or equal to the maximum admissible value, keep the fixed value of the parameter of the control law.

[0029] According to another embodiment, the steps of the method are repeated periodically, the control law includes during the following iteration k+1 of the method the determined value of the parameter during the previous iteration k.

[0030] According to another embodiment, the steps of the method are repeated at a frequency greater than 1 kHz, or even 5 kHz.

[0031] According to another embodiment, the generator emulates a synchronous generator which delivers an electric current whose frequency is determined by the rotation speed of a rotor relative to a stator, the parameters of the control law being chosen from a stator resistance of the stator, a transient inductance of the stator, a permanent inductance of the stator, a permanent inductance of the stator and an open-loop transient time of the virtual synchronous generator.

[0032] According to another embodiment, the target output value is determined by means of the control law as a function of at least one electrical output value measured at the terminals of the generator.

[0033] According to another embodiment, the determination of the modified value of the parameter is carried out so as to minimize a difference between the modified value and the fixed value of said parameter.

[0034] According to another embodiment, the determination of the modified parameter value is carried out so as to minimize a difference between the modified parameter values ​​obtained during two successive iterations k, k+1 of the steps of the method.

[0035] According to another embodiment, the output electrical value is chosen from an intensity value (Lbc), a voltage value and a frequency value.

[0036] According to another embodiment, the method is configured to control the value generator output electrical power when instability occurs on the electrical distribution network.

[0037] According to another aspect, there is provided a computer program comprising instructions which, when the program is executed by a processor, lead to implementing the method according to the invention.

[0038] According to another aspect, there is provided a non-transitory recording medium readable by a processor on which a program is recorded for implementing the method according to the invention.

[0039] According to another aspect, there is provided a generator comprising an inverter and an electrical energy source, the generator being configured to deliver electrical output values ​​to an electrical distribution network, the generator being controlled by a control law, the control law comprising a set of fixed values ​​of parameters for modeling the operation of a virtual generator such that the control law is configured to determine at least one target output value to be delivered by the generator to the electrical distribution network, the generator comprising a processor configured to:

[0040] - determining at least one target output value by means of the control law;

[0041] - compare the target output value with at least one maximum value ad generator miscible;

[0042] - if the target output value is greater than the maximum value ad missible, determine a modified value of at least one parameter of the control law.

[0043] According to one embodiment, the generator is configured to deliver electrical output values ​​to a micro network.

[0044] According to another embodiment, the electrical energy source is a renewable energy source. Brief description of the drawings

[0045] Other characteristics, details and advantages will appear on reading the detailed description below, and on analyzing the attached drawings, in which: Fig.l

[0046] [Fig.l] is a schematic representation of a virtual generator already known from the state of the art. Fig. 2

[0047] [Fig.2] is a representation of an equivalent electrical diagram of the connection of the inverter to the electrical distribution network. Fig. 3

[0048] [Fig.3] is a schematic representation of the control method according to the present invention. Fig. 4

[0049] [Fig.4] is a representation of the voltage values ​​of a three-phase virtual generator known from the state of the art following a short circuit on the electrical distribution network (on the left) and of the voltage values ​​of a three-phase virtual generator according to the invention following the same short circuit on the electrical distribution network (on the right). Fig. 5

[0050] [Fig.5] is a representation of the intensity values ​​of a three-phase virtual generator known from the state of the art following a short circuit on the electrical distribution network (on the left) and of the intensity values ​​of a three-phase virtual generator according to the invention following the same short circuit on the electrical distribution network (on the right). Description of the embodiments

[0051] The drawings and the description below contain, for the most part, elements of a certain character. They may therefore not only serve to better understand the present disclosure, but also contribute to its definition, where appropriate. Generator

[0052] [Fig.l] schematically illustrates a virtual generator, in particular a synchronous one, according to the invention (called “Synchronous Virtual Generator” in English).

[0053] By “virtual generator” is meant a generator behaving like an autonomous device capable of producing electricity.

[0054] Such a virtual generator is represented by [Fig.l], also illustrating document EP3208907, the content of which is incorporated by reference.

[0055] Although described in the context of a particular virtual generator, the invention should not, however, be limited to this aspect. In particular, any generator intended to deliver a current and a voltage, in particular alternating current, to an electrical distribution network is conceivable.

[0056] The electrical distribution network can be a micro network or a traditional electrical distribution network. The generator 1 is then configured to form the network (called “grid forming” in English).

[0057] The generator 1 comprises at least one inverter 2 and an electrical energy source 3.

[0058] The inverter 2 is configured to be connected and to deliver to an electrical distribution network output electrical values ​​Vs. The output electrical values ​​Vs are in particular an alternating voltage Vabc, an alternating current Iabc, both having a frequency fabc. The output electrical values ​​Vs can also comprise an active power Pabc and a reactive power Qabc.

[0059] The output electrical values ​​Vs are the result of a conversion by the inverter 2 of input electrical values ​​VE. The input electrical values ​​VE are in particular a direct voltage Vc and a direct current L produced by the electrical energy source 3.

[0060] The inverter 2 is provided with electronic switches which, controlled on the basis of duty cycles, called instantaneous duty cycles aabc, make it possible to deliver the electrical output values ​​Vs to the electrical distribution network.

[0061] Electronic switches may, for example, comprise insulated gate bipolar transistors (called “IGBT” or “Insulated Gate Bipolar Transistor” in English).

[0062] The electrical energy source 3 may be a renewable energy source including, for example, photovoltaic panels, wind turbines, hydro turbines, thermodynamic machines. Other types of renewable electrical sources are also possible.

[0063] The renewable energy source 3 may be subject to climatic hazards, and consequently be an unstable and intermittent energy source.

[0064] The generator 1 may also comprise a power and / or energy accumulation system 4, such as a battery or others. Control law

[0065] In order to adjust and optimize the output electrical values ​​Vs delivered to the electrical distribution network, the generator 1, in particular the inverter 2, is controlled by a control law 5.

[0066] The control law 5 is implemented by computer means such as a computer, a calculator, a processor or even a control card.

[0067] The control law 5 is configured to allow a match between the electrical power generated by the electrical energy source 3 and the power consumed by the electrical distribution network.

[0068] The control law 5 is also configured to allow the generator 1 to respond to a load call on the electrical distribution network and / or to a fluctuation in the production of electricity by the electrical energy source 3.

[0069] By "load demand", we mean in particular a variation in the power consumed by a load on the electrical distribution network. By way of non-limiting example, a load may be industrial equipment (for example a factory and its machines), domestic equipment, street furniture on the electrical distribution network, electric charging stations, or others.

[0070] According to one embodiment, the control law 5 is configured so that the generator 1 thus emulates the behavior of a synchronous generator.

[0071] By “synchronous generator” is meant a generator which produces a current electric whose frequency is determined by the speed of rotation of a moving part (rotor) relative to a fixed part (stator).

[0072] For this purpose, and with reference to [Fig.l] (figure la of document EP 3208907), the control law 5 may comprise different blocks. In particular, the control law 5 comprises a control block 100.

[0073] The control block 100 is configured to determine control values ​​for controlling the inverter 2 so that the electrical output values ​​Vs are equal to, or close to, the target output values ​​VSjCibie- Target output values ​​Vs,target can therefore be electrical values ​​of the inverter 2.

[0074] The inverter 2 can thus deliver electrical output values ​​Vs adapted to the electrical distribution network. Process

[0075] Control law 5 includes the resolution of electromechanical differential equations allowing the operation of the virtual generator and its connection to the electrical distribution network to be modeled. The use of control law 5 requires the development of a computer program (or an algorithm) based on these differential equations.

[0076] For purely illustrative purposes, equations are described below for modeling the operation of a virtual synchronous generator according to a particular model known to those skilled in the art. Of course, the invention is not limited to this model, other models also known per se can be used to establish the control law 5.

[0077] In the following, the symbols indicated in the table below are used to model the virtual synchronous generator:

[0078]

[0079]

[0080]

[0081]

[0082]

[0083] [Tables 1] Variable Definition Vd Stator flux on the d axis of the virtual synchronous generator Stator flux on the q axis of the virtual synchronous generator ^fd Rotor flux on the d axis of the virtual synchronous generator id Output current on the d axis of the virtual synchronous generator h Output current on the q axis of the virtual synchronous generator ^base Reference rotation speed of the virtual synchronous generator Ra Stator resistance of the virtual synchronous generator 4 / Transient inductance on the d axis of the stator of the virtual synchronous generator Ld Permanent inductance on the d axis of the stator of the virtual synchronous generator Lq Permanent inductance on the q axis of the stator of the virtual synchronous generator Td(> Open loop transient time of the virtual synchronous generator ra. modeling uses the dqO transform for synchronous machines and three-phase inverters. According to this modeling, the fluxes of a synchronous generator can be described along d and q axes as follows: [Math.l] base Furthermore, the output current of the virtual synchronous generator can be described along the d and q axes as follows: [Math.2] ''1= Modeling can also use, in particular, the characteristics of the electrical distribution network and inverter 2. These characteristics of the distribution network tribute are imposed and cannot be changed. The symbols indicated in the table below are then used in connection with [Fig.2]:

[0084] [Tables2] Variable Definition K Filtered single-line network voltage vr Single-line network voltage Ll and Rl Inverter impedance and resistance Lp and Network impedance and resistance Cf and Rf Output filter capacitance and resistance

[0085] This gives parameters allowing the modeling of the virtual synchronous generator and its connection with the electrical distribution network.

[0086] As indicated in the equations above, a control law usually comprises fixed values ​​pref of parameters modeling the virtual generator, corresponding here to Ra, L'd, Ld, Lq, T'do. We then speak of a static control law. The number of parameters of the control law can of course be more or less high, it being understood that there are more or less complex models that can be used.

[0087] By "fixed values ​​of parameters of a static control law" is meant values ​​determined when establishing the control law and subsequently invariable over time, in particular during operation of the generator.

[0088] As known from the state of the art, such a control law 5 thus makes it possible to obtain a relationship which can be simplified as follows:

[0089] [Math.3]

[0090] M corresponds to the modeling corresponding in particular to the resolution of the differential equations taken into account, pref corresponds to the values ​​of fixed parameters of the static control law and Vs corresponds to the electrical output values ​​of the inverter 2 at time k.

[0091] Of course, the control law 5 can also take into account other values, in particular electrical values, which are not described here for the sake of simplification. For example, the control law 5 can also take into account the DC voltage Vc and DC current Ic values ​​of the electrical energy source 3, or any other values.

[0092] It is thus possible to determine the target output values ​​VSjCibie to control the inverter at time k+1 as a function of the fixed values ​​pref of the parameters and of the output electrical values ​​Vs measured at time k.

[0093] Taking into account the electrical output values ​​Vs thus makes it possible to continuously detect the fluctuations occurring on the electrical distribution network, and to adapt these values ​​in real time according to the target output values ​​VSjCibie determined by the control law and acting as the setpoint value of the inverter 2.

[0094] However, a static control law with such fixed values ​​pref may prove unsatisfactory when it comes to controlling the generator 1 during certain instabilities, in particular of short duration and / or high amplitude.

[0095] By "short-term instability" is meant a temporary divergent regime, resulting in an unstable state different from the acceptable and usual stable state of the generator 1. An instability may in particular have a duration of less than 20 milliseconds, or even less than 10 seconds, or even less than 5 milliseconds.

[0096] For example, instability may occur in particular when the generator 1, not producing any current, switches very quickly to producing maximum power. Instability may also occur during a short circuit causing the nominal voltage Vabc to drop to 0 (or close to 0) in a few seconds.

[0097] Thus, the control method according to the invention makes it possible to modify the values ​​of the parameters of the control law 5 over time. This is then referred to as a dynamic control law, unlike a static control law. The values ​​of the parameters are then no longer necessarily equal to the fixed values ​​pref of the static control law.

[0098] The modification of the values ​​of the parameters of the control law 5 thus makes it possible to determine acceptable electrical output values ​​Vs while overcoming the limits inherent in the modeling of the operation of the virtual generator when instabilities appear on the electrical distribution network.

[0099] The control method according to the invention is more particularly described in connection with [Fig.3].

[0100] According to a step 101, the control law 5 is implemented. The control law 5 takes into account in particular measurements of the electrical output values ​​Vs(k) of the generator 1. More particularly, these electrical output values ​​Vs(k) are measured at an instant k at the output terminals of the inverter 2.

[0101] According to a step 102, the target output values ​​VSjCibie(k+1) that the inverter 2 must actually deliver to the electrical distribution network at a time k+1 are thus determined from the control law 5.

[0102] These target electrical output values ​​VSjCibie must not cause overvoltage or overcurrent of the generator 1, which could otherwise degrade its operation.

[0103] Also, according to a step 103, it is determined whether the target output values ​​VSjCibie are not not likely to exceed maximum permissible values ​​Vs>max. More specifically, the maximum permissible values ​​Vs>max are maximum usage values ​​specific to generator 1, and in particular to inverter 2, inherent to its electrical construction and operating characteristics.

[0104] According to one embodiment, the target output values ​​V s,target are thus compared in step 103 with respect to the maximum admissible values ​​Vs>max.

[0105] According to an embodiment more particularly described below, the target output values ​​VSjcibie may comprise the alternating voltage Vabc (corresponding to the values ​​ed and eq along the d and q axes of the dqO transform), the alternating intensity Iabc (corresponding to the values ​​id and iq along the d and q axes of the dqO transform) and the duty cycle aabc (corresponding to the values ​​ad and aq along the d and q axes of the dqO transform),

[0106] According to this embodiment, the maximum admissible values ​​Vs>max can then include in particular the maximum value of current admissible by the inverter at output Imax, the maximum admissible value of the duty cycle by the inverter at output a max and / or the maximum value of voltage admissible by the inverter at output emax.

[0107] Exceedances Ve, Vi, Va can be determined, for example by calculating the difference between the absolute values ​​respectively of the target output values ​​VSjCibie and the maximum values ​​VSjmax, in the following way:

[0108] [Math.4] (I" +^q(k) - emax [°109] + [Oi 10] - amax

[0111] Other methods of calculating overshoots are possible, it being understood that this term designates the mathematical distance between the compared values.

[0112] In a step 104, it is determined whether at least one excess Ve, V;, Va between the target output values ​​VSjCibie and the maximum admissible values ​​Vs>max is greater than or less than 0.

[0113] If all the calculated overshoots are less than or even equal to 0, this means that no electrical output value Vs is likely to exceed the maximum admissible values ​​Vs>max.

[0114] In a step 105, the parameters p(k+l) are therefore assigned at time k+1 the fixed values ​​pref of the parameters. Indeed, a static control law is sufficient to ensure satisfactory behavior of the generator 1, while respecting its electrical operating limits.

[0115] Conversely, if at least one overshoot is greater than 0, this means that at least one electrical output value Vs is likely not to remain within the limits of the maximum admissible values ​​Vs>max.

[0116] If such target output values ​​VSjCibie were actually used to control the inverter 2 (as is the case according to a static control law), the generator 1 would risk finding itself in an overcurrent or overvoltage situation, leading to a degradation of its operation. A static control law is insufficient to ensure satisfactory behavior of the generator 1, while respecting its electrical operating limits.

[0117] It is therefore necessary to optimize the values ​​of the parameters p(k+1) at time k+1 (step 106).

[0118] Also, according to a step 107, the values ​​of the parameters of the control law 5 are modified. Modified values ​​poptim of the parameters of the control law 5 are then determined.

[0119] The determination of the modified values ​​poptim is advantageously carried out on the one hand by minimizing the variation of the modified values ​​poptim with respect to the fixed values ​​p ref of the static control law, and on the other hand by limiting any exceeding of the maximum admissible values ​​Vs,max-

[0120] According to one embodiment, the determination of the modified values ​​poptim can for example be carried out by quadratic resolution.

[0121] According to this embodiment, we seek to minimize a cost function, for example such that:

[0122] [Math.5] p, - l * ref 1 opHm ~f

[0123] Furthermore, the condition aimed at limiting any exceeding of the maximum admissible values ​​Vs>max can be written as follows:

[0124] [Math.6]

[0125] q and [3 are fixed values, q allows to take into account an acceptable error e for each output value, in order to ensure that the minimization converges towards a possible solution. [3 aims to ensure that the modified values ​​poptimk+1 at time k+1 remain close to the modified values ​​poptimk obtained at time k previous.

[0126] eE, Ej, ea correspond to the acceptable errors for the overshoots Ve, V;, Vase according to the embodiment more particularly described. These errors eE, e;, ea are advantageously low, or even equal to 0.

[0127] Once the modified values ​​poptim have been obtained, the control law 5 can include these modified values ​​poptim and make it possible to determine target output values ​​VSjCibie allowing adequate control of the generator 1.

[0128] The steps of the control method can thus be repeated, in particular periodically. More particularly, the steps of the method are repeated at regular time intervals, for example at a frequency greater than 1 kHz, or even 5 kHz, or even of the order of 6.66 KHz.

[0129] Alternatively, the control method takes into account a time window at each iteration, the time window then being shifted by sliding during each successive iteration. Experimental results

[0130] [Fig.4] and [Fig.5] present results obtained with the method according to the invention (on the right) compared to a virtual generator using only a control law in a static manner (on the left) following a short circuit on the electrical distribution network.

[0131] It appears that the method according to the invention makes it possible to prevent overvoltages or overcurrents from occurring, exceeding the maximum admissible values ​​of the generator.

[0132] Obviously, the invention is not limited to the embodiments described above and provided solely by way of example. It encompasses various modifications, alternative forms and other variants that may be envisaged by those skilled in the art within the framework of the present invention and in particular all combinations of the different operating modes described above, which may be taken separately or in association.

Claims

Claims

1. A method for controlling a generator (1) comprising an inverter (2) and an electrical energy source (3), the generator (1) being configured to deliver electrical output values ​​(Vs) to an electrical distribution network, the generator (1) being controlled by a control law (5), the control law (5) comprising a set of fixed values ​​(pref) of parameters for modeling the operation of a virtual generator such that the control law (5) is configured to determine at least one target output value (VSjCibie) which must be delivered by the generator (1) to the electrical distribution network, the method comprising: - determining at least one target output value (VSjCibie) by means of the control law (5); - comparing the target output value (VSjCibie) with at least one maximum admissible value (Vs>max) of the generator (1);- if the target output value (VSjCibie) is greater than the maximum admissible value (Vs>max), determining a modified value (poptim) of at least one parameter of the control law (5), in which the generator (1) emulates a synchronous generator which delivers an electric current whose frequency is determined by the rotation speed of a rotor relative to a stator, the parameters of the control law (5) being chosen from a stator resistance of the stator (Ra), a transient inductance of the stator (L'd), a permanent inductance of the stator (Ld), a permanent inductance of the stator (Lq) and an open-loop transient time (T'do) of the virtual synchronous generator.;

2. Method according to claim 1, in which, if the target output value (Vs.cibie) is less than or equal to the maximum admissible value (VSjmax), keeping the fixed value (pref) of the parameter of the control law (5).

3. Method according to any one of the preceding claims, in which the steps of the method are repeated periodically, the control law (5) comprising during the following iteration k+1 of the method the determined value (poptim) of the parameter during the previous iteration k.

4. A method according to any preceding claim, wherein the steps of the method are repeated at a frequency greater than 1kHz or even 5 kHz.

5. A method according to any preceding claim, wherein the target output value (VSjCibie) is determined by means of the law control (5) as a function of at least one electrical output value (Vs) measured at the terminals of the generator (1).

6. Method according to any one of the preceding claims, in which the determination of the modified value (poptim) of the parameter is carried out so as to minimize a deviation between the modified value (poptim) and the fixed value (pref) of said parameter.

7. Method according to any one of the preceding claims, in which the determination of the modified parameter value (popum) is carried out so as to minimize a difference between the modified values ​​of the parameter obtained during two successive iterations k, k+1 of the steps of the method.

8. A method according to any preceding claim, wherein the output electrical value (Vs) is selected from an intensity value (Iabc), a voltage value (Vabc) and a frequency value (fabc)-

9. Method according to any one of the preceding claims, configured to control the electrical output value (Vabc) of the generator (1) when an instability occurs on the electrical distribution network.

10. Computer program comprising instructions which, when the program is executed by a processor, lead to implementing the method according to one of claims 1 to 10.

11. Non-transitory recording medium readable by a processor on which a program is recorded for implementing the method according to one of claims 1 to 10.

12. Generator (1) comprising an inverter (2) and an electrical energy source (3), the generator (1) being configured to deliver electrical output values ​​(Vs) to an electrical distribution network, the generator (1) being controlled by a control law (5), the control law (5) comprising a set of fixed values ​​(pref) of parameters for modeling the operation of a virtual generator such that the control law (5) is configured to determine at least one target output value (VSjCibie) which is to be delivered by the generator (1) to the electrical distribution network, the generator (1) comprising a processor configured to: - determine at least one target output value (VSjCibie) by means of the control law (5); - compare the target output value (VSjCibie) with at least one value

13.

14. maximum admissible (Vs>max) of the generator (1); - if the target output value (VSjCibie) is greater than the maximum admissible value (Vs>max), determine a modified value (poptim) of at least one parameter of the control law (5) wherein the generator (1) is adapted to emulate a synchronous generator which delivers an electric current whose frequency is determined by the rotational speed of a rotor relative to a stator, the parameters of the control law (5) being chosen from a stator resistance of the stator (RJ, a transient inductance of the stator (L'd), a permanent inductance of the stator (Ld), a permanent inductance of the stator (Lq) and an open-loop transient time (T'do) of the virtual synchronous generator. Generator (1) according to claim 13, configured to deliver electrical output values ​​(Vs) to a micro network. Generator (1) according to claim 13 or 14, wherein the electrical energy source (3) is a renewable energy source.