필터 지우기
필터 지우기

quadprog without an objective function

조회 수: 1 (최근 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.

추가 답변 (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