Is there a way to specify objective and constraint gradients when doing nonlinear optimization in the problem-based framework?
4 次查看(过去 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!