Filter löschen
Filter löschen

quadprog without an objective function

1 Ansicht (letzte 30 Tage)
Khaled Rashad
Khaled Rashad am 26 Aug. 2019
Kommentiert: Khaled Rashad am 27 Aug. 2019
Hello,
Can I use quadprog with no objective function?. If yes, in this case what will be the values for H and f?. Thanks

Akzeptierte Antwort

Matt J
Matt J am 26 Aug. 2019
Bearbeitet: Matt J am 26 Aug. 2019
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.

Weitere Antworten (0)

Kategorien

Mehr zu Quadratic Programming and Cone Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by