Methods and Tools for the Analysis, Simulation and Control of Complex Energy and Mechatronic Systems