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?

采纳的回答

Alan Weiss
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 个评论
Matt J
Matt J 2022-8-9
Thanks, Alan. But based on your link, I guess the answer (for non-automatic differentiation) is no? The procedure there appears to be just a recipe for converting the problem to the solver-based framework, where of course arbitrary derivative functions can be supplied.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by