Put formula into quadprog

Dear all,
I have following formula
and I want to put this on quadprog, but I dont know how to define H, f, A, b ?

 Risposta accettata

Matt J
Matt J il 14 Mag 2021
Modificato: Matt J il 14 Mag 2021
That would be,
A=[]; b=[];
Aeq=[]; beq=[];
lb=zeros(1,numel(z));
and,

4 Commenti

and how to convert f and H to matlab ?
Matt J
Matt J il 14 Mag 2021
Modificato: Matt J il 14 Mag 2021
Using commands that you know very well:
H=z.' * y * y.' *z /2;
f=-ones(numel(z),1);
thanks!
Matt J
Matt J il 14 Mag 2021
You are quite welcome, but please Accept-click the answer to indicate that your question is resolved.

Accedi per commentare.

Più risposte (0)

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by