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 ?

 采纳的回答

Matt J
Matt J 2021-5-14
编辑:Matt J 2021-5-14
That would be,
A=[]; b=[];
Aeq=[]; beq=[];
lb=zeros(1,numel(z));
and,

4 个评论

and how to convert f and H to matlab ?
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.

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Quadratic Programming and Cone Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by