The following document shows the main functionalities of the economic control prototype of the microgrid. This prototype called “Smartplan” is an implementation of the Network Flow algorithm applied to schedule the charge of several electric vehicles (EV). The prototype selects at each moment which EV to charge and at which level in order to optimize the available energy with the minimum cost.