variance of portfolio as objective function

how would be able to set up the variance of a portfolio as an seperate objective function?
I have the data read in from excel already

Respuestas (3)

Image Analyst
Image Analyst el 19 de Mayo de 2014

0 votos

What do you mean? There already is a built in function for variance called var(). Why do you need to make your own function for that?

3 comentarios

Sameer
Sameer el 19 de Mayo de 2014
because i have to minimize this function, with constraints
Star Strider
Star Strider el 19 de Mayo de 2014
Use an anonymous function.
Sameer
Sameer el 19 de Mayo de 2014
whats that

Iniciar sesión para comentar.

Alejandra Pena-Ordieres
Alejandra Pena-Ordieres el 10 de Sept. de 2024

0 votos

To set up the variance as the objective, you can use estimateFrontierLimits with the optional input 'min' or estimateFrontierByReturn.
estimateFrontierLimits(p,'min') computes the minimum variance portfolio without any return constraints. estimateFrontierByReturn(p,targetReturn) computes the minimum variance portfolio that achieves a return greater than or equal to targetReturn.

Categorías

Más información sobre Portfolio Optimization and Asset Allocation en Centro de ayuda y File Exchange.

Preguntada:

el 19 de Mayo de 2014

Respondida:

el 10 de Sept. de 2024

Community Treasure Hunt

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

Start Hunting!

Translated by