how to use the objective function minimize te in quadprog
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Matt J
el 22 de En. de 2013
What's "TE"? Also, in one place you write myCov and later mycovNew.data. Are they the same thing?
Respuestas (1)
Matt J
el 22 de En. de 2013
Editada: Matt J
el 22 de En. de 2013
It's the correct syntax if the objective you're minimizing is
w.'*myCov*w/2 - w0'*myCov*w
Ver también
Categorías
Más información sobre Quadratic Programming and Cone Programming en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!