quadprog without an objective function
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Khaled Rashad
il 26 Ago 2019
Commentato: Khaled Rashad
il 27 Ago 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
0 Commenti
Risposta accettata
Matt J
il 26 Ago 2019
Modificato: Matt J
il 26 Ago 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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Quadratic Programming and Cone Programming in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!