OPTIMIZING CUSTOM BATTERY PACKS BALANCING COST AND PERFORMANCE