From point of view of power engineering the successful commercial market with electric vehicles demands a completely new concept of their integration into contemporary electrical network. The electric vehicles have very limited range, so they have to be charged in short periods, that means for the grid problems with peaks in the daily load profile. The paper outlined one of the most promising - decentralization of the network with help of multiagent systems. Each agent collects and evaluates data about vehicles from small area, manages such area relative independently, so the main problem is to create an algorithm for optimal cooperation and communication with the other agents. The example of such cooperation is shown, firstly as the simple linear programming problem, the secondly more complex, with using the game theory which is the mathematical basis for multiagent systems. The system is connected with the smart grid, so the possibilities of altering the load profile are shown. The last chapter explores the necessity of the shift of such grid to artificial intelligence and the epistemic modal logic is presented as a possible solution.