# US 2025/0030245 A1 · Managing Energy in a Network

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0030245 A1
- Document ID: US20250030245A1
- Status: Published application
- Kind: A1
- Application number: 18/701,743
- Filed: 2021-10-22
- Published: 2025-01-23
- Earliest claimed: 2021-10-22
- Applicants: Telefonaktiebolaget LM Ericsson (publ)
- Inventors: Hossein Shokri Ghadikolaei; Lackis Eleftheriadis; Amin Azari
- Web page: https://patentgrep.com/patent/US20250030245A1

## CPC

- H02J 3/32: using batteries or super capacitors with converting means
- H02J 7/50: acting upon multiple batteries simultaneously or sequentially
- H02J 7/92: with prioritisation of loads or sources
- H02J 2103/30: Simulating, planning, modelling, reliability check or computer assisted design [CAD] of electric power networks
- H02J: ELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY

## Abstract

There is provided a computer-implemented method for managing a plurality of energy storages at a plurality of sites in a network, the method comprising: acquiring a first dataset including power consumption data of at least a subset of the plurality of energy storages over a predetermined amount of time; generating a first simulated environment of the network based on the acquired first dataset; and training a first reinforcement learning system by performing the following steps iteratively until a termination condition is met; selecting an action from a set of feasible actions, wherein each action in the set of feasible action is bounded by a set of constraints; calculating a reward of the selected action based on the generated first simulated environment of the network; and training the first reinforcement learning system to maximise reward for a given state of the network, based on the calculated reward for the selected action.

## Claims

### Claim at position 1

-19. (canceled)

### Claim 20

A computer-implemented method for managing a plurality of energy storages at a plurality of sites in a network, the method comprising:
generating a first simulated environment of the network based on a first dataset including power consumption data of at least a subset of the plurality of energy storages over a predetermined amount of time; and
training a first reinforcement learning system by performing the following operations iteratively until a termination condition is met:
selecting an action from a set of feasible actions, wherein each action in the set of feasible actions is bounded by a set of constraints;
calculating a reward of the selected action based on the generated first simulated environment of the network; and
training the first reinforcement learning system to maximize reward for a given state of the network, based on the calculated reward for the selected action.

### Claim 21 (depends on 20)

The method according to claim 20, wherein each action in the set of feasible actions includes at least one of the following:
charging one or more energy storages in the plurality of energy storages and corresponding one or more charging rates,
discharging one or more energy storages in the plurality of energy storages and corresponding one or more discharging rates, and
adjusting a configuration of one or more energy sources in the plurality of energy storages.

### Claim 22 (depends on 20)

The method according to claim 20, wherein calculating a reward of the selected action comprises:
acquiring initial observations of an initial state of the first simulated environment prior to the selected action being executed, wherein the initial observations comprise at least one of the following: respective energy levels of the plurality of energy storages, respective current power outputs of the plurality of energy storages, respective current charging costs of the plurality of energy storages, and respective battery types of the plurality of energy storages;
executing the selected action in the first simulated environment;
acquiring updated observations of an updated state of the first simulated environment subsequent to the selected action being executed; and
calculating the reward of the selected action based on the initial observations and the updated observations.

### Claim 23 (depends on 20)

The method according to claim 20, wherein:
the first reinforcement learning system is an episodic reinforcement learning system,
each episode associated with the first reinforcement learning system is divided into a plurality of decision time windows, and
each iteration in the training of the first reinforcement learning system corresponds to one of the decision time windows.

### Claim 24 (depends on 23)

The method according to claim 23, wherein at least one of the following is determined by a hyperparameter optimization technique: a duration of an episode associated with the first reinforcement learning system, and a duration of the decision time window corresponding to each iteration.

### Claim 25 (depends on 24)

The method according to claim 24, wherein the hyperparameter optimization technique comprises at least one of a grid search and a Bayes search.

### Claim 26 (depends on 23)

The method according to claim 23, wherein the set of constraints includes one or more of the following:
a first constraint that, for each of the plurality of sites, a value of power input from one or more energy storages corresponding to the site is identical to a value of power output at the respective site;
a second constraint that, for each of the plurality of energy storages, a value of discharge during a time window should not exceed a value of an energy level at a beginning of the time window plus a value of charge limit for the time window;
a third constraint that, for each of the plurality of energy storages, a value of a current energy level is identical to the following: a value of a previous energy level, plus a value of charge during a time window, minus an amount of discharge during the time window;
a fourth constraint that, for each of the plurality of energy storages, a value of energy level at any time window should not exceed a capacity of the energy storage; and
a fifth constraint that, when charging an energy storage from a plurality of energy storages, the resultant energy level caused by the plurality of energy storages is below a predetermined threshold.

### Claim 27 (depends on 20)

The method according to claim 20, wherein the action selected in a current iteration is different from the action selected in a previous iteration.

### Claim 28 (depends on 20)

The method according to claim 20, wherein:
the first dataset corresponds to a first modality including at least one of a first type of battery technology and a first type of network condition; and
the method further comprises:
generating a second simulated environment of the network based on a second dataset including power consumption data of at least a subset of the plurality of energy storages over a predetermined amount of time, wherein the second dataset corresponds to a second modality including at least one of a second type of battery technology and a second type of network condition; and
training a second reinforcement learning system by performing the following operations iteratively until a termination condition is met:
selecting an action from the set of feasible actions;
calculating a reward of the selected action based on the generated second simulated environment of the network; and
training the second reinforcement learning system to maximize reward for a given state of the network, based on the calculated reward for the selected action.

### Claim 29 (depends on 20)

The method according to claim 20, wherein the reward is inversely proportional of a total cost of input power.

### Claim 30 (depends on 29)

The method according to claim 29, wherein the total cost corresponds to at least one of a monetary cost and a carbon footprint cost.

### Claim 31 (depends on 20)

The method according to claim 20, wherein the termination condition is one of the following:
the reward associated with the latest selected action being lower or equal in value to the reward associated with the selected action in the previous iteration, and
the value of the reward associated with the latest selected action exceeding a predetermined threshold.

### Claim 32 (depends on 20)

The method according to claim 20, further comprising using the trained first reinforcement learning system to determine an action for a current state of the network.

### Claim 33 (depends on 32)

The method according to claim 32, wherein the trained first reinforcement learning system is deployed at each of the plurality of energy storages.

### Claim 34 (depends on 32)

The method according to claim 32, further comprising:
monitoring at least one of a key performance indicator value of the network and an average reward value achieved by the trained first reinforcement learning system; and
initiating retraining of the first reinforcement learning system if the at least one of the key performance indicator value of the network and the average reward value achieved by the trained first reinforcement learning system does not satisfy a corresponding predetermined threshold or a corresponding predetermined range.

### Claim 35

A system configured to manage a plurality of energy storages at a plurality of sites in a network, the system comprising:
processing circuitry, and
memory operably coupled to the processing circuitry and storing computer readable instructions that, when executed by the processing circuitry, cause the system to:
generate a first simulated environment of the network based on a first dataset including power consumption data of at least a subset of the plurality of energy storages over a predetermined amount of time; and
train a first reinforcement learning system by performing the following operations iteratively until a termination condition is met:
select an action from a set of feasible actions, wherein each action in the set of feasible actions is bounded by a set of constraints;
calculate a reward of the selected action based on the generated first simulated environment of the network; and
train the first reinforcement learning system to maximize reward for a given state of the network, based on the calculated reward for the selected action.

### Claim 36 (depends on 35)

The system according to claim 35, wherein each action in the set of feasible actions includes at least one of the following:
charging one or more energy storages in the plurality of energy storages and corresponding one or more charging rates, discharging one or more energy storages in the plurality of energy storages and corresponding one or more discharging rates, and adjusting a configuration of one or more energy sources in the plurality of energy storages.

### Claim 37 (depends on 35)

The system according to claim 35, wherein execution of the instructions by the processing circuitry configures the system to calculate the reward of the selected action based on:
acquiring initial observations of an initial state of the first simulated environment prior to the selected action being executed, wherein the initial observations comprise at least one of the following: respective energy levels of the plurality of energy storages, respective current power outputs of the plurality of energy storages, respective current charging costs of the plurality of energy storages, and respective battery types of the plurality of energy storages;
executing the selected action in the first simulated environment;
acquiring updated observations of an updated state of the first simulated environment subsequent to the selected action being executed; and
calculating the reward of the selected action based on the initial observations and the updated observations.

### Claim 38 (depends on 35)

The system according to claim 35, wherein:
the first dataset corresponds to a first modality including at least one of a first type of battery technology and a first type of network condition; and
execution of the instructions by the processing circuitry further configures the system to:
generate a second simulated environment of the network based on a second dataset including power consumption data of at least a subset of the plurality of energy storages over a predetermined amount of time, wherein the second dataset corresponds to a second modality including at least one of a second type of battery technology and a second type of network condition; and
train a second reinforcement learning system by performing the following operations iteratively until a termination condition is met:
selecting an action from the set of feasible actions;
calculate a reward of the selected action based on the generated second simulated environment of the network; and
train the second reinforcement learning system to maximize reward for a given state of the network, based on the calculated reward for the selected action.

### Claim 39 (depends on 35)

The system according to claim 35, wherein execution of the instructions by the processing circuitry further configures the system to use the trained first reinforcement learning system to determine an action for a current state of the network.
