A system comprising a fleet of at least partially autonomous mining machines, configured to operate in a defined mining environment, having a defined working area and a defined servicing area, which servicing area is configured to house one or more unconnected interchangeable energy storages and equipment for replenishment of such unconnected interchangeable energy storages, at which mining environment a shared work assignment comprising at least one current task for each respective mining machine is performed, the system comprising: - a respective propulsion unit configured to provide mobility of each respective mining machine, - respective on-board equipment associated with each respective mining machine, - one or more machine sensors, providing data from the machine, said sensors configured to monitor each respective mining machine in the fleet of mining machines; - a population of said interchangeable energy storages, each energy storage having one or more sensors, providing data from the interchangeable energy storages, said sensors configured to monitor the respective energy storage, and each energy storage being selectively connectable to at least one amongst the fleet of mining machines for supplying its respective propulsion unit and respective on-board equipment; - a spatial localization system for deriving location data of each mining machine and each energy storage in the mining environment; - a communication interface providing a data link between each mining machine in the mining environment and to a fog- and/or cloud- computation system; wherein - the fog- and/or cloud- computation system is configured to compute, based on the data from the respective mining machines and energy storages, the location data from the spatial localization system, and data relating to the shared work assignment, an optimized energy storage utilization with respect to at least one of the following optimization targets productivity, cost or safety, and deploy to the fleet of mining machines, via the communication interface, a workflow information for the performance of the shared work assignment based on the optimized energy storage utilization, which said workflow comprises at least one current task for each respective mining machine. - a respective propulsion unit configured to provide mobility of each respective mining machine, - respective on-board equipment associated with each respective mining machine, - one or more machine sensors, providing data from the machine, said sensors configured to monitor each respective mining machine in the fleet of mining machines; - a population of said interchangeable energy storages, each energy storage having one or more sensors, providing data from the interchangeable energy storages, said sensors configured to monitor the respective energy storage, and each energy storage being selectively connectable to at least one amongst the fleet of mining machines for supplying its respective propulsion unit and respective on-board equipment; - a spatial localization system for deriving location data of each mining machine and each energy storage in the mining environment; - a communication interface providing a data link between each mining machine in the mining environment and to a fog- and/or cloud- computation system; wherein - the fog- and/or cloud- computation system is configured to compute, based on the data from the respective mining machines and energy storages, the location data from the spatial localization system, and data relating to the shared work assignment, an optimized energy storage utilization with respect to at least one of the following optimization targets productivity, cost or safety, and deploy to the fleet of mining machines, via the communication interface, a workflow information for the performance of the shared work assignment based on the optimized energy storage utilization, which said workflow comprises at least one current task for each respective mining machine.