quadprog without an objective function

1 次查看(过去 30 天)
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.

更多回答(0 个)

类别

Help CenterFile 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!

Translated by