In microgrid operation, the filter takes a huge responsibility of giving a perfect sinusoid (without any harmonics), but the problem is how to calculate the best value of L and C for a filter? elimination of harmonics is a must while synchronizing with the grid. harmonics readily affect the ac load connected to the AC grid side. so to avoid any distortion we need a perfect filter.