The source code of work: Toward more accurate optimal sizing and operating of microgrid. Part Ⅰ: Capacity degradation of Li-ion batteries under microgrid conditions
agingdata500.mat is the original experimental data of the capacity retension.
The psoOptimization.m could be used to identify parameters of a new set of experiments.
The Qlossfind.m is the main function to calculate the battery capacity loss by the three mechanisms.