search for: dnlcon

Displaying 1 result from an estimated 1 matches for "dnlcon".

Did you mean: nlcon
2009 Aug 06
0
donlp2
...ng with one example in R donlp2. How I can get the Hessian matrix from the output. p = c(10,10) par.l = c(-100,-100) par.u = c(100,100) nlin.l = nlin.u = 2 fn = function(x) { x[1]^2+x[2]^2 } dfn = function(x){ c(2*x[1], 2*x[2]) } attr(fn, "gr") = dfn nlcon = function(x){ x[1]*x[2] } dnlcon = function(x){ c(x[2], x[1]) } attr(nlcon, "gr") = dnlcon donlp2.control = function(hessian = TRUE) ret = donlp2(p, fn, par.u=par.u, par.l=par.l, nlin=list(nlcon), nlin.u=nlin.u, nlin.l=nlin.l,control = donlp2.control()) Thanks, -- Chirackel Ahammed Yoonus Research Associate, Cente...