Minimising the operating costs of rotating equipment