Patent attributes
For each cell in a plurality of cells, a first cell characteristic and a second cell characteristic are received in order to obtain a plurality of cell characteristics. For each cell in the plurality of cells, a batch compatibility number that is associated with a number of compatible cells that that cell is compatible with is determined based at least in part on the plurality of cell characteristics. The plurality of cells is sorted according to the batch compatibility numbers in order to obtain a sorted list of cells. A list of compatible cells to include in a battery is generated, including by evaluating the plurality of cells according to the order specified by the sorted list of cells and beginning with a cell with the lowest batch compatibility number.