Cosworth has announced that it has reached an agreement to end its current engine supply deal with the Lotus team.