Last June 28 and 29 I was attending the Barcelona Global Energy Challenges . It was the seventh edition of a forum co-organized by the MIT Industrial Liason Program (MITILP), the Institute for the Energy Research of Catalonia (IREC) and the b_TEC foundation (b_TEC). During the poster session my student Lucia Gonzalez presented the results of her MSc Thesis Optimal Management of Microgrids, developped at the IREC in collaboration with the GNOM-Energy research group