Updated 2022-05-21 0
Viewed 5 times
0

I have 338 battery (each with his own capacity, between 1800 and 2700mA)

I need to make 7 packs (48 in each pack) and try to have them as close as it could be done in their total capacity.

So far I've not found any method to order them efficiently (was trying to use python as my programing language)

I tried sorting all from less to more capacity and then: smaller to pack 1, then pack2, then pack 3... and after pack7, put again into 7 and then 6 and then 5....

this way (shame I know) was "almost enough" but would like to know if there is a way to do this in a good programing way.

🔴 No definitive solution yet