How to use quadprog for a function with time dependent constant?

4 ビュー (過去 30 日間)
Jan Willem de Lange
Jan Willem de Lange 2017 年 12 月 17 日
コメント済み: Matt J 2017 年 12 月 17 日
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 xHx + fx
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
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.

サインインしてコメントする。

回答 (1 件)

Matt J
Matt J 2017 年 12 月 17 日
編集済み: Matt J 2017 年 12 月 17 日
Don't bother. The minimizing x in your case is given trivially by
xmin=1./(2β)
and the minimum value is then f(1./(2β))

カテゴリ

Help Center および File ExchangeQuadratic Programming and Cone Programming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by