Adding (simple) user-defined functions causes significant slowdown in JuMP + Ipopt

I took a look into this. It’s the same reason as Nonlinear Objective Function Splatting - #2 by odow.

If you have a multi-variate user-defined function, we don’t pass the hessian to Ipopt.