Community Profile

Contact

Sorry, I found a mistake in my code and it was pretty stupid: in [x,~,~,~,~,grad,hessian] = fmincon(...) I forgot one '~', as be...

1125 views

Responded 2 years ago

Alan_Weiss <aweiss@mathworks.com> wrote in message Dear Alan, Thanks a lot for the reply. Yes, the Hessian should be 157x157 m...

Hi, I optimize a function with 157 parameters using fmincon and the result hessian is not a square matrix but just a vector of 1...

Posted 2 years ago