fixing the gradient optimization of IRR
SLSQP doesn't work with IRR. That's because in the cashflow method, the AEP is added as an int. This made the finite difference not work properly. Another fix of this branch is adding a dependency to numpy_financial, as the IRR function has moved from numpy to numpy_financial in the most recent versions of numpy.
Edited by Pierre-Elouan Rethore