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 ?

 Accepted Answer

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

4 Comments

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

Sign in to comment.

More Answers (0)

Categories

Asked:

on 14 May 2021

Commented:

on 14 May 2021

Community Treasure Hunt

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

Start Hunting!