ENH: Updated the optimization library interface.