Method for managing flows of electrical energy within a radio access system for a communication network including a radio transceiver, a device for connecting to an electrical grid, an electrical energy production device and a battery for storing electrical energy produced by the production device and for electrically powering the radio transceiver, comprising:
- determining, by a control device, an operating strategy for the battery by optimizing an objective function (O) that associates a cost with a possible operating strategy for the battery during a period of determined duration T and while respecting at least one constraint for protecting the battery against accelerated ageing, and
- managing, by the control device, the incoming and outgoing flows of electrical energy of the battery depending on the determined operating strategy.