**3. EMS Cost Factors**

The cost functions are defined to achieve the EV profiles and the suitable system characteristics, e.g., peak shaving in high demand situations, desired SOC reaching, and profit from the energy exchange between the microgrid and distribution network (grid). It then discusses each part that constitutes the cost functions, so that specific features of each mode are taken into account.
