This paper presents MARTINE (Multi-Agent based Real-Time INfrastruture for Energy), a simulation, emulation and energy management platform the study of problems related to buildings smart grids. Relevant advances grid operation have been proposed, focusing either on software models decision support or physical infrastructure control approaches. These two perspectives are, however, complementary...