how to supply a cost function gradient based on some of optimisation paramters

1 回表示 (過去 30 日間)
omid Heydarnia
omid Heydarnia 2023 年 3 月 27 日
編集済み: Torsten 2023 年 3 月 27 日
Dears,
My optimization problem is too big, and I must provide a gradient to accelerate the optimization procedure. Some of my optimization parameters are not derivative, at least directly. Would you please tell me if there is a way to supply a gradient based on some optimization parameters and use the finite difference for others that can not be derivated directly?

回答 (1 件)

Torsten
Torsten 2023 年 3 月 27 日
編集済み: Torsten 2023 年 3 月 27 日
Would you please tell me if there is a way to supply a gradient based on some optimization parameters and use the finite difference for others that can not be derivated directly?
If you can supply the complete gradient with respect to the optimization variables, you can "mix" the two methods. The solver doesn't care about how you get the partial derivatives.

カテゴリ

Help Center および File ExchangeNonlinear Optimization についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by