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 ?

 Akzeptierte Antwort

Matt J
Matt J am 14 Mai 2021
Bearbeitet: Matt J am 14 Mai 2021

0 Stimmen

That would be,
A=[]; b=[];
Aeq=[]; beq=[];
lb=zeros(1,numel(z));
and,

4 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by