The aim of this task is to develop an energy trading module that will enable building to sell or buy electrical energy from other buildings in given campus, neighbourhood, or district. The decision making process will be supported by considering own generation capacity (both current and future levels), forecasted future electricity consumption in the building, the degree of matching between generation and consumption, the current status of the local electricity market. The decision support module will be interfaced with the building energy management system.