Calculation of Hessian matrix in gamultiobj hybrid function

조회 수: 2 (최근 30일)
SM
SM 2021년 9월 22일
댓글: SM 2021년 9월 23일
I am trying to optimise set of parameters, I am planning to use gamultiobj hybrid function for optimisation.
I am wondering how can I measure the hessain matrix as output at the optimised parameters?
Thank you

답변 (1개)

Matt J
Matt J 2021년 9월 22일
If you mean that you can't compute the Hessian yourself and wish to do so using finite difference approximations then
  댓글 수: 3
Matt J
Matt J 2021년 9월 22일
I am wondering if there is a way to do that?
Well, you should consider my answer, then. It proposed a possible solution.
SM
SM 2021년 9월 23일
Thank you, I tried the code (hessian.m) in the file and read the code documentation.
I face the follwing error:
Array indices must be positive integers or logical values.
Error in hessdiag>@(xi)fun(swapelement(x0,ind,xi)) (line 60)
@(xi) fun(swapelement(x0,ind,xi)), ...
Error in derivest (line 337)
f_x0(j) = fun(x0(j));
Error in hessdiag (line 60)
@(xi) fun(swapelement(x0,ind,xi)), ...
I am not sure whay it is showing this error? since the "ind" is positive.
Do you have any advise on that?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Genetic Algorithm에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by