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
0 个评论
采纳的回答
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 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!