quadprog without an objective function

Hello,
Can I use quadprog with no objective function?. If yes, in this case what will be the values for H and f?. Thanks

 Respuesta aceptada

Matt J
Matt J el 26 de Ag. de 2019
Editada: Matt J el 26 de Ag. de 2019

0 votos

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.

Más respuestas (0)

Categorías

Más información sobre Quadratic Programming and Cone Programming en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Ag. de 2019

Comentada:

el 27 de Ag. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by