Is there a way to specify objective and constraint gradients when doing nonlinear optimization in the problem-based framework?
1 回表示 (過去 30 日間)
古いコメントを表示
In the solver-based framework, user-applied gradients are specified as additional output arguments from the objective and constraint functions. However, in the problem-based framwork, the objective and constraints are specified as symbolic expressions, not function handles. So, the concept of additional outputs does not seem applicable. Is there a way to to supply analytical gradients and Hessians in problem-based implementations?
0 件のコメント
採用された回答
Alan Weiss
2022 年 8 月 9 日
The problem-based approach calculates and uses gradients automatically for supported functions. However, to include gradients of unsupported functions or to include a Hessian, see Supply Derivatives in Problem-Based Workflow.
Alan Weiss
MATLAB mathematical toolbox documentation
2 件のコメント
Alan Weiss
2022 年 8 月 9 日
You understand correctly, Matt.
Alan Weiss
MATLAB mathematical toolbox documentation
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with Optimization Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!