Effacer les filtres
Effacer les filtres

quadprog without an objective function

1 vue (au cours des 30 derniers jours)
Khaled Rashad
Khaled Rashad le 26 Août 2019
Commenté : Khaled Rashad le 27 Août 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

Réponse acceptée

Matt J
Matt J le 26 Août 2019
Modifié(e) : Matt J le 26 Août 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.
  1 commentaire
Khaled Rashad
Khaled Rashad le 27 Août 2019
Many Thanks for your answer.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Quadratic Programming and Cone Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by