Matlab code for Hildreth Program?

4 ビュー (過去 30 日間)
baruch
baruch 2014 年 8 月 31 日
コメント済み: rupal 2022 年 4 月 22 日
Anyone can do Matlab coding for Hildreth Programming.I have constraints as given in attached file .

回答 (1 件)

sajjad allahgoli
sajjad allahgoli 2018 年 7 月 14 日
編集済み: sajjad allahgoli 2018 年 7 月 14 日
for your quadratic progarmming J=.5*x'*H*x+x'*f and inequality constraints A_cons*eta<=b Hildreth algorithm for obtain optimal eta is attaached matlab file.
  1 件のコメント
rupal
rupal 2022 年 4 月 22 日
hi @sajjad allahgoli how to formulate the h, f A_cons and b matrix. Can you please explain me what is a1 and why its value is taken as 10 and same with km.Please reply as i am also working on mpc and stuck with this thing
a1=10;
for km=1:38
lambda_p=lambda;
for i=1:n
w=P(i,:)*lambda-P(i,i)*lambda(i,1);
w=w+d(i,1);
la=-w/P(i,i);
lambda(i,1)=max(0,la);
end
al=(lambda-lambda_p)'*(lambda-lambda_p);
if (al<10e-8)
break;
end
end

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with Optimization Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by