quadprog without an objective function

2 ビュー (過去 30 日間)
Khaled Rashad
Khaled Rashad 2019 年 8 月 26 日
コメント済み: Khaled Rashad 2019 年 8 月 27 日
Hello,
Can I use quadprog with no objective function?. If yes, in this case what will be the values for H and f?. Thanks

採用された回答

Matt J
Matt J 2019 年 8 月 26 日
編集済み: Matt J 2019 年 8 月 26 日
If you mean that you just want to find a feasible point without actually minimizing anything, you can provide H=zeros(N), f=zeros(N,1). This makes the quadratic objective constant (i.e. zero) over all x and therefore any feasible solution will be optimal.
It may be simpler, however, to apply this technique with linprog, rather than quadprog.
  1 件のコメント
Khaled Rashad
Khaled Rashad 2019 年 8 月 27 日
Many Thanks for your answer.

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

その他の回答 (0 件)

カテゴリ

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