Calculation of the gradient of a function in BFGS Quasi-Newton Algorithm

조회 수: 4 (최근 30일)
Ahmed Nasr
Ahmed Nasr 2020년 5월 27일
편집: Matt J 2020년 5월 29일
I have a function that I want to minimize using the BFGS Quasi-Newton algorithm.
If .
are given.
Also, A is given, B is not given, and C is a function of B only.
If I want to calculate to the gradient of the function (). Should I calculate it with respect to all variables or with respect to B only?

채택된 답변

Matt J
Matt J 2020년 5월 27일
With respect to all the variables that are unknown.
  댓글 수: 4
Ahmed Nasr
Ahmed Nasr 2020년 5월 28일
I have a constraint that B*C > 0 .. But, I usually in my algorithm code substitute C by its function of B and take the gradient over B only as after replacing C with its function of B, B is considered as the only unknown variable in the function. Is that true?
Matt J
Matt J 2020년 5월 28일
편집: Matt J 2020년 5월 29일
It can be true. Or you can treat B and C as separate unknowns subject to an equality constraint,
C-g(B)=0
where g() is the function relating C to B. But it may make the optimization algorithm slower if it has to deal with additional variables and constraints.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by