In this section, the optimization problem is solved to find the ratings of the battery that satisfy the requirements of the fluctuation limits. The problem is also used to choose between two types of batteries by comparing the revenues gained from selling the energy from the system in both cases.the chosen type of battery is further examined by changing the different parameters of the battery and investigating the corresponding changes in revenues.