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일

0 개 추천

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

댓글 수: 4

Soveatin Kuntur
Soveatin Kuntur 2021년 5월 14일
and how to convert f and H to matlab ?
Matt J
Matt J 2021년 5월 14일
편집: Matt J 2021년 5월 14일
Using commands that you know very well:
H=z.' * y * y.' *z /2;
f=-ones(numel(z),1);
Soveatin Kuntur
Soveatin Kuntur 2021년 5월 14일
thanks!
Matt J
Matt J 2021년 5월 14일
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에 대해 자세히 알아보기

질문:

2021년 5월 14일

댓글:

2021년 5월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by