Method for determining electrical flows within an energy community
The method addresses the complexity and resource-intensive nature of existing electrical flow determination methods by using a flow conservation model, priority levels, and iterative optimization, enabling precise and efficient real-time determination of electrical flows within an energy community.
Patent Information
- Application Number
- FR2022013643
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-12-16
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2042-12-16
AI Technical Summary
Existing methods for determining electrical flows within an energy community are complex, resource-intensive, and often impractical for real-time implementation, especially when considering the limited number of meters and varying energy storage systems.
A method that constructs a flow conservation model, assigns priority levels to electrical flows, and uses an iterative mathematical optimization method to determine electrical flows, allowing for real-time processing with limited computational resources.
This method enables precise, rapid, and efficient determination of electrical flows within an energy community, facilitating real-time control and adaptation of energy distribution, while minimizing computational demands.
Smart Images

Figure 00000025_0000 
Figure 00000025_0001 
Figure 00000025_0002
Abstract
Description
Title of the invention: Method for determining electrical flows within an energy community Technical field
[0001] The present invention relates to the field of managing electrical flows between different components, in particular for managing electrical energy consumption. In particular, the invention relates to determining electrical flows between components of an energy community and an electricity distribution network.
[0002] An energy community is defined as an autonomous entity that brings together shareholders / members who can consume, produce or store energy (such an entity is legally defined in particular in Article 40 of the Energy-Climate Law as well as in the Energy Code in France). The members of this community can exchange energy between themselves in order to optimize their consumption according to economic, technical, environmental or social criteria. This community is connected to the electricity distribution network, which makes it possible to supply the energy community when it consumes more energy than it produces, or conversely to supply energy to the electricity distribution network when it produces more energy than it consumes.Such an energy community may for example comprise at least one means of energy production such as a photovoltaic panel, at least one means of energy consumption such as a dwelling or a building, at least one means of energy storage such as a battery and at least one connection to an electrical energy distribution network.
[0003] An energy community may comprise several electricity meters, for example meters provided by the public electricity network manager (for example Linky meter deployed in France) of at least one component (called official or certified meters), and additional (unofficial) meters to measure for example the production of a photovoltaic (PV) panel or the incoming and outgoing energy of a battery. From these measurements, there may be an infinite number of ways in which the energy could have passed between the members of the energy community and the public electricity network if the number of measurements is less than the number of electrical flows. Some energy transfer scenarios may be very advantageous for some members, and much less for others.
[0004] Determining the electrical flows between the different components of an energy community can be used for controlling the energy community, for an adaptation of the energy community, etc. Prior art
[0005] The notion of energy community being relatively recent, there is still relatively little work in the scientific literature on the subject.
[0006] In the document: "F. Tounquet, L. De Vos, I. Abada, I. Kielichowska, and C. Klessmann. Energy communities in the European union. Revised Final Report of the ASSET Project (Advanced System Studies for Energy Transition), 2019", the authors are interested in different ways of distributing the benefits of an energy community among the stakeholders. To do this, the notion of stability of a community is introduced with the notion of marginal value, the latter describing the marginal cost that a stakeholder gains by being part of a community. An energy community is said to be stable if each stakeholder has a positive marginal value. The authors then introduce a way of distributing the benefits / costs of the community using the Shapley Hart value (described in the document "S. Hart. Shapley value. In Game theory, pages 210-216. Springer, 1989." which defines a share of the benefits for each stakeholder in the community).
[0007] In the following documents:
[0008] AD Mustika, R. Rigo-Mariani, V. Debusschere, and A. Pachurka. A two-stage management strategy for the optimal operation and billing in an energy community with collective self-consumption. Applied Energy, 310:118484, 2022. and
[0009] JE Contreras-Ocana, A. Singh, Y. Bésanger, and F. Wurtz. Integrated planning of a solar / storage collective. IEEE Transactions on Smart Grid, 12(1):215-226, 2020.
[0010] Several strategies for distributing the production of an energy community are presented, ranging from very simple methods to very complex methods combining optimization and game theory. For these strategies, all the electrical flows are determined simultaneously, which complicates the resolution of the problem, in particular for real-time implementation.
[0011] Furthermore, patent application FR3055048 A1 describes a very specific approach to the distribution of electrical flows. However, this distribution does not consider an energy storage system. This method cannot be applied to any energy community.
[0012] Furthermore, patent application WO20200709 A1 describes a method for validating a multi-flow (set of flows) of energy allocation. For this method, an energy allocation calculation step is carried out using a mathematical optimization method. However, this method does not precisely detail the mathematical optimization method implemented. In addition, for this method, all the electrical flows appear to be determined simultaneously, which complicates the resolution of the optimization problem, especially for real-time implementation. Summary of the invention
[0013] The aim of the invention is to precisely determine electrical flows within an energy community, quickly and simply, with limited requirements in computing resources (processors and memory), and while limiting the number of meters. For this purpose, the present invention relates to a method for determining electrical flows within an energy community, in which a flow conversation model is constructed, at least one electrical flow is measured, a priority level is assigned to each flow, and an iterative method is applied to determine the electrical flows by means of a mathematical optimization method applying the flow conservation model. The steps of the iterative method are carried out in the order of the assigned priority levels.The application of an iterative method based on an order of priority allows a simple and rapid convergence towards a determination of the electrical flows (taking into account the different constraints), which allows the application of the process in real time.
[0014] The invention further relates to a method for controlling an energy community, a method for adapting an energy community, and an energy community implementing the method for determining electrical flows according to the invention.
[0015] The invention relates to a method for determining electrical flows within an energy community, said energy community comprising a plurality of components and at least one means for measuring the electrical flow of a component, each component of said energy community being chosen from an energy producing system, an energy consuming system, an energy storage means and a connection to an electrical distribution network, and said energy community being characterized by a topology, which defines nodes for each component as well as connections between said nodes. For this method, the following steps are implemented: a. A model of conservation of the electric flux is constructed for each node of said energy community as a function of said connections of said topology of said energy community; b. A priority level is assigned to each electrical flow of said topology, said priority level being determined from a first priority level and at least one higher priority level, each higher level having less priority than a lower level; c. At least one electric flux is measured at a node by said measuring means; d. The electrical flows belonging to said first priority level are determined. by an optimization method which minimizes the sum of the electrical flows as a function of said at least one measured electrical flow and as a function of said model of conservation of the electrical flow at each node; and e. Said optimization method is repeated for each higher priority level to determine the electrical flows, each repetition of the optimization method taking into account the electrical flows determined for each lower priority level.
[0016] According to one embodiment, said optimization method implements a linear programming algorithm.
[0017] Advantageously, when said linear programming algorithm determines a plurality of solutions, said optimization method implements a quadratic programming algorithm.
[0018] Advantageously, said quadratic programming algorithm is constrained by a predefined electrical flow distribution rule.
[0019] Preferably, said predefined electrical flow distribution rule is chosen from a weighted distribution, a distribution proportional to the electrical consumption or a combination of the two.
[0020] According to one implementation, said optimization method is constrained by said measured electrical flux obtained by a certified measuring means.
[0021] According to one aspect, said optimization method is capable of adjusting a measured electrical flux obtained by a non-certified measuring means.
[0022] Furthermore, the invention relates to a method for controlling an energy community, said energy community comprising a plurality of components and at least one means for measuring the electrical flow of a component, each component being chosen from an energy producing system, an energy consuming system, an energy storage means and a connection to an electrical distribution network. For this method, the following steps are implemented: a. Electrical flows within said energy community are determined by means of the method according to one of the preceding characteristics; and b. At least one component of said energy community is controlled based on said determined electrical flows.
[0023] Furthermore, the invention relates to a method for adapting an energy community, said energy community comprising a plurality of components and at least one means for measuring the electrical flow of a component, each component being chosen from an energy producing system, an energy consuming system, an energy storage means and a connection to an electrical distribution network. For this method, the following steps are implemented: a. Electrical flows are determined within said energy community at by means of the method according to one of the preceding characteristics; and b. Said energy community is adapted according to said determined electrical flows, by adding or removing at least one component or by modifying at least one component.
[0024] The invention also relates to an energy community comprising a plurality of components and at least one means for measuring the electrical flow of a component, each component being chosen from an energy producing system, an energy consuming system, an energy storage means and a connection to an electrical distribution network. It comprises computer means for implementing the method for determining electrical flows according to one of the preceding characteristics, and possibly only means for displaying the determined electrical flows.
[0025] Other characteristics and advantages of the methods and the system according to the invention will appear on reading the following description of non-limiting examples of embodiments, with reference to the figures appended and described below. List of figures
[0026] [Fig.l]
[0027] [Fig.l] illustrates the steps of the method for determining electrical flows according to one embodiment of the invention.
[0028] [Fig.2]
[0029] [Fig.2] illustrates the steps of the method for controlling an energy community according to one embodiment of the invention.
[0030] [Fig.3]
[0031] [Fig.3] illustrates the steps of the method for adapting an energy community according to one embodiment of the invention.
[0032] [Fig.4]
[0033] [Fig.4] illustrates, for an example, a topology of an energy community.
[0034] [Fig.5]
[0035] Figures 5A to 5C illustrate the iterative steps of determining electrical flows for the example of [Fig.4].
[0036] [Fig.6]
[0037] [Fig.6] illustrates the energy consumed from the distribution network for the example of [Fig.4], the energy consumed being measured by an official meter and determined by the method according to the invention.
[0038] [Fig.7]
[0039] [Fig.7] illustrates the energy produced transferred to the distribution network for the example of [Fig.4], the energy produced being measured by an official meter and determined by the method according to the invention.
[0040] [Fig. 8]
[0041] [Fig.8] illustrates the energy flows of different components of the energy community of [Fig.4], the energy flows being measured or determined by means of the method according to the invention.
[0042] [Fig.9]
[0043] [Fig.9] illustrates the errors between the measured flows and the flows determined by the method according to the invention, for the example of [Fig.4].
[0044] [Fig. 10]
[0045] [Fig. 10] illustrates the origins of the energy transferred to the consumer of the energy community for the example of [Fig.4]. Description of the embodiments
[0046] The present invention relates to a method for determining electrical flows within an energy community. An energy community is defined as being an autonomous entity that brings together components that can consume, produce or store energy. The members of this community can exchange energy so as to optimize their consumption according to economic, environmental or social criteria. This energy community is connected to the electricity distribution network, which makes it possible to supply the energy community when it consumes more energy than it produces, or conversely to supply energy to the electricity distribution network when it produces more energy than it consumes. An electrical flow is a quantity of energy, which can correspond either: - To the quantity of electrical energy transferred between two components of the energy community, - The quantity of electrical energy transferred between the electrical distribution network and a component of the energy community, or - The amount of energy entering and / or leaving a component of the energy community.
[0047] Thus, an energy community, also called an energy system or energy network, may comprise a plurality of components chosen from an energy producing system, an energy consuming system, an energy storage means and a connection to an electrical distribution network. Preferably, the energy community may comprise at least one producing system, one consuming system and a connection to an electrical distribution network. Advantageously, the energy community may comprise at least one producing system, one consuming system, a connection to an electrical distribution network and an energy storage means.
[0048] The energy producing system may in particular comprise at least one system renewable energy producer (such as at least one photovoltaic panel, at least one wind turbine, a hydraulic power plant, a biomass power plant), or any other power plant, for example a nuclear power plant, a gas power plant, etc.
[0049] The energy consuming system may in particular comprise at least one building (for example a residential building, an industrial building, or a professional building) and all of the electrical equipment integrated into the building (for example for heating, industrial tools, cooking, IT, etc.), or shared equipment (for example public lighting, a vehicle charging station), etc.
[0050] An energy storage means may in particular be a battery, a compressed gas storage system, a fuel cell, or any similar means.
[0051] The energy community is characterized by a topology, which defines nodes for each component and connections between said nodes. In other words, the energy community is represented by a network comprising nodes and links between the nodes, the nodes representing the components of the energy community and the links representing the connections between the components. Advantageously, the topology may comprise for each node the type of component among energy producing system, energy consuming system, energy storage means and connection with the energy distribution network.
[0052] In addition, the energy community comprises at least one means for measuring the electrical flow of a component, and possibly a means for reconstructing an electrical flow of a component from the measurements. In other words, a measuring means captures an electrical flow leaving and / or entering a component of the energy community. This measuring means is generally called a meter. This measuring means may be certified (official, MID certified for billing) or non-certified. A certified measuring means is a measuring means whose measurement is correct, and which may be used in particular by the electricity supplier for billing. This may be, for example, a Linky meter as deployed in France. A non-certified measuring means is a measuring means whose measurement may be subject to measurement inaccuracies. It may be an informal meter placed on a photovoltaic panel or any other component.
[0053] The method according to the invention implements the following steps:
[0054] 1) Construction of a flux conservation model
[0055] 2) Assignment of a priority level
[0056] 3) Measurement of electrical flows
[0057] 4) Determination of electrical flows of the first priority level
[0058] 5) Determination of electrical flows of other priority levels
[0059] The steps can be implemented by computer means, in particular a computer, server, or calculator. Steps 1 and 2 can be implemented once offline, and then steps 3 through 5 can be implemented in real time or for a past period. Steps 1 and 2 can be performed in that order, in reverse order, or simultaneously. The steps will be detailed later in the description.
[0060] [Fig.l] illustrates, schematically and in a non-limiting manner, the steps of the method according to one embodiment of the invention. From the topology TOP of the energy community, a flux conservation model MCF is constructed and a priority level NIP is assigned to each electrical flow of the topology. Electrical flows MES are measured by the measuring means. An optimization method OPT1 is then applied a first time for the first priority level, to determine electrical flows Fel as a function of the MES measurements and the flux conservation model MCF. Then, an optimization method OPTN is repeated for each priority level to determine electrical flows FeN, as a function of the MES measurements and the flux conservation model MCF. The repetition (iteration) is indicated by the feedback arrow N=N+1.This repetition of the optimization method takes into account the electrical flows determined for the previous priority levels.
[0061] 1) Construction of a flux conservation model
[0062] During this step, an electrical flow conservation model is constructed for each node of the energy community based on the topology of the energy community. In other words, for each component of the energy community, a flow conservation model is applied which requires that the sum of all flows at this node (outgoing or respectively incoming) is equal to the energy of the component (produced or respectively consumed). This model, which reflects the energy balance of each component, allows good representation of the electrical exchanges within the energy community, ensuring the precise determination of electrical flows within the energy community.
[0063] According to one implementation, within the topology and for the construction of the flow conservation model, the storage means can be seen as a node that can be divided into a consumer node and a producer node.
[0064] To implement the electric flow conservation model, the set of electric flows of the energy community is identified using the topology of the energy community.
[0065] In the following, an implementation of this model of conservation of the electric flux is described:
[0066] We note FpijCjun electric flow going from a producer system Pi to a consumer system Cj.
[0067]
[0068]
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076] We also denote by adj(Pi) the set of consumer systems having a flow coming from the producer system Pi, and by adj(Ci) the set of producer systems having a flow going to the consumer system Ci. For each producing system, we can write the following equation: S WA - P With pila quantity of electrical energy produced by the producing system i, which can be measured or deduced from the measurements. For each consuming system, we can write the following equation: With ci the amount of energy consumed by the consumer system i, which can be measured or deduced from the measurements. We can write the set of equations in an expression of the form to form a flux conservation model: / h B With x a vector comprising all possible energy flows, and matrix A and vector B can be constructed to satisfy the previous equations. Since the electric flows are formulated from a producer system to a consumer system, we can write the following inequality: x > 0. 2) Assignment of a priority level In this step, a priority level is assigned to each electrical flow in the topology. The priority level is determined within a classification that includes a first priority level and at least one higher priority level, each higher level being less priority than a lower level (the notions of higher and lower are linked to the priority number: the first priority level is a level lower than the second priority level, which itself is lower than the third priority level). The priority level allows certain flows to be prioritized over others. In other words, the priority level reflects the fact that certain electrical flows can take electrical energy that is available while other electrical flows can make do with the surplus. For example, electrical energy produced by a producer system is initially intended to supply energy to a consumer system, and if all the energy is not consumed, to supply energy to an energy storage means. For this example, the energy flow from the producer system to the system consumer is of first priority level, and the energy flow from the producer system by means of energy storage is of second priority level.
[0077] Advantageously, the priority level may be predetermined, for example by means of an energy community control system, based on a control strategy applied to the energy community. Such a control strategy may include maximizing the use of energy produced by a producer system within the energy community, maximizing the use of the energy storage system, maximizing the supply of energy to the distribution network, maximizing the consumption of renewable energy, maximizing a proximity criterion (a producer system will supply electrical energy first to the geographically closest components), etc. or any combination of these strategies. 3) Measurement of electrical flows
[0078] During this step, at least one electrical flow is measured at a node by the electrical flow measurement means. In other words, an electrical flow entering or leaving a component of the energy community is measured. For example, it may be an electrical flow supplied by the electrical distribution network, or an electrical flow produced by a producer system (this is the quantity pi defined above for the flux conservation model) or an electrical flow consumed by a consumer system (this is the quantity ci defined above by the flux conservation model).
[0079] If the measuring means is certified (official), then the measurement is called "certified measurement" or "official measurement", and if the measuring means is not certified (unofficial), then the measurement is called "uncertified measurement" or "unofficial measurement".
[0080] 4) Determination of electrical flows of the first priority level
[0081] During this step, electrical flows belonging to the first priority level (determined in step 2) are determined by an optimization method which minimizes the electrical flows as a function of the electrical flow measurements of step 3 and by implementing the flux conservation model constructed in step 1. In other words, the electrical flows belonging to the first priority level are determined by a minimization of a function obtained by the flux conservation model, the minimization being constrained by the measurements.
[0082] According to one embodiment, the optimization method can implement a linear programming algorithm, and / or a quadratic programming algorithm. These algorithms allow for the determination of electrical flows in a precise, robust and rapid manner. Linear programming, also called linear optimization, is a method allowing to obtain the best result in a mathematical model whose requirements are represented by linear relations. Linear programming is a special case of mathematical programming (also called mathematical optimization). More formally, linear programming is a technique for optimizing a linear objective function, subject to linear equality and inequality constraints. Its feasible region is a convex polytope, which is a set defined as the intersection of a finite number of half-spaces, each of which is defined by a linear inequality. Its objective function is a real-valued affine (linear) function defined on this polyhedron. A linear programming algorithm finds a point on the polytope where this function has the smallest (or largest) value, if such a point exists.Quadratic programming is a process for solving certain mathematical optimization problems involving quadratic functions. More precisely, the goal is to optimize (minimize or maximize) a multivariate quadratic function subject to linear constraints on the variables. Quadratic programming is a type of nonlinear programming.
[0083] According to one implementation of the invention, the optimization method may implement a linear programming algorithm. In addition, in the case where the linear programming algorithm determines a plurality of solutions, the optimization method may implement a quadratic programming algorithm. Thus, the quadratic programming method is only applied to the most complex optimizations, which promotes speed, and limits the processors and computer memory required to determine the electrical flows. Thus, the method can be applied in real time.
[0084] According to one aspect of the invention, when the optimization method implements a quadratic programming algorithm, this quadratic programming algorithm can be constrained by a predefined rule for distributing electrical flows. Such a rule for distributing electrical flows translates for components of the same priority level how the electrical flows are distributed between these components. For example, such a rule can be applied when the energy community comprises a producer system and two consumer systems of the same priority level; it is then a question of distributing the energy produced by the producer system between the two consumer systems. The distribution rule can be chosen in particular from a weighted distribution, a distribution proportional to the electrical consumption, or a combination of the two.
[0085] According to one aspect of the invention, the optimization method may be constrained by the measured electrical flux obtained by an official (certified) measuring means. In other words, when the measured electrical flux is certified, this measurement serves as a constraint for the optimization method. In this way, the determined electrical flows are consistent with the measurement at the measurement location.
[0086] Additionally or alternatively, when the measured electrical flux is obtained by a non-certified measuring means, this measurement can serve as a constraint for the optimization method. In other words, this non-certified measurement serves as a constraint for the optimization method. In this way, the determined electrical fluxes are consistent with the measurement at the measurement location. Alternatively, when the measured electrical flux is obtained by a non-certified measuring means, this measurement can be adjusted by the optimization method. Thus, an additional degree of freedom can be left to the optimization method, while respecting as much as possible what was measured, to maintain good representativeness of the determined electrical fluxes.
[0087] A non-limiting example of carrying out the determination of magnetic fluxes is described in the remainder of the description.
[0088] By applying the flux conservation model at each node belonging to the first priority level, the following optimization problem can be solved: HAS O-jH ' Xj St XX --- XA ü
[0089] With N the number of energy flows, x; the energy flows.
[0090] This problem can be solved using a standard linear programming algorithm.
[0091] The above problem may not have solutions if the measurements are inconsistent with each other, and this is something very likely if the measurements are all independent of each other, due to measurement errors. The measurements, denoted y, correspond to sums of certain energy flows and can be linked to the electric flow vector x by a matrix M in the following way: Jh has
[0092] We denote by $ the vector of the actual measured and certified flows. We denote by A the matrix which allows us to select the certified measurements. We can then add the following constraint to the optimization problem: Aÿ AMx A / y
[0093] To overcome the case where the inconsistency of the measurements does not allow the following two constraints to be respected (conservation of the flux and constraint of the measurements): s X and zlA X AA Aÿ
[0094] We can consider a vector u of the incoming and outgoing flows of the energy community and B a matrix such that:
[0095] This equation then becomes the new energy conservation equation. We can note that w £ 0. We can optionally add a constraint to prohibit the possibility of having an energy storage means that discharges and charges simultaneously. We can then formulate the optimization problem as: Have
[0096] We define E(p) as an identity matrix cut so as to keep only the lines of electric fluxes determined at the lower priority levels. We also define z(p 11 as a vector of the electric fluxes determined at the lower priority levels. And we can write:
[0097] This formula ensures that the electrical flow values determined for the lower priority levels are preserved in x. This matrix and vector are used in step 5. In step 4, for the first priority level, no electrical flow has been previously determined.
[0098] The optimization problem can then be written: iAÇC mis V ,r ; sL Ax / j. 7À—> Ü E: i 3?
[0099] With L(p)Tx is the cost function in the linear problem, x(p) the set of electrical flows of the priority level p and indicates the optimization problem that can be solved by a linear programming algorithm of the priority level p.
[0100] This problem is solved using a linear programming algorithm. If this problem has a unique solution, in particular if there is a number of authorized flows in accordance with the number of available measurements, the unique solution defines the electrical flows of the priority level p and we go directly to the next step with a priority level p+1 (step 5). If this problem has an infinity of solutions, in particular if there are too many authorized flows compared to the number of available measurements (the problem is underdefined), we then apply a quadratic programming algorithm. The quadratic programming algorithm makes it possible to determine a single solution that ensures proper functioning of the energy community, that is to say without choosing a solution from among the infinite number of solutions that can advantage certain components of the energy community and disadvantage others.
[0101] In this case, a distribution rule can be applied, in particular from one of the following three rules:
[0102] 1. A weighted distribution rule, which distributes energy according to weights predetermined for each electrical flow of a priority level p. We note 0pî,cj the distribution weighting for the flow FPi Cj and we can write optimization constraints: * .Fr, 7......==----- V .FP,„=0 Mïy - — V fa ■ \ 0 — '
[0103] With adjp(X) the set of components which have a flow coming from or going to component X at priority level p (if this component is a consumer system or a producer system), Cs the consumption measurement on the energy component
[0104] 2. A proportional distribution rule (also called pro rata), which distributes energy in proportion to the consumption of each of the consuming systems, we can write an optimization constraint:
[0105] With Cs the consumption measurement on the energy component,
[0106] 3. A combination of the two previous rules, for which we can write the constraint of the following optimization: 7 / .-.., / 7 7 v-"-..... If H XL — G----- Mi „ >• . • 1 ---7:., s: .,:7:711 / ,. : /
[0107] These constraints can be reformulated as follows:
[0108] With H(p' a matrix formed for the priority level p from the constraints formulated above. We can then write the optimization problem as follows: ihib .r x-f' [} x si --f\ AMi Aÿ m
[0109] L(p)Tx is the cost function in the linear problem and indicates the optimization problem that can be solved by a linear programming algorithm of priority level p.
[0110] This problem can be solved by a quadratic programming algorithm. Advantageously, to be sure that the linear and quadratic objectives do not compete, a first solution can be determined by means of the linear programming algorithm denoted x* and the problem solved by the quadratic programming algorithm can be written as follows: 'PÇB: mj'î iri s®''';:, st Aj: ------ Bw. AMr--Ai', L'BLr AB > 0
[0111] The solution to this problem defines the electrical flows of the priority level p and we move directly to the next step with a priority level p+1 (step 5).
[0112] Thus, the optimization method makes it possible to determine the electrical flows belonging to the first level of prioritization.
[0113] 5) Determination of electrical flows of other priority levels
[0114] During this step, the optimization method implemented in step 4 is repeated for each priority level, and at each iteration, the optimization method takes into account the electrical flows determined for the lower priority level(s) (for example, for the second priority level, the optimization method takes into account the electrical flows determined for the first priority level, and for the third priority level, the optimization method takes into account the electrical flows determined for the first priority level and the second priority level). Each iteration makes it possible to determine electrical flows of the priority level considered, while retaining the electrical flows determined for the lower priority levels. Thus, the method implements an iterative method which determines the electrical flows per priority level.The application of an iterative method based on an order of priority allows a simple and rapid convergence towards a determination of the electrical flows (taking into account the different constraints), which allows the application of the process in real time.
[0115] For the embodiment implementing the optimization problems exemplified in step 4, the problems can be solved - iteratively by increasing the priority level p, the quadratic programming algorithm can only be applied if the linear programming algorithm determines an infinite number of solutions.
[0116] Furthermore, the invention relates to a method for controlling an energy community, in which the following steps are implemented: a. Electrical flows within the energy community are determined using the method for determining electrical flows according to any one of the variants or any one of the combinations of variants described above; and b. At least one component of the energy community is controlled based on the determined electrical flows.
[0117] [Fig.2] illustrates, schematically and in a non-limiting manner, the steps of the method according to an embodiment of the control method. The steps identical to [Fig.l] are not re-described. The method further comprises a step of controlling CON the energy community according to the determined electrical flows FeN. For example, if the energy consumption exceeds the demand, certain components can be started in order to increase the punctual energy production. Conversely, if the energy production exceeds the consumption, the surplus energy produced can be used to store energy, for example in batteries or in compressed air energy storage means or by storing water in hydroelectric dams.
[0118] Advantageously, the control step can in particular implement at least one action among the following actions: - At least one energy storage means is controlled to store and / or restore energy according to the determined electrical flows, for example by storing energy in an energy storage means if the electrical flows from a production system are supplied to the electricity distribution network while the energy storage means is not fully charged, - At least one production system is controlled according to the determined electrical flows, for example by increasing the production of a production system if the production system is not at full load, and if the electricity distribution network is in demand, i.e. if there is at least one non-zero electrical flow coming from the electricity distribution network, - At least one consumer system is controlled according to the determined electrical flows, for example by reducing the consumption of a consumer system if the electricity distribution network is in demand, i.e. there is at least one non-zero electrical flow coming from the electricity distribution network, etc.
[0119] Furthermore, the invention relates to a method for adapting an energy community, for which the following steps are implemented: a. Electrical flows within the energy community are determined using the method for determining electrical flows according to any one of the variants or any one of the combinations of variants described above; and b. The energy community is adapted according to the determined electrical flows.
[0120] [Fig.3] illustrates, schematically and in a non-limiting manner, the steps of the method according to an embodiment of the control method. The steps identical to [Fig.l] are not re-described. The method further comprises a step of adaptation ADA of the energy community according to the determined electrical flows FeN.
[0121] Advantageously, the adaptation step can implement at least one action among the following actions: a. At least one producing system is added to produce more energy, for example if the electricity distribution network is in demand, i.e. there is at least one non-zero electrical flow from the electricity distribution network, b. At least one energy storage means is added to store more energy, for example if part of the energy produced is distributed to the electricity distribution network, i.e. there is at least one non-zero electrical flow from a producing system to the electricity distribution network, c. At least one energy storage means is modified to store more energy, if it is not suitable for the incoming or outgoing electrical flows, for example by replacing one energy storage means with another energy storage system with a greater storage capacity, d. At least one connection is added between two components of the energy community, for example between a producing system and an energy storage means, in particular if there is a non-zero electrical flow from a producing system to the electricity distribution network while an energy storage means is not charged by this producing system, e. A connection between two components is modified, for example if a connection is not sized for the electrical flow between these two components, etc.
[0122] The invention also relates to an energy community which comprises a plurality of components selected from an energy producing system, an energy consuming system, an energy storage means and a connection to a electrical distribution network. In addition, the energy community comprises computer means, such as a computer, a server or a calculator, for implementing the steps of the method for determining electrical flows according to any of the preceding variants, or any of the combinations of the preceding variants.
[0123] Preferably, the energy community may comprise at least one producer system, one consumer system and a connection to an electrical distribution network. Advantageously, the energy community may comprise at least one producer system, one consumer system, a connection to an electrical distribution network and an energy storage means.
[0124] According to an implementation of the invention, the energy community may further comprise means for displaying the determined electrical flows. Advantageously, the display means may be included in the computer means. Alternatively, the display means may be linked to at least one component of the energy community.
[0125] According to one embodiment, the energy community may comprise at least one means for controlling at least one component of the energy community, for controlling a component of the energy community as a function of the determined electrical flows. Application example
[0126] The characteristics and advantages of the method according to the invention will appear more clearly on reading the application example below.
[0127] This example concerns an energy community of a building for professional use, which has a production system by photovoltaic panels, a consumer system (the building), a battery for storing energy, and a connection to the electricity distribution network. For this example, the battery is controlled in real time by an energy management algorithm, requiring it to charge or discharge a certain quantity of energy at different times.
[0128] This example is applied to measurements taken between November 21 and 26, 2021. The measurements are sampled at 10 minutes. The energy community's measurement means include: - A certified building meter (Linky), installed upstream of the production system, the battery and the building, - An uncertified meter at the terminals of the photovoltaic panels, and - An uncertified meter at the battery terminals.
[0129] In addition, a measurement of the energy consumed by the building can be reconstructed from the measurements of the three meters.
[0130] [Fig.4] illustrates, schematically and in a non-limiting manner, the topology of the energy community. The energy community is connected to the distribution network RES by means of connections 0. The photovoltaic panels (producer system) 147 provide a quantity PI of electrical energy. The building 146 (consumer system) consumes a quantity Cl of electrical energy. The battery 148 is illustrated by an element 148C for charging the battery which has a consumption Pci, and by an element 148D for discharging the battery which provides an energy Pdl. The node 145 represents a device which acts as the interface between the consumer system, the producer system, the storage means and the electrical distribution network. It can be an electrical cabinet, in which everything is wired, and which allows the switching of energy flows. The arrows illustrate the connections between the different components of the energy community.
[0131] This topology is assigned three priority levels: - A first level of priority: • Electric flow from the producing system 147 to building 146, - A second level of priority: • Electric flow from the producing system 147 to the battery 148, • Electric flow from battery 148 to building 146, - A third level of priority: • Electric flow from distribution network 0 to building 146, • Electric flow from distribution network 0 to battery 148, and • Electric flow from the producing system 147 to the distribution network tribute 0.
[0132] The iterative method for determining the electrical flows by priority level according to the invention is then applied. [Fig. 5] illustrates the order of determination of the electrical flows. In this figure, the dotted arrows correspond to the electrical flows of higher priority level not considered at this stage, the arrows in thin continuous lines correspond to the electrical flows of the priority level considered, and the arrows in thick continuous lines correspond to the electrical flows of lower priority level(s) and which are fixed at this stage. The energy community comprises a producer system 147 providing energy PI, a building 146 consuming energy Cl, a battery 148 (represented by a load 148C consuming energy Pci and a discharge 148D providing energy Pdl), a connection to the distribution network RES. Figure 5A illustrates the first step for the electrical flows of the first priority level.Figure 5B illustrates the second step for electrical flows of the second priority level. Figure 5C illustrates the third step for electrical flows of the third priority level.
[0133] For the example, we apply the optimization method as illustrated in steps 4 and 5, the optimization method being constrained by the three measures: the measure certified and uncertified measurements. The optimization method makes it possible to determine the different electrical flows within the energy community.
[0134] [Fig.6] illustrates the energy flow Ef in kWh leaving the electricity distribution network as a function of the date. [Fig.6] represents this measured electrical flow and this electrical flow determined by the method according to the invention. The two curves are superimposed, given that the measurement of this electrical flow results from a certified measurement which is a constraint of the optimization method.
[0135] [Fig.7] illustrates the energy flow Ef in kWh entering the electricity distribution network as a function of the date. [Fig.7] represents this measured electrical flow and this electrical flow determined by the method according to the invention. The two curves are superimposed, given that the measurement of this electrical flow results from a certified measurement which is a constraint of the optimization method.
[0136] [Fig.8] illustrates different electric flows Ef in kWh as a function of the date. Curve F146m corresponds to the measured (in this case reconstructed) electric flow of the building. Curve F146e corresponds to the electric flow determined by the building optimization method. Curve F147m corresponds to the measured electric flow of the photovoltaic panels. Curve F147e corresponds to the electric flow determined by the photovoltaic panel optimization method. Curve F148Cm corresponds to the measured battery charging electric flow. Curve F148Ce corresponds to the battery charging electric flow determined by the method according to the invention. Curve F148Dm corresponds to the measured battery discharging electric flow. Curve F148De corresponds to the battery discharging electric flow determined by the method according to the invention.The curve F146m corresponds to the measured electrical flow consumed by the building and the curve F146e corresponds to the electrical flow consumed by the building determined by the method according to the invention. The two curves F147m and F147e are superimposed, given that the measurement of the flow of the photovoltaic panels is a constraint of the optimization method. Similarly, the two curves F148Cm and F148Ce as well as the two curves F148Dm and F148De are superimposed, given that the measurement of the electric flow of the battery is a constraint of the optimization method. In addition, the curves F146e and F146m are very close to each other.
[0137] [Fig.9] illustrates the errors of the electric flows eEF in kWh as a function of the date. The errors are the difference between the measured value and the value determined by the method according to the invention. Curve E146 corresponds to the error for the electric flow of the building. Curve E147 corresponds to the error for the electric flow of the producing system. Curve E148C corresponds to the error for the electric flow of the battery under charge and curve E148D corresponds to the error for the electric flow of the battery under discharge. Curves E147, E148C and E148D are zero given that the associated measurements are constraints of the optimization method. The error for the electrical flow of the El46 building varies slightly, the determination of this flow by means of the method according to the invention allows a good estimation of this flow.
[0138] Thus, the method according to the invention respects the constraints well, and allows a precise determination of the electrical flow of the building, in coherence with the reconstructed value determined directly from the measurements.
[0139] [Fig. 10] is a curve illustrating the origin of the energy flow towards the building Ef in kWh as a function of date. Curve PO relates to the energy flow from the electricity grid, curve P147 relates to the energy flow from the photovoltaic panels, and curve P148D relates to the energy flow from the battery discharge. Thus, the method according to the invention makes it possible to determine the electrical flows within an energy community at any time.
Claims
Claims
1. Method for determining electrical flows within an energy community, said energy community comprising a plurality of components and at least one means for measuring the electrical flow of a component, each component of said energy community being chosen from an energy producing system, an energy consuming system, an energy storage means and a connection to an electrical distribution network, and said energy community being characterized by a topology (TOP), which defines nodes for each component as well as connections between said nodes, characterized in that the following steps are implemented: a. A conservation of electric flux (CFM) model is constructed for each node of said energy community based on said connections of said topology (TOP) of said energy community; b. A priority level (PIN) is assigned to each electrical flow of said topology (TOP), said priority level being determined from a first priority level and at least one higher priority level, each higher level having less priority than a lower level; c. At least one electrical flux is measured (MES) at a node by said measuring means; d. The electrical flows belonging to said first priority level (Fel) are determined by an optimization method (OPT1) which minimizes the sum of the electrical flows as a function of said at least one measured electrical flow and as a function of said model of conservation of the electrical flow at each node; and e. Said optimization method is repeated for each higher priority level (OPTN) to determine the electrical flows (FeN), each repetition of the optimization method taking into account the electrical flows determined for each lower priority level.
2. Method according to claim 1, wherein said optimization method (OPT1, OPTN) implements a pro- linear grammar.
3. The method of claim 2, wherein when said linear programming algorithm determines a plurality of solutions, said optimization method implements a quadratic programming algorithm.
4. The method of claim 3, wherein said quadratic programming algorithm is constrained by a predefined electrical flow distribution rule.
5. The method of claim 4, wherein said predefined electrical flow distribution rule is selected from a weighted distribution, a distribution proportional to electrical consumption or a combination of both.
6. Method according to one of the preceding claims, wherein said optimization method (OPT1, OPTN) is constrained by said measured electrical flux obtained by a certified measuring means.
7. Method according to one of the preceding claims, in which said optimization method (OPT, OPTN) is capable of adjusting a measured electrical flux obtained by a non-certified measuring means.
8. Method for controlling an energy community, said energy community comprising a plurality of components and at least one means for measuring the electrical flow of a component, each component being chosen from an energy producing system, an energy consuming system, an energy storage means and a connection to an electrical distribution network, characterized in that the following steps are implemented: a. Electrical flows (FeN) are determined within said energy community by means of the method according to one of the preceding claims; and b. At least one component of said energy community is controlled (CON) as a function of said determined electrical flows (FeN).
9. A method of adapting an energy community, said energy community comprising a plurality of components and at least one means for measuring the electrical flow of a component, each component being chosen from an energy producing system, an energy consuming system, an energy storage means and a connection to an electrical distribution network, characterized in that the following steps are implemented: a. Electrical flows (FeN) are determined within said energy community by means of the method according to one of claims 1 to 7; and b. Said energy community is adapted (ADA) according to said determined electrical flows (FeN), by adding or removing at least one component or by modifying at least one component.
10. Energy community comprising a plurality of components and at least one means for measuring the electrical flow of a component, each component being chosen from an energy producing system, an energy consuming system, an energy storage means and a connection to an electrical distribution network, characterized in that it comprises computer means for implementing the method for determining electrical flows according to one of claims 1 to 7, and possibly means for displaying the determined electrical flows.