I want to solve a nonlinear programming problem with the objective function being coded as a recursive function in Matlab. I have tried “fmincon”, but it could not get the solution due to large number of recursive calling. Thus, I wonder if there is any other efficient software/package/toolbox for such kind of problem (especially, large-scale problem) for Matlab. Or, can you give me some suggestions?

Thank you very much.