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!