Method of operating an energy system

11201471 · 2021-12-14

Assignee

Inventors

Cpc classification

International classification

Abstract

Method of operating an energy system, said energy system comprising: a local common transmission bus; at least one local energy connected to said bus; at least one local load connected to said bus; an energy store connected to said bus; a controllable interface arranged to exchange energy between said bus and an external distribution network external to said energy system; a controller adapted to control said interface so as to carry out said exchange of energy. According to the invention, the controller defines three modes based on the state of charge of the energy store which determine if, and how, energy is exchanged with the external network so as to optimize self-consumption and to perform ramp-rate reduction and peak shaving as appropriate.

Claims

1. Method of operating an energy system, said energy system comprising: a local common transmission bus; at least one local energy source connected to said local common transmission bus; at least one local load connected to said local common transmission bus; an energy store connected to said local common transmission bus; a controllable interface arranged to exchange energy between said local common transmission bus and an external distribution network external to said energy system; a controller adapted to control said controllable interface so as to carry out said exchange of energy; wherein said controller is adapted to define, based on a state of charge of said energy store: a first state of charge corresponding to a predefined safety margin above an absolute minimum state of charge; a second state of charge superior to said first state of charge and corresponding to a predefined threshold above which substantially no energy can be extracted from said external distribution network; a third state of charge superior to said second state of charge and corresponding to a further predefined threshold below which substantially no energy can be transferred to said external distribution network; a fourth state of charge corresponding to a further predefined safety margin below an absolute maximum state of charge; and wherein said controller is adapted to define: a first mode of said energy system when said state of charge is between said second and third states of charge, in which energy is transferred to or from said energy store and no energy is exchanged with said external distribution network; a second mode of said energy system when said state of charge is between said first and second states of charge or between said third and fourth states of charge, in which energy is transferred to or from said energy store for the purpose of at least one of peak-shaving and ramp-rate limitation, and in which energy is exchanged with the external distribution network so as to attempt to bring the energy system towards said first mode; and a third mode of said energy system when said state of charge is below said first state of charge or above said fourth state of charge, in which energy is transferred to or from said energy store for the purpose of ramp-rate limitation and in which energy is exchanged with the external distribution network to bring said energy system back into said second mode.

2. Method according to claim 1, wherein the peak-shaving is carried out exclusively in said second mode.

3. Method according to claim 1, wherein the peak-shaving can be disabled in said second mode.

4. Method according to claim 1, wherein in said second mode a limitation is imposed on a rate of energy transfer to and/or from said external distribution network.

5. Method according to claim 4, wherein said limitation is removed in said third mode.

6. Method according to claim 5, wherein, after removal of said limitation in said third mode, said limitation is reinstated only once the energy system is back in said second mode and the rate of energy transfer with respect to the external distribution network has dropped below a value of said limitation.

7. Method according to claim 1, wherein said controller comprises: a first proportional-integral controller adapted to command said controllable interface so as to attempt to bring said state of charge back up to said second state of charge when it has dropped therebelow, and a second proportional-integral controller adapted to command said controllable interface so as to attempt to bring said state of charge down to said third state of charge when it has risen thereabove.

8. Method according to claim 7, wherein said first and second proportional-integral controllers are arranged to prohibit energy transfer via said controllable interface when in said first mode.

9. Method according to claim 1, wherein said controller is adapted to define an auxiliary state of charge threshold situated between said second and third states of charge above which at least one controllable load takes energy from said local common transmission bus, and below which said at least one controllable load does not take energy from said local common transmission bus.

10. Method according to claim 1, wherein at least one of said second state of charge and said third state of charge is variable.

11. Method according to claim 10, wherein at least one of said second and third states of charge is variable in function of at least one of: predicted energy consumption by said at least one local load; predicted energy production by said at least one local energy source; predicted prices for consumption from said external distribution network; predicted prices for feed-in to said external distribution network.

12. Method according to claim 11, wherein a constant predetermined difference between said second state of charge and said third state of charge is maintained.

13. Energy system comprising: a local common transmission bus; at least one local energy source connected to said local common transmission bus; at least one local load connected to said local common transmission bus; an energy store connected to said local common transmission bus; a controllable interface arranged to exchange energy between said local common transmission bus and an external distribution network external to said energy system; a controller adapted to control said controllable interface so as to carry out said exchange of energy, wherein said controller is adapted to command the energy system so as to carry out the method of claim 1.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) Further details of the invention will appear more clearly upon reading the description below, in connection with the following figures which illustrate:

(2) FIG. 1: a schematic block diagram of an energy system upon which the method of the invention is carried out;

(3) FIG. 2: a schematic representation of the states of charge defining the various modes of the system;

(4) FIGS. 3-5: graphs of the behavior of the system when subject to the method of the invention;

(5) FIG. 6: a schematic block diagram of a controller architecture; and

(6) FIG. 7: a schematic graph illustrating the principle of varying the thresholds of states of charge E.sub.2 and E.sub.4 to optimize the use of the system.

EMBODIMENTS OF THE INVENTION

(7) FIG. 1 illustrates generically an energy system 1 upon which the method of the invention is carried out. The system 1 may comprise a microgrid, building-scale, district scale or similarly-sized grid, as distinct from a wide network grid.

(8) This energy system 1 may be electrical, pneumatic, thermal, hydraulic or similar, the energy in question being electrical, gas pressure, heat, or hydraulic head (i.e. pressure) respectively. In the following description, reference will be more frequently made to an electrical system, since it is the most common.

(9) The system 1 comprises a single local common transmission bus 3 which is connected to an interface 5, which is adapted to exchange energy with an external grid 7. This external grid can for instance be an electricity grid, a compressed air network in a factory complex, a district heating network, a hydraulic system or similar, as appropriate depending on the type of energy system. The bus 3 is an energy conduit (cable, pipeline, . . . ) suitable for transmitting the energy in question.

(10) Local energy production, such as a PV system, wind turbine, compressed air compressor, gas generator, furnace, heat exchanger, hydraulic pump or similar as appropriate, is provided by a local energy source 9, which is also connected to the common bus 3, and is arranged to supply energy thereto. Should an appropriate interface be required between the local energy source 9 and the bus 3, this can be provided.

(11) The system 1 also comprises at least one load 11, which is a local energy consumer which draws energy from the bus 3. Optionally, at least one controllable load 13 may also be provided. A controllable load 13 is a local energy consumer which can be switched on or off, according to its inherent potential limitations, rather than requiring energy to be supplied constantly or at certain times. Again, should interfaces be required, they can be placed between the loads 11, 13 and the bus 3 in order to supply energy at the correct voltage, temperature, pressure etc. as appropriate.

(12) An energy store 15 is also bidirectionally coupled to the bus 3. In the case of electrical energy, the energy store 15 can be supercapacitors, a battery system, flywheel, pumped storage system or similar. In the case of pneumatic energy, the storage can be a gas reservoir of sufficient volume, and in the case of hydraulic energy, an open or closed header tank, water tower or similar can be used. In a thermal system, this may be a heat or cold store comprising a heated or cooled substrate. Such energy stores 15 can be arranged as single elements where appropriate, and/or may be a storage system comprising multiple elements.

(13) Controller 17 is adapted to control interface 5 to permit bidirectional energy flow between the bus 3 and the external network 7 on the basis of a parameter relating to the state of charge of the energy store 15. The controller 17 can also command the activation of deactivation of any controllable loads 13 present, as will be described in more detail below.

(14) Indeed, one of the advantages of this type of system 1 is that a single parameter relating to the state of charge of the energy store 15 can control the entire system simply by acting upon the interface 5. No communication system or further sensor arrangements are required, which represents a significant simplification with respect to much of the prior art. In essence, the various elements of the system other than the interface 5 and the controllable loads react autonomously to the state of the bus. In the case of interfaces being required between some of the elements and the bus as mentioned above, these can react autonomously, e.g. on the basis of bus voltage, pressure or temperature as appropriate according to the nature of the energy system.

(15) The parameter in question should be a monotonic function of the state of charge, that is to say that it should have a correlation between the value of the parameter and the state of charge, such that each state of charge is represented by a single, unique value of the parameter. “Charge” is meant here in its most general form, and is not restricted to electrical charge. Indeed, depending on the type of system, it can be a thermal charge (as in a quantity of thermal energy), a pneumatic charge of compressed gas, a hydraulic charge of a weight and/or pressure of water, and so on.

(16) In the case of supercapacitors, the state of charge is proportional to the square of the voltage across the supercapacitor. In the case of a battery, the parameter may be more complicated, and an interface may be required which calculates the state of charge. This can e.g. be based upon integrating energy flows into and out of the battery over time, from which the parameter can be generated. In the case of hydraulic or pneumatic systems, the state of charge is represented by the pressure in the energy store 15 and/or in the bus 3, which may be used to generate the parameter, and in the case of a thermal system, a function of temperature would be appropriate since it is a function of the thermal charge which the energy store 15 holds. Another possibility in the case of a hydraulic system would be the height of the water surface in a header tank or similar.

(17) FIG. 2 illustrates generically the control paradigm used in the method of the invention. The horizontal axis represents the state of charge SoC of the energy store 15, increasing from left to right. The various levels of state of charge E0 to E6 represent the following levels:

(18) E0: an absolute minimum state of charge. This would typically be defined by the physical limitations of the energy store 15. In the case of an electrical system, this may be a substantially zero voltage across a supercapacitor, a battery voltage below which no power can be drawn or below which damage to the battery occurs, or similar. In the case of a pneumatic system, this may be the energy store 15 being at atmospheric pressure. In a hydraulic system, the header tank may be empty, and in a thermal system, the energy store 15 may be at ambient temperature.

(19) E.sub.1: a predefined safety margin below which it is undesirable for the state of charge to fall for more than a certain, relatively short period of time, as will be discussed in more detail below. This corresponds to a “first state of charge” within the meaning of the invention.

(20) E.sub.2: a state of charge superior to E.sub.1, above which substantially no energy can be extracted from the external distribution network 7 and below which any controllable loads 13 are switched off. This corresponds to a “second state of charge” within the meaning of the invention.

(21) E.sub.3: in the case in which controllable loads 13 are present, E.sub.3, which is superior to E.sub.2, defines the threshold of SoC above which these loads are switched on and can draw energy from the bus 3. If such controllable loads 13 are not present, E.sub.3 is not used. E.sub.3 represents an optional auxiliary state of charge.

(22) E.sub.4: a further state of charge, superior to E.sub.2 and E.sub.3 (if this latter is used), corresponding to a predefined threshold below which substantially no energy can be transferred to the external distribution network 7. This corresponds to a “third state of charge” within the meaning of the invention.

(23) E.sub.5: a predefined safety margin above which it is undesirable for the state of charge to rise for more than a certain, relatively short period of time, as will be discussed in more detail below. This corresponds to a “fourth state of charge” within the meaning of the invention.

(24) E.sub.6: the absolute maximum state of charge permitted, above which the energy store 15 cannot absorb more energy without being full and/or without being damaged.

(25) It is noted that between E.sub.2 and E.sub.4, depending on the controller 17 response, when crossing these thresholds relatively small amounts of energy may still be transferred with the external network 7 in a transient manner, which is why the term “substantially” has been used in this context to signify that no significant, maintained, non-transient exchange with the external network 7 can occur between these SoC levels aside from that imposed by the dynamics of the controller (if applicable). This can be unavoidable for instance due to the use of a controller which has a finite time response (as in the case of PI controllers described in detail below), which hence imposes a lag on the response of the interface 5. This lag can prevent the interface 5 from switching on or off exactly at the transition between states of charge. The magnitude and duration of these transient phenomena are determined by many parameters such as the local production and consumption and the controller internal state, and are entirely dependent on the dynamics of the controller 17 chosen. However, at steady state, this transient transfer tends to zero rapidly in function of the time constant of the controller, and in the overall functioning of the system these transients are relatively small. If the controller dynamics are chosen so as to exclude such transients, they do not occur.

(26) In the paper mentioned above, essentially only the thresholds E.sub.1 and E.sub.5 are used, leading to a situation in which the SoC varies between the desired minimum and maximum states of charge taking into account the factors of safety. Between these limits, the system is in a first mode which is dominated by in which self-consumption by the loads 11, 13. Any deficit between the energy requirements and energy production is extracted from the energy store 15, and any surplus of production is stored therein. If the SoC is reduced to E.sub.1, energy is taken from the external grid instead of from the energy store 15 and the SoC remains constant until local production is again in surplus. If the SoC reaches E.sub.5, surplus energy production is fed into the external grid, and again the SoC remains constant until local production is again in deficit. This is clearly explained in the document in connection with FIG. 2 of the paper, and results in extremely deep cycling of the energy store. With certain types of batteries, for instance, this deep cycling negatively affects the lifetime of the batteries, and is thus to be avoided.

(27) In contrast, in the present invention, this first mode exists between the states of charge E.sub.2 and E.sub.4. In this state, the interface 5 is commanded by the controller 17 to not exchange energy with the external network 7, and local production is used for local consumption with any surplus or deficit being fed to, or supplied by, the energy store 15. In essence, the system 1 is autonomous with respect to the external network 7 while the SoC remains between E.sub.2 and E.sub.4. No ramp rate limitation (see below) occurs since no exchange of energy with the external network 7 takes place.

(28) Between E.sub.1 and E.sub.2, and between E.sub.4 and E.sub.5, the controller 17 is in a second mode, which is distinct from the first mode. In this mode, the controller 17 permits power to be exchanged with the external network 7 for the purpose of so-called peak shaving and also ramp rate limitation (RRL).

(29) Peak shaving is the principle of reducing demand on the external network 7 during peak pricing hours, during which energy is more expensive, and/or, in the case in which the consumer is also charged a fee based on the peak power load (i.e. the peak rate at which energy is taken from the external network 7), reducing this peak load by taking more energy from the energy store 15 during peak times. In other words, the rate at which energy is taken from the external network 7 can be capped, e.g. below a threshold at which a higher charge is applied by the supplier.

(30) Hence, when the SoC is between E.sub.1 and E.sub.2, for instance due to a significant deficit of local production that has caused the SoC to fall to below E.sub.2, the system is in the lower part of the second mode. Controller 17 commands the interface 5 to draw energy from the external network 7, so as to attempt to bring the SoC back up to E.sub.2, and thereby to put the system back into its first mode. If the controller 17 imposes a maximum power draw on the interface 5, peak shaving on the basis of this maximum power draw occurs since the deficit between local demand by the loads 11 and the sum of supply from local production supplied by the local source 9 and the maximum power draw from the external network 7 is automatically and passively made up by draw from the energy store 15, which will cause the SoC to drop further below E.sub.2. In simulations with an electrical prototype of the present system 1, such peak shaving reduced the maximum power draw from around 32 kW to around 7 kW.

(31) Conversely, if a significant surplus of local production has caused the SoC to rise above E.sub.4 into the upper part of the second mode, the controller 17 commands the interface 5 to feed energy into the external network 7 so as to attempt to bring the SoC back down to E.sub.4, and thereby again to put the system back into its first mode. The above comments regarding limitation of power draw apply equally to feed in, which can likewise be limited.

(32) The controller 17 may incorporate a hysteresis in its control strategy to avoid oscillating between the first and second modes around states of charge E.sub.2 and E.sub.4.

(33) Ramp rate limitation is the principle of reducing the rate at which the power exchange with the external network takes place, to avoid sudden demands thereupon. This takes place in the second mode due to the response of the controller 17, and is explained in detail below.

(34) Between E.sub.0 and E.sub.1, and between E.sub.5 and E.sub.6, the system is in a third mode, distinct from said first and second modes. In this mode, the energy store 15 is considered to have a SoC at its practical limits, while leaving a margin of safety between absolutely empty and absolutely full. As a result, below E.sub.1 (i.e. in the lower part of the third mode), the energy store can no longer be drawn upon for local consumption, and consequently any power limitation imposed on the interface 5 is removed and as much energy as required to bring the SoC back towards E.sub.2 can be drawn. Hence, no more peak shaving can occur since the SoC is too low to support it.

(35) Likewise, if the SoC has risen above E.sub.5 and the system is hence in the upper part of the third mode, for instance due to an excessive surplus of local production that cannot be exchanged with the external network 7 due to limitations imposed on the interface 5, the excess of local production can no longer be stored in the energy store 15, and must be fed into the external network 7 to avoid a dangerous situation which may damage the energy store 15 by overcharging it. This results in unlimited quantities of energy being fed into the external network 7 without artificially-imposed limit so as to bring the SoC back down to below E.sub.5. In essence, the only limits for power exchange with the external network 7 in the third mode are imposed by the physical limitations of the interface 5, bus 3 and external network 7.

(36) As a result, it is clear that the SoC cannot fall below E.sub.1 or rise above E.sub.5 except in a transient manner imposed by the time response of the controller 17 and the reactiveness of the interface 5, since essentially unlimited power exchange with the external network 7 can occur.

(37) Indeed, transient excursions into the third mode can only occur for the purpose of ramp rate limitation, which takes place in both the second and third modes and is explained in detail in the following paragraphs.

(38) Local energy production by the local energy source can be highly variable, with first derivatives of the power produced (i.e. second derivatives of the energy produced) representing significant rates of change. In the context of a PV system, the shadow of a cloud passing over the system on an otherwise sunny day will cause a sudden drop in the power production, and likewise once the cloud passes, the power produced will increase again suddenly. If in any particular district there are multiple system users, their local production will ramp up and ramp down at approximately the same time. This imposes significant constraints on the external network as multiple consumers all suddenly draw or feed in energy at a similar moment, which can lead to service quality issues on the external side such as voltage spikes, voltage drops and so on as the main supplier to the network 7 (e.g. a conventional power station in the case of an electrical system) cannot follow the demand curve due to slower response times of their larger, centralised energy sources. In the case of a thermal system, this results in temperature spikes and drops, and in pneumatic or hydraulic systems leads to pressure spikes and drops as the centralised energy supply cannot match the ramp rates in the demand curve.

(39) As a result, the system 1 is adapted to carry out ramp rate limitation in respect of its demands upon the external network 7. In qualitative terms, this involves transiently drawing or supplying (as appropriate) energy to the energy store 15 so as to prevent significant ramp rates in supply or demand to or from the external network 7. In other words, for instance in the case of a step change in local supply or demand while in the second mode, the controller ensures that the response of the interface 5 is smoothed by transiently exchanging energy with the energy store 15 such that the external network 7 does not need to suddenly supply or absorb this step change.

(40) The simplest manner in which this can be achieved is to use a controller 17 with an appropriate transient response, which hence serves to throttle the rate of change of power passing through the interface 5. We will return to this point below.

(41) FIG. 3 illustrates the principles of ramp rate limitation (RRL) and peak shaving (PS) applied by the method of the present invention in the second mode. In order to simplify understanding, these graphs have been drawn presuming electrical power, however “power” can also be understood in the context of rate of change of thermal, pneumatic or hydraulic energy in the case of non-electrical embodiments of the system 1.

(42) The upper graph represents the various power flows, in which P.sub.bal is the local power balance between local production by the energy source 9 and consumption by the loads 11, 13. −P.sub.grid is the power flowing out through the interface 5 into the external network 7 (negative being defined as outflow through the interface 5), which is limited in the second mode to a value of −P.sub.lim. This limitation value can be set as desired so as to optimise the performance of the system 1. The lower graph represents the SoC (also referred to as E.sub.ss) of the energy store 15. The graphs are aligned with respect to the horizontal time axis.

(43) At the origin of the time axis, the SoC is maintained in the second mode at E.sub.4, with the net power balance inside the system 1 being equal to the feed-in of power into the external network 7.

(44) At time t.sub.1, a positive step change in the power balance occurs. This could occur, for instance, due to a sudden increase in local production and/or a sudden drop in local demand, such as a load 11, 13 being manually or automatically turned off for reasons outside the control of the controller 17.

(45) As a result, the SoC rises above E.sub.4, and the controller 17 commands the interface 5 to feed more power into the external network 7. However, the response rate of the controller 17 is such that it does not permit the interface to follow the power balance exactly, and as a result the power fed into the external network 7 rises at a lower rate than the change in the power balance. The difference between the power balance P.sub.bal and grid power −P.sub.grid curves is made up by power, and hence energy, flowing into the storage system 15. Power flow rates into and out of the energy storage 15 are not limited, and hence the curve P.sub.ss spikes, before reducing as the rate of transfer into the external network 7 catches up. Hence, the ramp rate of the demand with respect to the external network 7 is limited.

(46) Since we are in the second mode, the magnitude of power exchanges with the external network 7 are limited, and as a result, −P.sub.grid cannot rise beyond the value of −P.sub.lim. It reaches this limit at t.sub.2. Without this limitation, the curve of −P.sub.grid would rise to meet the P.sub.bal curve, as indicated by the dotted curve.

(47) The situation in which −P.sub.grid does not reach −P.sub.lim is illustrated in FIG. 4, which shows that −P.sub.grid initially rises as in FIG. 3, but then overshoots P.sub.bal at t.sub.2, and subsequently re-descends to follow P.sub.bal. The difference in power represented by difference between the P.sub.bal and −P.sub.grid curves is exchanged with the energy store 15, which causes a brief increase in SoC from t.sub.1 to t.sub.2, this then being “repayed” by interaction with the external network 7 between t.sub.2 and t.sub.3, from which point the SoC has returned to E.sub.4.

(48) To return now to FIG. 3, since the power being supplied to the external network 7 is limited and is hence being peak shaved beyond t.sub.2, there is an excess of power, represented by the difference between P.sub.bal and −P.sub.grid, which flows into the energy store 15. This is indicated by the curve P.sub.ss and also by the increase in SoC starting from t.sub.2.

(49) At t.sub.3, the value of P.sub.bal returns to its former level, e.g. following an increase in local demand or a reduction in local production. Due to the response of the controller 17, again the demand on the external network 7 does not immediately fall to follow. The immediate change at t.sub.3 is absorbed by drawing energy from the energy store 15, as can be seen by the negative value of P.sub.ss, and the fact that the SoC curve drops. However, in the illustrated embodiment −P.sub.grid does not start to drop until t.sub.4, when the feed-in power that would have been exchanged in the absence of the limitation −P.sub.lim crosses the −P.sub.lim threshold. However, it is also possible to arrange the controller 17 differently so that −P.sub.grid starts to fall immediately at t.sub.3.

(50) From t.sub.4 onwards, the power fed into the external network 7 drops according to the response rate of the controller 17, and continues dropping until it reaches the value of P.sub.bal. The SoC drops until it reaches E.sub.4 again.

(51) From the foregoing, it can clearly be seen how ramp rate limitation and peak shaving are carried out in the second mode, in the context of a SoC between E.sub.4 and E.sub.5. For a SoC between E.sub.1 and E.sub.2, the same considerations apply mutatis mutandis, the signs and directions of power flows being inverted and the limit being at a value of +P.sub.lim (which may be symmetrical with respect to −P.sub.lim or may have a different magnitude), and it is not needed to describe them in greater detail here.

(52) FIG. 5 illustrates a similar situation, which is identical to FIG. 3 between the origin and shortly after t.sub.2. However, in this case, instead of the power balance P.sub.bal reducing at a certain point, it is maintained unchanged.

(53) As a result, the SoC continues to increase and reaches E.sub.5 at t.sub.3, which puts the system into its third mode. At this point, the energy store 15 is obliged not to take significantly more charge, otherwise it may be destroyed.

(54) One possible solution is simply to remove the limitation enabling unlimited exchanges of power with the external network 7 until the SoC re-descends below E.sub.5, at which point the limitation can be reinstated and peak shaving can recommence. Due to the limited time response of the controller 17, this will result in an initial rise of SoC above E.sub.5, followed by an oscillation around E5, this limited time response again ensuring ramp rate limitation with respect to changes in the rate of power transfer with the external network 7. Indeed, the only incursions into the SoC space above E5 which are permitted are for the purpose of ramp rate limitation as shown in FIG. 4, and are engendered by the response rate permitted by the controller 17, and is hence entirely contingent on the dynamics of this latter and cannot be quantified for the general case. Advantageously, the interval between E.sub.0 and E.sub.1 (i.e. E.sub.10) and between E.sub.5 and E.sub.6 (i.e. E.sub.65) can be sized in such a way that, in the case of an infinitely fast perturbation with a magnitude of half the rated power of the interface 5, the SoC will exactly reach E.sub.0 or E.sub.6, depending on the case. However, these intervals can be sized differently according to the needs of the designer.

(55) The same considerations apply around SoC E.sub.1, mutatis mutandis, with the signs and directions of flows again reversed.

(56) If such an oscillation of SoC around E.sub.5 and/or E.sub.1 is undesirable, once the limitation of −P.sub.lim has been cancelled so as to enable essentially unlimited power transfer with the external network 7 within the physical constraints of the system, it can remain cancelled until such time as −P.sub.grid has recovered back below its limit, at which point the limit is reinstated. Such a situation is illustrated in FIG. 4. At t.sub.3, the limitation on −P.sub.grid is removed, causing −P.sub.grid to rise and essentially unlimited power to be fed into the external network 7. The SoC rises briefly for the purposes of ramp rate limitation as mentioned above, the SoC not exceeding E.sub.5 more than the amount indicated previously. From t.sub.3 onwards, the power balance P.sub.bal remains the same, keeping the system in a case of excess power production. However, by maintaining the limit −P.sub.lim inactive even once the SoC has descended below E.sub.5 again, the system will keep feeding in power to the external network 7 limited only by the physical system limitations until the SoC descends below E.sub.4, and the system is put briefly back into its first mode before rising again.

(57) However, in practice such a power balance profile is unlikely and is used here for illustrative purposes, and the SoC is unlikely ever to descend to E.sub.4 without −P.sub.grid descending below the limitation value of −P.sub.lim. Once the limitation has been crossed, the controller 17 re-imposes the limitation, and a situation analogous to that between t.sub.1 and t.sub.3 of FIG. 4 re-imposes itself.

(58) From the foregoing it can clearly be seen that the controller acts as a finite state machine, commanding the interface 5 based on the threshold levels E.sub.1, E.sub.2, E.sub.4 and E.sub.5 of the SoC. Furthermore, as an optional extra parameter, the limitations with respect to rates of energy exchange with the external network 7 can be maintained deactivated until both the SoC has dropped below E.sub.5 and −P.sub.grid has dropped below the limit −P.sub.lim.

(59) Also, in the case in which controllable loads 13 are present, the controller 17 can switch them on and off depending upon whether the SoC is respectively above or below the values E.sub.3 and E.sub.2.

(60) This is summarised in the following table:

(61) TABLE-US-00001 SoC Mode Description >E.sub.5 Third Controllable loads on if present; no exchange with energy (upper) store 15 except transiently for RRL; feed-in to external network 7 without limitation <E.sub.5, Second Controllable loads on if present; exchange with energy store >E.sub.4 (upper) 15 for RRL and peak shaving; feed-in to external network 7 with limitation unless recovering from >E.sub.5 and limit still exceeded <E.sub.4, First Controllable loads on if present; no exchange with external >E.sub.3 network 7; exchange with energy store 15 for RRL and local consumption <E.sub.3, First Controllable loads off if present; no exchange with external >E.sub.2 network 7; exchange with energy store 15 for RRL and local consumption <E.sub.2, Second Controllable loads off if present; exchange with energy store >E.sub.1 (lower) 15 for RRL and peak shaving; extraction from external network 7 with limitation unless recovering from <E.sub.1 and limit still exceeded <E.sub.1 Third Controllable loads off if present; no exchange with energy (lower) store 15 except transiently for RRL; import from external network 7 without limitation

(62) As mentioned above, the controller 17 has response incorporating a time constant. A simple way to achieve this is to use one or more proportional-integrator controllers, which by their very nature have a time-lag in their response.

(63) FIG. 6 illustrates a variant of such a control architecture for the controller 17 of the system 1 of FIG. 1, pictured alongside the other elements of the system 1 with which it interacts.

(64) As mentioned above, the control unit 17 receives information regarding the SoC of energy store 15, such as a voltage, temperature, pressure or similar, as appropriate according to the type of energy being stored and the nature of the energy store 15. This is then converted into usable information by means of a state of charge estimator 21.

(65) The output of the SoC estimator 21 is then fed to a pair of proportional-integral (PI) controllers 23, 25. First PI controller handles the change from the first mode to the second mode at E.sub.2, and its output is exclusively positive in order to command the interface 5 to draw power from the external network 7 below E.sub.2. Second PI controller 25 handles the transition at E.sub.4. Its output is exclusively negative and it commands the interface 5 to inject power to the external network 7 above E.sub.4. If the SoC is between E.sub.2 and E.sub.4, the outputs of both PI controllers 23, 25 will be deactivated, which will result in the interface 5 not exchanging power with the external network 7.

(66) Since PI controllers have a response time subject to a predefined time constant, this arrangement automatically takes care of ramp-rate limitation as described above, without any specific computation being required. As mentioned above, these time constants may also result in a relatively small amount of unavoidable power transfer through the interface 5 upon entering into the first mode due to the deactivation of the PI controllers being subject to a slight transient timelag.

(67) Furthermore, since the two controllers are never simultaneously active, they can be combined into a single controller with a more complex implementation.

(68) As discussed above, these PI controllers 23, 25 are arranged to limit the rate of energy exchange with the external grid 7, with threshold values+P.sub.lim and −P.sub.lim in the second mode. However, this limitation is cancelled in the third mode, by means of limitation controller 27, which modifies behaviour of the PI controllers 23, 25 in the third mode so as to suppress the limits, and maintains this suppression until the magnitude of the power exchange drops below the limits while in the second mode.

(69) Furthermore, the PI controllers 23, 25 can advantageously incorporate anti-reset windup, which is controlled by the limitation controller 27 when the PI controllers saturate at an output level of zero or +/−P.sub.lim. This causes the integrator output value to be frozen, which avoids an error building up. Such an error buildup can cause the integrator value to jump suddenly once the limitation is removed when the system transitions into the first mode, which would result in a significant ramp rate. In the opposite case, it can also cause a delay before the integrator output behaves correctly since this error (e.g. a negative value for an integrator that should be giving positive outputs or vice versa) has to be “wound down” back to the correct range.

(70) As a result, the limitation controller artificially sets the integrator value at the transition between the second and third modes to compensate this behaviour, and to ensure that ramp rate limitation can still take place at the transitions between the second and third modes. The integrator value is also blocked at the transition between the second and first modes to prevent it “undercounting” in the first mode, in which it does not act. The skilled person understands how to perform such setting of the integrator value so as to achieve this. Furthermore, it should be noted that anti-reset windup can be disabled if required when the integrator output is zero.

(71) It should also be noted that other types of control can be utilised, and that the invention is not limited to PI controllers.

(72) In the case in which controllable loads 13 are present, they can be switched on by means of a Schmitt trigger 29 commanded on the basis of the output of the SoC estimator 21. The hysteresis of the Schmitt trigger 29 can be chosen at will to prevent the system from oscillating around E.sub.3.

(73) Furthermore, the controller 17 may incorporate real-time optimisation of the values of E.sub.1, E.sub.2, E.sub.3, E.sub.4 and E.sub.5, to best maximise the storage capacity of the energy store 15 and to reduce costs paid to the operator of the external network 7. Also, the power limitations P.sub.lim and −P.sub.lim can also be varied in real-time so as to optimise the behaviour of the system 1, these values representing the saturation values of the PI controllers 23, 25.

(74) For instance, the controller 17 can comprise an optimiser 31, which acts upon the input to the PI controllers 23, 25 (and optionally also upon the Schmitt trigger 29) so as to modify the SoC levels at which the system changes mode.

(75) Optimiser 31 can be fed information from an estimator 33, which takes into account information such as anticipated consumption during the following period of time (e.g. hour, day, week . . . ), anticipated production (e.g. based on weather forecast information that is relevant to the expected levels of production of the energy source 9 in the case in which this is a photocell, wind turbine or other weather-dependent source), external network supply costs when these are time-dependent (e.g. with peak and off-peak tariffs), real-time information such as prices, historical data (such as measurements of the system 1 which have been previously stored) and so on.

(76) An example of such modification of various threshold levels is illustrated in FIG. 7.

(77) At time t0, the system is at quasi-equilibrium in the first mode, the SoC varying between E.sub.2 and E.sub.4.

(78) In anticipation of cheaper energy import at a later time at t.sub.2 and when the SoC and local production are predicted to be adequate to supply all the needs in the intervening period, at time t.sub.1 the optimiser 31 may reduce the value of E.sub.2, so as to permit use of more of the energy storage capacity for local consumption. In such a situation, own consumption has a higher net present value than importing from the external network, and time-shifting import of energy into the future is economically advantageous.

(79) Once the energy tariff is reduced at t.sub.2, the optimiser 31 may then raise the level of E.sub.2, and optionally also E.sub.4, so as to increase the SoC via increased import of relatively cheap energy.

(80) At t.sub.4, due to an increase in feed-in tariff, both E.sub.2 and E.sub.4 are again lowered, since feeding-in to the external network becomes more financially advantageous than self-consumption, and the SoC is allowed to fall. As illustrated, E.sub.4 is lowered sufficiently to force the system to feed energy into the external network, since in the illustrated case E.sub.4 is reduced to below the previous value of E.sub.2.

(81) At t.sub.4, E.sub.4 is raised and E.sub.2 is left at a lower level to permit wide fluctuations in SoC without interacting with the external network 7.

(82) If controllable loads 13 are present, E.sub.3 is also adjusted along with E.sub.2 as appropriate.

(83) In order to simplify control of the thresholds, it is possible to adjust E.sub.2 and E.sub.4 with a fixed difference, corresponding to e.g. 60%, 50%, 40%, or any other convenient percentage of the range of the SoC between E.sub.0 and E.sub.6 or between E.sub.1 and E.sub.5, while maintaining E.sub.4<E.sub.5 and E.sub.2>E.sub.1.

(84) By means of such adjustments of the values of E.sub.2 and E.sub.4, peak shaving can be optimised further than simply by having fixed values of E.sub.2 and E.sub.4, thereby taking into account anticipated consumption, production, pricing and so on.

(85) The optimiser 31 can thus be programmed to optimise the utilisation of storage capacity on the basis of the foregoing factors.

(86) Finally, it is noted that various optimisation strategies in respect of the capacity of the energy store 15 and the installed capacity of the local energy source 9 are known to the skilled person, who can apply them appropriately.

(87) Although the invention has been described in terms of specific embodiments, variations thereto are possible without departing from the scope of the invention as defined in the appended claims.