MAINT: remove spurious abs function in optimize

Followup of pull request #415.
Merge pull request #416 from dlax/optimize-abs

MAINT: remove spurious abs function in optimize