how to use the objective function minimize te in quadprog

I would like to make sure if this is correct
I have a set of initial weights [10x1] - w0 covariance matrix [10x10] - myCov
f = -w0'*myCov
[solution, fval, exitflag,output] = quadProg(mycovNew.data, f, A_le,b_le,Aeq,beq,zeros(n,1),[],w0, options)
Is this the correct syntax if I want to minimize TE with respect to initial set of weights.
Thanks!

2 件のコメント

Matt J
Matt J 2013 年 1 月 22 日
What's "TE"? Also, in one place you write myCov and later mycovNew.data. Are they the same thing?
hdg D
hdg D 2013 年 1 月 23 日
apologize te = tracking error and mycovNew = myCov Thanks, The objective is to minimize (w-w0)'myCov(w-w0)

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

回答 (1 件)

Matt J
Matt J 2013 年 1 月 22 日
編集済み: Matt J 2013 年 1 月 22 日

0 投票

It's the correct syntax if the objective you're minimizing is
w.'*myCov*w/2 - w0'*myCov*w

5 件のコメント

Matt J
Matt J 2013 年 1 月 23 日
The objective is to minimize (w-w0)'myCov(w-w0)
Yes. You have it correct.
hdg D
hdg D 2013 年 1 月 23 日
so the way i am using quadprog is correct then if my objective function is minimize (w-w0)'myCov(w-w0) and this is my entry for quadprog f = -w0'*myCov
[solution, fval, exitflag,output] = quadProg(myCov.data, f, A_le,b_le,Aeq,beq,zeros(n,1),[],w0, options)
Thanks a lot for your help Matt
Matt J
Matt J 2013 年 1 月 23 日
You're welcome. Be sure to close the Question (by Accept-clicking), if you have the Answer you need.
R H
R H 2015 年 12 月 11 日
Hi, to minimize (w-w0)'myCov(w-w0), don't you need an additional term: w0'*myCov*w0?
Matt J
Matt J 2015 年 12 月 11 日
The additional term is an additive constant, and therefore including/excluding it doesn't affect the optimization.

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

カテゴリ

ヘルプ センター および File ExchangeQuadratic Programming and Cone Programming についてさらに検索

タグ

質問済み:

2013 年 1 月 22 日

コメント済み:

2015 年 12 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by