Optimization of Battery Capacity Decay for Semi-Active