I state that I am not very experienced in MATLAB. I should create and minimize a function to find the weights of an asset allocation problem. The problem is as follow:
Minimize ∑(RC(Fj)/σP−1/M)^2 for j=1:M
sub ∑x=1
where RC(Fj) = (A⊤x)j⋅ (A+Σx/√x⊤Σx)j
where
  • A is a loadings matrix
  • A+ is Moore-Penrose inverse of A
  • Σ is a covariance matrix
  • x is a weights vector
I would need some codes to solve these problems. Thank you in advance.

 채택된 답변

Rishik Ramena
Rishik Ramena 2020년 12월 31일

0 개 추천

MATLAB does have a toolbox dedicated to solving optimization problems like these. Do have a look at its documentation for the ramp up.

댓글 수: 1

Tommaso Delicato
Tommaso Delicato 2021년 1월 16일
I cannot extract the j-th component of the vector which is calculated as the product of the part (A+Σx/√x⊤Σx)j.
Can you tell me how?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2020년 12월 22일

댓글:

2021년 1월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by