**4. EV Charging Modes Definition**

From ULTRA up to V2G charging modes, the optimization functions have a dependence on different sets of inputs. The modes' dependence is given by:

$$\begin{aligned} \text{ULTRA} &= f(P\_{\text{net}})\_{\prime} \\ \text{FAST} &= f(P\_{\text{net}}, P\_{\text{l}l})\_{\prime} \\ \text{ECO} &= f(P\_{\text{net}}, P\_{\text{l}l}, P\_{\text{F}}, \pounds, \hat{P}\_{\text{net}})\_{\prime} \\ \text{V2G} &= f(P\_{\text{net}}, P\_{\text{l}l}, P\_{\text{F}}, P\_{\text{E}}, P\_{V2G}, \pounds, \hat{P}\_{\text{net}})\_{\prime} \end{aligned} \tag{17}$$

The charging modes are defined to have a specific behavior and operation specifications according to the user selection. The main role and characteristics of each charging mode are shown below:


It is noticed that the proposed charging modes are dependent on each other, since a priority order (ULTRA > FAST > ECO) is specified to manage the different charging modes. Therefore, during the periods when the microgrid reaches its demand limitation, the charging power will be maintained on the higher priority modes while it is reduced on other modes.
