how to use the objective function minimize te in quadprog

4 Ansichten (letzte 30 Tage)
hdg D
hdg D am 22 Jan. 2013
Kommentiert: Matt J am 11 Dez. 2015
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 Kommentare
Matt J
Matt J am 22 Jan. 2013
What's "TE"? Also, in one place you write myCov and later mycovNew.data. Are they the same thing?
hdg D
hdg D am 23 Jan. 2013
apologize te = tracking error and mycovNew = myCov Thanks, The objective is to minimize (w-w0)'myCov(w-w0)

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Matt J
Matt J am 22 Jan. 2013
Bearbeitet: Matt J am 22 Jan. 2013
It's the correct syntax if the objective you're minimizing is
w.'*myCov*w/2 - w0'*myCov*w
  5 Kommentare
R H
R H am 11 Dez. 2015
Hi, to minimize (w-w0)'myCov(w-w0), don't you need an additional term: w0'*myCov*w0?
Matt J
Matt J am 11 Dez. 2015
The additional term is an additive constant, and therefore including/excluding it doesn't affect the optimization.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Quadratic Programming and Cone Programming finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by