Teixeira, DanielGomes, LuisVale, Zita2021-12-072021-12-072021http://hdl.handle.net/10400.22/19006Peer-to-peer transactions appear in smart grids as a way to enable the direct transaction of energy among end-users (i.e., consumers, producers, and prosumers). This concept promotes the efficient use of local renewable energy sources among neighbours. Several studies proposed the application of peer-to-peer models for energy communities, microgrids, and aggregators to decrease energy costs for end-users and to promote the balance between consumption and generation. In this paper, it is proposed a framework to test, and validate, using a real environment, single- and multi-unit peer-to-peer auctions. It is also proposed six lightweight fully distributed peer-to-peer auction models, avoiding the need for a central operator. The lightweight of the proposed models enables their execution in the fog-computing layer using single-board computers deployed in end-users. The proposed framework, together with the proposed day-ahead models, was tested and validated in a real microgrid with five prosumers. The results of two weeks are discussed using a comparative economic analysis. The proposed framework and models were able to reduce energy costs for the end-users, promoting competitive free market behaviours, with multi-unit models outperforming single-unit models in the overall trading efficiency and monetary profits.engCompetitive marketsEnergy auctionsMulti-agent systemsPeer-to-peer energy tradingTransactive energySingle-unit and multi-unit auction framework for peer-to-peer transactionsjournal article10.1016/j.ijepes.2021.107235