Patent Document ID: 20140025212
Application ID: 13941007
Patent Flag: 0

Claim One:
1. Method for distributing, during a given time period, electricity flows in a system comprising: at least one production element and one consumption element of electricity from the following elements: an electricity distribution network suitable for supplying and/or receiving energy from other elements of the system, an electricity storage element suitable for receiving the energy production from the production elements of the system and/or for supplying energy to the energy consumption elements of the system, a building suitable for consuming energy produced locally and/or from the distribution network and/or from a storage element, a local electricity production source suitable for supplying energy to the network and/or building and/or storage element, and means for measuring the state of charge of each storage element and electrical powers produced and consumed by each of the elements of the system, wherein the method comprises at least the following steps: initialisation steps consisting of: a) defining physical system modeling parameters, wherein the physical parameters are physical quantities conditioning the energy consumption or production of the production element and the consumption element, b) defining a model of the system, in the form of state representation using the physical parameters determined in step a), wherein the system model is defined with the following state representation: { x k + 1 = Ax k + Bu k + Gw k y k = Cx k + Du k + Fw k where x k and x k+1 are the states x of the system at times k and k+1, y k is an output parameter y of the system at the time k, u k is a control parameter at the time k, w k is a disturbance parameter w at the time k and A, B, G, C, D, F are constant matrices, c) defining optimisation parameters for solving an optimisation problem and d) predefining the optimisation problem, over the given time period, for the distribution of the electricity flows of the system using the model defined in step b), wherein predefining the optimisation problem consists of modeling the behaviour of the system for the given time period using the following equation: 
 {tilde over (Y)}=φx 0 +ψŨ+ξ{tilde over (w)} where x 0 is an initial state of the system, {tilde over (Y)}, Ũ and ŵ are power, control and disturbance parameters of the system respectively, for the given time period, expressed in matrix form, and φ, ψ and ξ are constant matrices wherein the elements are dependent on the constant matrices A, B, G, C, D and F, and iterative steps consisting, at successive updating times of the given time period, of: e) measuring a state of charge of each electricity storage element, and the electricity production and consumption powers of the various elements of the system, f) updating a preview of the behaviour of the production and consumption elements of the system for another time period of the same duration as the duration of the given time period and starting at a considered updating time, g) defining the formulation of the optimisation problem for the other time period, wherein formulating the optimisation problem comprises at least the definition of an objective function f(Ũ) and updating of optimisation problem constraints, these constraints being expressed in the form of the following inequality: 
 A in Ũ≦b in where Ũ is the control parameter for the given time period, A in a matrix dependent on the matrix ψ, and b in a matrix dependent on the matrices ψ and ξ, on minimum {tilde over (Y)} min and maximum values {tilde over (Y)} max of the output parameter {tilde over (Y)}, and on a maximum variation δŨ max of the control Ũ, h) solving the problem in step g) using a solver, and i) applying electricity distribution controls in the system using the solutions from step h), until the next iteration.