Aerofoil optimiser and error recovery application