Optimising drive systems for energy savings