Update to new optimizer api.
Release 1.7.2.