How to use quadprog for a function with time dependent constant?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have an optimization problem where to goal is to minimize the following equation:
f(x) = aβx² - ax + ay + b
where a, b and β are constants and y is a vector of constants. x is the decision variable and is also a vector of the same length as y. To use quadprog to solve this problem, this has to be in the form
f(x) = 1/2 xᵀHx + fᵀx
How do I put my equation in that form when it has the constant in the form of a vector?
Thanks very much!
댓글 수: 1
Matt J
2017년 12월 17일
It is not clear how your f(x) works out to be scalar-valued. If it is not scalar-valued, quadprog is not applicable and, in fact, it is fundamentally unclear what it means to "minimize" it.
참고 항목
카테고리
Help Center 및 File Exchange에서 Quadratic Programming and Cone Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!