Skip to content
Prev 13627 / 15274 Next

solnp Problem Inverting Hessian

I have not been paying close attention and I've missed something in this 
thread, but ...

I think the hessian in the optimization will be the second derivative of 
this function

 >>>>opt.fun <- function(wgt.vect) {-crossprod(wgt.vect,t(Ret.vect))}

WRT  wgt.vect. If there are zero elements in Ret.vect then that hessian 
will be singular. And if there are orders of magnitude difference 
between the largest and smallest elements in Ret.vect then the hessian 
will be ill-conditioned.

The ill-conditioned case is a numerical problem and you might solve it 
with a different algorithm, or by better scaling. The zero case is a 
theoretical problem, there is not a unique optimal point but rather 
whole continuum of optimal points (your parameters corresponding to the 
zero elements will not make any difference in the function value).

HTH,
Paul
On 12/14/2015 11:39 PM, Michael Weylandt wrote: