how to use the objective function minimize te in quadprog
조회 수: 4 (최근 30일)
이전 댓글 표시
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
2013년 1월 22일
What's "TE"? Also, in one place you write myCov and later mycovNew.data. Are they the same thing?
답변 (1개)
Matt J
2013년 1월 22일
편집: Matt J
2013년 1월 22일
It's the correct syntax if the objective you're minimizing is
w.'*myCov*w/2 - w0'*myCov*w
참고 항목
카테고리
Help Center 및 File Exchange에서 Quadratic Programming and Cone Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!