MAINT: remove spurious abs function in optimize

Followup of pull request #415.