How to compute the gradient and hessian matrix when the equation cannot be solved numerically?
My minimization equation is:
c=c[(x/y/(1-x)^2)^0.6 + (1-(x/y)/(1-y)^2)^0.6 + 6/y^0
I tried the MATLAB function "diff" to compute the gradient and hessian. But derivations are much longer than one can handle. How to write the code for computing the hessian or gradient?